md5, sha1, sha256, sha512: support older autoconf
[gnulib.git] / ChangeLog
1 2014-01-06  Eric Blake  <eblake@redhat.com>
2
3         md5, sha1, sha256, sha512: support older autoconf
4         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
5         for autoconf < 2.63b.
6
7         include_next: port to autoconf 2.63
8         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
9
10 2014-01-04  Jim Meyering  <meyering@fb.com>
11
12         maint: add a gnulib-local rule to keep non-ascii out of .texi files
13         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
14         so that "make sc_maint" will ding anyone who puts non-ascii
15         in any of gnulib's .texi files.
16
17 2014-01-03  Jim Meyering  <meyering@fb.com>
18
19         freadable, fwritable, fwriting: declare with the "pure" attribute
20         * lib/freadable.h (freadable): Declare with the "pure" attribute.
21         * lib/fwritable.h (fwritable): Likewise.
22         * lib/fwriting.h (fwriting): Likewise.
23         Suggested by Bruno Haible.
24
25         maint.mk: adapt openat.h-include-without-use test
26         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
27         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
28         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
29         With this change, running "make sc_maint" in gnulib's top-level
30         directory now passes for me.
31
32 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33
34         doc: use ASCII in .texi files where UTF-8 isn't needed
35         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
36         * doc/posix-functions/setkey.texi, doc/regex.texi:
37         Use ASCII input, not UTF-8.
38
39 2014-01-02  Jim Meyering  <meyering@fb.com>
40
41         freading: declare with the "pure" attribute
42         * lib/freading.h (freading): Declare with the "pure" attribute.
43
44         manywarnings: remove -Wmudflap
45         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
46         it is no longer supported in gcc-4.9-to-be.
47
48 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
49
50         relocatable-script: remove unused code
51         Problem reported by Reuben Thomas in:
52         http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00117.html
53         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
54
55 2014-01-01  Jim Meyering  <meyering@fb.com>
56
57         maint: fix public-submodule-commit to work with newer git
58         * top/maint.mk (public-submodule-commit): Remove excess quoting.
59         We were over-quoting the test arguments, and somewhere prior to
60         version 1.8.5.2.229, git stopped removing those excess quotes,
61         which made the test fail, since the unexpanded strings would
62         always differ; using GIT_TRACE=1 confirmed that the git merge-base
63         command wasn't even being run.
64
65 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
66
67         doc: update main copyright year
68         * doc/gnulib.texi: Update copyright date.
69
70 2014-01-01  Eric Blake  <eblake@redhat.com>
71
72         version-etc: new year
73         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
74         * all files: run 'make update-copyright'
75
76 2013-12-24  Eric Blake  <eblake@redhat.com>
77
78         passfd: give nicer error for recvfd at eof
79         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
80         * tests/test-passfd.c (main): Enhance test to cover this.
81
82 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
83
84         gettimeofday: port recent C++ fix to Emacs
85         Without this further patch, Emacs won't build due to
86         the portcheck failing.  Also, this simplifies the patch a bit.
87         * lib/time.in.h (localtime, gmtime): Don't replace unless
88         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
89         * lib/time.in.h (localtime, gmtime):
90         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
91         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
92         * modules/time (time.h):
93         Don't worry about about the possibility of localtime and gmtime
94         being absent; they're present in all C libraries we know about.
95         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
96         Don't assume sys_time is present and has been initialized.
97         Instead, use a hack that should work even if it hasn't been.
98         Don't use a portcheck for gmtime or localtime; this supports
99         the hack.
100         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
101
102 2013-12-17  John W. Eaton  <jwe@gnu.org>
103
104         gettimeofday: fix C++ crosscompilation
105
106         Never replace gmtime and localtime by macros when compiling with
107         C++, this prevents <ctime> from being included.
108
109         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
110         define gmtime and localtime as preprocessor macros.  Instead
111         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
112         REPLACE_LOCALTIME substitutions.
113         * lib/time.in.h: Declare gmtime and localtime when needed.
114         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
115         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
116         * modules/time: Depend on gettimeofday, and substitute the above
117         variables in time.h.
118
119 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
120
121         qacl: port to Windows better
122         See Eli Zaretskii in
123         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
124         * lib/file-has-acl.c (acl_access_nontrivial):
125         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
126         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
127
128 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
129
130         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
131         * lib/gl_openssl.h: Cast void pointers to a specific type.
132
133 2013-12-07  Pádraig Brady <P@draigBrady.com>
134
135         open-tests: fix build failure with -Werror=old-style-declaration
136         * tests/test-open.h: Reorder the inline to avoid the issue.
137
138 2013-12-07  Pádraig Brady <P@draigBrady.com>
139
140         md5, sha1, sha256, sha512: fix link error with partial libcrypto
141         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
142         init time, so that if early checks find crypto routines,
143         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
144         avoiding link failures.
145
146 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
147
148         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
149         This provides a new way to specify the default for
150         gl_CRYPTO_CHECK, one that is reflected in the --help message.
151         Emacs uses this, as well as the old way.
152         This attempts to implement a suggestion by Pádraig Brady in
153         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
154         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
155         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
156
157         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
158         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
159         Add support for a new option, --with-openssl=auto, which causes
160         the library to be used if available and silently ignored if not.
161         Add support to allow allow configure.ac to specify its own
162         default, by setting with_openssl_default before invoking gl_INIT.
163
164 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
165
166         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
167         Problem reported by Daiki Ueno in:
168         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
169         * tests/test-open.h (__always_inline):
170         New macro, if not already defined.
171         (test_open): Use it.
172
173 2013-12-04  Eric Blake  <eblake@redhat.com>
174
175         include_next: minimize code duplication
176         * modules/include_next (Depends-on): Add absolute-header.
177         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
178         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
179
180 2013-12-04  Pádraig Brady <P@draigBrady.com>
181
182         getcwd: fix compile error in configure check
183         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
184
185 2013-12-04  Pádraig Brady <P@draigBrady.com>
186
187         regex: suppress core dumps from detection code
188         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
189         to suppress core dumps that may well occur on glibc systems.
190         These core dumps might not be cleaned up automatically, or could
191         trigger some system core dump handling logic.
192
193 2013-12-03  Pádraig Brady <P@draigBrady.com>
194
195         md5, sha1, sha256, sha512: support mandating use of openssl
196         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
197         description, to list the now 3 separate options.  also don't
198         mention the default=no, since this is implicit given the option
199         is described as --with-openssl rather than --without-openssl.
200         If projects change the default they're free to document that.
201         with --with-openssl[=yes] we now error out when the specified
202         hash algorithm is not available in libcrypto.
203
204 2013-12-03  Ivailo  <xakepa10@gmail.com>
205
206         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
207         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
208         -Wformat-nonliteral checks, as these edge cases are part of the test.
209
210 2013-12-03  Eric Blake  <eblake@redhat.com>
211
212         regex: avoid glibc deadlock during configure
213         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
214         glibc bug 15078 in turn triggers bug 16159.
215         Reported by Michal Privoznik.
216
217 2013-12-02  Pádraig Brady <P@draigBrady.com>
218
219         md5, sha1, sha256, sha512: use openssl routines if available.
220         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
221         routines will be used if available, requiring apps to link @LIB_CRYPTO@
222         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
223         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
224         in the standard system location.
225         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
226         * m4/sha256.m4: Likewise with SHA256.
227         * m4/sha512.m4: Likewise with SHA512.
228         * m4/md5.m4: Likewise with MD5.
229         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
230         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
231         * lib/sha256.h: Likewise with SHA256.
232         * lib/sha512.h: Likewise with SHA512.
233         * lib/md5.h: Likewise with MD5.
234         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
235         * lib/sha256.c: Likewise with SHA256.
236         * lib/sha512.c: Likewise with SHA512.
237         * lib/md5.c: Likewise with MD5.
238         * modules/crypto/sha1 (Link:): Add the new optional lib.
239         (Depends-on:): Add dependency on extern-inline.
240         * modules/crypto/sha256: Likewise.
241         * modules/crypto/sha512: Likewise.
242         * modules/crypto/md5: Likewise.
243         * modules/crypto/sha1-tests: Reference the lib here too.
244         * modules/crypto/md5-tests: Likewise.
245         * modules/crypto/gc-des-tests: Likewise.
246         * modules/crypto/gc-hmac-md5-tests: Likewise.
247         * modules/crypto/gc-hmac-sha1-tests: Likewise.
248         * modules/crypto/gc-hmac-sha256-tests: Likewise.
249         * modules/crypto/gc-hmac-sha512-tests: Likewise.
250         * modules/crypto/gc-md5-tests: Likewise.
251         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
252         * modules/crypto/gc-sha1-tests: Likewise.
253         * modules/crypto/gc-tests: Likewise.
254         * modules/crypto/hmac-md5-tests: Likewise.
255         * modules/crypto/hmac-sha1-tests: Likewise.
256         * modules/crypto/hmac-sha256-tests: Likewise.
257         * modules/crypto/hmac-sha512-tests: Likewise.
258
259 2013-11-29  RV1971  <rv1971@web.de>
260
261         base64: (trivial) fix compilation regression on some compilers
262         * lib/base64.c: Don't return the void function,
263         instead split to a separate return statement.
264
265 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
266
267         ignore-value: revert previous code change
268         * lib/ignore-value.h (ignore_value): Use __extension__ and
269         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
270         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
271         Change the comment to try to explain this better.
272
273 2013-11-27  Pádraig Brady <P@draigBrady.com>
274
275         selinux-h: improve stub types and add more stub functions
276
277         * lib/se-selinux.in.h: Change security_context_t to a typedef
278         rather than a define, as it's a pointer type and so is better
279         as a typedef to avoid issues declaring multiple variables
280         with the comma operator.  Also add stub for string_to_security_class().
281         * lib/se-context.in.h: Add stub functions for
282         context_{type,range,role,user}_get().
283
284 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
285
286         ignore-value: prefer GCC version back through 2.0
287         The code didn't match the comments, so I did a bit of software
288         archaeology.  GCC 2.0 seems to support __extension__ and
289         __typeof__, so fix both code and comments to use 2.0.
290         * lib/ignore-value.h (ignore_value): Use __extension__ and
291         __typeof__ for GCC 2.0 through 3.3, too.
292
293 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
294
295         pty: Activate the signature wrapper of forkpty.
296         The intended preprocessor macro HAVE_FORKPTY is
297         never defined, yet `lib/forkpty.c' depends on it.
298
299         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
300         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
301         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
302
303 2013-11-18  Jim Meyering  <meyering@fb.com>
304         and Paul Eggert  <eggert@cs.ucla.edu>
305
306         quotearg: don't attempt to store 1 << 31 into an "int"
307         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
308         gcc's new -fsanitize=undefined and running its tests triggered some
309         new test failures due to undefined behavior, all with this diagnostic:
310           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
311             cannot be represented in type int
312         Rather than shifting "1" left to form a mask, shift the bits right and
313         simply use "1" as the mask.
314
315 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
316
317         error: depend on stdio
318         Problem reported by Nikos Mavrogiannopoulos in
319         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
320         * modules/error (Depends-on): Add stdio.
321
322 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
323
324         * doc/relocatable-maint.texi (Supporting Relocation): Improve
325         wording.
326         Reported by Reuben Thomas <rrt@sc3d.org>.
327
328 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
329
330         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
331         New function and macro, to work around _DARWIN_C_SOURCE problem.
332         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
333
334 2013-11-11  Pádraig Brady <P@draigBrady.com>
335
336         base64: provide a fast path for encoding well sized buffers
337         Avoid conditionals in the base64 encoding loop,
338         which was seen to give 60% better throughput.
339         * lib/base64.c (base64_encode_fast): A new function to be called
340         when we don't want to NUL terminate, and we have enough space
341         in the output to encode the given input.
342         (base64_encode): Call the _fast() version when appropriate.
343         Also remove a redundant mask with 0x3F on the first encoded byte.
344
345 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
346
347         extern-inline: port better to OS X 10.9
348         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
349         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
350         OS X 10.9, except for g++ where the bug is still present.
351         See <http://trac.macports.org/ticket/41033>.
352
353 2013-11-08  Eric Blake  <eblake@redhat.com>
354
355         fpending: fix regression on DragonFly BSD
356         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
357         * lib/fpending.h (__fpending): Don't declare twice.
358         Reported by GW in
359         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
360
361 2013-11-05  Jim Meyering  <meyering@fb.com>
362
363         hash: relax license to LGPLv2+, for libguestfs
364         * modules/hash (License): Change from GPL to LGPLv2+.
365
366 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
367
368         intprops: port to Oracle Studio c99
369         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
370         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
371
372 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
373
374         obstack: pacify HP C
375         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
376         warning "conversion from pointer to smaller integer" from HP
377         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
378         C89 or later nowadays, so cast to void instead of int.  Privately
379         reported by H.Merijn Brand.  Also, change header to match glibc's,
380         to make checking against glibc easier.
381
382 2013-10-29  Jim Meyering  <meyering@fb.com>
383
384         maint.mk: prefer gpgv2 over gpgv
385         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
386         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
387         Reported by Gary Vaughan.
388
389 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
390
391         isnan: port to VAX
392         Reported by John Klos for NetBSD-5/VAX in
393         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
394         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
395         (FUNC): Use it.
396
397 2013-10-28  Jim Meyering  <meyering@fb.com>
398
399         gnulib-tool: protect against CDPATH
400         * gnulib-tool: Many "cd" built-in functions print a directory name
401         to stdout when CDPATH is set, e.g.,
402           $ bash -c 'CDPATH=/; cd tmp'
403           /tmp
404         Unset it, when possible.  Prompted by a comment from Bruce Korb.
405
406         maint.mk: restore functionality removed by recent change...
407         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
408         the context of a shallow-cloned gnulib repository: "git describe"
409         would fail in such a directory.  However, that change made it so
410         the reported gnulib revision no longer includes the version number
411         or a commit count, even when run from a full clone.
412         * top/maint.mk (gnulib-version): Use the full "git describe"
413         output when possible, e.g., the form above, rather than the
414         abbreviated, no-tag, no-commit-count string, and fall back to
415         using a 10-byte hash, rather than the default minimal-length
416         hash prefix, since while the minimal-length one may be fine today,
417         it is likely not to be unique for very long.
418
419 2013-10-26  Jim Meyering  <meyering@fb.com>
420
421         maint.mk: fix "release" target to build _version
422         This fixes a bug in README-release whereby following the outlined
423         steps, one would publish a tarball whose programs would report
424         --version output not consistent with the package version number.
425         This bug caused grep-2.15 to produce a grep program whose
426         --version option made it print 2.14.56-1e3d rather than 2.15.
427         * top/maint.mk (release): Making this target build "_version"
428         ensures that the new version number is reflected in configure.
429
430 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
431
432         install-reloc: Support multi-binary installation.
433         * build-aux/install-reloc: Support installing multiple programs in
434         one invocation, as done by Automake starting with commit
435         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
436         Haible <bruno@clisp.org>, archived at
437         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
438         Reported by Sylvain <beuc@gnu.org>.
439
440 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
441
442         selinux-h: Really build without selinux when library is missing.
443         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
444         continue without selinux, as already told in the warning message.
445
446 2013-10-21  Jim Meyering  <meyering@fb.com>
447
448         regex: also remove dependency on HAVE_WCSCOLL
449         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
450
451 2013-10-21  Reuben Thomas <rrt@sc3d.org>
452
453         xfreopen: Fix typo. s/frepoen/freopen/
454         * lib/xfreopen.c: Fix description.
455         * modules/xfreopen: Likewise.
456
457 2013-10-21  Jim Meyering  <meyering@fb.com>
458
459         regex: don't depend on wcscoll
460         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
461         It is no longer used.
462
463 2013-10-20  Jim Meyering  <meyering@fb.com>
464
465         error: add the printf attribute to a static function
466         * lib/error.c (error_tail): Add the printf attribute, to placate
467         gcc's -Werror=suggest-attribute=format option.
468
469 2013-09-30  Jim Meyering  <meyering@fb.com>
470
471         fpending, obstack, strerror-override: use pure+const function attrs
472         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
473         * lib/obstack.c (_obstack_allocated_p): Likewise.
474         * lib/obstack.h (_obstack_memory_used): Likewise.
475         (_obstack_memory_used): Likewise.
476         * lib/strerror-override.h (strerror_override): Declare with
477         the "const" attribute.
478
479 2013-10-18  Eric Blake  <eblake@redhat.com>
480
481         extern-inline: make safe for -Wundef usage
482         Reported by Vladimir 'phcoder' Serbinenko in
483         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
484         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
485
486 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
487
488         mkfifo-tests, etc.: allow HP-UX 11.11 bug
489         Problem reported by Daniel Richard G. in
490         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
491         * doc/posix-functions/mkfifo.texi (mkfifo):
492         * doc/posix-functions/mkfifoat.texi (mkfifoat):
493         * doc/posix-functions/mknod.texi (mknod):
494         * doc/posix-functions/mknodat.texi (mknodat):
495         Document the HP-UX 11.11 bug.
496         * tests/test-mkfifo.h (test_mkfifo):
497         Allow the HP-UX 11.11 bug.
498
499 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
500
501         acl: allow cross-compilation to Gentoo
502         Problem reported by Gabriel Marcano in
503         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
504         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
505         test only whether it links.
506
507 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
508
509         mgetgroups: remove dependency on realloc-gnu
510         The dependency violates the comment in realloc-gnu, which
511         says that tests can't depend on realloc-gnu; some tests depend
512         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
513         Problem reported by Daniel Richard G. in
514         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
515         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
516         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
517         not realloc-gnu.
518
519 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
520
521         regex-tests: port to HP-UX 11.11
522         Problem reported by Daniel Richard G. in
523         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
524         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
525
526 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
527
528         verify: document some 'assume' pitfalls
529         * doc/verify.texi (Compile-time Assertions):
530         Mention that 'assume (E)' can sometimes slow things down.
531         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
532
533 2013-10-10  Eric Blake  <eblake@redhat.com>
534
535         strtoumax: fix typo in previous commit.
536         * modules/strtoumax (Depends-on): Fix typo.
537         * modules/strtoimax (Depends-on): Likewise.
538
539 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
540
541         strtoumax: port to Solaris 8
542         This problem was introduced in the recent HP-UX patch.
543         Reported by Tom G. Christensen in
544         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
545         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
546         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
547
548 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
549
550         strtoimax, strtoumax: port to HP-UX 11.11
551         Problem reported by Daniel Richard G. in
552         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
553         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
554         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
555         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
556         REPLACE_STRTOUMAX.
557         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
558         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
559         Replace the function if defined as a macro but not as a function.
560         * modules/inttypes-incomplete (inttypes.h): Substitute
561         REPLACE_STRTOUMAX.
562         * modules/strtoumax (configure.ac): Replace strtoumax if
563         REPLACE_STRTOUMAX.
564
565 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
566
567         strtoimax: port to HP-UX 11.11
568         Problem reported by Daniel Richard G.
569         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
570         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
571         they might clash with inttypes.h.
572
573 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
574
575         New module 'count-trailing-zeros'.
576         * MODULES.html.sh: Mention it.
577         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
578         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
579         * modules/count-trailing-zeros-tests:
580         * tests/test-count-trailing-zeros.c:
581         New files.
582
583         count-leading-zeros: port to MSC; support types wider than 64 bits
584         The ideas behind the MSC port are stolen from Emacs.
585         * lib/count-leading-zeros.h:
586         Don't include verify.h: it's no longer needed, as types wider than
587         64 bits are now supported.
588         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
589         performance with MSC.  All uses changed.  Do not assume that TYPE
590         has at most 64 bits.
591         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
592         All uses changed.  Fold the subtraction from 31 into the table.
593
594         count-one-bits: port to MSC; support types wider than 64 bits
595         The ideas behind the MSC port are stolen from Emacs.
596         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
597         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
598         Don't include verify.h: it's no longer needed, as types wider than
599         64 bits are now supported.
600         (COUNT_ONE_BITS_GENERIC): New macro.
601         (popcount_supported) [_MSC_VER]: New inline function.
602         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
603         performance with MSC.  All uses changed.  Do not assume that TYPE
604         has at most 64 bits.
605         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
606
607 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
608
609         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
610         * lib/mountlist.c (read_file_system_list): fix leak of directory
611         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
612
613 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
614
615         tests: improve diagnostic when an assertion fails
616         * tests/macros.h (ASSERT): Report the assertion that failed.
617
618 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
619
620         verify: new macro 'assume'
621         This is taken from Emacs, and should be generally useful.
622         * doc/verify.texi (assume): Document it.
623         * lib/verify.h (assume): New macro.
624         (__has_builtin): Expand to 0 if not defined.
625
626 2013-09-26  Eric Blake  <eblake@redhat.com>
627
628         dup2, dup3: work around another cygwin crasher
629         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
630         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
631         * tests/test-dup2.c (main): Likewise.
632         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
633         * lib/dup3.c (dup3): Likewise.
634         * doc/posix-functions/dup2.texi (dup2): Document it.
635         * doc/glibc-functions/dup3.texi (dup3): Likewise.
636
637         getdtablesize: work around cygwin issue
638         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
639         * modules/getdtablesize (configure.ac): Build replacement.
640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
641         * modules/unistd (Makefile.am): Expose the witness.
642         * lib/unistd.in.h (getdtablesize): Declare replacement.
643         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
644         * tests/test-getdtablesize.c (main): Test it.
645         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
646
647 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
648
649         pmccabe2html: escaping of special characters
650         Escape all '<', '>', and '&' in HTML output.
651         * build-aux/pmccabe2html (html_fnc): Call gsub()
652         instead of sub() to capture all '<', '>', and '&'.
653         Neither of '<' and '>' is special in a regexp,
654         so first arguments to gsub() are corrected. Also,
655         in replacement strings, ampersand must be escaped.
656         Finally, '&' must be handled first, then '<' and '>'.
657
658 2013-09-24  Eric Blake  <eblake@redhat.com>
659
660         manywarnings: enable nicer gcc warning messages
661         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
662         some -f options for optimal warnings.
663
664 2013-09-21  Jim Meyering  <meyering@fb.com>
665
666         timespec: use the new TIMESPEC_RESOLUTION in a few more places
667         * lib/timespec-add.c (timespec_add): Also replace 999999999
668         with TIMESPEC_RESOLUTION - 1.
669         * lib/timespec-sub.c (timespec_sub): Likewise.
670
671 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
672
673         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
674         Problem reported by Dagobert Michelsen via Eric Blake in
675         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
676         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
677         not AC_COMPILE_IFELSE.
678
679 2013-09-23  Eric Blake  <eblake@redhat.com>
680
681         configmake: support new --runstatedir option
682         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
683         even if autoconf was too old to provide the command line option.
684         * modules/configmake (Makefile.am): Propagate it to .h file.
685
686 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
687
688         ctype, string: depend on extern-inline
689         This is needed to complete the recent OS X fixes.
690         Also, fix related documentation as suggested by Eric Blake.
691         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
692         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
693         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
694         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
695         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
696         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
697         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
698         * doc/posix-functions/toupper.texi:
699         List the 'ctype' gnulib module.
700         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
701         * doc/posix-functions/strncpy.texi:
702         List the 'string' gnulib module.
703         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
704         Add string.
705         * modules/ctype, modules/string (Depends-on): Add extern-inline.
706
707 2013-09-19  Pádraig Brady  <P@draigBrady.com>
708
709         userspec: support optional parameters to parse_user_spec()
710         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
711         then avoid group processing and treat the full spec as a user.
712         (parse_with_separator): Allow the USERNAME and GROUPNAME to
713         be optional params (NULL), in which case they're ignored.
714
715 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
716
717         timespec: new function make_timespec, and new constants
718         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
719         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
720         (make_timespec): New function.
721         * lib/dtotimespec.c (dtotimespec):
722         * lib/timespec-add.c (timespec_add):
723         * lib/timespec-sub.c (timespec_sub):
724         * lib/utimens.c (validate_timespec):
725         * lib/utimensat.c (rpl_utimensat):
726         Use these new constants and functions.
727
728         stdio: OS X port of putc_unlocked + extern inline
729         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
730         * doc/posix-functions/putc_unlocked.texi:
731         * doc/posix-functions/putchar_unlocked.texi:
732         Document this portability problem.
733
734         signal: OS X port of sigaddset etc. + extern inline
735         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
736         (sigismember): #undef on problematic Apple platforms.
737         * doc/posix-functions/sigaddset.texi:
738         * doc/posix-functions/sigdelset.texi:
739         * doc/posix-functions/sigemptyset.texi:
740         * doc/posix-functions/sigfillset.texi:
741         * doc/posix-functions/sigismember.texi:
742         Document this portability problem.
743
744         extern-inline: do not always suppress extern inline on OS X
745         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
746         extern inline on Apple only if the particular compile-time
747         configuration is known to have the problem.
748         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
749         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
750         other Gnulib modules.
751
752         extern-inline: document fixes for ctype and wctype macros
753         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
754         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
755         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
756         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
757         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
758         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
759         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
760         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
761         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
762         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
763         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
764         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
765         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
766         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
767         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
768         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
769         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
770         * doc/posix-functions/strncpy.texi:
771         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
772         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
773         Document that Gnulib fixes portability problems with these
774         functions on OS X 10.8 and earlier when called from plain inline
775         or extern inline functions.
776
777 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
778
779         fflush, freadahead, fseeko: Fix for Android
780         Suggested by Bruno Haible in:
781         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
782         * lib/stdio-impl.h: Use local __sfileext definition.
783
784 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
785
786         pmccabe2html: Portability to other awk versions.
787         The functions systime() and strftime() are available
788         in Gawk only.  Properly close two HTML-tags 'style'
789         and 'span'.
790         * build-aux/pmccabe2html (BEGIN): Store timing
791         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
792         systime() in HTML_COMMENT.
793         (html_header): Correctly close tag 'style'.
794         (END): Replace strftime() by CHRONOS_TIME.  Close
795         tag 'span' correctly, not as 'div'.
796
797 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
798
799         getgroups: statement without effect
800         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
801         Change equality conditional to expected assignment.
802
803 2013-09-09  Eric Blake  <eblake@redhat.com>
804
805         glob: fix compilation
806         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
807
808 2013-09-07  Eric Blake  <eblake@redhat.com>
809
810         glob: fix build for platforms without __THROW
811         * lib/glob.in.h (__THROW): Add definition again.
812
813 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
814
815         regex-quote: fix buffer access out of bounds
816         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
817         * lib/regex-quote.c (regex_quote_spec_pcre):
818         Fix typo that resulted in an out-of-bounds read.
819
820 2013-09-04  Eric Blake  <eblake@redhat.com>
821
822         glob: avoid -Wattribute warnings on glibc
823         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
824         __THROWNL, not __THROW, on static functions.
825         * lib/glob.in.h (__THROW): Adjust...
826         (__THROWNL): ...accordingly.
827
828 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
829
830         headers: check that _GL_INLINE_HEADER_BEGIN is defined
831         Suggested by Bruce Korb in:
832         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
833         * doc/extern-inline.texi (extern inline):
834         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
835         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
836         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
837         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
838         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
839         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
840         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
841         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
842         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
843         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
844         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
845         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
846         * lib/xtime.h:
847         Check that _GL_INLINE_HEADER_BEGIN is defined.
848
849 2013-08-29  Pádraig Brady  <P@draigBrady.com>
850
851         bootstrap: remove the --version requirement from ancillary tools
852         * build-aux/bootstrap (check_exists): A new refactored function to
853         determine if a command exists.
854         (find_tool): Use the new function which does not require the
855         --version option to be supported.
856         (check_versions): Use the new function.
857
858 2013-08-26  Simon Josefsson  <simon@josefsson.org>
859
860         gc: support HMAC-SHA256 and HMAC-SHA512.
861         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
862         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
863         functions.
864         (gc_hmac_md5): Use symbolic constant.
865         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
866         (gc_hmac_sha256, gc_hmac_sha512): New functions.
867         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
868         * m4/sha256.m4: Protect against empty expansion.
869         * m4/sha512.m4: Likewise.
870         * lib/hmac-sha256.c: New file.
871         * lib/hmac-sha512.c: Likewise.
872         * m4/gc-hmac-sha256.m4: Likewise.
873         * m4/gc-hmac-sha512.m4: Likewise.
874         * m4/gc-sha256.m4: Likewise.
875         * m4/gc-sha512.m4: Likewise.
876         * modules/crypto/gc-hmac-sha256: Likewise.
877         * modules/crypto/gc-hmac-sha256-tests: Likewise.
878         * modules/crypto/gc-hmac-sha512: Likewise.
879         * modules/crypto/gc-hmac-sha512-tests: Likewise.
880         * modules/crypto/hmac-sha256: Likewise.
881         * modules/crypto/hmac-sha256-tests: Likewise.
882         * modules/crypto/hmac-sha512: Likewise.
883         * modules/crypto/hmac-sha512-tests: Likewise.
884         * tests/test-gc-hmac-sha256.c: Likewise.
885         * tests/test-gc-hmac-sha512.c: Likewise
886         * tests/test-hmac-sha256.c: Likewise.
887         * tests/test-hmac-sha512.c: Likewise
888
889 2013-08-24  Daiki Ueno  <ueno@gnu.org>
890
891         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
892         of AC_CHECK_DECLS.
893
894 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
895
896         selinux-at: omit unnecessary include
897         * lib/selinux-at.c: Don't include dosname.h; not needed, since
898         this source file doesn't use its macros, and subsidiary files that
899         use the macros already include it.
900
901 2013-08-21  Eric Blake  <eblake@redhat.com>
902
903         d-ino: avoid false negative on symlink
904         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
905         Reported by Stephane Chazelas.
906
907 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
908
909         bootstrap: port to OpenBSD sed
910         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
911         does not interpret `-' as a file argument to mean stdin.
912
913 2013-08-15  Eric Blake  <eblake@redhat.com>
914
915         warnings: minor optimization
916         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
917
918         warnings: check -Wfoo rather than -Wno-foo
919         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
920         -Wno-, test if the compiler recognizes the positive form instead.
921
922 2013-08-15  Karl Berry  <karl@gnu.org>
923
924         * config/srclist-update: add option "doclicense" to placate
925         pulling *.texi files from Emacs.  Write terse usage
926         documentation at the top.
927
928 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
929
930         xvasprintf-tests: port to GCC with hardening flags
931         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
932         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
933         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
934
935 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
936
937         fpending: port to recent Cygwin change to stdio_ext.h
938         Reported by LRN in
939         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
940         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
941         just declare __fpending unless it's a macro.
942         A duplicate decl shouldn't hurt.
943         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
944         call compiles and links, instead of separately checking for
945         decl and lib function.
946         * modules/fpending (configure-ac):
947         Adjust to fpending.m4's renaming of shell variable.
948
949 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
950
951         sys_time: port to OpenBSD
952         * lib/sys_time.in.h: Simply delegate to the system's header
953         in the BSDish cases as well.  Problem reported by Mike Miller in
954         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
955         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
956         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
957         wider than time_t.
958
959 2013-08-09  Pádraig Brady <P@draigBrady.com>
960
961         bootstrap: support checksum utils having -c but not --status
962         * build-aux/bootstrap: Only look for sha1sum if updating po files.
963         Add sha1 to the list of supported checksum utils since it's now
964         supported through adjustments below.
965         (update_po_files): Remove the use of --status
966         in a way that will suppress all error messages, but since this is
967         only used to minimize updates, it shouldn't cause an issue.
968         Exit early if there is a problem updating the po file checksums.
969         (find_tool): Remove the check for --version support as this
970         is optional as per commit 86186b17.  Don't even check for the
971         presence of the command as if that is needed, it's supported
972         through configuring prerequisites in bootstrap.conf.
973         Prompt that when a tool isn't found, one can define an environment
974         variable to add to the hardcoded search list.
975
976 2013-08-05  Jim Meyering  <meyering@fb.com>
977
978         regex: port to non-glibc/lock-using systems
979         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
980         system with GNULIB_LOCK would fail due to absence of the
981         included "glthread/lock.h".  This would affect any package
982         for which the "lock" module is used only by the regex module,
983         and not explicitly used.
984         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
985         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
986         Add a dependency on the "lock" module.
987
988 2013-07-20  Daiki Ueno  <ueno@gnu.org>
989
990         localecharset: make locale_charset thread-safe on Mac OS X
991         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
992         instead of MB_CUR_MAX.
993
994 2013-07-20  Daiki Ueno  <ueno@gnu.org>
995
996         gettext: update to version 0.18.3
997         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
998         require AC_PROG_SED to allow user to specify custom sed command when
999         generating en@quot PO file.
1000
1001 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
1002
1003         bootstrap: use correct source when copying build-aux files
1004         * build-aux/bootstrap (gnulib_extra_files): This variable is
1005         relative to upstream gnulib layout, not downstream.
1006
1007 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
1008
1009         tmpdir: fix bug in VMS port
1010         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
1011         See Steven M. Schweda in
1012         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
1013
1014 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1015
1016         tmpdir: port to VMS, to // != /, and to long dirs
1017         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
1018         __secure_getenv, so that we're more like the glibc version.
1019         All uses changed.
1020         (path_search): Don't put slash after directory if __VMS.
1021         Problem reported by Steven M. Schweda in
1022         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
1023         Simplify code to add slash; no need for a loop.
1024         Do not remove trailing slash from "//".
1025         Do not assume dlen <= INT_MAX.
1026
1027 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1028
1029         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
1030         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
1031         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
1032         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
1033
1034         accept4, dup3, pipe2: port to Cygwin
1035         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
1036         * lib/accept4.c (accept4) [O_BINARY]:
1037         * lib/dup3.c (dup3) [O_BINARY]:
1038         * lib/pipe2.c (pipe2) [O_BINARY]:
1039         Use set_binary_mode, not setmode.
1040         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
1041         * modules/binary-io (Depends-on): Remove module indicator.
1042         These last two bits undo the previous change to pipe2 and binary-io.
1043
1044 2013-07-09  Pádraig Brady  <P@draigBrady.com>
1045
1046         mountlist: add support for deallocating returned list entries
1047         * lib/mountlist.c (free_mount_entry): A new exported function
1048         to deallocate a mount list entry.
1049         (read_file_system_list): Refactor to use the new deallocation function.
1050         Suggested by Anton Ovchinnikov.
1051
1052 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
1053
1054         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
1055         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
1056         * lib/stdalign.in.h (_Alignas, _Alignof):
1057         Port to FreeBSD 9.1, and to C11 and C++11.
1058         (_Alignas): Also support ICC.
1059         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
1060         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
1061
1062 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1063
1064         fnmatch: don't goto over declaration
1065         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
1066         undefined behavior for goto over a declaration.
1067         Problem reported by Charlie Brown in
1068         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
1069
1070         pipe2: decouple from binary-io a bit
1071         This is for Emacs, which needs pipe2 but not binary-io.
1072         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
1073         * modules/binary-io (Depends-on): Add module indicator.
1074
1075 2013-07-03  Eric Blake  <eblake@redhat.com>
1076
1077         mgetgroups: relax license to LGPLv2+
1078         * modules/getugroups (License): Change from GPLv3+.
1079         * modules/mgetgroups (License): Likewise.
1080         * modules/getgroups (License): Change from LGPLv3+.
1081
1082         xalloc-oversized: relax license to LGPLv2+
1083         * modules/xalloc-oversized (License): Change from GPLv3+.
1084
1085         nproc: relax license to LGPLv2+
1086         * modules/nproc (License): Change from LGPLv3+.
1087
1088         bootstrap: honor --no-git
1089         * build-aux/bootstrap: Don't even try to use git when user is
1090         pointing to a static checkout.
1091
1092 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1093
1094         ignore-value: port to gcc -pedantic
1095         * lib/ignore-value.h (ignore_value):
1096         Port to gcc -pedantic, by using __extension__.
1097         Reindent as per usual gnulib style nowadays.
1098         Simplify GCC version check.
1099
1100 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1101
1102         extern-inline: port to gcc -std=c89
1103         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1104         Do not use __gnu_inline__ if pedantic and pre-C99.
1105
1106 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
1107
1108         doc: document extern-inline
1109         * doc/extern-inline.texi: New file.
1110         * doc/gnulib.texi (alloca-opt): Include it.
1111         * m4/extern-inline.m4: Move some comments to documentation,
1112         and others closer to what they describe.
1113
1114         doc: chatter less
1115         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
1116         (updated-stamp): Use it.  This causes 'make' to output just
1117         one file name rather than zillions.
1118
1119         fflush, fseeko: port to musl cross-compiles
1120         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
1121         on some implementation that (1) is not known to be buggy,
1122         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
1123         cross-compiled to so we can't easily check for lack of
1124         conformance.  This is for cross-compiling to musl.
1125         Reported by Rich Felker in
1126         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
1127         * m4/fclose.m4 (gl_FUNC_FCLOSE):
1128         * m4/fflush.m4 (gl_FUNC_FFLUSH):
1129         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
1130         Adjust to above change.
1131         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
1132         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
1133         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
1134         known not to work, or unknown.
1135
1136 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1137
1138         msvc-inval: port to mingw-w64
1139         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
1140         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
1141         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
1142
1143 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
1144
1145         getcwd-lgpl: port to Tru64
1146         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
1147         Problem reported by Steven M. Schweda in
1148         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
1149
1150         tests: port large-fd POSIX spawn tests to OS X
1151         Problem reported by Daiki Ueno in
1152         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
1153         * tests/test-posix_spawn_file_actions_addclose.c:
1154         * tests/test-posix_spawn_file_actions_adddup2.c:
1155         * tests/test-posix_spawn_file_actions_addopen.c:
1156         Include <limits.h>, for OPEN_MAX, if available.
1157         (big_fd): New static function.
1158         (main): Use it.
1159
1160 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
1161
1162         tests/nap.h: use an adaptive delay to avoid ctime update issues
1163         The recent change in nap.h (5191133e) decreased the probability of lost
1164         races to about a third, however such problems could still be observed
1165         in virtual machines and openSUSE's OBS.
1166         Before, nap() detected the needed time once empirically and then used
1167         that delay (together with a small correction multiplier) in further
1168         calls.  This problem has been reported and discussed several times,
1169         including guesses about possible kernel issues:
1170         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
1171         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
1172         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
1173         http://bugs.gnu.org/12820
1174         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
1175         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
1176         Now, nap() avoids the race alltogether by verifying on a reference
1177         file whether a timestamp difference has happened.
1178         * tests/nap.h (nap_fd): Define file descriptor variable for the
1179         witness file.
1180         (nap_works): Change return value to bool.  Change passing
1181         the old file's status by value instead of by reference as this function
1182         does no longer update that timestamp; rename the function argument from
1183         st to old_st.  Remove the local variables cdiff and mdiff because that
1184         function now returns true/false instead of the precise delay.
1185         (guess_delay): Remove function.
1186         (clear_tmp_file): Add new function to close and unlink the witness file.
1187         (nap): Instead of re-using the delay which has been calculated during
1188         the first call, avoid the race by actually verifying that a timestamp
1189         difference can be observed on the current file system.  Use an adaptive
1190         approach for the delay to minimize execution time.  Assert that the
1191         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
1192         = 2^31 - 1 = 2.1s.
1193         Use atexit to call clear_tmp_file when the process terminates.
1194
1195 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1196
1197         sig2str: port to C++
1198         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
1199         Reported by Daniel J Sebald in
1200         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
1201
1202 2013-05-30  Eric Blake  <eblake@redhat.com>
1203
1204         docs: mention cygwin shortcoming in <sys/un.h>
1205         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
1206
1207         vasnprintf: silence mingw compiler warning
1208         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
1209
1210 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1211
1212         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
1213         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
1214         This fixes a porting bug I recently reintroduced in regex, and
1215         some other instances that I discovered while testing the fix.
1216         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
1217         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
1218         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
1219         with an empty argument if this is a pedantic pre-C99 GCC.
1220         * lib/verify.h: Do not use _Static_assert if this is a pedantic
1221         pre-C11 GCC.
1222
1223         regex: adapt to locking regime instead of depending on pthread
1224         Instead of depending on pthread, adapt to whatever thread
1225         modules are in use.  Problem reported by Ludovic Courtès in
1226         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
1227         and by Mats Erik Andersson in
1228         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
1229         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1230         Support either the 'lock' module, or the 'pthread' module, or
1231         no module.
1232         (lock_lock, lock_unlock): New macros.
1233         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
1234         * modules/lock, modules/pthread (configure.ac): Add module indicator.
1235         * modules/regex (Depends-on): Remove pthread.
1236
1237 2013-05-22  Eric Blake  <eblake@redhat.com>
1238
1239         getgroups: document portability issues
1240         * doc/glibc-functions/initgroups.texi (initgroups): Mention
1241         multithread safety.
1242         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
1243         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
1244         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
1245         getugroups.
1246         * doc/posix-functions/getgroups.texi (getgroups): Mention
1247         multithread safety and mgetgroups.
1248
1249 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
1250
1251         test-lchown, test-chown: also skip test if chown fails with EPERM
1252         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
1253         skip this test, to handle FAT file systems.
1254         * tests/test-chown.h (test_chown): Likewise.
1255
1256 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1257
1258         regex: fix dfa race in multithreaded uses
1259         Problem reported by Ludovic Courtès in
1260         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
1261         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1262         New macros.  All uses of __libc_lock_define, __libc_lock_init
1263         changed to use the first two of these.
1264         (__libc_lock_lock, __libc_lock_unlock): New macros, for
1265         non-glibc platforms.
1266         (struct re_dfa_t): Define the lock unconditionally.
1267         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
1268         '#ifdef _LIBC"s.
1269         * modules/regex (Depends-on): Add pthread, if we use the
1270         included regex.
1271
1272         * lib/regcomp.c: Do actions that are not needed for glibc,
1273         but may be needed elsewhere.
1274         (regfree, re_compile_internal): Destroy the lock.
1275         (re_compile_internal): Check for lock-initialization failure.
1276
1277         malloca: port to compilers that reject size-zero arrays
1278         This fixes a bug introduced in my previous patch.
1279         * lib/malloca.c (struct preliminary_header): Use an int
1280         rather than a character array of size int; that's simpler.
1281         (struct header): Remove, replacing with ...
1282         (union header): New type.  This avoids the need for declaring a
1283         character array of size zero, which is not allowed on some platforms.
1284         All uses changed.
1285
1286 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1287
1288         parse-datetime, tests: don't use "string" + int
1289         Recent versions of 'clang' complain about C source code that
1290         uses expressions of the form '"string literal" + integer',
1291         I guess on the theory that it's confusing for readers who are
1292         used to C++.  On those grounds I suppose it's OK to make this
1293         minor style change.
1294         * lib/parse-datetime.y (parse_datetime):
1295         * tests/test-fchdir.c (main):
1296         * tests/test-snprintf-posix.h (test_function):
1297         * tests/test-snprintf.c (main):
1298         * tests/test-vasnprintf-posix.c (test_function):
1299         * tests/test-vasnprintf.c (test_function):
1300         * tests/test-vsnprintf.c (main):
1301         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
1302         Rewrite '"str" + E' to '&"str"[E]'.
1303
1304 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1305
1306         argmatch: port to C++
1307         * lib/argmatch.h [__cplusplus]: Add extern "C".
1308
1309         argp: typo fix
1310         * lib/argp-help.c: Typo in comment.
1311
1312 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1313
1314         manywarnings: update for GCC 4.8.0
1315         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1316         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
1317         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
1318         -Wmissing-noreturn, as they are duplicates of other warnings.
1319         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
1320         was documented to be flaky in earlier versions of GCC.
1321
1322         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
1323         * tests/test-spawn.c (main):
1324         * tests/test-sys_socket.c (main):
1325         * tests/test-sys_wait.c (main):
1326         Don't have a switch value that isn't covered by a case.
1327
1328         getaddrinfo-tests: port --enable-gcc-warnings to clang
1329         * tests/test-getaddrinfo.c (simple):
1330         Avoid casts from looser to stricter-aligned pointers.
1331
1332         thread: port --enable-gcc-warnings to clang
1333         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
1334         Include <signal.h>, to pacify a warning about pthread_sigmask.
1335
1336         stdio: use __REDIRECT for fwrite, fwrite_unlocked
1337         * lib/stdio.in.h (fwrite):
1338         When working around bug 11959, use __REDIRECT rather than '#define
1339         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
1340         fix the -Wunused-value issue with clang, and it works with GCC too.
1341         Problem with targeting reported by Eric Blake in
1342         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
1343         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
1344         debugging the fwrite issue.
1345
1346         stdio: port --enable-gcc-warnings to clang
1347         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
1348         since the GCC workaround for fwrite does not pacify clang.
1349
1350         sig2str: port --enable-gcc-warnings to clang
1351         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
1352
1353         obstack: port --enable-gcc-warnings to clang
1354         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
1355         Avoid casts from looser to stricter-aligned pointers.
1356
1357         memchr2: port --enable-gcc-warnings to clang
1358         * lib/memchr2.c (memchr2):
1359         Avoid casts from looser to stricter-aligned pointers.
1360
1361         mbsstr: port --enable-gcc-warnings to clang
1362         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
1363         Avoid casts from looser to stricter-aligned pointers.
1364
1365         malloca: port --enable-gcc-warnings to clang
1366         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
1367         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
1368
1369         inttostr: port --enable-gcc-warnings to clang
1370         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
1371
1372         warnings: port to clang
1373         Problem reported by Daniel P. Berrange via Eric Blake in
1374         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
1375         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
1376         (gl_WARN_ADD): Use it.
1377
1378 2013-05-11  Jim Meyering  <meyering@fb.com>
1379
1380         quotearg: do not read beyond end of buffer
1381         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
1382         end of an ARG for which no length was specified.  With an N-byte
1383         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
1384         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
1385         via coreutils' misc/sort-debug-keys.sh test and detected by running
1386         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
1387         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
1388         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
1389         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
1390         characters correctly."
1391
1392 2013-05-11  Daiki Ueno  <ueno@gnu.org>
1393
1394         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
1395         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
1396         compilation target is Mac OS X 10.6.
1397         Problem reported by parafin and Andoni Morales in
1398         <http://savannah.gnu.org/bugs/?37844> and
1399         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
1400
1401 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1402
1403         mkdir-p: remove assumptions about umask and mode
1404         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
1405         umask is 0, or that MODE is a subset of MODE_BITS.
1406
1407 2013-05-10  Eric Blake  <eblake@redhat.com>
1408
1409         maint.mk: catch more abuse of HAVE_DECL in syntax-check
1410         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
1411
1412 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1413
1414         deps: require Automake >= 1.9.6 in generated Makefile fragments
1415
1416         That is the same minimal version required in the DEPENDENCIES file.
1417         Moreover, the old code generated a requirement of Automake >= 1.5,
1418         and that is an insanely outdated version.
1419
1420         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
1421         * tests/havelib/rpathlx/Makefile.am: Likewise.
1422         * tests/havelib/rpathly/Makefile.am: Likewise.
1423         * tests/havelib/rpathlyx/Makefile.am: Likewise.
1424         * tests/havelib/rpathlz/Makefile.am: Likewise.
1425         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
1426         * tests/havelib/rpathx/Makefile.am: Likewise.
1427         * tests/havelib/rpathy/Makefile.am: Likewise.
1428         * tests/havelib/rpathz/Makefile.am: Likewise.
1429
1430 2013-05-08  Eric Blake  <eblake@redhat.com>
1431
1432         bootstrap: AC_INIT may have more than four parameters
1433         * build-aux/bootstrap (extract_package_name): Correctly extract
1434         non-empty tarname field.  Avoid range in regex.
1435         Based on a report by Sami Kerola <kerolasa@iki.fi>.
1436
1437 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1438
1439         qacl: port to MS-Windows port of GNU Emacs
1440         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
1441         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
1442         port of GNU Emacs.  Problem reported by Eli Zaretskii in
1443         <http://bugs.gnu.org/14295#14>.
1444
1445 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
1446
1447         acl: include quote.h
1448         * lib/copy-acl.c: Include quote.h.
1449         * lib/set-acl.c: Likewise.
1450
1451 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1452
1453         fchownat, renameat, unlinkat: update statat dependencies
1454         These modules use statat and lstatat, not fstatat; so depend on
1455         the statat module, which was split out recently from fstatat.
1456         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
1457         * modules/renameat: Likewise.  Also delete fstat.
1458         URL: http://bugs.gentoo.org/468790
1459
1460 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1461
1462         Assume gnulib is checked out from Git, not CVS
1463
1464         In fact, access to the gnulib repository through CVS has been
1465         disabled, or more precisely, got broken and was never restored; see:
1466         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
1467
1468         Note that support for CVS is not removed completely and unthinkingly
1469         by this change: only support for CVS checkouts of gnulib itself is
1470         removed.  For example, the 'bootstrap' script still cater to .cvsingore
1471         files and CVS directories, for the benefit of those poor gnulib clients
1472         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
1473
1474         * gnulib-tool: Simplify accordingly.
1475         * posix-modules: Likewise.
1476         * MODULES.html.sh: Likewise.
1477         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
1478         repository.
1479         * doc/gnulib-intro.texi: Likewise.
1480         * doc/gnulib-readme.texi: Likewise.
1481         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
1482         sample '.gitignore' file rather than a sample '.cvsignore'.
1483         * NEWS: Update.
1484         * m4/extensions.m4: While at it, remove a comment mistakenly referring
1485         to "CVS Autoconf" rather than "git Autoconf".
1486
1487 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1488
1489         utimensat-tests, etc.: try to fix some races
1490         Problem reported by Bernhard Voelker in
1491         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
1492         I don't know whether this patch fixes that race condition, but it
1493         fixes *some* race conditions, so it should be a win.
1494         * modules/chown-tests (Depends-on):
1495         * modules/fchownat-tests (Depends-on):
1496         * modules/fdutimensat-tests (Depends-on):
1497         * modules/futimens-tests (Depends-on):
1498         * modules/lchown-tests (Depends-on):
1499         * modules/stat-time-tests (Depends-on):
1500         * modules/utimens-tests (Depends-on):
1501         * modules/utimensat-tests (Depends-on):
1502         Depend on nanosleep, not usleep.
1503         * modules/chown-tests (test_chown_LDADD):
1504         * modules/lchown-tests (test_lchown_LDADD):
1505         * modules/stat-time-tests (test_stat_time_LDADD):
1506         New macro.
1507         * modules/fchownat-tests (test_fchownat_LDADD):
1508         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1509         * modules/futimens-tests (test_futimens_LDADD):
1510         * modules/utimens-tests (test_utimens_LDADD):
1511         * modules/utimensat-tests (test_utimensat_LDADD):
1512         Add $(LIB_NANOSLEEP).
1513         * modules/stat-time-tests (Files): Add tests/nap.h.
1514         * tests/nap.h: Include <limits.h>, for INT_MAX.
1515         (lt_mtime): Remove.
1516         (diff_timespec): New function.
1517         (get_stat): Rename from get_mtime.  All callers changed.
1518         (nap_works): Determine the needed delay by inspecting the
1519         file system's timestamp jumps; this should be more reliable.
1520         Look at both mtime and ctime, and take the maximum of the two jumps.
1521         (nap_works, guess_delay):
1522         Return a nanosecond cound, not a microsecond count.
1523         All callers changed.
1524         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1525         failure.
1526         (nap): Multiply the guess by 1.125, to accommodate the case where
1527         the file system's clock is a bit slower than nanosleep's clock.
1528         * tests/test-stat-time.c (BASE): New macro.
1529         Include nap.h.
1530         (nap): Remove; nap.h now defines this.  This removes a duplicate
1531         implementation of 'nap'.
1532
1533         utimens, utimensat: work around Solaris UTIME_OMIT bug
1534         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1535         Linux kernel 2.6.32 does.  Work around it in the same way.
1536         * doc/posix-functions/futimens.texi (futimens):
1537         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1538         * lib/utimens.c (fdutimens, lutimens):
1539         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1540
1541         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1542         Formerly, it was your responsibility to do this for all Makefile.ams
1543         other than Gnulib's.  Now it's your responsibility to do it for
1544         Gnulib's Makefile.am, too.
1545         * NEWS: Document this.
1546         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1547
1548         acl: include errno.h to get errno
1549         Reported by Daiki Ueno in
1550         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1551         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1552
1553 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1554
1555         tests: don't assume getdtablesize () <= 10000000
1556         * modules/cloexec-tests:
1557         * modules/dup2-tests:
1558         * modules/dup3-tests:
1559         * modules/nonblocking-tests:
1560         * modules/posix_spawn_file_actions_addclose-tests:
1561         * modules/posix_spawn_file_actions_adddup2-tests:
1562         * modules/posix_spawn_file_actions_addopen-tests:
1563         * modules/unistd-safer-tests:
1564         Depend on the getdtablesize module.
1565         * tests/test-cloexec.c:
1566         * tests/test-dup-safer.c:
1567         * tests/test-dup2.c:
1568         * tests/test-dup3.c:
1569         * tests/test-fcntl.c:
1570         * tests/test-nonblocking.c:
1571         * tests/test-posix_spawn_file_actions_addclose.c:
1572         * tests/test-posix_spawn_file_actions_adddup2.c:
1573         * tests/test-posix_spawn_file_actions_addopen.c:
1574         Don't assume getdtablesize () <= 10000000.
1575
1576 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1577
1578         extern-inline: work around bug in Sun c99
1579         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1580         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1581
1582 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1583
1584         qacl: new module, broken out from the acl module
1585         This is for GNU Emacs, which wants the acl functions but does
1586         not want 'error' invoked when they fail.
1587         * lib/acl-internal.h: Do not include error.h, quote.h.
1588         (ENOSYS, ENOTSUP): Remove; no longer needed.
1589         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1590         * lib/acl.h: Include <stdbool.h>.
1591         (acl_errno_valid): New function.
1592         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1593         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1594         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1595         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1596         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1597         * lib/file-has-acl.c (file_has_acl):
1598         * lib/qcopy-acl.c (qcopy_acl):
1599         * lib/qset-acl.c (qset_acl):
1600         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1601         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1602         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1603         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1604         Add lib/set-acl.c.
1605         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1606         Add qacl.
1607         (configure.ac): Move gl_FUNC_ACL to qacl module.
1608         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1609         Rename set-mode-acl.c to set-acl.c.
1610         * lib/acl-errno-valid.c: New file.
1611         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1612         copy_acl function remains in copy-acl.c.
1613         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1614         (_): Remove; not needed.
1615         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1616         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1617         * modules/qacl: New file, moved from the old modules/acl.
1618         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1619         Remove set-mode-acl.c, copy-acl.c.
1620         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1621
1622         alignof, intprops, malloca: port better to IBM's C compiler
1623         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1624         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1625         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1626
1627 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1628
1629         wctype-h: fix gettext link error on mingw
1630         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1631         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1632         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1633         rpl_towupper and rpl_towupper.
1634
1635 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1636
1637         regex-tests, regex: allow glibc re_search behavior
1638         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1639         re_search input data to make the multi-character collating element
1640         in it clearly visible, and treat re_search return code 0 as valid.
1641         * m4/regex.m4 (gl_REGEX): Likewise.
1642
1643 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1644
1645         stdalign: doc fix
1646         * doc/posix-headers/stdalign.texi (stdalign.h):
1647         Gnulib doesn't support '_Alignof expr'.
1648
1649 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1650
1651         stdalign: port to stricter ISO C11
1652         ISO C11 says that _Alignof's operand must be a parenthesized type.
1653         Problem reported by Eli Zaretskii in
1654         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1655         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1656         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1657
1658 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1659
1660         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1661         Problem reported by Marco Atzeri in
1662         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1663         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1664         Simply delegate to the system <sys/select.h> in this case too.
1665         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1666         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1667         be needed on Solaris either.
1668         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1669         Simply delegate to the system <sys/time.h> in this case.
1670
1671 2013-03-19  Karl Berry  <karl@gnu.org>
1672
1673         * build-aux/gnupload: check for erroneous (with gnupload) use of
1674         ftp-upload.gnu.org, tweak help.
1675
1676 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1677
1678         copy-file, rpmatch: fix problems found by cppcheck
1679         Reported by Arno Onken in
1680         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1681         * lib/rpmatch.c (try): Fix memory leak.
1682         * lib/copy-file.c: Include "ignore-value.h".
1683         (qcopy_file_preserving): Ignore chown value.
1684         * modules/copy-file (Depends-on): Add ignore-value.
1685
1686 2013-01-27  Jim Meyering  <jim@meyering.net>
1687
1688         prefix-gnulib-mk: give better diagnostics
1689         * build-aux/prefix-gnulib-mk: Don't just "die".
1690         Give better diagnostics upon failure.
1691
1692 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1693
1694         putenv: port to Solaris 10
1695         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1696         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1697         is not what is wanted here.
1698         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1699         declaration, not for its existence.
1700
1701 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1702
1703         mktime: fix configure typo
1704         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1705
1706 2013-03-12  Eric Blake  <eblake@redhat.com>
1707
1708         regex-tests: skip UTF-8 test on mingw
1709         * modules/regex-tests (Depends-on): Add localcharset.
1710         * tests/test-regex.c (main): Use it to skip test on mingw.
1711
1712 2013-03-11  Eric Blake  <eblake@redhat.com>
1713
1714         tests: make it easier to bypass alarm time in debugger
1715         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1716         * tests/test-memmem.c (main): Likewise.
1717         * tests/test-passfd.c (main): Likewise.
1718         * tests/test-ptsname.c (main): Likewise.
1719         * tests/test-ptsname_r.c (main): Likewise.
1720         * tests/test-strcasestr.c (main): Likewise.
1721         * tests/test-strstr.c (main): Likewise.
1722
1723         regex: port to mingw's recent addition of undeclared alarm
1724         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1725         exists but still doesn't work in newer mingw.
1726         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1727         not existence.  Ensure SIGALRM is not trapped.
1728         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1729         * m4/regex.m4 (gl_REGEX): Likewise.
1730         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1731         * tests/test-regex.c (main): Use correct probe for alarm.
1732
1733         putenv: avoid compilation warning on mingw
1734         * lib/putenv.c (_unsetenv): Protect variable declaration.
1735         (putenv): Fix indentation.
1736
1737 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1738
1739         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1740         * lib/unistd.in.h: be careful not to include un-needed system
1741         stdlib.h from here, because that prevents gnulib stdlib.h from
1742         defining rpl_strtod correctly.
1743
1744 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1745
1746         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1747         changesets, but for the 'precision 0' test.
1748         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1749         round-to-even, since POSIX says rounding is implementation-defined
1750         and OS X 10.8.2 rounds 1.51 to 1 here.
1751
1752         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1753         changeset.
1754         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1755         round-to-even, since POSIX says rounding is implementation-defined
1756         and OS X 10.8.2 rounds 1.5 to 1 here.
1757
1758 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1759
1760         vasnprintf-posix-tests: allow rounding 1.5 to 1
1761         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1762         round-to-even, since POSIX says rounding is implementation-defined
1763         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1764         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1765
1766         bootstrap: port to FreeBSD
1767         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1768         that treat '--' differently.  Reported by Mats Erik Andersson in
1769         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1770
1771 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1772
1773         regex: rename remaining __attribute calls to __attribute__.
1774         2012-02-25 changed definition of __attribute, but left some uses
1775         unchanged, preventing compilation of regex module on most non-gcc
1776         environments.
1777         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1778         (lookup_collation_sequence_value, build_range_exp)
1779         (build_collating_symbol): Set attributes with newly renamed
1780         __attribute__ decorator.
1781         * lib/regex_internal.c (re_string_peek_byte_case)
1782         (re_node_set_compare, re_node_set_contains): Likewise.
1783         * lib/regexec.c (acquire_init_state_context): Likewise.
1784
1785 2013-03-06  Bruno Haible  <bruno@clisp.org>
1786
1787         execute: Revert last change, but use a different condition.
1788         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1789         on Windows.
1790
1791 2013-03-05  Eric Blake  <eblake@redhat.com>
1792
1793         execute: drop dead code
1794         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1795
1796 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1797
1798         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1799         * m4/non-recursive-gnulib-prefix-hack.m4
1800         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1801         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1802         <http://bugs.gnu.org/10305#237>.
1803
1804 2013-03-04  Eric Blake  <eblake@redhat.com>
1805
1806         test-getsockopt: avoid compiler warning
1807         * tests/test-getsockopt.c (includes): Ensure close is declared.
1808
1809 2013-03-02  Bruno Haible  <bruno@clisp.org>
1810
1811         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1812         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1813
1814 2013-03-02  Bruno Haible  <bruno@clisp.org>
1815
1816         gettext: Update to version 0.18.2.
1817         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1818         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1819                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1820
1821 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1822
1823         regex: merge patches from libc
1824
1825         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1826         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1827         All uses changed.
1828         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1829         (re_string_wchar_at, re_string_elem_size_at):
1830         Mark function as possibly unused.
1831
1832         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1833         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1834         elements compare against the byte sequence of it, not its name.
1835
1836 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1837
1838         putenv: port better to native Windows
1839         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1840         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1841         (_unsetenv): Use _putenv if available.
1842         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1843         a bit less likely to cause damage.
1844         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1845         Fix the wrong value with SetEnvironmentVariable.
1846         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1847         code better.
1848
1849 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1850
1851         regex: ignore old-style-definition warnings
1852         * lib/regex.c: Add pragma to ignore these warnings.
1853         Problem reported for GNU tar by Pavel Raiskup.
1854
1855 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1856
1857         getcwd: support coreutils better
1858         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1859         but this might not be correct in coreutils, which disables
1860         the raw decl checks.  Problem reported by Nagendra in
1861         <http://bugs.gnu.org/10305#192>.
1862         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1863         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1864         Test the getcwd function, not any macro, since getcwd.c wants the
1865         function.
1866         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1867         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1868         compile, as might happen if there's a macro but no function.
1869
1870         strtod: support coreutils better
1871         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1872         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1873         disables the raw decl checks.  This assumes there is an underlying
1874         strtod, but that's a safe assumption these days.
1875         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1876
1877         mountlist: port to HP NonStop
1878         Reported by Joachim Schmitz in
1879         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1880         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1881         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1882
1883 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1884
1885         extern-inline: avoid compilation error with HP-UX cc
1886         Reported by Richard Lloyd in
1887         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1888         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1889         Suppress extern inline with HP-UX cc.  This should be safe,
1890         though it may hurt performance.  Perhaps someone with some HP-UX
1891         experience can come up with a higher-performance fix.
1892
1893 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1894
1895         putenv: fix heap corruption with mixed putenv/_putenv
1896         Problem reported by Michael Goffioul in
1897         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1898         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1899         Rely on _putenv to allocate the new environment.
1900         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1901         * modules/putenv (configure.ac): Use it.
1902
1903 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1904
1905         unsetenv etc.: port to Solaris 11 + GNU Emacs
1906         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1907         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1908         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1909         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1910         idea but is too painful to fix right now), and without this gnulib
1911         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1912         compiling unsetenv.c on Solaris 11.  Fix the problem for
1913         unsetenv.c, and fix other similar occurrences.
1914
1915 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1916
1917         secure_getenv: fix C++ declaration typo
1918         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1919         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1920         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1921
1922 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1923
1924         careadlinkat: stop exporting careadlinkatcwd
1925         Only Emacs used it directly, and Emacs no longer needs it.
1926         * NEWS: Document this simplification.
1927         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1928         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1929         for readlink.
1930         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1931         Don't include stdlib.h; no longer needed.
1932         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1933         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1934         * modules/areadlink (Depends-on): Add readlink.
1935         (Maintainer): Add self.
1936         * modules/careadlinkat (Depends-on): Remove readlink.
1937
1938         extensions: port better to HP-UX
1939         This is merged from git Autoconf.
1940         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1941         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1942         so that it's compatible with the value used when compiling.
1943
1944         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1945         Problem reported by Mats Erik Andersson in
1946         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1947         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1948         openpty function exists, not merely when we intend to replace it.
1949         This corrects the 2013-01-31 patch, which mistakenly defined
1950         HAVE_OPENPTY even on hosts that lacked it.
1951
1952 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1953
1954         secure_getenv: fix include typo
1955         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1956
1957         secure_getenv: port better to FreeBSD and Solaris
1958         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1959         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1960         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1961         This works better on BSDish platforms.
1962         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1963         Test for issetugid if __secure_getenv is missing.
1964
1965 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1966
1967         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1968         Some of these changes are merged in from git Autoconf.
1969         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1970         When deciding whether to define _XOPEN_SOURCE, inspect the
1971         preprocessor macro __hpux instead of the more-heavyweight
1972         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1973         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1974         as the key for __EXTENSIONS__.
1975
1976         unistd: avoid namespace pollution on non-glibc systems
1977         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1978         This avoids namespace pollution on non-glibc systems, by causing
1979         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1980         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1981         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1982
1983 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1984
1985         tmpdir: use secure_getenv
1986         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1987         Define to secure_getenv, not getenv.
1988         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1989         as that's now secure_getenv's job.
1990         * modules/tmpdir (Depends-on): Add secure_getenv.
1991
1992         tempname: use secure_getenv
1993         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1994         Define to secure_getenv, not getenv.
1995         * modules/tempname (Depends-on):
1996         Add secure_getenv.
1997
1998         secure_getenv: new module
1999         * MODULES.html.sh (Extra functions based on ANSI C 89):
2000         Add secure_getenv.
2001         * doc/glibc-functions/secure_getenv.texi: New file.
2002         * doc/gnulib.texi: Include it.
2003         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
2004         New files.
2005         * lib/stdlib.in.h (secure_getenv): New decl.
2006         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
2007         * modules/stdlib (stdlib.h):
2008         Add secure_getenv checks.
2009
2010 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
2011
2012         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
2013         Reported for OS X 10.8.2 by Assaf Gordon in
2014         <http://bugs.gnu.org/13516>.
2015         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
2016         !HAVE_OPENAT && !HAVE_FDOPENDIR.
2017         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
2018         so that they can be kept in sync more easily.  Avoid PATH_MAX
2019         test on the Hurd.  Sync from test-getcwd.c for errno tests after
2020         mkdir or chdir failure.
2021         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
2022         lib/getcwd.c.
2023         (test_abort_bug): Do not test for the deep directory bug unless we
2024         have openat support.  Avoid PATH_MAX test on the Hurd.
2025
2026         regex-tests, regex: fix bug: memset undeclared
2027         * tests/test-regex.c: Don't include regex.h twice.  Include
2028         string.h, to declare memset.  Christensen's report also mentioned
2029         this issue.
2030         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
2031         test-regex.c, to avoid future problems like this.  Remove
2032         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
2033         twice.
2034
2035         regex-tests: fix link errors on older Solaris
2036         These need to link with @LIBINTL@ to get libintl_gettext.
2037         Problem reported by Tom G. Christensen in
2038         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
2039         * modules/regex-tests (test_regex_LDADD): New macro.
2040
2041 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
2042
2043         regex-tests: new module
2044         * modules/regex-tests, tests/test-regex.c: New files.
2045
2046         regex: fix off-by-one error in configure test
2047         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
2048
2049 2013-01-31  Eric Blake  <eblake@redhat.com>
2050
2051         regex: avoid infinite configure test
2052         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
2053
2054 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
2055
2056         openpty: fix bug where HAVE_OPENPTY wasn't defined
2057         See the thread starting at:
2058         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
2059         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
2060         openpty function exists, not merely when we intend to replace it.
2061
2062 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2063
2064         sys_time: port to Solaris 2.6
2065         There is a circularity problem on Solaris 2.6, where <time.h> includes
2066         <sys/time.h> for struct timespec.  The include nesting is gnulib
2067         <time.h>, system <time.h>, gnulib <sys/time.h>, system
2068         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
2069         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
2070         <sys/siginfo.h>; the last, innermost file needs struct
2071         timestruc_t, which is defined in <sys/time.h>, which has not been
2072         fully parsed.  Problem reported by Tom G. Christensen in
2073         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
2074         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
2075         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
2076         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
2077         uses split double-inclusion guards.
2078
2079 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2080
2081         regex: test for buffer overrun
2082         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
2083         for the just-fixed regex bug.
2084
2085 2013-01-29  Andreas Schwab  <schwab@suse.de>
2086
2087         regex: fix buffer overrun in regexp matcher [BZ #15078]
2088         * lib/regexec.c (extend_buffers): Add parameter min_len.
2089         (check_matching): Pass minimum needed length.
2090         (clean_state_log_if_needed): Likewise.
2091         (get_subexp): Likewise.
2092
2093 2013-01-28  Pádraig Brady  <P@draigBrady.com>
2094
2095         mountlist: don't consider "devtmpfs" as dummy
2096         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
2097         as there is storage associcated with it.
2098
2099 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2100
2101         futimens-tests, utimens-tests: Depend on gettext.
2102         This works around a problem introduced in my 2013-01-12 patch,
2103         which added @LIBINTL@ to these modules.
2104         * modules/futimens-tests (Depends-on):
2105         * modules/utimens-tests (Depends-on): Add gettext.
2106
2107 2013-01-26  Eric Blake  <eblake@redhat.com>
2108
2109         test-getpeername: fix typo
2110         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
2111
2112 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
2113
2114         bootstrap: remove the need for a sorted .gitignore file
2115         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
2116         rename to insert_if_absent(), so that we don't need or generate
2117         a sorted .gitignore file.  We do require a .gitignore with no
2118         existing duplicate entries and enforce that.
2119         (sort_patterns): Remove this function as we now use the simpler
2120         technigue of inserting blacklist entries at the top of the file,
2121         assuming gnulib won't be inserting !whitelist entries.
2122
2123 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2124
2125         readlinkat: don't depend on gl_FUNC_OPENAT
2126         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
2127         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
2128         renameat.m4, symlinkat.m4; but one thing at a time.
2129
2130         statat: new module, split out from fstatat
2131         GNU Emacs needs the POSIX-specified fstatat, but not the
2132         gnulib-specified statat and lstat.  Split the latter two into a
2133         new module 'statat'.
2134         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
2135         * lib/openat.h, lib/statat.c (STATAT_INLINE):
2136         Rename from FSTATAT_INLINE. All uses changed.
2137         * modules/fstatat (Files): Remove lib/statat.c.
2138         (gl_MODULE_INDICATOR([fstatat])): Remove.
2139         (lib_SOURCES): Remove.
2140         (Maintainer): Add self.
2141         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
2142         * tests/test-fstatat.c (BASE): Don't define if already defined.
2143         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
2144
2145 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
2146
2147         tests: don't assume fd 99 is closed
2148         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
2149         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
2150         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
2151         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
2152         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
2153         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
2154         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
2155         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
2156         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
2157         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
2158         * tests/test-fwrite.c, tests/test-getpeername.c:
2159         * tests/test-getsockname.c, tests/test-getsockopt.c:
2160         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
2161         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
2162         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
2163         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
2164         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
2165         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
2166         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
2167         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
2168         * tests/test-unlinkat.c, tests/test-unlockpt.c:
2169         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
2170         Close file descriptor 99, instead of assuming it's already closed.
2171
2172 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2173
2174         stpncpy: port to OS X 10.8
2175         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
2176         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
2177
2178 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
2179
2180         unistd: port to recent mingw
2181         * lib/unistd.in.h: Remove special invocation convention for mingw,
2182         which breaks for the latest mingw version.  See John W. Eaton in
2183         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
2184
2185         largefile: port better to Mac OS X 10.5
2186         This patch is backported from Autoconf git.
2187         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
2188         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
2189         with ino_t size being different for configuration time versus
2190         build/run time.  Problem reported by PHO in
2191         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
2192
2193 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2194
2195         doc: clarify -Werror
2196         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
2197         clarify that it's intended for developers, not for ordinary builds,
2198         and mention --enable-gcc-warnings as one possible use.
2199
2200 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
2201
2202         stdint: fix build with Android's Bionic fox x86
2203         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
2204         was already included as _SSIZE_T_DEFINED_ might also be defined
2205         in include/machine/_types.h, which is included by stdio.h
2206
2207 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
2208
2209         net_if-tests: port to Solaris 7 + GCC 3.4.6
2210         Problem reported by Tom G. Christensen in
2211         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
2212         * tests/test-net_if.c (ni): Move to next the code that uses it,
2213         so that it's declared only if needed.
2214
2215 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
2216
2217         net_if-tests: port to older Solaris
2218         Problem reported by Tom G. Christensen in
2219         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2220         * modules/net_if-tests (NET_IF_LIB): New substitution.
2221         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
2222         (HAVE_IF_NAMEINDEX): New C macro.
2223         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
2224
2225         system-quote-tests: port to older Solaris
2226         Problem reported by Tom G. Christensen in
2227         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2228         * tests/test-system-quote-child.c (fopen, fread): Undef.
2229
2230         c-xvasprintf etc.: fix link errors on older Solaris
2231         These need to link with @LIBINTL@ to get libintl_gettext.
2232         Problem reported by Tom G. Christensen in
2233         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2234         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
2235         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
2236         * modules/futimens-tests (test_futimens_LDADD):
2237         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
2238
2239 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2240
2241         locale: port to Solaris 2.6 and 7 + GNU gettext
2242         * lib/locale.in.h: Just include_next <locale.h> when
2243         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
2244         when combining the localename module with GNU gettext 0.18.2.
2245         Problem reported by Tom G. Christensen in
2246         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
2247
2248 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2249
2250         stdlib: port to Solaris 2.6
2251         Also, the code worked on Solaris 7 through 9 only by accident.
2252         Problem reported by Tom G. Christensen in
2253         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
2254         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
2255         simply include the system stdlib.h.
2256         * lib/getopt.in.h (__need_system_stdlib_h):
2257         * lib/pthread.in.h (__need_system_stdlib_h):
2258         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
2259         Define when including <stdlib.h>, to avoid problems at least for
2260         the pthread case on Solaris 2.6 and 7.  These .h files can get by
2261         with the system stdlib.h.
2262
2263 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2264
2265         doc: update main copyright year
2266         * doc/gnulib.texi: Update copyright date.
2267
2268         doc: improve ISO 8601 discussion
2269         * doc/parse-datetime.texi (Combined date and time of day items):
2270         Specify more carefully what formats are supported and what is
2271         done with excess precision.
2272
2273 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2274
2275         doc: avoid small caps
2276         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
2277         they're more trouble than they're worth.  Suggested by Karl Berry
2278         in <http://bugs.gnu.org/13360>.
2279
2280         regex: conform to strict C
2281         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
2282         From Aharon Robbins.
2283
2284         gnulib-tool: fix incompatibility with autopoint 0.18.2
2285         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
2286         Problem reported by Tom G. Christensen in
2287         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
2288
2289 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2290
2291         fprintftime: bring back and reword fwrite comment
2292         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
2293
2294         stdio: remove now-unnecessary stdio.c
2295         Since stdio.in.h no longer uses inline functions, we no longer
2296         need to compile the extern versions.
2297         * lib/stdio.c: Remove.
2298         * modules/stdio (Files): Remove lib/stdio.c.
2299         (lib_SOURCES): Remove.
2300
2301         unicodeio: depend on stdio, not ignore-value
2302         * lib/unicodeio.c: Do not include ignore-value.h.
2303         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
2304         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
2305
2306         fprintftime: depend on stdio, not ignore-value
2307         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
2308         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
2309         since the stdio module arranges to silence that warning now.
2310         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
2311
2312 2012-10-04  Simon Josefsson  <simon@josefsson.org>
2313
2314         stdint-tests: Fix expanded-before-required-warning.
2315         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
2316
2317 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2318
2319         fwrite: silence __wur only for older glibc versions
2320         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
2321         This will help us remove this workaround some time in the far future.
2322
2323 2013-01-03  Eric Blake  <eblake@redhat.com>
2324
2325         fwrite: silence __wur without using inline
2326         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
2327         just gcc, and in a way that avoids inline issues.
2328         * modules/stdio (Depends-on): Drop extern-inline.
2329
2330 2013-01-03  Jim Meyering  <jim@meyering.net>
2331
2332         update-copyright: avoid copyright notice date corruption
2333         Given a sequence of copyright year numbers in which the final
2334         one was a two-digit number that happened to be a substring of
2335         a preceding four-digit year number, we would mistakenly update
2336         the substring (from two- to four-digit) rather than the two-digit
2337         number at the end, which, combined with the addition of the current
2338         4-digit year number would yield two 5-digit year numbers, e.g.,
2339         here, it would convert the first "99" to "1999, 2013" rather than
2340         the final one:
2341           1991, 99
2342           11999, 20131, 1999
2343         * build-aux/update-copyright: Tighten a regexp.
2344         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
2345         Reported by Joseph Myers in
2346         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
2347
2348 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2349
2350         regex: omit needless signed-pointer casts
2351         * lib/regcomp.c (build_charclass, build_charclass_op):
2352         Use char *, not unsigned char *, for class name and extra.
2353         The char values are always nonnegative so there's no need to
2354         insist on unsigned char * here, and using char * removes the need
2355         for casts.  Reported by Aharon Robbins in
2356         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2357
2358         regex: support Gawk, which never uses alloca
2359         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
2360         Do not include in this case.  Gawk doesn't supply a substitute
2361         alloca.h and doesn't need one.
2362
2363         regex: port __libc_lock_define usage to C89
2364         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
2365         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
2366         does not conform to C89, as it has an empty macro argument.
2367         Reported by Aharon Robbins in
2368         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2369
2370 2013-01-01  Eric Blake  <eblake@redhat.com>
2371
2372         maint: update all copyright year number ranges
2373         Run "make update-copyright".
2374
2375         version-etc: bump copyright year reported in --version
2376         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
2377
2378 2012-12-31  Eric Blake  <eblake@redhat.com>
2379
2380         sigprocmask-tests: skip test if pid is unexpectedly large
2381         * tests/test-sigprocmask.c (main): Add range check.
2382
2383         git-version-gen: avoid test -z portability glitch
2384         * build-aux/git-version-gen: Prefer portable test spelling, since
2385         git-version-gen is run on more than just developer machines.
2386
2387 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
2388
2389         git-version-gen: add --fallback option to use if git is not present
2390         * build-aux/git-version-gen: Add support for the new option --fallback,
2391         which comes into play when there is no $tarball_version_file and
2392         git is not working.
2393         (scriptversion): Update.
2394
2395         maint.mk: handle missing git with more grace
2396         * top/maint.mk (no-submodule-changes, public-submodule-commit):
2397         Quietly proceed if git is not present.
2398
2399 2012-12-31  Eric Blake  <eblake@redhat.com>
2400
2401         dup2: work around cygwin bug
2402         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
2403         * lib/dup2.c (rpl_dup2): Work around it.
2404         * doc/posix-functions/dup2.texi (dup2): Document it.
2405
2406 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2407
2408         regex: remove unnecessary dependency on localcharset.h
2409         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
2410         hasn't been needed for years.
2411         * modules/regex (Depends-on): Remove localcharset.
2412
2413         regex: revert single-byte change
2414         * lib/regexec.c (check_node_accept_bytes): Revert previous change
2415         to this function.  This was alredy fixed in a different way, at
2416         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
2417         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
2418         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
2419
2420         regex: simplify based on Gawk version
2421         * lib/regex_internal.c (re_dfa_add_node): Simplify.
2422         Reported by Aharon Robbins in
2423         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2424
2425 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2426
2427         regex: check that pattern char is single-byte
2428         Reported by Aharon Robbins in
2429         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2430         * lib/regexec.c (check_node_accept_bytes):
2431         Return 0 if the pattern string has a multibyte character here.
2432
2433         regex: implement rational ranges
2434         Reported by Aharon Robbins in
2435         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2436         * lib/regcomp.c (build_range_exp) [!_LIBC]:
2437         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
2438         Implement rational ranges.
2439
2440         regex: avoid redefining __wctype
2441         Reported by Aharon Robbins in
2442         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2443         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
2444         #undef before defining.
2445
2446         regex: port to hosts where malloc (0) == NULL
2447         Reported by Aharon Robbins in
2448         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2449         * lib/regex_internal.c (re_node_set_alloc):
2450         Don't assume that malloc (0) yields nonnull.
2451         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
2452         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
2453         * modules/regex (Files): Add m4/eealloc.m4.
2454
2455         regex: port to C89
2456         Reported by Aharon Robbins in
2457         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2458         * lib/regcomp.c (init_word_char): Declaration before statement.
2459
2460         regex: merge glibc changes
2461         Also, copy the license wording from glibc.  This simplifies
2462         merging changes.  gnulib-tool will change the wording to GPL as
2463         appropriate, when importing it to other packages.  The only
2464         glibc change made since the last merge, which needs merging, is:
2465         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2466         * lib/regex_internal.h (gettext): Remove use of INTUSE.
2467
2468         * users.txt: Add Emacs.
2469
2470         doc: omit mention of version when not needed
2471         * doc/gnulib-intro.texi (Portability and Application Code):
2472         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
2473         Don't mention particular dates or versions when not necessary, so
2474         that the documentation won't go out of date so quickly.
2475
2476         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
2477
2478 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
2479
2480         bootstrap: pass --force to autoreconf.
2481         * build-aux/bootstrap (AUTORECONFFLAGS): New.
2482         Add "--force" so that Automake's ylwrap and other such tools
2483         be updated at each bootstrap invocation.
2484         Use it.
2485
2486 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2487
2488         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
2489         The earlier patch forgot to update one of the #if conditions, causing
2490         a problem on Debian testing i386 reported by Mats Erik Andersson
2491         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
2492         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
2493         (__argp_fmtstream_puts, argp_fmtstream_puts)
2494         (__argp_fmtstream_write, argp_fmtstream_write)
2495         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
2496
2497         * doc/gnulib-readme.texi: Minor fixups.
2498         (Portability guidelines): Modernize URLs.  Remove some repetition.
2499         (Indent with spaces not TABs): Reword to avoid too-long lines.
2500         Remove some '@ifset standalone' stuff that isn't used.
2501
2502         * doc/gnulib-readme.texi (Portability guidelines):
2503         ctype.h, not ctime.h.
2504
2505         Correct name of POSIX.1-2001.
2506         * doc/posix-functions/fgetc.texi (fgetc):
2507         * doc/posix-functions/fgets.texi (fgets):
2508         * doc/posix-functions/fread.texi (fread):
2509         * doc/posix-functions/fscanf.texi (fscanf):
2510         * doc/posix-functions/getc.texi (getc):
2511         * doc/posix-functions/getchar.texi (getchar):
2512         * doc/posix-functions/scanf.texi (scanf):
2513         POSIX.1-2001, not POSIX-2001.
2514
2515         doc: move README into manual
2516         * README: Move contents to new file doc/gnulib-readme.texi.
2517         Replace with a one-line summary.
2518         * doc/gnulib.texi (Brief Overview): New section,
2519         with old intro preface.  Include gnulib-readme.texi for contents.
2520         (Philosophy): Rename from "Introduction", since this
2521         section no longer introduces the rest.  Write a new preface.
2522         * doc/gnulib-readme.texi: New file, with the old contents of
2523         README texinfo-ized.  This way, the README info appears
2524         in the online and printed manual.
2525
2526 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2527
2528         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2529         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2530         c_vasprintf() prototype.
2531
2532 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2533
2534         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2535         * lib/c-vasprintf.h: Remove stray semicolon.
2536
2537 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2538
2539         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2540         It is obsolete and is planned to be removed from Automake 1.14; see
2541         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2542         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2543         (installdirs-data, installdirs-data-yes):
2544         Use $(MKDIR_P), not $(mkdir_p).
2545         * m4/intl.m4 (AM_INTL_SUBDIR):
2546         * m4/po.m4 (AM_PO_SUBDIRS):
2547         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2548
2549 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2550
2551         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2552         On this platform, we are not optimizing but we are using
2553         the substitute for extern inlines, so compile as if
2554         C99-style extern inline, or a substitute, is available.
2555         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2556         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2557         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2558         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2559         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2560         Declare as ARGP_FS_EI, not as extern.
2561         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2562         (__option_is_short, _option_is_end, __option_is_end)
2563         [!_LIBC && __USE_EXTERN_INLINES]:
2564         Declare as ARGP_EI, not as extern.
2565
2566 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2567
2568         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2569         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2570         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2571         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2572         ...), as the latter is fatal with older Autoconfs.
2573         Problem reported and fix suggested by Eric Blake in thread starting at
2574         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2575
2576 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2577
2578         AC_PROG_MKDIR_P: don't workaround if not buggy
2579         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2580         Define only for Autoconf versions before 2.62.
2581         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2582         undocumented m4_PACKAGE_VERSION, for consistency with the
2583         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2584         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2585         was introduced in 2.62.
2586
2587 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2588
2589         New 'c-*printf' modules for formatted output in C locale.
2590
2591         New module 'c-vasnprintf'.
2592         * modules/c-vasnprintf: New file.
2593         * lib/c-vasnprintf.c: New file.
2594         * lib/c-vasnprintf.h: New file.
2595
2596         New module 'c-snprintf'.
2597         * modules/c-snprintf: New file.
2598         * modules/c-snprintf-tests: New file.
2599         * lib/c-snprintf.c: New file.
2600         * lib/c-snprintf.h: New file.
2601         * tests/test-c-snprintf.c: New file.
2602         * tests/test-c-snprintf.sh: New file.
2603
2604         New module 'c-vsnprintf'.
2605         * modules/c-vsnprintf: New file.
2606         * modules/c-vsnprintf-tests: New file.
2607         * lib/c-vsnprintf.c: New file.
2608         * lib/c-vsnprintf.h: New file.
2609         * tests/test-c-vsnprintf.c: New file.
2610         * tests/test-c-vsnprintf.sh: New file.
2611
2612         New module 'c-vasprintf'.
2613         * modules/c-vasprintf: New file.
2614         * modules/c-vasprintf-tests: New file.
2615         * lib/c-asprintf.c: New file.
2616         * lib/c-vasprintf.c: New file.
2617         * lib/c-vasprintf.h: New file.
2618         * tests/test-c-vasprintf.c  +: New file.
2619         * tests/test-c-vasprintf.sh: New file.
2620
2621         New module 'c-xvasprintf'.
2622         * modules/c-xvasprintf: New file.
2623         * modules/c-xvasprintf-tests: New file.
2624         * lib/c-xasprintf.c: New file.
2625         * lib/c-xvasprintf.c: New file.
2626         * lib/c-xvasprintf.h: New file.
2627         * tests/test-c-xvasprintf.c: New file.
2628         * tests/test-c-xvasprintf.sh: New file.
2629
2630 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2631
2632         argp: better 'inline'
2633         Use extern-inline module to declare extern inline functions.
2634         This avoids some bogus warning diagnostics.  Problem discovered
2635         when modifying GNU tar to use the manywarnings module.
2636         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2637         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2638         Define based on extern-inline.
2639         * modules/argp (Depends-on): Add extern-inline.
2640
2641 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2642
2643         filemode, sys_stat: Handle MPX files a la AIX.
2644         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2645         * lib/sys_stat.in.h (S_ISMPX): New macro.
2646         * tests/test-sys_stat.c: Add tests for MPX files.
2647
2648 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2649
2650         x-to-1: honor $PERL
2651         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2652         a chance to use his preferred version of Perl.  This is typically
2653         required by Darwin users whose default /usr/bin/perl does not have all
2654         the libraries required by help2man, and who need to use their MacPorts
2655         installation of Perl instead.
2656
2657 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2658
2659         gnu-web-doc-update: add all the new files, even in new directories
2660         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2661         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2662         Use it.
2663         (main): Don't use cvsutils to get the list of unknown files,
2664         just add all the existing files and directories.
2665
2666 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2667
2668         gnu-web-doc-update: improve --help
2669         * build-aux/gnu-web-doc-update: Move comments into --help.
2670
2671 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2672
2673         mountlist: recognize more "dummy" file systems
2674         * lib/mountlist.c (ME_DUMMY_0):
2675         Add these dummy FS names to the list:
2676         - "debugfs" virtual filesystem for kernel debugging
2677         - "devpts" PTY slave filesystem
2678         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2679         - "fusectl" control filesystem for FUSE
2680         - "mqueue" enumerates POSIX message queues
2681         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2682         - "sysfs" is for exporting kernel objects
2683         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2684
2685 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2686
2687         extern-inline: avoid incompatibility with Darwin Libc
2688         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2689         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2690         Problem reported by Akim Demaille in
2691         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2692
2693 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2694
2695         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2696         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2697         let it handle password prompting.
2698
2699 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2700
2701         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2702         * lib/canonicalize.c (canonicalize_filename_mode):
2703         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2704         fetching the current directory.  Don't overrun the beginning of
2705         rpath if there's no slashes after the MS-Windows drive letter.
2706
2707 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2708
2709         maint.mk: avoid extra forks
2710         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2711         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2712         So use that instead of "$(shell test -f FILE && echo FILE)".
2713
2714 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2715
2716         vasnprintf: fix ASCII_ONLY typo
2717         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2718         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2719         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2720         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2721         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2722
2723 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2724
2725         list, oset, xlist, xoset: fix extern inline issue with C99
2726         This was introduced by my recent changes for 'inline'.
2727         Problem reported for gettext by Daiki Ueno in
2728         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2729         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2730         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2731         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2732         (gl_list_previous_node, gl_list_get_at)
2733         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2734         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2735         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2736         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2737         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2738         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2739         (gl_list_iterator_free, gl_sortedlist_search)
2740         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2741         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2742         (gl_sortedlist_remove):
2743         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2744         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2745         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2746         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2747         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2748         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2749         (gl_list_add_at, gl_sortedlist_add):
2750         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2751         Wrap these extern decls inside "#if 0", because they are implemented
2752         as inline functions, and extern inline is not what's wanted here.
2753         It would simplify these .h files to remove the extern decls entirely,
2754         although a downside would be less-clear separation between
2755         specification and implementation.
2756
2757 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2758
2759         sys_stat: no 'static inline'
2760         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2761         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2762
2763         extern-inline: no 'static inline'
2764         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2765         Do not require AC_C_INLINE.
2766         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2767         'static inline', for older compilers.
2768
2769         snippet/warn-on-use: no 'static inline'
2770         * build-aux/snippet/warn-on-use.h:
2771         Remove unnecessary 'inline' in comment.
2772
2773         rbtree-list, rbtreehash-list: no 'static inline'
2774         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2775         * lib/gl_anytree_list2.h (node_at):
2776         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2777         (gl_oset_first, add_nodes_to_buckets):
2778         Now static, not static inline.
2779
2780         regex: no 'static inline'
2781         * lib/regex_internal.c (calc_state_hash):
2782         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2783         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2784         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2785         Now static, not static inline.
2786         (inline) [__GNUC__ < 3 && _LIBC]:
2787         Remove macro; no longer needed.
2788
2789         xvasprintf: no 'static inline'
2790         * lib/xvasprintf.c (xstrcat):
2791         Now static, not static inline.
2792         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2793         Do not require AC_C_INLINE.
2794
2795         parse-datetime, parse-duration: no 'static inline'
2796         * lib/parse-datetime.y (to_uchar):
2797         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2798         (scale_n_add):
2799         Now static, not static inline.
2800         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2801         * modules/parse-duration (configure.ac):
2802         Do not require AC_C_INLINE.
2803
2804         getaddrinfo: no 'static inline'
2805         * lib/getaddrinfo.c (validate_family):
2806         Now static, not static inline.
2807         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2808         Do not require AC_C_INLINE.
2809
2810         ftruncate, fts, lstat, openat, raise: no 'static inline'
2811         * lib/ftruncate.c (chsize_nothrow):
2812         * lib/fts.c (opendirat, diropen):
2813         * lib/lstat.c (orig_lstat):
2814         * lib/openat.c (orig_openat):
2815         * lib/raise.c (raise_nothrow):
2816         Now static, not static inline.
2817         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2818         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2819         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2820         * m4/openat.m4 (gl_PREREQ_OPENAT):
2821         * m4/raise.m4 (gl_PREREQ_RAISE):
2822         Do not require AC_C_INLINE.
2823
2824         fflush, stat: no 'static inline'
2825         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2826         (clear_ungetc_buffer, disable_seek_optimization)
2827         (restore_seek_optimization, update_fpos_cache):
2828         * lib/stat.c (orig_stat):
2829         Now static, not static inline.
2830         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2831         (update_fpos_cache):
2832         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2833         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2834         * m4/stat.m4 (gl_PREREQ_STAT):
2835         Do not require AC_C_INLINE.
2836
2837         error, filevercmp: no 'static inline'
2838         * lib/error.c (is_open, flush_stdout):
2839         * lib/filevercmp.c (order):
2840         Now static, not static inline.
2841         * m4/error.m4 (gl_PREREQ_ERROR):
2842         * modules/filevercmp (configure.ac):
2843         Do not require AC_C_INLINE.
2844
2845         dup, execute, fatal-signal, etc.: no 'static inline'
2846         * lib/dup.c (dup_nothrow):
2847         * lib/execute.c (nonintr_close, nonintr_open):
2848         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2849         * lib/fopen.c (orig_fopen):
2850         * lib/freadseek.c (freadptrinc):
2851         * lib/freopen.c (orig_freopen):
2852         * lib/fstat.c (orig_fstat, fstat_nothrow):
2853         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2854         (get_rusage_as_via_iterator):
2855         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2856         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2857         * lib/isatty.c (_isatty_nothrow):
2858         * lib/open.c (orig_open):
2859         * lib/read.c (read_nothrow):
2860         * lib/sigprocmask.c (signal_nothrow):
2861         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2862         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2863         * lib/wait-process.c (unregister_slave_subprocess):
2864         * lib/write.c (write_nothrow):
2865         Now static, not static inline.
2866         * lib/spawn-pipe.c (nonintr_open): Define only if
2867         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2868         * m4/dup.m4 (gl_PREREQ_DUP):
2869         * m4/execute.m4 (gl_EXECUTE):
2870         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2871         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2872         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2873         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2874         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2875         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2876         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2877         * m4/open.m4 (gl_PREREQ_OPEN):
2878         * m4/read.m4 (gl_PREREQ_READ):
2879         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2880         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2882         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2883         * m4/write.m4 (gl_PREREQ_WRITE):
2884         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2885         Do not require AC_C_INLINE.
2886
2887         c-strtod, memcoll, readutmp: no 'static inline'
2888         * lib/c-strtod.c (c_locale):
2889         * lib/memcoll.c (strcoll_loop):
2890         * lib/readutmp.c (desirable_utmp_entry):
2891         Now static, not static inline.
2892         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2893         * m4/memcoll.m4 (gl_MEMCOLL):
2894         * m4/readutmp.m4 (gl_READUTMP):
2895         Do not require AC_C_INLINE.
2896
2897         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2898         * lib/arctwo.c (to_uchar):
2899         * lib/md4.c (set_uint32):
2900         * lib/md5.c (set_uint32):
2901         * lib/sha1.c (set_uint32):
2902         * lib/sha256.c (set_uint32):
2903         * lib/sha512.c (set_uint64):
2904         Now static, not static inline.  This is a bit simpler, and doesn't
2905         affect performance with GCC and default optimization.
2906         * m4/arctwo.m4 (gl_ARCTWO):
2907         * m4/md4.m4 (gl_MD4):
2908         * m4/md5.m4 (gl_MD5):
2909         * m4/sha1.m4 (gl_SHA1):
2910         * m4/sha256.m4 (gl_SHA256):
2911         * m4/sha512.m4 (gl_SHA512):
2912         Do not require AC_C_INLINE.
2913
2914         cond, lock, thread: better 'inline'
2915         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2916         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2917         New macros.  Use them instead of static inline, for header functions.
2918         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2919         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2920         * lib/glthread/lock.c (gl_waitqueue_init)
2921         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2922         * lib/glthread/thread.c (get_current_thread_handle):
2923         Change 'static inline' to 'inline'.
2924         * lib/glthread/cond.h, lib/glthread/thread.h:
2925         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2926         * m4/cond.m4 (gl_COND):
2927         * m4/lock.m4 (gl_PREREQ_LOCK):
2928         * m4/thread.m4 (gl_THREAD):
2929         Do not require AC_C_INLINE.
2930         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2931
2932         chdir-long, cycle-check, savewd: better 'inline'
2933         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2934         (find_non_slash):
2935         * lib/cycle-check.c (is_zero_or_power_of_two):
2936         * lib/savewd.c (savewd_delegating):
2937         Change 'static inline' to 'inline'.
2938         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2939         Replace all remaining uses of 'static inline' with it.
2940         * lib/savewd.h:
2941         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2942         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2943         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2944         * m4/savewd.m4 (gl_SAVEWD):
2945         Do not require AC_C_INLINE.
2946         * modules/savewd (Depends-on): Add extern-inline.
2947
2948         base32, base64: no need for 'inline'
2949         * lib/base32.c (to_uchar, get_8, decode_8):
2950         * lib/base64.c (to_uchar, get_4, decode_4):
2951         Change 'static inline' to 'inline'.
2952         * m4/base32.m4 (gl_PREREQ_BASE32):
2953         * m4/base64.m4 (gl_PREREQ_BASE64):
2954         Do not require AC_C_INLINE.
2955
2956         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2957         * lib/gl_array_oset.c (gl_array_nx_add_at):
2958         (gl_array_remove_at):
2959         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2960         (add_to_bucket, remove_from_bucket):
2961         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2962         Change 'static inline' to 'static', as it's simpler to omit
2963         'inline' unless there's a significant performance advantage.
2964
2965         list, oset, xlist, xoset, xsublist: simplify via extern inline
2966         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2967         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2968         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2969         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2970         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2971         New macro.  Replace all uses of 'static inline' with it.
2972         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2973         instead of as macros FOO that are defined to static inline
2974         functions FOO_inline.
2975         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2976         * lib/gl_xsublist.c:
2977         Reimplement from scratch, by defining the corresponding *_INLINE
2978         macro and including the corresponding .h file.  This is simpler.
2979         * modules/list, modules/oset, modules/xlist, modules/xoset:
2980         (Files): Remove m4/gl_list.m4.
2981         (configure.ac): Remove gl_LIST.
2982         * m4/gl_list.m4: Remove.
2983         * modules/list, modules/oset, modules/xlist, modules/xoset:
2984         * modules/xsublist:
2985         (Depends-on): Depend on extern-inline, not inline.
2986
2987         xalloc: better 'inline'
2988         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2989         New macro.  Replace all uses of 'static inline' with it.
2990         (static_inline): Remove.
2991         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2992         Let 'extern inline' do the work automatically, instead of doing
2993         it by hand.
2994         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2995         Remove.  All uses removed.
2996         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2997
2998         gethrxtime: better 'inline'
2999         * lib/xtime.c: New file.
3000         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
3001         * lib/xtime.h (XTIME_INCLUDE):
3002         New macros.  Replace all uses of 'static inline' with them.
3003         * lib/gethrxtime.c (gethrxtime): Define only if
3004         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
3005         this source file is now always compiled, because of the extern inline.
3006         * lib/gethrxtime.h, lib/xtime.h:
3007         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3008         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
3009         if gethrtime works, as they're not needed in that case.
3010         (gl_XTIME): Do not require AC_C_INLINE.
3011         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
3012         compiled now.  Move the check into gl_GETHRXTIME.
3013         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
3014         (Depends-on): Add extern-inline.
3015         (configure.ac): gethrxtime is always compiled now.
3016         (lib_SOURCES): Add gethrxtime.c.
3017
3018         wctype-h: better 'inline'
3019         * lib/wctype-h.c: New file.
3020         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
3021         New macro.  Replace all uses of 'static inline' with it.
3022         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3023         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
3024         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
3025         (Depends-on): Add extern-inline.
3026
3027         unistd: better 'inline'
3028         * lib/unistd.c: New file.
3029         * lib/unistd.in.h (_GL_UNISTD_INLINE):
3030         New macro.  Replace all uses of 'static inline' with it.
3031         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3032         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
3033         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
3034         (Depends-on): Add extern-inline.
3035
3036         sys_socket: better 'inline'
3037         * lib/sys_socket.c: New file.
3038         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
3039         New macro.  Replace all uses of 'static inline' with it.
3040         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3041         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
3042         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
3043         (Depends-on): Add extern-inline.
3044
3045         stdio: better 'inline'
3046         * lib/stdio.c: New file.
3047         * lib/stdio.in.h (_GL_STDIO_INLINE):
3048         New macro.  Replace all uses of 'static inline' with it.
3049         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3050         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
3051         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
3052         (Depends-on): Add extern-inline.
3053
3054         sigaction: better 'inline'
3055         * lib/sig-handler.c: New file.
3056         * lib/sig-handler.h (SIG_HANDLER_INLINE):
3057         New macro.  Replace all uses of 'static inline' with it.
3058         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3059         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
3060         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
3061         (Depends-on): Add extern-inline.
3062
3063         selinux-h: better 'inline'
3064         * lib/se-context.c, lib/se-selinux.c: New files.
3065         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
3066         * lib/se-context.in.h (SE_CONTEXT_INLINE):
3067         New macro.  Replace all uses of 'static inline' with it.
3068         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3069         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
3070         New macro.  Replace all uses of 'static inline' with it.
3071         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3072         * modules/selinux-h (Files, lib_SOURCES):
3073         Add lib/se-context.c, lib/se-selinux.c.
3074         (Depends-on): Add extern-inline.
3075         (configure.ac): Do not require AC_C_INLINE.
3076
3077         pthread: better 'inline'
3078         * lib/pthread.c: New file.
3079         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
3080         New macro.  Replace all uses of 'static inline' with it.
3081         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3082         * m4/pthread.m4 (gl_PTHREAD_CHECK):
3083         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
3084         * modules/pthread (Files): Add lib/pthread.c.
3085         (Depends-on): Add extern-inline.
3086
3087         math: better 'inline'
3088         * lib/math.c: New file.
3089         * lib/math.in.h (_GL_MATH_INLINE):
3090         New macro.  Replace all uses of 'static inline' with it.
3091         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3092         * m4/math_h.m4 (gl_MATH_H):
3093         Do not require AC_C_INLINE.
3094         * modules/math (Files, lib_SOURCES):
3095         Add lib/math.c.
3096         (Depends-on): Add extern-inline.
3097
3098         count-one-bits: better 'inline'
3099         * lib/count-one-bits.c: New file.
3100         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
3101         New macro.  Replace all uses of 'static inline' with it.
3102         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3103         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
3104         Do not require AC_C_INLINE.
3105         * modules/count-one-bits (Files, lib_SOURCES):
3106         Add lib/count-one-bits.c.
3107         (Depends-on): Add extern-inline.
3108
3109         count-leading-zeros: better 'inline'
3110         * lib/count-leading-zeros.c: New file.
3111         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
3112         New macro.  Replace all uses of 'static inline' with it.
3113         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3114         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
3115         Do not require AC_C_INLINE.
3116         * modules/count-leading-zeros (Files, lib_SOURCES):
3117         Add lib/count-leading-zeros.c.
3118         (Depends-on): Add extern-inline.
3119
3120         bitrotate: better 'inline'
3121         * lib/bitrotate.c: New file.
3122         * lib/bitrotate.h (BITROTATE_INLINE):
3123         New macros.
3124         Replace all uses of 'static inline' with them.
3125         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3126         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
3127         (Depends-on): Add extern-inline.
3128         (configure.ac): Do not require AC_C_INLINE.
3129
3130 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
3131
3132         maint.mk: avoid gratuitous failure
3133         Reported by Stefano Lattarini in
3134         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
3135         * top/maint.mk (public-submodule-commit): Quote more safely.
3136
3137 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
3138
3139         canonicalize, canonicalize-lgpl: support MS-Windows file names
3140         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
3141         for test cases, which it'd be nice to add at some point.
3142         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
3143         * lib/canonicalize.c (canonicalize_filename_mode):
3144         * lib/canonicalize-lgpl.c (__realpath):
3145         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
3146         slash is at the beginning of the file name.  Use ISSLASH, instead
3147         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
3148         the first character with '/'.  Test for
3149         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
3150         with a drive letter.
3151         * lib/canonicalize.c (SLASHES): New macro.
3152         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
3153
3154 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
3155
3156         fts: introduce FTS_VERBATIM
3157         * lib/fts_.h (FTS_VERBATIM): New bit flag.
3158         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
3159         * lib/fts.c (fts_open): Honor it.
3160
3161 2012-11-09  Pádraig Brady  <P@draigBrady.com>
3162
3163         getlogin-tests: allow errno == ENXIO
3164         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3165         with errno == ENXIO (No controlling tty).
3166         getlogin_r-tests: Likewise. Also allow errno == ENOENT
3167         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
3168         with errno == ENOENT.  This was reported to happen in various
3169         situations on GNU/Linux.
3170
3171 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3172
3173         getlogin-tests: allow errno == ENOENT
3174         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3175         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
3176         when running a test in an Emacs shell buffer.
3177
3178 2012-11-08  Jim Meyering  <jim@meyering.net>
3179
3180         tests/nap.h: avoid warning about unused variable
3181         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
3182
3183         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
3184         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
3185         white space before each of the special-cased file names, to avoid
3186         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
3187         in http://bugs.gnu.org/12830.
3188
3189 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
3190
3191         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
3192         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
3193         fails with errno == EBADF when fd is opened with O_PATH.
3194         Reported by Jim Meyering in
3195         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
3196         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3197         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
3198
3199 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3200
3201         test-utimens: speed up by taking shorter naps
3202         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
3203         New functions.
3204         (nap): Use them, to do a better job of guessing the delay.
3205         On Fedora 17 with ext4 atop md atop hard disks, this made
3206         test-utimens run 10x faster, because the test napped for
3207         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
3208         <http://bugs.gnu.org/12820#11>.
3209
3210 2012-11-07  Jim Meyering  <jim@meyering.net>
3211
3212         mountlist.c: fix a compilation failure
3213         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
3214         I introduced while transforming commit v0.0-7683-g613bcb6
3215
3216 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3217
3218         errno: port to LynxOS 178 2.2.2
3219         Problem reported by Joel Brobecker in
3220         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
3221         * doc/posix-headers/errno.texi (errno.h): Document this.
3222         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
3223         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
3224         Supply a string for EILSEQ.
3225         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
3226
3227 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3228
3229         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
3230         Linux kernel 2.6.39 introduced O_PATH (see
3231         <http://lwn.net/Articles/433854/>) and this is a better fallback
3232         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
3233         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3234         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
3235         * lib/fcntl.in.h (O_ACCMODE):
3236         * tests/test-fcntl-h.c (main):
3237         Do not reject O_ACCMODE merely because it has more than the
3238         minimal number of bits, as POSIX allows extensions here.
3239
3240 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
3241
3242         mountlist: do not classify a bind-mounted dir entry as "dummy"
3243         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
3244         the "none"-testing clause.
3245         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
3246         exception for bind-mounted directories.
3247
3248 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
3249
3250         quote: provide a means to escape strings with nul characters
3251         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
3252         (quote, quote_n): Rename formal arguments for consistency with
3253         quotearg.
3254
3255 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
3256
3257         test-raise: don't assume 199 is an invalid signal
3258         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
3259
3260         sh-quote-tests: port to Solaris 9
3261         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
3262         Problem reported by Dagobert Michelsen in
3263         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
3264
3265 2012-10-28  Jim Meyering  <jim@meyering.net>
3266
3267         maint.mk: rename a new configurable variable
3268         * top/maint.mk (_gl_translatable_string_re): Rename from
3269         translation-markers: _gl_ prefix to insulate from user Makefile code,
3270         and the _re suffix to inform that it's a regular expression.
3271
3272 2012-10-26  Eric Blake  <eblake@redhat.com>
3273
3274         maint.mk: let packages tweak sc_po_check pattern
3275         * top/maint.mk (sc_po_check): Add translation-markers, to allow
3276         finding files with other translation markers.
3277
3278 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3279
3280         euidaccess: speed up 'configure' on GNU hosts
3281         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
3282         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
3283         it's needed only in this case.  Use AC_CHECK_DECLS, not
3284         AC_CHECK_DECLS_ONCE.
3285         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
3286         or AC_REQUIRE for AC_FUNC_GETGROUPS.
3287
3288         * lib/regexec.c (re_search_internal): Fix grammar in comment.
3289
3290 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3291
3292         fchmodat, fchownat, fstatat: port to non-inlining compilers
3293         Problem reported for FreeBSD 9 by Jim Meyering in
3294         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
3295         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
3296         New files, which define FCHMODAT_INLINE etc.
3297         * lib/fchmodat.c (FCHMODAT_INLINE):
3298         * lib/fchownat.c (FCHOWNAT_INLINE):
3299         * lib/fstatat.c (FSTATAT_INLINE):
3300         Remove, as chmodat.c etc. now do this.
3301         * modules/fchmodat (Files): Add lib/chmodat.c.
3302         * modules/fchownat (Files): Add lib/chownat.c.
3303         * modules/fstatat (Files): Add lib/statat.c.
3304
3305 2012-10-15  Jim Meyering  <jim@meyering.net>
3306
3307         fchmodat.c, fchownat.c: compile-impeding typos
3308         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
3309         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
3310         Introduced in commit v0.0-7636-gd202279.
3311
3312 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3313
3314         fcntl-h: support GNU flags like O_IGNORE_CTTY
3315         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
3316         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
3317         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
3318         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
3319         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
3320         Define to 0 if not already defined.
3321         * tests/test-fcntl-h.c: Test these new flags.
3322
3323 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3324
3325         faccessat, etc.: support AT_FDCWD-only use
3326         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
3327         this function only if its first argument is AT_FDCWD.
3328         Emacs wants faccessat for AT_EACCESS but not for any first-arg
3329         values other than AT_FDCWD, so it doesn't want all the openat
3330         machinery with fchdir etc.
3331         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
3332         * modules/fstatat, modules/mkdirat, modules/openat (Files):
3333         * modules/unlinkat (Files):
3334         Remove lib/openat-priv.h, as at-internal supplies this file.
3335         Removing this file here allows us to support programs like Emacs
3336         that avoid at-internal.
3337
3338         faccessat: speed up 'configure' on mainstream hosts
3339         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
3340         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
3341         since it's only on unusual platforms that we need to check for
3342         'access', and it's better not to slow 'configure' down on all
3343         platforms.
3344
3345         faccessat: port to Solaris 10
3346         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
3347         Needed on Solaris 10, which doesn't have AT_EACCESS,
3348         so we need the Gnulib fcntl.h, which defines it.
3349
3350 2012-10-14  Pádraig Brady  <P@draigBrady.com>
3351         canonicalize: fix C89 compilation
3352         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
3353         declarations so C89 is supported.  Also remove the comment
3354         referencing memorty allocation as the suggested feature could
3355         not be implemented as suggested.
3356         Reported by Michael Goffioul.
3357
3358 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3359
3360         group-member: omit unnecessary dependencies
3361         This is for Emacs, which has its own allocator and where we
3362         don't want to use xalloc.
3363         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
3364         since we no longer use xmalloc.  Do not include stdbool.h, since
3365         the changes below happen to remove the only use of bool.
3366         (GROUPBUF_SIZE): New constant.
3367         (struct group_info): Remove n_groups member.  Add groupbuf member.
3368         This lets us get the groups without using malloc, usually.
3369         (free_group_info, get_group_info): Adjust to this.
3370         (get_group_info): Return the number of groups found, or -1 on error.
3371         Use plain malloc not xmalloc, and treat its failure as if there
3372         are no groups, as the user already loses in case of error.
3373         (group_member): Simplify, based on changes to get_group_info.
3374         * modules/group-member (Depends-on): Remove dependencies on
3375         xalloc and stdbool.  Add dependency on xalloc-oversized.
3376
3377 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
3378
3379         gethrxtime: port to C++
3380         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
3381
3382 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3383
3384         ptsname: fix macro-name typo
3385         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
3386
3387 2012-10-03  Simon Josefsson  <simon@josefsson.org>
3388
3389         inttostr: Relax license.
3390         * modules/inttostr (License): Change from LGPL to LGPLv2+.
3391
3392 2012-10-03  Eric Blake  <eblake@redhat.com>
3393
3394         ptsname_r: support ptys returned by FreeBSD posix_openpt
3395         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
3396         lives in /dev/pts/.
3397
3398 2012-10-02  Eric Blake  <eblake@redhat.com>
3399
3400         pselect: reject invalid file descriptors
3401         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
3402         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
3403         * modules/pselect (Depends-on): Add dup2.
3404         * doc/posix-functions/pselect.texi (pselect): Document this.
3405
3406         select: reject invalid file descriptors
3407         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
3408         * lib/select.c (rpl_select) [!win32]: Work around it.
3409         * modules/select (Depends-on): Add dup2.
3410         * doc/posix-functions/select.texi (select): Document this.
3411
3412         select: enhance test
3413         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
3414         New functions.
3415         (test_function): Enhance test.
3416         (do_select_bad_fd): Avoid any stale errno values.
3417
3418         ptsname: reject invalid file descriptors
3419         http://www.austingroupbugs.net/view.php?id=503
3420         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
3421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
3422         * modules/stdlib (Makefile.am): Replace witness.
3423         * lib/stdlib.in.h (ptsname): Allow for replacement.
3424         * modules/ptsname (configure.ac): Trigger replacement.
3425         * doc/posix-functions/ptsname.texi (ptsname): Document this.
3426
3427 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
3428
3429         hash-pjw-bare: new module
3430         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
3431         * lib/hash-pjw-bare.h: Likewise.
3432         * modules/hash-pjw-bare: New file.
3433         * MODULES.html.sh (Misc): Add it.
3434
3435 2012-10-02  Eric Blake  <eblake@redhat.com>
3436
3437         manywarnings: cater to more gcc infelicities
3438         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
3439         -Wuninitialized without -O.
3440
3441 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
3442
3443         select, poll tests: Make setsockopt invocation effective.
3444         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
3445         the bind() call.
3446         * tests/test-select.h (open_server_socket): Likewise.
3447
3448 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
3449
3450         sockets, sys_stat: restore AC_C_INLINE
3451         This undoes the 2012-09-22 patch.
3452         * m4/sockets.m4 (gl_SOCKETS):
3453         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3454         Restore AC_C_INLINE, since MSVC requires __inline or _inline
3455         and does not support plain 'inline'.  Reported by Bruno Haible in
3456         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
3457
3458 2012-09-30  Bruno Haible  <bruno@clisp.org>
3459
3460         localeconv tests: Avoid test failure on OpenIndiana.
3461         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
3462         skip the 'grouping' and 'mon_grouping' tests.
3463         Reported by Jim Meyering.
3464
3465 2012-09-30  Bruno Haible  <bruno@clisp.org>
3466
3467         havelib: Follow libtool developments.
3468         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
3469         Suggested by Simon Josefsson.
3470
3471 2012-09-29  Jim Meyering  <meyering@redhat.com>
3472
3473         fstatat.c: fix a compile-impeding typo
3474         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
3475         Introduced in commit v0.0-7636-gd202279.
3476         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
3477
3478 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
3479
3480         extern-inline: provide a -Wundef safe config.h
3481         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
3482         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
3483         to produce a -Wundef warning free config.h.
3484
3485 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3486
3487         hash-pjw: relax license to LGPLv2+
3488         * modules/hash-pjw (License): Relax, with consent of author.
3489
3490 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3491
3492         maint.mk: fix strict vs. lazy variable issues with RELEASE
3493         * top/maint.mk (_equal): New function.
3494         (member_check): Strip the result to avoid spurious spaces.
3495         (url_dir_list): Do not use ifeq, which is strict, as it will
3496         require RELEASE_TYPE to be defined.
3497         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
3498         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
3499         (announcement_Cc_alpha,announcement_mail_headers_alpha)
3500         (announcement_Cc_beta,announcement_mail_headers_beta)
3501         (announcement_Cc_stable,announcement_mail_headers_stable): these.
3502         (release): Do not depend on $(release-type), as it forces its
3503         evaluation.  Bounce to it.
3504
3505 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3506
3507         maint.mk: formatting changes
3508         * top/maint.mk: Indent bodies of if's.
3509
3510 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3511
3512         maint.mk: factor the validation of RELEASE_TYPE
3513         With help from Jim Meyering.
3514         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3515         * top/maint.mk (_empty, _sp): Move their definition earlier.
3516         (member-check, release-type): New.
3517         Use the latter instead of $(RELEASE_TYPE).
3518         Remove now useless local checks.
3519
3520 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3521
3522         maint.mk: provide "make upload" to ease uploading
3523         See
3524         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3525         Do not depend simply on the current $(VERSION), as there may have been
3526         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3527         as "make release-commit" already does.
3528
3529         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3530         "make TYPE".
3531
3532         * top/maint.mk (upload_command, upload, release): New.
3533         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3534         (VERSION): first word of $(RELEASE) is always right.
3535         (emit_upload_commands): Adjust.
3536         * top/README-release: Update.
3537
3538 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3539
3540         maint.mk: silent rules
3541         With help from Stefano Lattarini.
3542         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3543         (announcement): Use $(AM_V_at).
3544
3545 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3546
3547         localename: port gl_locale_name_thread_unsafe to FreeBSD
3548         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3549         and use the simpler FreeBSD implementation on Mac OS X as well.
3550         Original idea suggested by Ed Maste in
3551         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3552
3553 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3554
3555         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3556         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3557         * lib/mbuiter.c, lib/xsize.c: New files.
3558         * lib/binary-io.h (BINARY_IO_INLINE):
3559         * lib/eealloc.h (EEALLOC_INLINE):
3560         * lib/mbfile.h (MBFILE_INLINE):
3561         * lib/mbiter.h (MBITER_INLINE):
3562         * lib/mbuiter.h (MBUITER_INLINE):
3563         * lib/xsize.h (XSIZE_INLINE):
3564         New macros.
3565         Replace all uses of 'static inline' with them.
3566         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3567         * m4/eealloc.m4 (gl_EEALLOC):
3568         * m4/mbfile.m4 (gl_MBFILE):
3569         * m4/mbiter.m4 (gl_MBITER):
3570         * m4/xsize.m4 (gl_XSIZE):
3571         Do not require AC_C_INLINE.
3572         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3573         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3574         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3575         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3576         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3577         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3578         * modules/binary-io, modules/eealloc, modules/mbfile:
3579         * modules/mbiter, modules/mbuiter:
3580         (Depends-on): Add extern-inline.
3581
3582         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3583         * lib/pipe-filter-aux.c: New file.
3584         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3585         Replace all uses of 'static inline' with it.
3586         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3587         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3588         (filter_retcode): No real need for inline here.
3589         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3590         (Files): Add lib/pipe-filter-aux.c.
3591         (Depends-on): Add extern-inline.
3592         (configure.ac): Do not require AC_C_INLINE.
3593         (lib_SOURCES): Add pipe-filter-aux.c.
3594
3595         fdutimensat: omit unnecessary AC_C_INLINE
3596         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3597
3598         fchmodat, fchownat, fstatat: use extern-inline
3599         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3600         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3601         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3602         New macros.
3603         * lib/openat.h:
3604         Replace all uses of 'static inline' with them.
3605         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3606         * modules/fchmodat, modules/fchownat, modules/fstatat:
3607         * modules/openat-h:
3608         (Depends-on):
3609         Add extern-inline.
3610         (configure.ac): Remove AC_C_INLINE.
3611
3612         acl, mbchar, priv-set: use extern-inline
3613         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3614         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3615         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3616         New macros.
3617         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3618         Replace all uses of 'static inline' with it.
3619         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3620         * m4/acl.m4 (gl_FUNC_ACL):
3621         * m4/mbchar.m4 (gl_MBCHAR):
3622         * m4/priv-set.m4 (gl_PRIV_SET):
3623         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3624         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3625         Add extern-inline.
3626
3627         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3628         * m4/sockets.m4 (gl_SOCKETS):
3629         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3630         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3631         environments where it's already guaranteed to work, so we needn't
3632         check for it at 'configure'-time.
3633
3634         tls-tests: omit unnecessary 'inline'
3635         * tests/test-tls.c (perhaps_yield): No longer inline.
3636         Simplicity and portability trump efficiency in test cases.
3637
3638         utimens-tests: avoid unnecessary 'inline'
3639         * modules/fdutimensat-tests (configure.ac):
3640         * modules/futimens-tests (configure.ac):
3641         * modules/utimens-tests (configure.ac):
3642         * modules/utimensat-tests (configure.ac):
3643         Remove AC_C_INLINE.
3644         * tests/test-utimens-common.h (ctime_compare):
3645         No longer inline.  Simplicity and portability trump efficiency here.
3646
3647         misc: don't limit commentary to inline functions
3648         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3649         * lib/xalloc-oversized.h, lib/xsize.h:
3650         Contrast macros to functions in general, not just to inline functions,
3651         when the commentary does not apply only to inline functions.
3652
3653 2012-09-20  Jim Meyering  <meyering@redhat.com>
3654
3655         non-recursive-gnulib-prefix-hack: new module
3656         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3657         the file that originated in Bison.
3658         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3659         largely copied from a snippet that resided in bison's configure.ac.
3660         * modules/non-recursive-gnulib-prefix-hack: New file.
3661         * MODULES.html.sh (Support for maintaining and releasing projects):
3662         Add it.
3663
3664 2012-09-18  Jim Meyering  <meyering@redhat.com>
3665
3666         maint.mk: generalize _gl_tight_scope for non-recursive make
3667         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3668         that *.h would describe additional .h files in the directory
3669         specified by $(_gl_TS_dir).  I.e., add this...
3670         (_gl_TS_other_headers): New variable.
3671
3672         maint.mk: exempt trailing blanks found in "binary" files
3673         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3674         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3675         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3676
3677 2012-09-17  Jim Meyering  <meyering@redhat.com>
3678
3679         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3680         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3681         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3682         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3683
3684 2012-09-17  Jim Meyering  <meyering@redhat.com>
3685
3686         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3687         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3688         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3689         It is not in the same category as "exit (0)" or "exit (1)", and
3690         besides, I know of no symbolic name for that 77.  Reported by
3691         Richard W.M. Jones in
3692         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3693
3694 2012-09-17  Jim Meyering  <meyering@redhat.com>
3695
3696         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3697         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3698         all uses of #define, not just those that start in column 1.
3699         Richard W.M. Jones reported a false positive in
3700         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3701
3702 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3703
3704         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3705         * lib/localcharset.c (locale_charset) [DARWIN7]:
3706         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3707         as these two values are incompatible.  Problem reported by Max Horn.
3708         For more discussion, please see
3709         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3710
3711         doc: document sticky-EOF issue
3712         * doc/posix-functions/fgetc.texi (fgetc):
3713         * doc/posix-functions/fgets.texi (fgets):
3714         * doc/posix-functions/fread.texi (fread):
3715         * doc/posix-functions/fscanf.texi (fscanf):
3716         * doc/posix-functions/getc.texi (getc):
3717         * doc/posix-functions/getchar.texi (getchar):
3718         * doc/posix-functions/scanf.texi (scanf):
3719         Mention that glibc and default Solaris do not conform to
3720         C99 and POSIX-2001 or later, with respect to how getchar
3721         etc. behave when feof reports nonzero.
3722
3723 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3724
3725         poll: fix poll(0, NULL, msec)
3726         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3727         but nfd is 0.  In that case poll should behave like select.
3728
3729 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3730             Paolo Bonzini <bonzini@gnu.org>
3731
3732         poll: fix for systems that can't recv() on a non-socket
3733         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3734         is readable.  In this case POLLHUP will not be supported.
3735         * doc/posix-functions/poll.texi: Document this.
3736
3737 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3738
3739         poll/select: document portability problems not fixed by Gnulib.
3740         * doc/posix-functions/poll.texi: poll does not work well on
3741         pipes under Windows.  It has the same limitations as select on
3742         BeOS.
3743         * doc/posix-functions/select.texi: select does not work well
3744         on pipes under Windows.
3745
3746 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3747
3748         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3749         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3750         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3751         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3752
3753 2012-09-06  Eric Blake  <eblake@redhat.com>
3754
3755         net_if: give more details about the bug being fixed
3756         * doc/posix-headers/net_if.texi: Add clarification.
3757
3758 2012-09-05  Eric Blake  <eblake@redhat.com>
3759
3760         net_if: new module
3761         * modules/net_if: New module, borrowing ideas from netinet_in.
3762         * m4/net_if_h.m4: New file.
3763         * lib/net_if.in.h: Likewise.
3764         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3765         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3766         * tests/test-net_if.c: Make function checks conditional.
3767         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3768
3769 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3770
3771         readutmp: fix non-portable UT_PID use
3772         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3773         Use `UT_PID (u) > 0' as absolute condition.
3774
3775 2012-09-04  Jim Meyering  <meyering@redhat.com>
3776
3777         fts: reduce two or more trailing spaces to just one, usually
3778         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3779         or more slashes, trim all but the final one.  But if a name consists
3780         solely of two slashes, don't modify it.  If it consists solely of
3781         three or more slashes, strip all but one.
3782
3783         This is part of the solution to a minor problem with rm:
3784         it would print a bogus ELOOP diagnostic when failing to remove
3785         the slash-decorated name of a symlink-to-directory:
3786
3787             $ mkdir d && ln -s d s && env rm -r s/
3788             rm: cannot remove 's': Too many levels of symbolic links
3789
3790         With the change below and a trivial don't-trim-trailing-slashes
3791         adjustment to remove.c, it does this:
3792
3793             $ env rm -r s/
3794             rm: cannot remove 's/': Not a directory
3795
3796         Improved by: Eric Blake
3797
3798         fts: when there is no risk of overlap, use memcpy, not memmove
3799         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3800
3801 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3802
3803         stdbool: be more compatible with mixed C/C++ compiles
3804         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3805         Define to bool, true, false, respectively, as GCC's builtin
3806         stdbool.h does.  Problem reported by Michael Goffioul in
3807         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3808
3809 2012-08-28  Jim Meyering  <meyering@redhat.com>
3810
3811         revert last change: it was not needed
3812         * tests/test-vc-list-files-git.sh: There's already a test for
3813         a working git, just below.
3814
3815 2012-08-28  Jim Meyering  <meyering@redhat.com>
3816
3817         tests: test-vc-list-files-git.sh: skip if git is not available
3818         * tests/test-vc-list-files-git.sh: Skip this test when git is
3819         not available.
3820
3821 2012-08-26  Bruno Haible  <bruno@clisp.org>
3822
3823         gnulib-tool: Remove no-op option --no-changelog.
3824         * gnulib-tool (func_usage): Don't mention --no-changelog.
3825         (do_changelog): Remove variable.
3826         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3827
3828 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3829
3830         doc: remove fdl-1.2.texi
3831         It is no longer used or maintained, and its use of @acronym
3832         is problematic.  See the thread containing
3833         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3834         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3835         * doc/old-licenses/fdl-1.2.texi: Remove.
3836
3837         execinfo: port to FreeBSD
3838         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3839         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3840         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3841         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3842
3843 2012-08-23  Jim Meyering  <meyering@redhat.com>
3844
3845         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3846         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3847         to placate gcc's -Wold-style-declaration.
3848
3849 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3850
3851         doc: do not use @acronym
3852         * doc/inet_ntoa.texi (inet_ntoa):
3853         * doc/parse-datetime.texi (Seconds since the Epoch)
3854         (Specifying time zone rules):
3855         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3856         Don't use @acronym.  Problem reported by John Darlington in
3857         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3858
3859 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3860
3861         stdnoreturn: port to newer GCCs
3862         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3863         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3864         Problem reported by Jim Meyering in
3865         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3866         Also, rename the 'test' function to a void a clash with the
3867         already-supplied 'main' function; this fixes a bug that incorrectly
3868         rejected GCC 4.7.1's <stdnoreturn.h>.
3869         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3870         Document GCC problem.
3871
3872 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3873
3874         pipe-filter: fix comment typo
3875         * lib/pipe-filter.h: Mention correct function.
3876
3877 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3878
3879         execinfo: new module
3880         This is for Emacs.  Currently, it provides a no-effect stub
3881         on all platforms where it does not already work.
3882         It already works on glibc-based systems, and on Solaris 11.
3883         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3884         New files.
3885         * doc/glibc-headers/execinfo.texi (execinfo.h):
3886         * MODULES.html.sh (Misc): Document it.
3887
3888 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3889
3890         extern-inline: support old GCC 'inline'
3891         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3892         if available.  This applies to GCC versions 2.7 through 4.2, or
3893         when newer GCC is using -fgnu89-inline.  The goal is to address
3894         some of the performance issues mentioned by Bruno Haible in
3895         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3896
3897 2012-08-20  Eric Blake  <eblake@redhat.com>
3898
3899         maint.mk: avoid redundant file name in message
3900         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3901         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3902         (sc_makefile_path_separator_check): Remove bogus $(ME).
3903
3904 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3905
3906         timer-time: fix link order when static linking on glibc
3907         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3908         _after_ -lrt so that it's significant.
3909
3910 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3911
3912         timespec: omit unnecessary AC_C_INLINE
3913         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3914
3915         stat-time: omit unnecessary AC_C_INLINE
3916         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3917         Do not require AC_C_INLINE.
3918
3919         ignore-value: omit unnecessary AC_C_INLINE
3920         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3921
3922         sys_select: avoid 'static inline'
3923         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3924
3925         mktime: avoid 'static inline'
3926         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3927         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3928
3929 2012-08-19  Bruno Haible  <bruno@clisp.org>
3930
3931         gnulib-tool: Improve coding style.
3932         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3933         func_emit_lib_Makefile_am.
3934         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3935
3936 2012-08-19  Bruno Haible  <bruno@clisp.org>
3937
3938         gnulib-tool: Fix indentation.
3939         * gnulib-tool (func_import): Fix indentation.
3940
3941 2012-08-19  Bruno Haible  <bruno@clisp.org>
3942
3943         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3944         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3945         on the list of removed files.
3946
3947 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3948
3949         test-parse-datetime: avoid glibc leap-second glitch
3950         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3951         with the 2012 rules.  Problem reported by Bruce Dubbs in
3952         <http://bugs.gnu.org/12206>.
3953
3954 2012-08-14  Bruno Haible  <bruno@clisp.org>
3955
3956         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3957         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3958         from argument.
3959         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3960
3961 2012-08-14  Eric Blake  <eblake@redhat.com>
3962
3963         ldexp: relax license
3964         * modules/ldexp (License): Trivial relax, since the module only
3965         provides a permissively licensed m4 file.
3966
3967 2012-08-13  Bruno Haible  <bruno@clisp.org>
3968
3969         gnulib-tool: Fix persistence of --witness-c-macro option.
3970         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3971         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3972
3973 2012-08-11  Eric Blake  <eblake@redhat.com>
3974
3975         count-leading-zeros: use a lookup table on non-gcc compilers
3976         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3977         alternate implementation, suggested by Jim Meyering.
3978
3979 2012-08-10  Eric Blake  <eblake@redhat.com>
3980
3981         count-leading-zeros: new module
3982         * modules/count-leading-zeros: New module.
3983         * m4/count-leading-zeros.m4: New file.
3984         * lib/count-leading-zeros.h: Likewise.
3985         * modules/count-leading-zeros-tests: New test.
3986         * tests/test-count-leading-zeros.c: New file.
3987         * MODULES.html.sh (Integer arithmetic functions): Document it.
3988
3989 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3990             Jim Meyering  <meyering@redhat.com>
3991
3992         maintainer-makefile: Fix syntax error with dash.
3993         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3994         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3995
3996 2012-08-05  Jim Meyering  <meyering@redhat.com>
3997
3998         extern-inline: also ignore -Wmissing-declarations
3999         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
4000         required with gcc-4.8.0-to-be.
4001
4002         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
4003         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
4004         for /error ?([^,]*)/.  This avoids false-positives for strings like
4005         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
4006
4007 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
4008
4009         gnumakefile: better interaction with Automake-NG
4010         * modules/gnumakefile [Makefile.am]: The makefiles generated by
4011         Automake-NG always contain a definition of VPATH, even in non-VPATH
4012         builds (its value being simply '.' in that case).  So, in the
4013         'clean-GNUmakefile' rule, to determine whether running under a
4014         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
4015         '$(VPATH)' expands to the empty string.
4016
4017 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
4018
4019         base64: Use extern C scope in header file, for C++.
4020         * lib/base64.h: Add C++ namespace protection.
4021
4022 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
4023
4024         stat-time, timespec, u64: support naive out-of-dir builds
4025         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
4026         Use '#include "foo.h"', not '#include <foo.h>', when including
4027         one's own interface.  This works better when configuring with
4028         out-of-directory builds, since packages need not add an
4029         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
4030
4031 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
4032
4033         utimens: use extern-inline
4034         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
4035         * lib/utimens.h: Add copyright notice, since this is now large enough
4036         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4037         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
4038         * modules/utimens (Depends-on): Add extern-inline.
4039
4040         u64: use extern-inline
4041         * lib/u64.c: New file.
4042         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4043         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
4044         * modules/u64 (Files): Add lib/u64.c.
4045         (Depends-on): Add extern-inline.
4046         (configure.ac): No need to require AC_C_INLINE, since extern-inline
4047         does that now.
4048         (lib_SOURCES): Add u64.c.
4049
4050         timespec: use extern-inline
4051         * lib/timespec.c: New file.
4052         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4053         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
4054         * modules/timespec (Files): Add lib/timespec.c.
4055         (Depends-on): Add extern-inline.
4056         (lib_SOURCES): Add timespec.c.
4057
4058         stat-time: use extern-inline
4059         * lib/stat-time.c: New file.
4060         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4061         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
4062         * modules/stat-time (Files): Add lib/stat-time.c.
4063         (Depends-on): Add extern-inline.
4064         (lib_SOURCES): Add stat-time.c.
4065
4066         extern-inline: new module
4067         * modules/extern-inline, m4/extern-inline.m4: New files.
4068         This is for better support of 'extern inline' a la ISO C99,
4069         with a portable alternative on compilers that do not support
4070         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
4071         of the Emacs executable, when compiled with debugging disabled,
4072         which is a typical way that Emacs is built while developing.
4073
4074 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
4075
4076         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
4077         * build-aux/do-release-commit-and-tag: Move variable definitions
4078         together.
4079         ($branch): Instead of defaulting to "master", default to the current
4080         branch (as gnu-web-doc-update does).
4081         (help): Display the current values of the option arguments.
4082         * top/maint.mk (release-commit): New.
4083         * top/README-release: Simplify the corresponding step.
4084
4085 2012-07-30  Eric Blake  <eblake@redhat.com>
4086
4087         passfd: fix comment on recvfd
4088         * lib/passfd.c (recvfd): Fix comment.
4089         Reported by Jann Horn <jannhorn@googlemail.com>.
4090
4091 2012-07-30  Jim Meyering  <meyering@redhat.com>
4092
4093         maint.mk: avoid a sub-shell
4094         * top/maint.mk (release-prep): Remove unneeded sub-shell.
4095
4096 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4097
4098         maint.mk: use silent-rules support from Automake
4099         * top/maint.mk (news-check, vc-diff-check, announcement)
4100         (no-submodule-changes, alpha beta stable, release-prep)
4101         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
4102
4103 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4104
4105         maint.mk: provide a web-manual-update target
4106         * top/maint.mk: here.
4107         * top/README-release: Use it to simplify the web manual update step.
4108
4109 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4110
4111         README-release: shorten the circuit to post a news
4112         * top/README-release: Point directly to the news submission form.
4113
4114 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4115
4116         gnu-web-doc-update: fix --help
4117         * build-aux/gnu-web-doc-update: The information "top level" was written
4118         twice.
4119
4120 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4121
4122         maint.mk: absolute VPATH issue
4123         * top/maint.mk (release-prep): Help Git find .git/.
4124         From Jim Meyering.
4125
4126 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4127
4128         gitlog-to-changelog: fix previous change
4129         * build-aux/gitlog-to-changelog: Fix condition.
4130         Add missing ";".
4131
4132 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4133
4134         gitlog-to-changelog: don't expect .git to be in $srcdir
4135         Reported by Bruno Haible.
4136         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
4137         * build-aux/gitlog-to-changelog (&git_dir_option): New.
4138         Use it.
4139
4140 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4141
4142         maint.mk: absolute VPATH build fix
4143         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
4144         $(srcdir) is not a parent of $(builddir).
4145
4146 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
4147
4148         clean-temp: Fix memory leak.
4149         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
4150         'files' members of tmpdir.
4151
4152 2012-07-27  Jim Meyering  <meyering@redhat.com>
4153
4154         maint.mk: new rule: refresh-gnulib-patches
4155         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
4156         Use this rule to refresh them.
4157         * top/maint.mk (refresh-gnulib-patches): New rule.
4158
4159 2012-07-24  Bruno Haible  <bruno@clisp.org>
4160
4161         gnulib-tool: Fix handling of inctests variable.
4162         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
4163         Reported by Nick Bowler <nbowler@elliptictech.com>.
4164
4165 2012-07-22  Bruno Haible  <bruno@clisp.org>
4166
4167         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
4168         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
4169         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4170         Remove exemption for getpass.h.
4171         Suggested by Eric Blake.
4172
4173 2012-07-20  Eric Blake  <eblake@redhat.com>
4174
4175         verify: document conflict with -Wnested-externs
4176         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
4177
4178         maint.mk: forbid exit(-1)
4179         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
4180
4181 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
4182
4183         fsusage: port back to Solaris
4184         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
4185         error (fsd not declared) on Solaris 10.  Reported privately by
4186         Andrew Borodin.
4187
4188 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
4189
4190         gnu-web-doc-update: fix error messages
4191         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
4192
4193         gnu-web-doc-update: check the requirements.
4194         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
4195         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
4196         * build-aux/bootstrap (find_tool): Comment change.
4197
4198 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
4199
4200         maint.mk: minor simplication.
4201         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
4202         for default values.
4203
4204 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
4205
4206         gitlog-to-changelog: VPATH build issues
4207         If builddir is not a subdirectory of srcdir, running git from it will
4208         fail.
4209         * build-aux/gitlog-to-changelog (--srcdir): New option.
4210
4211 2012-07-15  Bruno Haible  <bruno@clisp.org>
4212
4213         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
4214         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
4215         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
4216         Remove exemption for fpending.h.
4217         Suggested by Eric Blake.
4218
4219 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4220
4221         pthread_sigmask: fix bug on FreeBSD 9
4222         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
4223         Include string.h.
4224         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
4225         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
4226         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
4227         but pthread_sigmask (1729, NULL, NULL) returns zero.
4228         See <http://bugs.gnu.org/11884>.
4229         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
4230         by inspecting whether the main call changed the old mask.
4231
4232 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
4233
4234         README-release: make it more legible
4235         * top/README-release: Improve typography slightly.
4236
4237 2012-07-15  Jim Meyering  <meyering@redhat.com>
4238
4239         maint: require that each sc_... command start with "@"
4240         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
4241         "make sc_maint" helps us avoid this nit.
4242
4243 2012-07-15  Jim Meyering  <meyering@redhat.com>
4244
4245         maint.mk: add leading "@" to quiet new "make syntax-check" rule
4246         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
4247
4248 2012-07-13  Eric Blake  <eblake@redhat.com>
4249
4250         maint.mk: new syntax check for HAVE_DECL checks
4251         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
4252         * cfg.mk
4253         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4254         Exempt some false positives.
4255         Based on a report by Karel Zak.
4256
4257         argp: make HAVE_DECL usage consistent
4258         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
4259         macros, not whether they are defined.
4260         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
4261         convention with other declaration checks.
4262         Reported by Karel Zak, with suggestions from Paul Eggert.
4263
4264         stat-time: relax license to LGPLv2+
4265         * modules/stat-time (License): Relax, with consent of all authors.
4266
4267         strndup: fix m4 usage error
4268         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
4269         defined, to either 0 or 1.
4270         Reported by Karel Zak.
4271
4272 2012-07-11  Jim Meyering  <meyering@redhat.com>
4273
4274         maint: enable the sc_avoid_if_before_free syntax-check rule
4275         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
4276         (if_before_free_offenders_): Define.
4277         (if_before_free_basename_re_): Define.
4278         Exempt current files with useless if-before-free.
4279
4280 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
4281
4282         gettext: do not assume '#define ... defined ...' behavior
4283         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
4284         Do not use '#define FOO ... defined BAR ...', as the C standard says
4285         it's not portable to expect that this works after macro expansion.
4286         Problem reported for gzip by Steven M. Schweda in
4287         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
4288
4289 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4290
4291         getloadavg: clean out old Emacs and Autoconf cruft
4292         See Glenn Morris in <http://bugs.gnu.org/11905>.
4293         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
4294         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
4295         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
4296         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
4297
4298 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
4299
4300         bootstrap: let warn be like tests/init.sh's warn_
4301         Reported by Jim Meyering.
4302         * build-aux/bootstrap (warn): Remove, replaced by...
4303         (warnf_, warn_): these.
4304         Adjust callers.
4305         Shorten messages that no longer fit in 80 columns.
4306
4307 2012-07-09  Bruno Haible  <bruno@clisp.org>
4308
4309         getopt: Simplify after Emacs changed.
4310         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
4311         (gl_GETOPT_IFELSE): Remove macro.
4312
4313 2012-07-09  Jim Meyering  <meyering@redhat.com>
4314
4315         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
4316         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
4317
4318         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
4319         Bugs in both of those conspired to make the
4320         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
4321         _sc_search_regexp's handling of non-empty $in_files would filter
4322         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
4323         choice of in_files value meant there would be no match in most
4324         projects, due to the presence of two or more Makefile.in files.
4325         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
4326         Fix a bug in how a non-empty $$in_files was processed:
4327         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
4328         in spite of the name, it's a regexp, not a list of file names.
4329
4330 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4331
4332         getloadavg, getopt: fix commentary re configure.in
4333         Autoconf is deprecating the name 'configure.in', so change it to
4334         to the new name 'configure.ac' in a couple of places.
4335         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
4336         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
4337         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
4338         Emacs has renamed it to configure.ac, and it no longer refers
4339         to these macros anyway.
4340
4341         timespec: mark functions with const attributes
4342         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
4343         Mark with _GL_ATTRIBUTE_CONST.
4344
4345 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4346
4347         canonicalize[-lgpl]: handle "guessing" values when cross-building
4348         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4349         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
4350         matches "*yes" instead of just "yes".  Regression introduced in commit
4351         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
4352
4353 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4354             Bruno Haible  <bruno@clisp.org>
4355
4356         canonicalize: make the right guess when cross-compiling to GNU
4357         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
4358         determine whether cross-compiling to glibc systems, so as to
4359         include GNU/Hurd.
4360
4361 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4362
4363         timespec-sub: avoid duplicate include
4364         * lib/timespec-sub.c: Do not include <config.h> twice.
4365         Reported by Juanma Barranquero.
4366
4367 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
4368
4369         bootstrap: use a more consistent error reporting scheme
4370         * build-aux/bootstrap (warn, die): New.
4371         Use them.
4372
4373 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4374
4375         sys_time: allow too-wide tv_sec
4376         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
4377         timeval even if tv_sec is wider than time_t.  This allows
4378         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
4379         as without this patch gnulib replaces struct timeval
4380         and OpenBSD futimes therefore has a type mismatch.
4381         * doc/posix-headers/sys_time.texi: Mention this.
4382
4383         pthread: check for both pthread_create and pthread_join
4384         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
4385         alter the check so that it tests for both pthread_create and
4386         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
4387         Suggested by Bruno Haible and Richard Yao in
4388         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
4389
4390         parse-datetime: doc tuneup
4391         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
4392         spacing issues.
4393
4394 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
4395
4396         do-release-commit-and-tag: fix the previous commit
4397         * build-aux/do-release-commit-and-tag: Actually the test was right,
4398         but the comment and the error message were misleading.
4399         Fix comment, and improve error message.
4400         Perform check first, so that NEWS is not modified uselessly.
4401
4402         do-release-commit-and-tag: fix typo
4403         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
4404         _not_ start with a stub.
4405
4406 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4407
4408         pthread: check for pthread_create, not pthread_join
4409         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
4410         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
4411         pthread_join in libc.  I hope this removes the need for all the
4412         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
4413         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
4414
4415 2012-07-04  Jim Meyering  <meyering@redhat.com>
4416
4417         parse-datetime: fix failure to diagnose invalid input
4418         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
4419         rather than diagnosing the invalid input.  Now it reports this:
4420         date: invalid date '\260'
4421         * lib/parse-datetime.y (to_uchar): Define.
4422         (yylex): Don't sign-extend "other" bytes.
4423         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
4424         Thanks to Bruno Haible for the patch to this file.
4425         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
4426         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
4427
4428 2012-07-03  Jim Meyering  <meyering@redhat.com>
4429
4430         bootstrap: do not require now-removed build-aux/missing
4431         Now that build-aux/missing is, er, missing, bootstrap would
4432         silently fail.
4433         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
4434         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
4435         no longer part of gnulib.
4436         Diagnose the failure.
4437
4438 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4439
4440         alloca: add support for HP NonStop TNS/E native
4441         * lib/alloca.in.h (alloca): Support the new host.
4442         From a suggestion by Joachim Schmitz in
4443         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
4444
4445 2012-07-02  Pádraig Brady  <P@draigBrady.com>
4446
4447         fsusage: remove code not needed on non GNU/Linux systems.
4448
4449         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4450         Don't include headers no longer needed in this case.
4451         * lib/fsusage.c [STAT_STATVFS &&
4452         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
4453         STAT_STATFS2_FRSIZE to exclude code not used in this case.
4454
4455 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4456
4457         fsusage: include files needed for glibc 2.6 fallback
4458         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4459         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
4460         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
4461         Problem reported by Ludovic Courtès in
4462         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
4463
4464         fsusage: avoid needless check on GNU/Linux
4465         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
4466         on GNU/Linux systems, since it can't possibly work.
4467
4468 2012-07-01  Bruno Haible  <bruno@clisp.org>
4469
4470         log: Fix an autoconf >= 2.64 warning.
4471         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
4472         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4473
4474 2012-06-28  Bruno Haible  <bruno@clisp.org>
4475
4476         log10f: Fix possible configuration problem.
4477         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
4478         $LOGF_LIBM.
4479         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4480
4481 2012-06-28  Bruno Haible  <bruno@clisp.org>
4482
4483         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
4484         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
4485         not gl_cv_func_unlink_works.
4486         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4487
4488 2012-06-27  Eric Blake  <eblake@redhat.com>
4489
4490         config: drop scripts that automake says are not independent
4491         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
4492         * build-aux/elisp-comp: Delete.
4493         * build-aux/missing: Likewise.
4494         * build-aux/ylwrap: Likewise.
4495         * modules/elisp-comp: Likewise.
4496         * MODULES.html.sh: Drop mention of elisp-comp.
4497         * NEWS: Mention this.
4498
4499 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4500
4501         root-uid: new module
4502         This is for portability to Tandem's NonStop Kernel.
4503         * lib/root-uid.h, modules/root-uid: New files.
4504         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
4505         * lib/write-any-file.c, tests/test-sethostname2.c:
4506         Include "root-uid.h".
4507         * lib/euidaccess.c (euidaccess):
4508         * lib/pt_chown.c (main):
4509         * lib/unlinkdir.c (cannot_unlink_dir):
4510         * lib/write-any-file.c (can_write_any_file):
4511         * m4/mknod.m4 (gl_FUNC_MKNOD):
4512         * tests/test-sethostname2.c (geteuid, main):
4513         Don't assume ROOT_UID == 0.
4514         * modules/euidaccess (Depends-on):
4515         * modules/pt_chown (Depends-on):
4516         * modules/sethostname-tests (Depends-on):
4517         * modules/unlinkdir (Depends-on):
4518         * modules/write-any-file (Depends-on):
4519         Add root-uid.
4520
4521         regex: use locale-independent comparison for codeset name
4522         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4523         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4524         for codeset name.
4525         * lib/regex_internal.h: Do not include <strings.h>, since we
4526         no longer use strcasecmp.
4527         * modules/regex (Depends-on): Remove strcase.
4528
4529 2012-06-23  Bruno Haible  <bruno@clisp.org>
4530
4531         getopt-posix: No longer guarantee that option processing is resettable.
4532         * doc/posix-functions/getopt.texi: Drop description of problem with
4533         internal state. Fix info about mingw and msvc9.
4534         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4535         option processing by getopt(). Run three test programs instead of one.
4536         Simplify cross-compilation guess.
4537         * NEWS: Mention the change.
4538         Reported by Rich Felker <dalias@aerifal.cx>.
4539
4540 2012-06-26  Bruno Haible  <bruno@clisp.org>
4541
4542         argp, regex: Ensure strcasecmp gets declared.
4543         * lib/argp-help.c: Include <strings.h>.
4544         * lib/regex_internal.h: Likewise.
4545         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4546
4547 2012-06-24  Bruno Haible  <bruno@clisp.org>
4548
4549         ptsname_r: Make it consistent with ptsname on AIX.
4550         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4551         implementation as for OSF/1.
4552         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4553         a pty master.
4554
4555         ptsname_r: Make it consistent with ptsname on OSF/1.
4556         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4557         OSF/1.
4558
4559 2012-06-24  Bruno Haible  <bruno@clisp.org>
4560
4561         ttyname_r: Fix result on OSF/1, Solaris.
4562         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4563
4564 2012-06-24  Bruno Haible  <bruno@clisp.org>
4565
4566         ptsname_r: Add support for Solaris.
4567         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4568         Solaris.
4569
4570         ptsname_r: Fix test failure on native Windows.
4571         * modules/ptsname_r (Depends-on): Add isatty.
4572
4573         ptsname_r: Fix test failures on IRIX, Solaris.
4574         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4575         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4576         accordingly.
4577         * lib/ptsname_r.c: Include <fcntl.h>.
4578         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4579         set errno if fd is invalid.
4580         * tests/test-isatty.c (main): Update comments.
4581
4582 2012-06-24  Bruno Haible  <bruno@clisp.org>
4583
4584         ptsname test: Extend test.
4585         * tests/test-ptsname.c: Include <errno.h>.
4586         (main): Test behaviour with invalid file descriptor.
4587
4588 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4589
4590         time: fix obsolete comment
4591         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4592         reference to HAVE_STRUCT_TIMESPEC in comment.
4593
4594 2012-06-23  Bruno Haible  <bruno@clisp.org>
4595
4596         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4597         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4598         does not handle abbreviated long options with equivalent
4599         disambiguations, set gl_replace_getopt to yes.
4600         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4601
4602 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4603
4604         time_r: fix typo that always overrode localtime_r decl
4605         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4606         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4607         not in a standard include.
4608
4609 2012-06-22  Bruno Haible  <bruno@clisp.org>
4610
4611         Write "Mac OS X" instead of "MacOS X".
4612         * README: Write "Mac OS X" instead of "MacOS X".
4613         * build-aux/bootstrap: Likewise.
4614         * build-aux/install-reloc: Likewise.
4615         * lib/acl-internal.h: Likewise.
4616         * lib/acl_entries.c: Likewise.
4617         * lib/argp-ba.c: Likewise.
4618         * lib/argp-pv.c: Likewise.
4619         * lib/config.charset: Likewise.
4620         * lib/copy-acl.c: Likewise.
4621         * lib/csharpexec.c: Likewise.
4622         * lib/euidaccess.c: Likewise.
4623         * lib/fbufmode.c: Likewise.
4624         * lib/fflush.c: Likewise.
4625         * lib/file-has-acl.c: Likewise.
4626         * lib/filemode.h: Likewise.
4627         * lib/fpurge.c: Likewise.
4628         * lib/freadable.c: Likewise.
4629         * lib/freadahead.c: Likewise.
4630         * lib/freading.c: Likewise.
4631         * lib/freadptr.c: Likewise.
4632         * lib/freadseek.c: Likewise.
4633         * lib/fseeko.c: Likewise.
4634         * lib/fseterr.c: Likewise.
4635         * lib/fsusage.c: Likewise.
4636         * lib/fwritable.c: Likewise.
4637         * lib/fwriting.c: Likewise.
4638         * lib/get-rusage-as.c: Likewise.
4639         * lib/get-rusage-data.c: Likewise.
4640         * lib/getdomainname.c: Likewise.
4641         * lib/idpriv-drop.c: Likewise.
4642         * lib/idpriv-droptemp.c: Likewise.
4643         * lib/localcharset.c: Likewise.
4644         * lib/locale.in.h: Likewise.
4645         * lib/localename.c: Likewise.
4646         * lib/mbsrtowcs-state.c: Likewise.
4647         * lib/nproc.c: Likewise.
4648         * lib/passfd.c: Likewise.
4649         * lib/posix_openpt.c: Likewise.
4650         * lib/printf-parse.c: Likewise.
4651         * lib/progreloc.c: Likewise.
4652         * lib/safe-read.h: Likewise.
4653         * lib/safe-write.h: Likewise.
4654         * lib/sched.in.h: Likewise.
4655         * lib/set-mode-acl.c: Likewise.
4656         * lib/signal.in.h: Likewise.
4657         * lib/stdint.in.h: Likewise.
4658         * lib/stdio-impl.h: Likewise.
4659         * lib/stdlib.in.h: Likewise.
4660         * lib/strtod.c: Likewise.
4661         * lib/sys_select.in.h: Likewise.
4662         * lib/tcgetsid.c: Likewise.
4663         * lib/unistd.in.h: Likewise.
4664         * lib/unlockpt.c: Likewise.
4665         * lib/vasnprintf.c: Likewise.
4666         * lib/vma-iter.c: Likewise.
4667         * lib/wcsrtombs-state.c: Likewise.
4668         * m4/acl.m4: Likewise.
4669         * m4/acosl.m4: Likewise.
4670         * m4/asinl.m4: Likewise.
4671         * m4/atanl.m4: Likewise.
4672         * m4/c-stack.m4: Likewise.
4673         * m4/cosl.m4: Likewise.
4674         * m4/expl.m4: Likewise.
4675         * m4/extensions.m4: Likewise.
4676         * m4/fdatasync.m4: Likewise.
4677         * m4/fmal.m4: Likewise.
4678         * m4/frexp.m4: Likewise.
4679         * m4/frexpf.m4: Likewise.
4680         * m4/frexpl.m4: Likewise.
4681         * m4/fsusage.m4: Likewise.
4682         * m4/getdomainname.m4: Likewise.
4683         * m4/getloadavg.m4: Likewise.
4684         * m4/getopt.m4: Likewise.
4685         * m4/gettext.m4: Likewise.
4686         * m4/gnulib-common.m4: Likewise.
4687         * m4/intdiv0.m4: Likewise.
4688         * m4/intlmacosx.m4: Likewise.
4689         * m4/largefile.m4: Likewise.
4690         * m4/ldexpl.m4: Likewise.
4691         * m4/link-follow.m4: Likewise.
4692         * m4/locale-ar.m4: Likewise.
4693         * m4/locale-fr.m4: Likewise.
4694         * m4/locale-ja.m4: Likewise.
4695         * m4/locale-tr.m4: Likewise.
4696         * m4/locale-zh.m4: Likewise.
4697         * m4/locale_h.m4: Likewise.
4698         * m4/lock.m4: Likewise.
4699         * m4/logl.m4: Likewise.
4700         * m4/mathfunc.m4: Likewise.
4701         * m4/minus-zero.m4: Likewise.
4702         * m4/mktime.m4: Likewise.
4703         * m4/mmap-anon.m4: Likewise.
4704         * m4/multiarch.m4: Likewise.
4705         * m4/nanosleep.m4: Likewise.
4706         * m4/nocrash.m4: Likewise.
4707         * m4/poll.m4: Likewise.
4708         * m4/printf-frexpl.m4: Likewise.
4709         * m4/printf.m4: Likewise.
4710         * m4/signbit.m4: Likewise.
4711         * m4/sinl.m4: Likewise.
4712         * m4/sqrtl.m4: Likewise.
4713         * m4/strerror_r.m4: Likewise.
4714         * m4/tanl.m4: Likewise.
4715         * m4/threadlib.m4: Likewise.
4716         * m4/ttyname_r.m4: Likewise.
4717         * m4/unlink.m4: Likewise.
4718         * m4/visibility.m4: Likewise.
4719         * m4/wcwidth.m4: Likewise.
4720         * tests/minus-zero.h: Likewise.
4721         * tests/test-alloca-opt.c: Likewise.
4722         * tests/test-copy-acl.sh: Likewise.
4723         * tests/test-copy-file.sh: Likewise.
4724         * tests/test-fdatasync.c: Likewise.
4725         * tests/test-file-has-acl.sh: Likewise.
4726         * tests/test-flock.c: Likewise.
4727         * tests/test-fsync.c: Likewise.
4728         * tests/test-localename.c: Likewise.
4729         * tests/test-malloca.c: Likewise.
4730         * tests/test-nonblocking-pipe.h: Likewise.
4731         * tests/test-nonblocking-socket.h: Likewise.
4732         * tests/test-openpty.c: Likewise.
4733         * tests/test-posix_openpt.c: Likewise.
4734         * tests/test-ptsname.c: Likewise.
4735         * tests/test-ptsname_r.c: Likewise.
4736         * tests/test-sameacls.c: Likewise.
4737         * tests/test-select.h: Likewise.
4738         * tests/test-set-mode-acl.sh: Likewise.
4739         * tests/test-snprintf-posix.h: Likewise.
4740         * tests/test-sprintf-posix.h: Likewise.
4741         * tests/test-strtod.c: Likewise.
4742         * tests/test-time.c: Likewise.
4743         * tests/test-vasnprintf-posix.c: Likewise.
4744         * tests/test-vasprintf-posix.c: Likewise.
4745         * doc/acl-resources.txt: Likewise.
4746         * doc/**/*.texi: Likewise.
4747         Reported by Max Horn <max@quendi.de>.
4748
4749 2012-06-22  Bruno Haible  <bruno@clisp.org>
4750
4751         grantpt: Relax requirement regarding invalid file descriptors.
4752         * lib/grantpt.c: Don't include <fcntl.h>.
4753         (grantpt): Don't verify the validity of the file descriptor.
4754         * modules/grantpt (Depends-on): Remove fcntl-h.
4755         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4756         file descriptors.
4757         * doc/posix-functions/grantpt.texi: Document more platforms on which
4758         grantpt succeeds for invalid file descriptors.
4759         Reported by Rich Felker <dalias@aerifal.cx>.
4760
4761 2012-06-22  Bruno Haible  <bruno@clisp.org>
4762
4763         fbufmode test: Don't test unportable behaviour.
4764         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4765         (main): Invoke it three times.
4766         Reported by Szabolcs Nagy <nsz@port70.net>
4767         and Rich Felker <dalias@aerifal.cx>.
4768
4769 2012-06-21  Bruno Haible  <bruno@clisp.org>
4770
4771         gnulib-tool: Refactor inctests variable.
4772         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4773         (func_modules_transitive_closure,
4774         func_modules_transitive_closure_separately,
4775         func_import, func_create_testdir): Update.
4776
4777         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4778         * gnulib-tool: Accept option --without-tests.
4779         (func_usage): Document --without-tests option. Rearrange.
4780         (inctests): Normalize according to the mode.
4781         * NEWS: Mention the change.
4782         Suggested by Simon Josefsson.
4783
4784 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4785
4786         parse-duration test: Avoid spurious output.
4787         * tests/test-parse-duration.sh: Reindent with leading tabs.
4788
4789 2012-06-21  Jim Meyering  <meyering@redhat.com>
4790
4791         maint: disable the strncpy prohibition
4792         * cfg.mk: Do not prohibit strncpy here.
4793
4794 2012-06-21  Bruno Haible  <bruno@clisp.org>
4795
4796         nonblocking: Avoid compilation error on mingw64.
4797         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4798         fscanf.
4799         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4800         * modules/vfscanf (configure.ac): Likewise.
4801         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4802         definition only if stdio.h has prepared it.
4803         Reported by Daniel P. Berrange <berrange@redhat.com>.
4804
4805 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4806
4807         gnulib-tool: Use readlink if it is available.
4808         * gnulib-tool (func_readlink): Choose function more appropriately.
4809
4810 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4811
4812         posixtm-tests: port to buggy compiler
4813         Problem reported by Simon Josefsson in
4814         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4815         * modules/posixtm-tests (Depends-on): Add stdint.
4816         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4817         Now of type int_least64_t, not int64_t, both because that's
4818         what INT64_C returns and because int_least64_t works even
4819         on 72-bit hosts.
4820         (T): Use INT64_C on constants outside the traditional int range,
4821         to work around compiler bug noted by Simon.
4822
4823         mktime: fix integer overflow in 'configure'-time test
4824         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4825         after integer overflow.  Problem reported by Rich Felker in
4826         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4827         Also, don't look for further instances of a bug if we've already
4828         found one instance; this helps 'configure' run faster.
4829
4830 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4831
4832         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4833         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4834         GetVersionEx correctly.
4835         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4836
4837 2012-06-20  Bruno Haible  <bruno@clisp.org>
4838
4839         fdopen: Allow implementations that don't reject invalid fd arguments.
4840         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4841         succeeds.
4842         Reported by Rich Felker <dalias@aerifal.cx>.
4843
4844 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4845
4846         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4847         bring in LIBINTL.
4848
4849 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4850
4851         init.sh: do not rely on autoupated PWD
4852         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4853         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4854         Although Nelson's bug was not necessarily fixed by this patch,
4855         it seems wise to make the change for safety.
4856         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4857         automagically after 'cd'; this is not reliable on older shells.
4858         (setup_): Fail if we cannot cd to temporary directory.
4859
4860 2012-06-19  Bruno Haible  <bruno@clisp.org>
4861
4862         stat, fstat: Avoid warnings on mingw64.
4863         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4864         redefining.
4865         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4866         Reported by Daniel P. Berrange <berrange@redhat.com>.
4867
4868 2012-06-19  Bruno Haible  <bruno@clisp.org>
4869
4870         stdioext: Add support for musl libc.
4871
4872         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4873         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4874
4875         * m4/fseterr.m4: New file.
4876         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4877         function exists.
4878         * modules/fseterr (Files): Add m4/fseterr.m4.
4879         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4880         __fseterr does not exist.
4881         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4882
4883         * lib/freadable.h: Update comment.
4884
4885         * lib/fwritable.h: Update comment.
4886
4887         * lib/freading.h: Update comment.
4888
4889         * lib/fwriting.h: Update comment.
4890
4891         * m4/freadahead.m4: New file.
4892         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4893         that function exists.
4894         * modules/freadahead (Files): Add m4/freadahead.m4.
4895         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4896         __freadahead does not exist.
4897         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4898
4899         * m4/freadptr.m4: New file.
4900         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4901         function exists.
4902         * modules/freadptr (Files): Add m4/freadptr.m4.
4903         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4904         __freadptr does not exist.
4905         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4906
4907         * m4/freadseek.m4: New file.
4908         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4909         exists.
4910         * modules/freadseek (Files): Add m4/freadseek.m4.
4911         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4912
4913         * lib/fpurge.c (fpurge): Update comment.
4914
4915         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4916
4917 2012-06-19  Bruno Haible  <bruno@clisp.org>
4918
4919         *printf-posix: Put more info into config.log.
4920         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4921         exit code into config.log.
4922
4923 2012-06-19  Bruno Haible  <bruno@clisp.org>
4924
4925         getopt-gnu: Fix exit code overflow in autoconf test.
4926         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4927         to keep them below < 128.
4928
4929 2012-06-17  Jim Meyering  <meyering@redhat.com>
4930
4931         maint.mk: fix typo in code to derive GPG key at release time
4932         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4933
4934 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4935
4936         regex: avoid warning when pointers are not long
4937         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4938         and uintptr_t, not long, for portability to hosts where pointers and
4939         long have different sizes.  Issue noted by Daniel P. Berrange in
4940         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4941         and fix suggested by Bruno Haible in
4942         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4943
4944 2012-06-17  Bruno Haible  <bruno@clisp.org>
4945
4946         dummy: Relicense into the public domain.
4947         * modules/dummy (License): Set to "public domain".
4948         Suggested by Reuben Thomas.
4949
4950 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4951
4952         announce-gen: VPATH issues
4953         * build-aux/announce-gen (--srcdir): New option, used to trim the
4954         $srcdir part of the path from $builddir to NEWS.
4955         * top/maint.mk (announcement): Adjust.
4956
4957 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4958
4959         gnu-web-doc-update: VPATH builds
4960         * build-aux/gnu-web-doc-update (--builddir): New option.
4961         Revamp the handling of options.
4962         Prefer $(...) to `...`.
4963         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4964         the template, and it is GNU mktemp specific.
4965         Prefer set -e to long series of &&.
4966         Restore the initial git branch, not "master".
4967         Properly initialize submodules (don't rely only on bootstrap).
4968         Do not reconfigure blindly, use config.status.
4969         * top/README-release: Update instructions for gnu-web-doc-update.
4970
4971 2012-06-11  Jim Meyering  <meyering@redhat.com>
4972
4973         maint.mk: revert most of the previous change re "all these"
4974         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4975         For rationale, see the discussion at
4976         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4977
4978 2012-06-10  Karl Berry  <karl@gnu.org>
4979
4980         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4981
4982         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4983
4984 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4985
4986         parse-duration: Relicense under LGPLv2+.
4987         * modules/parse-duration (License): Change to LGPLv2+.
4988
4989 2012-06-10  Jim Meyering  <meyering@redhat.com>
4990
4991         maint.mk: prohibit common grammar error: "all these"
4992         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4993         the list of prohibited word sequences.  It should be "all of these".
4994         * lib/tempname.c (__gen_tempname): Fix one of them.
4995
4996 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4997
4998         do-release-commit-and-tag: support VPATH builds
4999         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
5000         (noteworthy): Defined earlier to factor its value.
5001         (noteworthy_stub): New.
5002         Use it to factor.
5003         (help_version): Split into...
5004         (help, version): these.
5005         Adjust the option processing part.
5006         Support "--option=value" in addition to "--option value".
5007         (builddir): New.
5008         (--builddir): New option.
5009         * top/README-release: Document this.
5010         Reword slightly so that the reader cannot understand that he
5011         has to do these steps before calling do-release-commit-and-tag.
5012
5013 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
5014
5015         readme-release: also require announce-gen and maintainer-makefile
5016         * modules/readme-release (Depends-on): here.
5017         * modules/announce-gen, modules/do-release-commit-and-tag,
5018         modules/gnu-web-doc-update, modules/maintainer-makefile
5019         (Description): Point to readme-release.
5020
5021 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
5022
5023         maint.mk: fix VPATH issues.
5024         * top/maint.mk (news-check): GNU Make understand $< very well.
5025         (release-prep): NEWS is in $(srcdir).
5026
5027 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
5028
5029         readme-release: require the promoted modules.
5030         * modules/readme-release (Depends-on): Add
5031         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
5032         in this text.
5033
5034 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5035             Bruno Haible  <bruno@clisp.org>
5036
5037         error, strerror-override: Support mingw64 from Fedora 17.
5038         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
5039         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
5040         EINPROGRESS.
5041         * lib/strerror-override.h (strerror_override): Test it.
5042         * lib/strerror-override.c (strerror_override): Likewise.
5043         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
5044
5045 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5046             Bruno Haible  <bruno@clisp.org>
5047
5048         error, strerror-override: Support mingw64 from Fedora 17.
5049         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
5050         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
5051         * lib/strerror-override.h (strerror_override): Test it.
5052         * lib/strerror-override.c (strerror_override): Likewise.
5053
5054 2012-06-03  Bruno Haible  <bruno@clisp.org>
5055
5056         error, strerror-override: Support new errno values from POSIX:2008.
5057         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
5058         ENOTRECOVERABLE.
5059         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
5060         platforms.
5061         * lib/strerror-override.c (strerror_override): Conditionalize the
5062         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
5063         * lib/strerror-override.h (strerror_override): Declare also if
5064         GNULIB_defined_EOWNERDEAD is defined.
5065         * tests/test-errno.c (e130, e131): New variables.
5066         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
5067         ENOTRECOVERABLE.
5068         Reported by Paolo Bonzini.
5069
5070 2012-05-31  Jim Meyering  <meyering@redhat.com>
5071
5072         savewd: add missing dependency on sys_wait module
5073         * modules/savewd (Depends-on): Add sys_wait, needed at least
5074         for MSVC.  Report and suggested change by Michael Goffioul.
5075
5076 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5077
5078         system-quote-tests: port to CentOS 5
5079         Problem reported by Tom G. Christensen in
5080         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
5081         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
5082
5083 2012-05-29  Jim Meyering  <meyering@redhat.com>
5084
5085         maint: fix typos in comments and ChangeLog
5086         Culprits identified and fixed mostly automatically using these commands:
5087         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
5088         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
5089         using http://github.com/lyda/misspell-check
5090         * ChangeLog: Fix typos.
5091         * doc/solaris-versions: Likewise.
5092         * lib/regexec.c (re_search_stub): Likewise.
5093         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5094
5095 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
5096
5097         manywarnings: remove duplicate -Wmultichar entry
5098         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
5099         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
5100         so keep the entry marked as documented.
5101
5102 2012-05-27  Karl Berry  <karl@gnu.org>
5103
5104         * config/srclist.txt (mktime.c): remove last libc sync,
5105         perhaps just temporarily.
5106
5107 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
5108
5109         regex: don't assume uint64_t or uint32_t
5110         * lib/regcomp.c (init_word_char): Don't assume that the types
5111         uint64_t and uint32_t exist.  The C standard doesn't guarantee
5112         them, and on some 32-bit compilers there is no uint64_t.
5113         Problem reported by Gianluigi Tiesi in
5114         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
5115
5116 2012-05-25  Jim Meyering  <meyering@redhat.com>
5117
5118         maint.mk: add strncpy-prohibiting syntax-check rule
5119         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
5120
5121 2012-05-24  Jim Meyering  <meyering@redhat.com>
5122
5123         maint.mk: compute $(gpg_key_ID) more portably
5124         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
5125         That use of sed is not portable to some fringe systems.
5126         Reported by Paul Eggert in
5127         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
5128
5129 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5130
5131         mktime: sync from glibc
5132         * config/srclist.txt: Uncomment mktime.c.
5133         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
5134         First, indent with tabs, since glibc uses tabs and doesn't want to
5135         change and we'd rather be identical to glibc.  Also, two small
5136         coding changes:
5137         (isdst_differ): Use &&, not &, as && is the usual style.
5138         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
5139         for clarity.
5140
5141 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5142
5143         announce-gen: du -h is more portable than du --human
5144         * build-aux/announce-gen (sizes): Invoke du with -h instead
5145         of --human.  Accept leading white space in its output.
5146
5147 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5148
5149         announce-gen: Improve diagnostics.
5150         * build-aux/announce-gen: When parsing command line options,
5151         prefer "announce-gen: option --release-type requires an argument"
5152         to "Option release-type requires an argument".
5153
5154 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5155
5156         maint.mk: gpg_key_ID: use sed more portably
5157         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
5158         the closing brace.
5159         (refresh-po): Fuse two sed invocations into one.
5160
5161 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
5162
5163         gitlog-to-changelog: support the log message format used in Bison.
5164         * build-aux/gitlog-to-changelog: Support --strip-tab and
5165         --strip-cherry-picked.
5166
5167 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5168
5169         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
5170         the rest of the current time slice to another thread in the current
5171         process. So if the thread that feeds the file decscriptor we're
5172         polling is not in the current process, we get busy-waiting.
5173         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
5174         Patch from Theodore Leblond.
5175         * lib/select.c: Split polling out of the loop that sets the output
5176         fd_sets.  Check for zero result and loop if the wait timeout is
5177         infinite.
5178
5179 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5180
5181         select: Fix build error on IRIX 6.5.
5182         * lib/select.c: Include stddef.h for NULL.
5183
5184 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5185
5186         gc: fix libgcrypt detection on older machines.
5187         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
5188         copyright years because the file has been distributed every year
5189         since it was created.
5190
5191 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
5192
5193         crypto: fix bug in large buffer handling
5194         Problem reported by Serge Belyshev for glibc in
5195         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
5196         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
5197         * lib/md4.c (md4_process_block):
5198         * lib/md5.c (md5_process_block):
5199         * lib/sha1.c (sha1_process_block):
5200         * lib/sha256.c (sha256_process_block):
5201         Don't assume the buffer length is less than 2**32.
5202         * lib/sha512.c (sha512_process_block): Likewise.
5203         Here, the bug is present only in the rare case where the host does
5204         not support uint64_t or where size_t is wider than 64 bits.
5205         Use u64size to work around the problems.
5206         * lib/u64.h (u64size): New macro.
5207
5208 2012-05-15  Pádraig Brady  <P@draigBrady.com>
5209
5210         fsusage: fix block size returned on older Linux 2.6
5211
5212         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
5213         which is available since Linux 2.6.
5214         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
5215         when the member is available so it can be used as a fallback.
5216         * doc/posix-functions/statvfs.texi: Mention the hang issue
5217         on Linux < 2.6.36.
5218
5219 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5220
5221         bootstrap: suppress stderr chatter
5222         * build-aux/bootstrap (insert_sorted_if_absent, main program):
5223         Omit unnecessary chatter to stderr.  The main program chatter
5224         was there only inadvertantly.
5225
5226         bootstrap: .gitignore files created by autopoint, libtool
5227         I ran into this problem when bootstrapping the latest diffutils.
5228         After './bootstrap', 'git status' reported lots of untracked files
5229         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
5230         autopoint and do not need to be version-controlled.
5231         * build-aux/bootstrap: Put into .gitignore the files that
5232         autopoint and libtool create, by keeping track of files that exist
5233         after but not before these programs are run.
5234         (version_controlled_file): Move up.  2nd arg is now full file
5235         name, not base name; this is more convenient.  Put CVS at the end,
5236         as it's now somewhat deprecated.
5237
5238 2012-05-14  Jim Meyering  <meyering@redhat.com>
5239
5240         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
5241         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
5242         definition.  Reported by Bruno Haible.
5243
5244 2012-05-13  Bruno Haible  <bruno@clisp.org>
5245             Paul Eggert  <eggert@cs.ucla.edu>
5246
5247         binary-io: Define set_binary_mode function.
5248         * lib/binary-io.h (set_binary_mode): New function.
5249         (SET_BINARY): Define in terms of set_binary_mode.
5250         * modules/binary-io (configure.ac): Require AC_C_INLINE.
5251         * tests/test-binary-io.c (main): Accept an argument, and test either
5252         set_binary_mode or SET_BINARY depending on the argument.
5253         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
5254         argument. Clean up also t-bin-out0.tmp.
5255
5256 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
5257
5258         bootstrap: take advantage of POSIX shell features
5259
5260         The 'bootstrap' script offered by Gnulib script already uses POSIX
5261         shell features (like $((...)) arithmetic expansions) that are not
5262         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
5263         means that bootstrap must already be run using a proper POSIX shell,
5264         which will thus provide more features, like ${var#pattern} parameter
5265         expansion or inversion of a command exit status with '!'.  We can
5266         thus use these features to improve the clarity and the performances
5267         of the bootstrap script.
5268
5269         Suggested by Eric Blake.
5270
5271         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
5272         of sed/expr plus command substitutions, to save some forks.  While
5273         we are at it, prefer the POSIX $(...) form of command substitution,
5274         rather than the legacy form `...` (since the former is visually
5275         clearer and interacts better with quoting), and prefer the idiom:
5276           "if ! CMD; then ACTION ..."
5277         over the idiom:
5278           "if CMD; then :; else ACTION ..."
5279         which was required by legacy Bourne shells not supporting '!'.
5280
5281 2012-05-12  Bruno Haible  <bruno@clisp.org>
5282
5283         system-quote: Add more comments.
5284         * lib/system-quote.h: Add more comments about wilcards and limitations.
5285         Suggested by Eli Zaretskii <eliz@gnu.org>.
5286
5287         sh-quote, system-quote: Add comments about wildcards.
5288         * lib/sh-quote.h: Clarify what happens with wildcard characters.
5289         * lib/system-quote.h: Likewise.
5290         Reported by Eli Zaretskii <eliz@gnu.org>.
5291
5292 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5293
5294         fsusage: check for GNU/Linux statvfs problem dynamically
5295         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
5296         Define STAT_STATFS2_BSIZE too, since in this case the code now
5297         checks dynamically whether statvfs is reliable, falling back on
5298         Linux-style statfs otherwise.
5299         (statvfs_works): New function, for dynamically testing statvfs.
5300         (get_fs_usage) [STAT_STATVFS]: Use it.
5301         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
5302         statvfs on GNU/Linux hosts, since it's now done dynamically.
5303
5304 2012-05-10  Bruno Haible  <bruno@clisp.org>
5305
5306         system-quote, execute, spawn-pipe: Escape '?' on Windows.
5307         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
5308         '?' character.
5309         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
5310         * tests/test-system-quote-main.c (check_all): Check also strings like
5311         "??????????".
5312         Reported by Eli Zaretskii <eliz@gnu.org>.
5313
5314 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5315
5316         _Noreturn: port config.h to gcc -Wundef
5317         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
5318         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
5319         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
5320
5321 2012-05-10  Bruno Haible  <bruno@clisp.org>
5322
5323         system-quote: Refactor.
5324         * lib/system-quote.h (system_quote_copy): Fix comment.
5325         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
5326         New functions, extracted from system_quote_copy.
5327         (system_quote_length, system_quote_copy): Use these functions.
5328         Reported by Paul Eggert.
5329
5330 2012-05-08  Bruno Haible  <bruno@clisp.org>
5331
5332         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
5333         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
5334
5335 2012-05-08  Bruno Haible  <bruno@clisp.org>
5336
5337         Tests for module 'system-quote'.
5338         * modules/system-quote-tests: New file.
5339         * tests/test-system-quote.sh: New file.
5340         * tests/test-system-quote-main.c: New file.
5341         * tests/test-system-quote-child.c: New file.
5342
5343         New module 'system-quote'.
5344         * lib/system-quote.h: New file.
5345         * lib/system-quote.c: New file.
5346         * modules/system-quote: New file.
5347
5348 2012-05-08  Bruno Haible  <bruno@clisp.org>
5349
5350         sh-quote: Make C++ safe and allow multiple inclusion.
5351         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
5352         declarations in extern "C".
5353
5354 2012-05-08  Bruno Haible  <bruno@clisp.org>
5355
5356         sh-quote tests: Make tests stricter.
5357         * tests/test-sh-quote.c (check_one): Check the return value of
5358         shell_quote_copy.
5359         (main): Check a string with a CR character. Check a string that
5360         contains UCHAR_MAX.
5361
5362 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
5363
5364         warnings.m4: provide a means to specify the program to compile.
5365         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
5366         (gl_WARN_ADD): here.
5367         Use gl_AS_VAR_APPEND.
5368         Support an argument to specify the program to compile.
5369         (gl_WARN_ADD): Accept an argument to specify the program to compile.
5370         AC_SUBST the WARN_CFLAGS when they are used.
5371         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
5372         leave this to gl_WARN_ADD.
5373
5374 2012-05-08  Eric Blake  <eblake@redhat.com>
5375
5376         doc: recommendations on gettext version
5377         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
5378         choice between versions.
5379         * DEPENDENCIES (gettext): Cover both approaches.
5380
5381 2012-05-08  Jim Meyering  <meyering@redhat.com>
5382
5383         init.sh: explain why EXEEXT support uses aliases rather than functions
5384         * tests/init.sh: Add a comment.
5385
5386         init.sh: don't let bash aliases interfere with tests
5387         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
5388         is bash.  This avoids problems for those who alias standard commands to
5389         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
5390         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
5391
5392 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5393
5394         stdint: be more consistent with glibc, SunOS libc
5395         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
5396         (gl_int_fast16_t, gl_uint_fast16_t)
5397         (gl_int_fast32_t, gl_uint_fast32_t)
5398         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
5399         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
5400         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5401         Be consistent with glibc by default, and with SunOS 5.10 and later
5402         if __sun is defined.  This lessens the likelihood of clashes if
5403         code compiled for older hosts is combined with code compiled for
5404         newer ones.  Problem reported by Niels Möller in
5405         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
5406
5407 2012-05-07  Eric Blake  <eblake@redhat.com>
5408
5409         isatty: relax license to LGPLv2+
5410         * modules/isatty (License): Relax license.
5411
5412 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5413
5414         stat-size: comment fix
5415         * lib/stat-size.h: Remove obsolete comment about indenting.
5416
5417 2012-05-06  Bruno Haible  <bruno@clisp.org>
5418
5419         Tests for module 'sh-quote'.
5420         * modules/sh-quote-tests: New file.
5421         * tests/test-sh-quote.c: New file.
5422
5423 2012-05-06  Bruno Haible  <bruno@clisp.org>
5424
5425         sh-quote: Improve shell_quote_argv's signature.
5426         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
5427         * lib/sh-quote.c (shell_quote_argv): Likewise.
5428
5429 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5430
5431         stdint: document issues with int_fast8_t etc.
5432         * doc/posix-headers/stdint.texi (stdint.h): Say that other
5433         stdint.h substitutes may define these types differently.  See
5434         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
5435
5436 2012-05-05  Bruno Haible  <bruno@clisp.org>
5437
5438         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
5439         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5440         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
5441         or 'guessing no (mishandles large arguments)'.
5442
5443 2012-05-05  Bruno Haible  <bruno@clisp.org>
5444
5445         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
5446         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
5447         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5448         set gl_cv_func_link_follows_symlink to "guessing no".
5449
5450 2012-05-05  Bruno Haible  <bruno@clisp.org>
5451
5452         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
5453         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
5454         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
5455         "guessing no".
5456         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
5457
5458 2012-05-05  Bruno Haible  <bruno@clisp.org>
5459
5460         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
5461         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5462         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5463         set gl_cv_struct_dirent_d_ino to "guessing yes".
5464
5465 2012-05-05  Bruno Haible  <bruno@clisp.org>
5466
5467         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
5468         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
5469         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
5470         "guessing yes".
5471
5472 2012-05-05  Bruno Haible  <bruno@clisp.org>
5473
5474         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
5475         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5476         compiling to a glibc system, set gl_cv_func_signbit and
5477         gl_cv_func_signbit_gcc to "guessing yes".
5478
5479 2012-05-05  Bruno Haible  <bruno@clisp.org>
5480
5481         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
5482         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
5483         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
5484         to "guessing yes".
5485         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
5486         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
5487
5488 2012-05-05  Bruno Haible  <bruno@clisp.org>
5489
5490         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
5491         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
5492         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
5493         gl_cv_func_realpath_works to "guessing yes".
5494
5495 2012-05-05  Bruno Haible  <bruno@clisp.org>
5496
5497         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
5498         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5499         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
5500
5501 2012-05-04  Bruno Haible  <bruno@clisp.org>
5502
5503         Tweak last commit.
5504         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
5505         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5506
5507 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5508
5509         unistd_h: make it easier to avoid sys_types_h
5510         This is useful for Emacs, which has its own method of porting to
5511         Windows, and which therefore does not need the sys_types_h module.
5512         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5513         code moved here from gl_SYS_TYPES_H.
5514         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5515         using the code directly.
5516         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5517         gl_SYS_TYPES_H.
5518         * modules/sys_types (Files):
5519         * modules/unistd (Files): Add m4/off_t.m4.
5520
5521 2012-05-03  Bruno Haible  <bruno@clisp.org>
5522
5523         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5524         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5525         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5526         "guessing yes" or "guessing no".
5527         (gl_FUNC_LSTAT): Update.
5528         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5529         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5530         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5531
5532 2012-05-03  Bruno Haible  <bruno@clisp.org>
5533
5534         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5535         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5536         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5537         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5538         cross-compiling, choose the first alternative on glibc systems.
5539         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5540
5541 2012-05-03  Bruno Haible  <bruno@clisp.org>
5542
5543         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5544         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5545         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5546
5547 2012-05-03  Bruno Haible  <bruno@clisp.org>
5548
5549         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5550         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5551
5552 2012-05-03  Bruno Haible  <bruno@clisp.org>
5553
5554         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5555         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5556         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5557         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5558         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5559         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5560         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5561         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5562         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5563         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5564         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5565         gl_cv_func_chown_ctime_works to "guessing yes".
5566         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5567         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5568         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5569         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5570         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5572         compiling to glibc systems, set gl_cv_func_open_directory_works to
5573         "guessing yes".
5574         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5575         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5576         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5577         "guessing yes".
5578         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5579         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5580         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5581         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5582         "guessing yes".
5583         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5584         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5585         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5586         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5587         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5588         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5589         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5590         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5591         "guessing yes".
5592         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5593         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5594         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5595         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5596         "guessing yes".
5597         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5598         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5599         "guessing yes".
5600         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5601         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5602         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5603         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5604         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5605         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5606         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5607         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5608         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5609         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5610         "guessing yes".
5611         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5612         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5613         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5614         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5615         "guessing yes".
5616         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5617         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5618         "guessing yes".
5619         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5620         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5621         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5622         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5623         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5624         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5625         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5626         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5627         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5628         "guessing yes".
5629         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5630         compiling to glibc systems, set gl_cv_func_mknod_works to
5631         "guessing yes".
5632         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5633         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5634         "guessing yes".
5635         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5636         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5637         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5638         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5639         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5640         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5641         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5642         compiling to glibc systems, set gl_cv_func_svid_putenv to
5643         "guessing yes".
5644         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5645         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5646         "guessing yes".
5647         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5648         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5649         "guessing yes".
5650         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5651         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5652         to "guessing yes".
5653         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5654         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5655         to "guessing yes".
5656         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5657         compiling to glibc systems, set gl_cv_func_rmdir_works to
5658         "guessing yes".
5659         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5660         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5661         gl_cv_func_unlink_parent_fails to "guessing yes".
5662         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5663         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5664         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5665         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5666         gl_cv_func_rename_dest_works to "guessing yes".
5667         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5668         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5669         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5670         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5671         "guessing yes".
5672         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5673         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5674         "guessing yes".
5675         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5676         compiling to glibc systems, set gl_cv_func_setenv_works to
5677         "guessing yes".
5678         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5679         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5680         "guessing yes".
5681         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5682         compiling to glibc systems, set gl_cv_func_sleep_works to
5683         "guessing yes".
5684         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5685         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5686         "guessing yes".
5687         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5688         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5689         "guessing yes".
5690         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5691         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5692         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5693         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5694         "guessing yes".
5695         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5696         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5697         "guessing yes".
5698         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5699         compiling to glibc systems, set gl_cv_func_usleep_works to
5700         "guessing yes".
5701         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5702         compiling to glibc systems, set gl_cv_func_futimesat_works to
5703         "guessing yes".
5704
5705 2012-05-03  Bruno Haible  <bruno@clisp.org>
5706
5707         Say "guessing yes" or "guessing no" when cross-compiling.
5708         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5709         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5710         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5711         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5712         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5713         am_cv_func_working_getline to "guessing yes" or "guessing no".
5714         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5715         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5716         (gl_FUNC_MEMMEM): When cross-compiling, set
5717         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5718         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5719         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5720         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5721         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5722         "guessing no".
5723         (gl_FUNC_STRCASESTR): When cross-compiling, set
5724         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5725         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5726         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5727         (gl_FUNC_STRSTR): When cross-compiling, set
5728         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5729         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5730         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5731         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5732         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5733
5734 2012-05-01  Bruno Haible  <bruno@clisp.org>
5735
5736         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5737         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5738         * build-aux/reloc-ldflags: Likewise.
5739         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5740
5741 2012-05-01  Bruno Haible  <bruno@clisp.org>
5742
5743         gnulib-tool: Remove transitional code.
5744         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5745         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5746
5747 2012-05-01  Bruno Haible  <bruno@clisp.org>
5748
5749         getcwd: Fix misindentation.
5750         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5751
5752 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5753
5754         exclude: process exclude and include directives in order
5755         This restores the pre-2009 behavior, and is part of a fix of a
5756         grep bug reported by Quentin Arce in
5757         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5758         * lib/exclude.c (struct exclude): Remove 'tail' member.
5759         (new_exclude_segment): Prepend the new segment instead of appending.
5760         Return void, since that's now more convenient.
5761         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5762         (file_name_matches): Renamed from excluded_file_name_p.
5763         (file_pattern_matches, file_name_matches):
5764         Return true if the pattern matches, not if it excludes.
5765         All callers changed.
5766         (excluded_file_name): Process the list in reverse order;
5767         since the list is now reversed this restores the pre-2009 behavior.
5768         (add_exclude): Adjust to new reversed-order list.  Use local var
5769         rather than macro, for clarity.
5770         * tests/test-exclude7.sh: Adjust to corrected behavior.
5771
5772         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5773         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5774         it's not possible here.  Handle the case of \ at end of pattern
5775         without dumping core.
5776         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5777
5778         _Noreturn: future-proof non-GNU and non-MSVC compilers
5779         * build-aux/snippet/_Noreturn.h (_Noreturn):
5780         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5781         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5782         C11 or later.  This is more likely to work with random future C
5783         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5784         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5785
5786         exclude: handle wildcards with FNM_EXTMATCH
5787         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5788         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5789         comment that "has wildcards" really means "has or may have
5790         wildcards".  Simplify by avoiding the need to call strcspn.
5791
5792 2012-04-29  Bruno Haible  <bruno@clisp.org>
5793
5794         gnulib-tool: Fix list of authors.
5795         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5796
5797 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5798
5799         bootstrap: support Automake-NG in $buildreq
5800         * bootstrap (check_versions): Handle automake and aclocal from
5801         Automake-NG specially.  They can be specified as respectively
5802         the "automake-ng" and "aclocal-ng" requirements.
5803
5804 2012-04-25  Eric Blake  <eblake@redhat.com>
5805
5806         bootstrap: only force latest Makefile.in.in for gettext module
5807         * build-aux/bootstrap (with_gettext): Only install latest
5808         Makefile.in.in for projects requesting bleeding edge gettext.
5809
5810 2012-04-22  Bruno Haible  <bruno@clisp.org>
5811
5812         doc: Mention reason for replacement on glibc/Linux systems.
5813         * doc/posix-functions/dprintf.texi: Mention the problem with special
5814         'long double' values.
5815         * doc/posix-functions/fprintf.texi: Likewise.
5816         * doc/posix-functions/printf.texi: Likewise.
5817         * doc/posix-functions/snprintf.texi: Likewise.
5818         * doc/posix-functions/sprintf.texi: Likewise.
5819         * doc/posix-functions/vdprintf.texi: Likewise.
5820         * doc/posix-functions/vfprintf.texi: Likewise.
5821         * doc/posix-functions/vprintf.texi: Likewise.
5822         * doc/posix-functions/vsnprintf.texi: Likewise.
5823         * doc/posix-functions/vsprintf.texi: Likewise.
5824         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5825         platforms with F_DUPFD_CLOEXEC problems.
5826         * doc/posix-functions/glob.texi: Mention which platforms are affected
5827         by the problem with symbolic links.
5828         * doc/posix-functions/linkat.texi: Mention the problem with
5829         AT_SYMLINK_FOLLOW on Linux.
5830
5831 2012-04-22  Bruno Haible  <bruno@clisp.org>
5832
5833         pwrite: Don't replace on all platforms.
5834         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5835
5836 2012-04-22  Bruno Haible  <bruno@clisp.org>
5837
5838         rint* tests: Avoid gcc warnings.
5839         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5840         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5841         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5842
5843 2012-04-21  Bruno Haible  <bruno@clisp.org>
5844
5845         users.txt: Update.
5846         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5847         switched from CVS to git, bzr, or svn.
5848
5849 2012-04-21  Bruno Haible  <bruno@clisp.org>
5850
5851         Large File Support for native Windows platforms.
5852
5853         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5854         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5855
5856         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5857         type.
5858         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5859         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5860         * doc/posix-headers/sys_types.texi: Mention the effect of the
5861         'largefile' module.
5862
5863         * lib/fcntl.in.h: Add comments about off_t.
5864         * modules/fcntl-h (Depends-on): Add sys_types.
5865
5866         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5867         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5868         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5869         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5870         * modules/unistd (Depends-on): Add sys_types.
5871         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5872
5873         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5874         instead of lseek.
5875         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5876         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5877         * modules/lseek (Depends-on): Add sys_types.
5878
5879         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5880         msvc-nothrow.h.
5881         (SetFileSize): New function.
5882         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5883         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5884         if Large File Support is requested.
5885         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5886         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5887
5888         * lib/stdio.in.h: Add comments about off_t.
5889         * modules/stdio (Depends-on): Add sys_types.
5890
5891         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5892         instead of ftello.
5893         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5894         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5895         (gl_PREREQ_FTELLO): New macro.
5896         * modules/ftello (Depends-on): Add sys_types.
5897         (configure.ac): Incoke gl_PREREQ_FTELLO.
5898
5899         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5900         instead of fseeko.
5901         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5902         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5903         (gl_PREREQ_FSEEKO): New macro.
5904         * modules/fseeko (Depends-on): Add sys_types.
5905         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5906
5907         * lib/sys_stat.in.h: Add comments about off_t.
5908         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5909         64-bit integer for st_size in 'struct stat'.
5910         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5911         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5912         * modules/sys_stat (Depends-on): Add sys_types.
5913         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5914
5915         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5916         instead of stat or _stat.
5917
5918         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5919         'struct _stati64' instead of fstat and 'struct stat'.
5920         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5921         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5922
5923         Reported by Ray Satiro <raysatiro@yahoo.com>.
5924
5925 2012-04-19  Eric Blake  <eblake@redhat.com>
5926
5927         bootstrap: accommodate older libtool
5928         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5929         Reported by Daniel P. Berrange.
5930
5931 2012-04-19  Jim Meyering  <meyering@redhat.com>
5932
5933         announce-gen: avoid failure due to lack of Digest::SHA1
5934         Even with the preferred Digest::SHA available, this script
5935         would fail when the backup module, Digest::SHA1, was not installed.
5936         * build-aux/announce-gen: Quote the conditional use of "use".
5937         Reported by Reuben Thomas in:
5938         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5939
5940         bootstrap: don't let a user's CDPATH setting affect this script
5941         When CDPATH is set, cd will sometimes generate output.
5942         When "cd" is run in a subshell whose output matters, that
5943         surprising-to-some output can cause malfunction.
5944         Unsetting CDPATH turns off this shell "feature."
5945         * build-aux/bootstrap (CDPATH): Unset.
5946         Reported by Reuben Thomas in:
5947         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5948         and inspired by his patch here:
5949         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5950
5951 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5952         and Jim Meyering  <meyering@redhat.com>
5953
5954         maint.mk: catch "see @xref{}" and similar
5955         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5956         prohibit "See also @xref{", "Also see @pxref{", and similar.
5957
5958 2012-04-16  Jim Meyering  <meyering@redhat.com>
5959
5960         bootstrap: really use gnulib's po/Makefile.in.in
5961         * build-aux/bootstrap: Correct the source file name in previous change.
5962         Reported by Akim Demaille.
5963
5964         configmake: correct minor inconsistency in Makefile rule
5965         * modules/configmake (Makefile.am): All other rules like this one
5966         run the final "mv -f ..." in the same backslash-continued command
5967         as the one that does everything else.  This one put the mv -f ...
5968         command on a separate, non-backslash-continued line.
5969         Make it like the others.
5970
5971         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5972         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5973         the one from gettext.  Reported by Akim Demaille.
5974
5975 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5976
5977         Fix recursion of install-* into po directories.
5978         Bison's install-pdf bug reported by Hans Aberg at
5979         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5980         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5981         (install-info, install-pdf, install-ps): New targets.
5982
5983 2012-04-16  Jim Meyering  <meyering@redhat.com>
5984
5985         maint: avoid spurious "make sc_maint" failure
5986         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5987         exempt all *.class file names, for lib/javaversion.class.
5988
5989 2012-04-15  Bruno Haible  <bruno@clisp.org>
5990
5991         lseek: Make configure test independent of environment.
5992         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5993         Windows, we know that lseek() on pipes is broken; skip the runtime
5994         test.
5995
5996 2012-04-14  Bruno Haible  <bruno@clisp.org>
5997
5998         stat: Bypass buggy override in mingw64.
5999         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
6000         * lib/stat.c (stat) [mingw64]: Define to _stat.
6001         * doc/posix-functions/stat.texi: Mention mingw64 bug.
6002
6003 2012-04-14  Bruno Haible  <bruno@clisp.org>
6004
6005         pathmax: Fix compilation error on MSVC 9.
6006         * modules/pathmax (Depends-on): Add unistd.
6007
6008 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
6009
6010         README: document pointer comparison assumption
6011         * README (Portability guidelines): Document assumption about
6012         pointer comparisons, in response to a recent bug-gnulib comment by
6013         Jeffrey Kegler.
6014
6015 2012-04-12  Bruno Haible  <bruno@clisp.org>
6016
6017         Tests for module 'getrusage'.
6018         * modules/getrusage-tests: New file.
6019         * tests/test-getrusage.c: New file.
6020
6021         New module 'getrusage'.
6022         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
6023         warn-on-use.h.
6024         (getrusage): New declaration.
6025         * lib/getrusage.c: New file.
6026         * m4/getrusage.m4: New file.
6027         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
6028         is declared.
6029         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
6030         HAVE_GETRUSAGE.
6031         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
6032         snippet/c++defs, snippet/warn-on-use.
6033         (Makefile.am): Update generation of sys/resource.h. Substitute
6034         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
6035         * modules/getrusage: New file.
6036         * doc/posix-functions/getrusage.texi: Mention the new module.
6037
6038 2012-04-12  Bruno Haible  <bruno@clisp.org>
6039
6040         Tests for module 'sys_resource'.
6041         * modules/sys_resource-tests: New file.
6042         * tests/test-sys_resource.c: New file.
6043
6044         New module 'sys_resource'.
6045         * lib/sys_resource.in.h: New file.
6046         * m4/sys_resource_h.m4: New file.
6047         * modules/sys_resource: New file.
6048         * doc/posix-headers/sys_resource.texi: Mention the new module.
6049
6050 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
6051
6052         ioctl: Fix compilation error on mingw.
6053         * lib/ioctl.c: Include <windows.h>.
6054         Also reported by Ray Satiro <raysatiro@yahoo.com>.
6055
6056 2012-04-04  Jim Meyering  <meyering@redhat.com>
6057
6058         regex: correct #pragma guard expression
6059         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
6060         not 4.3.  Correct its cpp guard expression.
6061
6062 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
6063
6064         regex: remove unnecessary type punning
6065         Problem reported by Vladimir Serbinenko in
6066         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
6067         * lib/regex.h (struct re_pattern_buffer): Change the type of
6068         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
6069         Fix comment to match code.
6070         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
6071         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
6072         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
6073         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
6074         (set_regs):
6075         Omit no-longer-necessary casts.
6076
6077 2012-04-03  Bruno Haible  <bruno@clisp.org>
6078
6079         Tests for module 'ilogbl'.
6080         * modules/ilogbl-tests: New file.
6081         * tests/test-ilogbl.c: New file.
6082
6083         New module 'ilogbl'.
6084         * lib/math.in.h (ilogbl): New declaration.
6085         * lib/ilogbl.c: New file.
6086         * m4/ilogbl.m4: New file.
6087         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
6088         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
6089         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
6090         Split sed invocation, to avoid the limit of 100 substitutions of
6091         HP-UX 'sed'.
6092         * modules/ilogbl: New file.
6093         * tests/test-math-c++.cc: Check the declaration of ilogbl.
6094         * doc/posix-functions/ilogbl.texi: Mention the new module.
6095
6096 2012-04-03  Bruno Haible  <bruno@clisp.org>
6097
6098         Tests for module 'ilogbf'.
6099         * modules/ilogbf-tests: New file.
6100         * tests/test-ilogbf.c: New file.
6101
6102         New module 'ilogbf'.
6103         * lib/math.in.h (ilogbf): New declaration.
6104         * lib/ilogbf.c: New file.
6105         * m4/ilogbf.m4: New file.
6106         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
6107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
6108         REPLACE_ILOGBF.
6109         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
6110         REPLACE_ILOGBF.
6111         * modules/ilogbf: New file.
6112         * tests/test-math-c++.cc: Check the declaration of ilogbf.
6113         * doc/posix-functions/ilogbf.texi: Mention the new module.
6114
6115 2012-04-03  Bruno Haible  <bruno@clisp.org>
6116
6117         Tests for module 'ilogb'.
6118         * modules/ilogb-tests: New file.
6119         * tests/test-ilogb.c: New file.
6120         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
6121         tests/test-logb-ieee.h.
6122
6123         New module 'ilogb'.
6124         * lib/math.in.h (ilogb): New declaration.
6125         * lib/ilogb.c: New file.
6126         * m4/ilogb.m4: New file.
6127         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
6128         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
6129         REPLACE_ILOGB.
6130         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
6131         REPLACE_ILOGB.
6132         * modules/ilogb: New file.
6133         * tests/test-math-c++.cc: Check the declaration of ilogb.
6134         * doc/posix-functions/ilogb.texi: Mention the new module.
6135
6136 2012-04-03  Bruno Haible  <bruno@clisp.org>
6137
6138         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
6139         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
6140         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
6141         (main): Check their values.
6142         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
6143         problem.
6144
6145 2012-04-03  Bruno Haible  <bruno@clisp.org>
6146
6147         Tests for module 'logbl-ieee'.
6148         * modules/logbl-ieee-tests: New file.
6149         * tests/test-logbl-ieee.c: New file.
6150
6151         New module 'logbl-ieee'.
6152         * modules/logbl-ieee: New file.
6153
6154         Tests for module 'logb-ieee'.
6155         * modules/logb-ieee-tests: New file.
6156         * tests/test-logb-ieee.c: New file.
6157
6158         New module 'logb-ieee'.
6159         * modules/logb-ieee: New file.
6160
6161         Tests for module 'logbf-ieee'.
6162         * modules/logbf-ieee-tests: New file.
6163         * tests/test-logbf-ieee.c: New file.
6164         * tests/test-logb-ieee.h: New file.
6165
6166         New module 'logbf-ieee'.
6167         * modules/logbf-ieee: New file.
6168
6169 2012-04-03  Bruno Haible  <bruno@clisp.org>
6170
6171         Tests for module 'logbl'.
6172         * modules/logbl-tests: New file.
6173         * tests/test-logbl.c: New file.
6174
6175         New module 'logbl'.
6176         * lib/math.in.h (logbl): New declaration.
6177         * lib/logbl.c: New file.
6178         * m4/logbl.m4: New file.
6179         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
6180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
6181         REPLACE_LOGBL.
6182         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
6183         REPLACE_LOGBL.
6184         * modules/logbl: New file.
6185         * tests/test-math-c++.cc: Check the declaration of logbl.
6186         * doc/posix-functions/logbl.texi: Mention the new module.
6187
6188 2012-04-02  Bruno Haible  <bruno@clisp.org>
6189
6190         Tests for module 'logbf'.
6191         * modules/logbf-tests: New file.
6192         * tests/test-logbf.c: New file.
6193
6194         New module 'logbf'.
6195         * lib/math.in.h (logbf): New declaration.
6196         * lib/logbf.c: New file.
6197         * m4/logbf.m4: New file.
6198         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
6199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
6200         REPLACE_LOGBF.
6201         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
6202         REPLACE_LOGBF.
6203         * modules/logbf: New file.
6204         * tests/test-math-c++.cc: Check the declaration of logbf.
6205         * doc/posix-functions/logbf.texi: Mention the new module.
6206
6207 2012-04-02  Bruno Haible  <bruno@clisp.org>
6208
6209         logb tests: More tests.
6210         * tests/test-logb.h: New file, based on tests/test-logb.c and
6211         tests/test-frexp.h.
6212         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
6213         (main): Just invoke test_function.
6214         * modules/logb-tests (Files): Add tests/test-logb.h,
6215         tests/minus-zero.h, tests/randomd.c.
6216         (Makefile.am): Add randomd.c to test_logb_SOURCES.
6217
6218         logb: Provide replacement and workarounds.
6219         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
6220         is 1.
6221         * lib/logb.c: New file.
6222         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
6223         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
6224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
6225         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
6226         * modules/logb (Files): Add lib/logb.c.
6227         (Depends-on): Add isfinite, frexp, isnand.
6228         (configure.ac): Compile the replacement code logb.c if needed.
6229         * tests/test-math-c++.cc: Check the declaration of logb.
6230         * doc/posix-functions/logb.texi: Mention the replacement and the bug
6231         with subnormal numbers.
6232
6233 2012-04-02  Bruno Haible  <bruno@clisp.org>
6234
6235         log10* tests: Speed up.
6236         * tests/test-log10.h (test_function): Reduce amount of random numbers
6237         to test.
6238
6239 2012-04-01  Bruno Haible  <bruno@clisp.org>
6240
6241         logf-ieee: Fix test whether logf works.
6242         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
6243
6244 2012-04-01  Bruno Haible  <bruno@clisp.org>
6245
6246         log10l: Work around log10l-ieee test failure on IRIX 6.5.
6247         * lib/log10l.c: Include <float.h>
6248         (log10l): On IRIX, normalize the +Infinity value.
6249         * modules/log10l (Depends-on): Add 'float'.
6250         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
6251         +Infinity.
6252
6253         log10f-ieee: Work around test failure on NetBSD 5.1.
6254         * m4/log10f-ieee.m4: New file.
6255         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
6256         test whether log10f works with a negative argument. Replace it if not.
6257         * lib/log10f.c (log10f): For negative arguments, return NaN.
6258         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
6259         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
6260         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
6261
6262         log10f-ieee: Work around test failure on Solaris 9.
6263         * modules/log10f-ieee (Depends-on): Add log10-ieee.
6264         (configure.ac): Require gl_FUNC_LOG10F.
6265
6266         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6267         * m4/log10-ieee.m4: New file.
6268         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
6269         whether log10 works with a negative argument. Replace it if not.
6270         * lib/log10.c (log10): For negative arguments, return NaN.
6271         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
6272         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
6273         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
6274
6275         Tests for module 'log10l-ieee'.
6276         * modules/log10l-ieee-tests: New file.
6277         * tests/test-log10l-ieee.c: New file.
6278
6279         New module 'log10l-ieee'.
6280         * modules/log10l-ieee: New file.
6281
6282         Tests for module 'log10-ieee'.
6283         * modules/log10-ieee-tests: New file.
6284         * tests/test-log10-ieee.c: New file.
6285
6286         New module 'log10-ieee'.
6287         * modules/log10-ieee: New file.
6288
6289         Tests for module 'log10f-ieee'.
6290         * modules/log10f-ieee-tests: New file.
6291         * tests/test-log10f-ieee.c: New file.
6292         * tests/test-log10-ieee.h: New file.
6293
6294         New module 'log10f-ieee'.
6295         * modules/log10f-ieee: New file.
6296
6297 2012-04-01  Bruno Haible  <bruno@clisp.org>
6298
6299         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
6300         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
6301         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
6302         workaround.
6303         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
6304         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
6305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
6306         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
6307         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
6308         (Depends-on): Update conditions.
6309         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
6310         IRIX 6.5, OSF/1 5.1 problems.
6311
6312 2012-04-01  Bruno Haible  <bruno@clisp.org>
6313
6314         log10f: Work around OSF/1 5.1 bug.
6315         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
6316         * lib/log10f.c (log10f): If logf exists, use it and provide just the
6317         workaround.
6318         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
6319         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
6320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
6321         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
6322         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
6323         (Depends-on): Update conditions.
6324         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
6325
6326 2012-04-01  Bruno Haible  <bruno@clisp.org>
6327
6328         log10: Work around OSF/1 5.1 bug.
6329         * lib/math.in.h (log10): New declaration.
6330         * lib/log10.c: New file.
6331         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
6332         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
6333         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
6334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
6335         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
6336         * modules/log10 (Files): Add lib/log10.c.
6337         (Depends-on): Add math.
6338         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
6339         * tests/test-math-c++.cc: Check the declaration of log10.
6340         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
6341
6342 2012-03-31  Bruno Haible  <bruno@clisp.org>
6343
6344         log10l tests: More tests.
6345         * modules/log10l-tests (Files): Add tests/test-log10l.h,
6346         tests/minus-zero.h, tests/randoml.c.
6347         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
6348         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
6349         (main): Invoke test_function.
6350
6351         log10f tests: More tests.
6352         * modules/log10f-tests (Files): Add tests/test-log10.h,
6353         tests/minus-zero.h, tests/randomf.c.
6354         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
6355         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
6356         (main): Invoke test_function.
6357
6358         log10 tests: More tests.
6359         * tests/test-log10.h: New file.
6360         * modules/log10-tests (Files): Add tests/test-log10.h,
6361         tests/minus-zero.h, tests/randomd.c.
6362         (Makefile.am): Add randomd.c to test_log10_SOURCES.
6363         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
6364         (main): Invoke test_function.
6365
6366 2012-03-31  Simon Josefsson  <simon@josefsson.org>
6367
6368         fflush: Fix syntax error.
6369         * lib/fflush.c: Include unused-parameter.h, needed for
6370         _GL_UNUSED_PARAMETER.
6371         * modules/fflush (Depends-on): Add snippet/unused-parameter.
6372
6373 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6374
6375         regex: pacify GCC when compiling GRUB
6376         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
6377         a diagnostic.  Reported by Vladimir Serbinenko in
6378         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
6379
6380 2012-03-29  Eric Blake  <eblake@redhat.com>
6381
6382         stdio: don't assume gets any more
6383         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
6384         support.
6385         * modules/stdio (Makefile.am): Likewise.
6386         * lib/stdio-read.c (gets): Likewise.
6387         * tests/test-stdio-c++.cc: Likewise.
6388         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
6389         * lib/stdio.in.h (gets): Make warning occur in more places.
6390         * doc/posix-functions/gets.texi (gets): Update documentation.
6391         Reported by Christer Solskogen.
6392
6393         maint.mk: fix syntax checks without exclusions
6394         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
6395         Reported by Daniel P. Berrange.
6396
6397         strerror_r: avoid compiler warning
6398         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
6399         level.
6400
6401         fflush: avoid compiler warning
6402         * lib/fflush.c (update_fpos_cache): Mark variables that are
6403         potentially unused.
6404
6405 2012-03-25  Bruno Haible  <bruno@clisp.org>
6406
6407         Tests for module 'localeconv'.
6408         * modules/localeconv-tests: New file.
6409         * tests/test-localeconv.c: New file.
6410
6411         New module 'localeconv'.
6412         * lib/locale.in.h (localeconv): New declaration.
6413         * lib/localeconv.c: New file.
6414         * m4/localeconv.m4: New file.
6415         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
6416         REPLACE_LOCALECONV.
6417         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
6418         REPLACE_LOCALECONV.
6419         * modules/localeconv: New file.
6420         * modules/nl_langinfo (Depends-on): Add localeconv.
6421         * modules/human (Depends-on): Likewise.
6422         * doc/posix-functions/localeconv.texi: Mention the new module.
6423
6424 2012-03-25  Bruno Haible  <bruno@clisp.org>
6425
6426         locale: Provide a complete 'struct lconv'.
6427         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6428         'struct lconv' does not contain int_p_cs_precedes.
6429         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6430         * doc/posix-headers/locale.texi: Update.
6431
6432         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
6433         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
6434         * doc/posix-headers/locale.texi: Update.
6435
6436         locale: Provide a working 'struct lconv'.
6437         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
6438         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6439         'struct lconv' does not even contain decimal_point.
6440         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
6441         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
6442         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6443         * doc/posix-headers/locale.texi: Mention the problems with
6444         'struct lconv'.
6445         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6446
6447 2012-03-24  Bruno Haible  <bruno@clisp.org>
6448
6449         Enable common subexpression optimization in GCC.
6450         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
6451         macros.
6452         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
6453         GCC attribute 'const'.
6454         (uc_locale_language): Declare with GCC attribute 'pure'.
6455         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
6456         with GCC attribute 'const'.
6457         * lib/unictype.in.h (uc_is_general_category_withtable,
6458         uc_combining_class, uc_combining_class_name,
6459         uc_combining_class_long_name, uc_bidi_class_name,
6460         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
6461         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
6462         uc_decimal_value, uc_digit_value, uc_numeric_value,
6463         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
6464         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
6465         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
6466         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
6467         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
6468         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
6469         Declare with GCC attribute 'const'.
6470         (uc_general_category_name, uc_general_category_long_name,
6471         uc_general_category_byname, uc_general_category,
6472         uc_is_general_category, uc_combining_class_byname,
6473         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
6474         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
6475         Declare with GCC attribute 'pure'.
6476         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
6477         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
6478         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
6479         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
6480         with GCC attribute 'pure'.
6481         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
6482         'const'.
6483         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
6484         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
6485         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
6486         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
6487         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
6488         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
6489         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
6490         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
6491         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
6492         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
6493         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
6494         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
6495         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
6496         GCC attribute 'pure'.
6497         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
6498         'const'.
6499         * lib/uniwidth.in.h (uc_width): Simplify declaration.
6500         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
6501         u32_strwidth): Declare with GCC attribute 'pure'.
6502
6503         Enable common subexpression optimization in GCC.
6504         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6505         (alphasort): Declare with GCC attribute 'pure'.
6506         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6507         (atoll): Declare with GCC attribute 'pure'.
6508         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6509         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6510         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6511         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6512         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6513         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6514         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6515
6516 2012-03-24  Bruno Haible  <bruno@clisp.org>
6517
6518         gnulib-tool: Avoid unintended error output from 'cmp'.
6519         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6520         "cmp -s", not "cmp > /dev/null".
6521
6522 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6523
6524         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6525
6526         It's not just Automake versions < 1.9b that creates an empty
6527         pkgdatadir at installation time if pkgdata_DATA is specified
6528         to empty; modern automake versions do this as well, at least
6529         until automake 1.11.4 (not yet released at the moment of writing,
6530         but soon to appear).  That behaviour was generally considered a
6531         feature rather than a bug, at least until this discussion:
6532         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6533
6534         See also automake bugs #10997 and #11030.
6535
6536         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6537         reference to relevant automake bug numbers.
6538         (func_emit_tests_Makefile_am): Likewise.
6539
6540 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6541
6542         announce-gen: use Digest::SHA when possible
6543         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6544         back to Digest::SHA1 if necessary.
6545
6546 2012-03-20  Jim Meyering  <meyering@redhat.com>
6547
6548         tests: avoid gcc warnings about argv vs. const initializers
6549         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6550         warnings about discarding 'const' qualifier from pointer target type.
6551         * tests/test-posix_spawn2.c (main): Likewise.
6552
6553 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6554
6555         README-release: simplify slightly
6556         * top/README-release: Run "git checkout master" only once.
6557
6558 2012-03-15  Mark Wielaard  <mark@klomp.org>
6559
6560         git-merge-changelog: add specific example on how to use with hg.
6561         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6562
6563 2012-03-18  Mark Wielaard  <mark@klomp.org>
6564
6565         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6566
6567 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6568
6569         git-version-gen: don't let "prefix" envvar cause trouble
6570         * build-aux/git-version-gen (prefix): Initialize properly,
6571         so as not to use a value specified via the environment.
6572         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6573
6574 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6575
6576         regex: diagnose too-large repeat counts in EREs
6577         Previously, the code did not diagnose the too-large repeat count
6578         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6579         as if it were 'b\{1000000000}', which is unexpected.
6580         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6581         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6582         is a reasonable one for this problem.  Another option would be to
6583         create a new REG_OVERFLOW error for repeat counts that are too large.
6584         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6585         count is too large, so that the caller can distinguish the two cases.
6586         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6587         "Too large" return code, and that repeat counts are one example of this.
6588
6589 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6590
6591         doc: some glibc x32 integer width issues
6592         * doc/posix-headers/sys_types.texi (sys/types.h):
6593         * doc/posix-headers/time.texi (time.h):
6594         Mention that glibc x32 does not conform to POSIX in a couple of
6595         areas related to integer widths.
6596
6597 2012-03-15  Bruno Haible  <bruno@clisp.org>
6598
6599         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6600         * lib/fma.c (VOLATILE): New macro.
6601         (FUNC): Use it to work around a GCC compiler bug.
6602
6603 2012-03-13  Bruno Haible  <bruno@clisp.org>
6604
6605         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6606         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6607         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6608         REPLACE_HYPOTL to 1.
6609         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6610
6611 2012-03-13  Bruno Haible  <bruno@clisp.org>
6612
6613         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6614         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6615         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6616         REPLACE_REMAINDERL to 1.
6617         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6618         bug.
6619
6620 2012-03-13  Bruno Haible  <bruno@clisp.org>
6621
6622         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6623         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6624         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6625         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6626         too big rounding errors.
6627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6628         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6629         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6630         (Depends-on): Update conditions.
6631         * tests/test-sqrtl.c (my_ldexpl): New function.
6632         (main): Add test of a particular value.
6633         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6634
6635 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6636
6637         doc: Update timer_* platform portability notes.
6638         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6639         that always return ENOSYS.
6640         * doc/posix-functions/timer_delete.texi: Likewise.
6641         * doc/posix-functions/timer_gettime.texi: Likewise.
6642         * doc/posix-functions/timer_settime.texi: Likewise.
6643
6644 2012-03-13  Bruno Haible  <bruno@clisp.org>
6645
6646         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6647         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6648         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6649         REPLACE_CBRTL to 1.
6650         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6651
6652 2012-03-13  Bruno Haible  <bruno@clisp.org>
6653
6654         remainderl: Avoid compilation error on AIX >= 5.2.
6655         * lib/math.in.h (remainderl): Undefine macro from the system header.
6656
6657 2012-03-13  Bruno Haible  <bruno@clisp.org>
6658
6659         Avoid compilation errors with MSVC option -fp:strict.
6660         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6661         * lib/cbrtf.c: Likewise.
6662         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6663
6664 2012-03-12  Bruno Haible  <bruno@clisp.org>
6665
6666         uninorm: Don't crash in out-of-memory conditions.
6667         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6668         gracefully.
6669         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6670         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6671
6672 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6673
6674         quote: fix syntax-check
6675         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6676         also exports quote_quoting_options.
6677
6678 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6679
6680         Collapse list of copyright years to ranges.  See
6681         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6682         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6683         build-aux/csharpexec.sh.in, build-aux/gnupload,
6684         build-aux/install-reloc, build-aux/javacomp.sh.in,
6685         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6686         build-aux/move-if-change, build-aux/reloc-ldflags,
6687         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6688
6689 2012-03-11  Bruno Haible  <bruno@clisp.org>
6690
6691         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6692         * m4/log2f-ieee.m4: New file.
6693         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6694         whether log2f works with a minus zero argument. Replace it if not.
6695         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6696         (Depends-on): Add log2-ieee.
6697         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6698         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6699
6700         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6701         * m4/log2-ieee.m4: New file.
6702         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6703         whether log2 works with a minus zero argument. Replace it if not.
6704         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6705         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6706         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6707
6708         Tests for module 'log2l-ieee'.
6709         * modules/log2l-ieee-tests: New file.
6710         * tests/test-log2l-ieee.c: New file.
6711
6712         New module 'log2l-ieee'.
6713         * modules/log2l-ieee: New file.
6714
6715         Tests for module 'log2-ieee'.
6716         * modules/log2-ieee-tests: New file.
6717         * tests/test-log2-ieee.c: New file.
6718
6719         New module 'log2-ieee'.
6720         * modules/log2-ieee: New file.
6721
6722         Tests for module 'log2f-ieee'.
6723         * modules/log2f-ieee-tests: New file.
6724         * tests/test-log2f-ieee.c: New file.
6725         * tests/test-log2-ieee.h: New file.
6726
6727         New module 'log2f-ieee'.
6728         * modules/log2f-ieee: New file.
6729
6730 2012-03-11  Bruno Haible  <bruno@clisp.org>
6731
6732         Tests for module 'log2l'.
6733         * modules/log2l-tests: New file.
6734         * tests/test-log2l.c: New file.
6735
6736         New module 'log2l'.
6737         * lib/math.in.h (log2l): New declaration.
6738         * lib/log2l.c: New file.
6739         * m4/log2l.m4: New file.
6740         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6742         REPLACE_LOG2L.
6743         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6744         REPLACE_LOG2L.
6745         * modules/log2l: New file.
6746         * tests/test-math-c++.cc: Check the declaration of log2l.
6747         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6748         and OSF/1 problems.
6749
6750 2012-03-11  Bruno Haible  <bruno@clisp.org>
6751
6752         Tests for module 'log2f'.
6753         * modules/log2f-tests: New file.
6754         * tests/test-log2f.c: New file.
6755
6756         New module 'log2f'.
6757         * lib/math.in.h (log2f): New declaration.
6758         * lib/log2f.c: New file.
6759         * m4/log2f.m4: New file.
6760         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6761         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6762         REPLACE_LOG2F.
6763         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6764         REPLACE_LOG2F.
6765         * modules/log2f: New file.
6766         * tests/test-math-c++.cc: Check the declaration of log2f.
6767         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6768         and OSF/1 and Cygwin problems.
6769
6770 2012-03-11  Bruno Haible  <bruno@clisp.org>
6771
6772         Tests for module 'log2'.
6773         * modules/log2-tests: New file.
6774         * tests/test-log2.c: New file.
6775         * tests/test-log2.h: New file.
6776
6777         New module 'log2'.
6778         * lib/math.in.h (log2): New declaration.
6779         * lib/log2.c: New file.
6780         * m4/log2.m4: New file.
6781         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6783         REPLACE_LOG2.
6784         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6785         REPLACE_LOG2.
6786         * modules/log2: New file.
6787         * tests/test-math-c++.cc: Check the declaration of log2.
6788         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6789         and OSF/1 and Cygwin problems.
6790
6791 2012-03-11  Bruno Haible  <bruno@clisp.org>
6792
6793         exp2* tests: More tests.
6794         * tests/test-exp2.h (test_function): Test all integral arguments that
6795         don't need to overflow or denormalized numbers.
6796         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6797         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6798         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6799
6800 2012-03-10  Bruno Haible  <bruno@clisp.org>
6801
6802         log1pl-ieee: Work around test failure on AIX 7.1.
6803         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6804
6805         log1pl-ieee: Work around test failure on IRIX 6.5.
6806         * m4/log1pl-ieee.m4: New file.
6807         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6808         test whether log1pl works with a minus zero argument. Replace it if
6809         not.
6810         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6812         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6813         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6814         (Depends-on): Update conditions.
6815         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6816         m4/signbit.m4.
6817         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6818         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6819
6820         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6821         * m4/log1pf-ieee.m4: New file.
6822         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6823         test whether log1pf works with a minus zero argument. Replace it if
6824         not.
6825         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6826         m4/signbit.m4.
6827         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6828         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6829
6830         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6831         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6832         (configure.ac): Require gl_FUNC_LOG1PF.
6833
6834         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6835         * m4/log1p-ieee.m4: New file.
6836         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6837         whether log1p works with a minus zero argument. Replace it if not.
6838         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6839         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6840         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6841         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6842         (Depends-on): Update conditions.
6843         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6844         m4/signbit.m4.
6845         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6846         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6847
6848         Tests for module 'log1pl-ieee'.
6849         * modules/log1pl-ieee-tests: New file.
6850         * tests/test-log1pl-ieee.c: New file.
6851
6852         New module 'log1pl-ieee'.
6853         * modules/log1pl-ieee: New file.
6854
6855         Tests for module 'log1p-ieee'.
6856         * modules/log1p-ieee-tests: New file.
6857         * tests/test-log1p-ieee.c: New file.
6858
6859         New module 'log1p-ieee'.
6860         * modules/log1p-ieee: New file.
6861
6862         Tests for module 'log1pf-ieee'.
6863         * modules/log1pf-ieee-tests: New file.
6864         * tests/test-log1pf-ieee.c: New file.
6865         * tests/test-log1p-ieee.h: New file.
6866
6867         New module 'log1pf-ieee'.
6868         * modules/log1pf-ieee: New file.
6869
6870 2012-03-10  Bruno Haible  <bruno@clisp.org>
6871
6872         Tests for module 'log1pl'.
6873         * modules/log1pl-tests: New file.
6874         * tests/test-log1pl.c: New file.
6875
6876         New module 'log1pl'.
6877         * lib/math.in.h (log1pl): New declaration.
6878         * lib/log1pl.c: New file.
6879         * m4/log1pl.m4: New file.
6880         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6881         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6882         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6883         * modules/log1pl: New file.
6884         * tests/test-math-c++.cc: Check the declaration of log1pl.
6885         * doc/posix-functions/log1pl.texi: Mention the new module.
6886
6887 2012-03-10  Bruno Haible  <bruno@clisp.org>
6888
6889         Tests for module 'log1pf'.
6890         * modules/log1pf-tests: New file.
6891         * tests/test-log1pf.c: New file.
6892
6893         New module 'log1pf'.
6894         * lib/math.in.h (log1pf): New declaration.
6895         * lib/log1pf.c: New file.
6896         * m4/log1pf.m4: New file.
6897         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6899         REPLACE_LOG1PF.
6900         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6901         REPLACE_LOG1PF.
6902         * modules/log1pf: New file.
6903         * tests/test-math-c++.cc: Check the declaration of log1pf.
6904         * doc/posix-functions/log1pf.texi: Mention the new module.
6905
6906 2012-03-10  Bruno Haible  <bruno@clisp.org>
6907
6908         log1p tests: More tests.
6909         * tests/test-log1p.h: New file.
6910         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6911         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6912         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6913         (main): Invoke test_function.
6914
6915         log1p: Provide replacement for Minix and MSVC.
6916         * lib/math.in.h (log1p): New declaration.
6917         * lib/log1p.c: New file.
6918         * m4/log1p.m4: New file.
6919         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6921         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6922         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6923         (Depends-on): Add math, isnand, log, round.
6924         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6925         HAVE_LOG1P is 0.
6926         * tests/test-math-c++.cc: Check the declaration of log1p.
6927         * doc/posix-functions/log1p.texi: Mention the replacement.
6928
6929 2012-03-10  Bruno Haible  <bruno@clisp.org>
6930
6931         math tests: Small simplification.
6932         * tests/test-exp.h (test_function): Use the same err_bound for
6933         'double' on platforms with sizeof (long double) == sizeof (double)
6934         than on platforms with sizeof (long double) > sizeof (double).
6935         * tests/test-exp2.h (test_function): Likewise.
6936         * tests/test-expm1.h (test_function): Likewise.
6937         * tests/test-log.h (test_function): Likewise.
6938
6939 2012-03-10  Bruno Haible  <bruno@clisp.org>
6940
6941         Fix some comments.
6942         * lib/expl.c: Fix an ambiguous comment.
6943         * lib/expm1.c: Likewise.
6944         * lib/expm1l.c: Likewise.
6945         * lib/exp2.c: Likewise.
6946         * lib/exp2l.c: Likewise.
6947
6948 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6949
6950         regex: allow inclusion of <regex.h> before <limits.h>
6951         Without this patch, portable programs had to include <limits.h> before
6952         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6953         I ran into this problem with a test version of GNU grep on Solaris 8.
6954         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6955         This is done conditionally so that this change can be merged
6956         back to glibc.
6957         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6958         using the included regex.
6959
6960         fts: depend on fdopendir
6961         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6962         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6963         problem was introduced when fdopendir was split out.
6964
6965 2012-03-10  Bruno Haible  <bruno@clisp.org>
6966
6967         Remove unused variables.
6968         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6969         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6970
6971 2012-03-10  Bruno Haible  <bruno@clisp.org>
6972
6973         isnanf-nolibm: Fix last commit.
6974         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6975
6976         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6977         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6978
6979 2012-03-10  Bruno Haible  <bruno@clisp.org>
6980
6981         logf-ieee: Work around test failure on NetBSD 5.1.
6982         * m4/logf-ieee.m4: New file.
6983         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6984         whether logf works with a negative argument. Replace it if not.
6985         * lib/logf.c (logf): For negative arguments, return NaN.
6986         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6987         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6988         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6989
6990         logf-ieee: Work around test failure on Solaris 9.
6991         * modules/logf-ieee (Depends-on): Add log-ieee.
6992         (configure.ac): Require gl_FUNC_LOGF.
6993
6994         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6995         * m4/log-ieee.m4: New file.
6996         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6997         log works with a negative argument. Replace it if not.
6998         * lib/log.c (log): For negative arguments, return NaN.
6999         * modules/log-ieee (Files): Add m4/log-ieee.m4.
7000         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
7001         * doc/posix-functions/log.texi: Mention the log-ieee module.
7002
7003         Tests for module 'logl-ieee'.
7004         * modules/logl-ieee-tests: New file.
7005         * tests/test-logl-ieee.c: New file.
7006
7007         New module 'logl-ieee'.
7008         * modules/logl-ieee: New file.
7009
7010         Tests for module 'log-ieee'.
7011         * modules/log-ieee-tests: New file.
7012         * tests/test-log-ieee.c: New file.
7013
7014         New module 'log-ieee'.
7015         * modules/log-ieee: New file.
7016
7017         Tests for module 'logf-ieee'.
7018         * modules/logf-ieee-tests: New file.
7019         * tests/test-logf-ieee.c: New file.
7020         * tests/test-log-ieee.h: New file.
7021
7022         New module 'logf-ieee'.
7023         * modules/logf-ieee: New file.
7024
7025 2012-03-10  Bruno Haible  <bruno@clisp.org>
7026
7027         log: Fix bug introduced on 2012-03-09.
7028         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
7029
7030 2012-03-10  Pádraig Brady  <P@draigBrady.com>
7031
7032         timer-time: link explicitly with pthreads on glibc
7033         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
7034         to support static linking, when newer glibc is
7035         detected, as that contains pthread emulation of
7036         POSIX timer functions where required.
7037         * modules/timer-time: Depend on threadlib to
7038         pull in the appropriate library to link.
7039
7040 2012-03-10  Bruno Haible  <bruno@clisp.org>
7041
7042         log* tests: More tests.
7043         * tests/test-log.h: New file.
7044         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
7045         (main): Invoke test_function.
7046         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
7047         (main): Invoke test_function.
7048         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
7049         (main): Invoke test_function.
7050         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
7051         tests/randomd.c.
7052         (Makefile.am): Add randomd.c to test_log_SOURCES.
7053         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
7054         tests/randomf.c.
7055         (Makefile.am): Add randomf.c to test_logf_SOURCES.
7056         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
7057         tests/randoml.c.
7058         (Depends-on): Add 'float'.
7059         (Makefile.am): Add randoml.c to test_logl_SOURCES.
7060
7061 2012-03-09  Bruno Haible  <bruno@clisp.org>
7062
7063         logl: Work around OSF/1 5.1 bug.
7064         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
7065         * lib/logl.c (logl): If logl exists, use it and provide just the
7066         workaround.
7067         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
7068         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
7069         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
7070         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
7071         * modules/logl (configure.ac): Consider REPLACE_LOGL.
7072         (Depends-on): Update conditions.
7073         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
7074
7075 2012-03-09  Bruno Haible  <bruno@clisp.org>
7076
7077         logf: Work around OSF/1 5.1 bug.
7078         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
7079         * lib/logf.c (logf): If logf exists, use it and provide just the
7080         workaround.
7081         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
7082         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
7083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
7084         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
7085         * modules/logf (configure.ac): Consider REPLACE_LOGF.
7086         (Depends-on): Update conditions.
7087         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
7088
7089 2012-03-09  Bruno Haible  <bruno@clisp.org>
7090
7091         log: Work around OSF/1 5.1 bug.
7092         * lib/math.in.h (log): New declaration.
7093         * lib/log.c: New file.
7094         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
7095         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
7096         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
7097         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
7098         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
7099         * modules/log (Files): Add lib/log.c.
7100         (Depends-on): Add math.
7101         (configure.ac): If REPLACE_LOG is 1, compile an override.
7102         * tests/test-math-c++.cc: Check the declaration of log.
7103         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
7104
7105 2012-03-09  Jim Meyering  <meyering@redhat.com>
7106
7107         readtokens.c: adjust wording in a comment
7108         * lib/readtokens.c: Insert omitted "that" in a comment.
7109
7110 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7111
7112         modechange: add notations +40, 00440, etc.
7113         * lib/modechange.c (mode_compile): Support new notations
7114         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
7115
7116 2012-03-08  Bruno Haible  <bruno@clisp.org>
7117
7118         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
7119         * m4/exp2l-ieee.m4: New file.
7120         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
7121         test whether exp2l works with a NaN argument and with a negative
7122         infinity argument. Replace it if not.
7123         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
7124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
7125         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
7126         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
7127         (Depends-on): Update conditions.
7128         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
7129         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
7130         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
7131
7132         Tests for module 'exp2l-ieee'.
7133         * modules/exp2l-ieee-tests: New file.
7134         * tests/test-exp2l-ieee.c: New file.
7135
7136         New module 'exp2l-ieee'.
7137         * modules/exp2l-ieee: New file.
7138
7139         Tests for module 'exp2-ieee'.
7140         * modules/exp2-ieee-tests: New file.
7141         * tests/test-exp2-ieee.c: New file.
7142
7143         New module 'exp2-ieee'.
7144         * modules/exp2-ieee: New file.
7145
7146         Tests for module 'exp2f-ieee'.
7147         * modules/exp2f-ieee-tests: New file.
7148         * tests/test-exp2f-ieee.c: New file.
7149         * tests/test-exp2-ieee.h: New file.
7150
7151         New module 'exp2f-ieee'.
7152         * modules/exp2f-ieee: New file.
7153
7154 2012-03-08  Bruno Haible  <bruno@clisp.org>
7155
7156         Tests for module 'exp2l'.
7157         * modules/exp2l-tests: New file.
7158         * tests/test-exp2l.c: New file.
7159
7160         New module 'exp2l'.
7161         * lib/math.in.h (exp2l): New declaration.
7162         * lib/exp2l.c: New file.
7163         * lib/expl-table.c: New file, extracted from lib/expl.c.
7164         * lib/expl.c (gl_expl_table): New declaration.
7165         (expl): Remove expl_table. Update reference.
7166         * m4/exp2l.m4: New file.
7167         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
7168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
7169         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
7170         * modules/exp2l: New file.
7171         * modules/expl (Files): Add lib/expl-table.c.
7172         (configure.ac): Compile also expl-table.c.
7173         * tests/test-math-c++.cc: Check the declaration of exp2l.
7174         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
7175         problem.
7176
7177 2012-03-08  Bruno Haible  <bruno@clisp.org>
7178
7179         Tests for module 'exp2f'.
7180         * modules/exp2f-tests: New file.
7181         * tests/test-exp2f.c: New file.
7182
7183         New module 'exp2f'.
7184         * lib/math.in.h (exp2f): New declaration.
7185         * lib/exp2f.c: New file.
7186         * m4/exp2f.m4: New file.
7187         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
7188         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
7189         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
7190         * modules/exp2f: New file.
7191         * tests/test-math-c++.cc: Check the declaration of exp2f.
7192         * doc/posix-functions/exp2f.texi: Mention the new module and the
7193         IRIX problem.
7194
7195 2012-03-08  Bruno Haible  <bruno@clisp.org>
7196
7197         Tests for module 'exp2'.
7198         * modules/exp2-tests: New file.
7199         * tests/test-exp2.c: New file.
7200         * tests/test-exp2.h: New file.
7201
7202         New module 'exp2'.
7203         * lib/math.in.h (exp2): New declaration.
7204         * lib/exp2.c: New file.
7205         * m4/exp2.m4: New file.
7206         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
7207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
7208         REPLACE_EXP2.
7209         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
7210         REPLACE_EXP2.
7211         * modules/exp2: New file.
7212         * tests/test-math-c++.cc: Check the declaration of exp2.
7213         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
7214         and OpenBSD problems.
7215
7216 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7217
7218         savedir: fix comment typo
7219         * lib/savedir.c (savedirstream): Fix typo in comment.
7220
7221 2012-03-08  Bruno Haible  <bruno@clisp.org>
7222
7223         test-readtokens.c: use const; remove unwarranted cast
7224         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
7225
7226 2012-03-08  Bruno Haible  <bruno@clisp.org>
7227
7228         fmal: Avoid compilation error on AIX.
7229         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
7230         AIX 5.2..7.1.
7231
7232 2012-03-08  Bruno Haible  <bruno@clisp.org>
7233
7234         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
7235         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
7236         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
7237         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
7238         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
7239         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
7240         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
7241
7242 2012-03-08  Bruno Haible  <bruno@clisp.org>
7243
7244         remainderf: Override buggy system function on IRIX 6.5.
7245         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
7246         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
7247         when it exists.
7248         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
7249
7250 2012-03-08  Jim Meyering  <meyering@redhat.com>
7251
7252         test-readtokens.c: avoid const-related compilation warnings
7253         * tests/test-readtokens.c: Avoid const-related compilation warnings.
7254
7255 2012-03-07  Jim Meyering  <meyering@redhat.com>
7256             Bruno Haible  <bruno@clisp.org>
7257
7258         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
7259         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
7260         tests/randomd.c.
7261         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
7262         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
7263         tests/randoml.c.
7264         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
7265
7266 2012-03-07  Bruno Haible  <bruno@clisp.org>
7267
7268         expm1l: Avoid compilation error on AIX.
7269         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
7270         AIX 5.2..7.1.
7271
7272 2012-03-07  Bruno Haible  <bruno@clisp.org>
7273
7274         expm1l: Don't override undeclared system function on IRIX 6.5.
7275         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
7276         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
7277         it exists. Set HAVE_DECL_EXPM1L.
7278         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
7279         HAVE_EXPM1L.
7280         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
7281         HAVE_EXPM1L.
7282         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
7283
7284 2012-03-07  Bruno Haible  <bruno@clisp.org>
7285
7286         remainderl: Don't override undeclared system function on IRIX 6.5.
7287         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
7288         HAVE_REMAINDERL.
7289         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
7290         declared when it exists. Set HAVE_DECL_REMAINDERL.
7291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
7292         not HAVE_REMAINDERL.
7293         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
7294         HAVE_REMAINDERL.
7295         * doc/posix-functions/remainderl.texi: Mention missing declaration
7296         problem.
7297
7298 2012-03-07  Bruno Haible  <bruno@clisp.org>
7299
7300         rintf: Don't override undeclared system function on IRIX 6.5.
7301         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
7302         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
7303         exists. Set HAVE_DECL_RINTF.
7304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
7305         HAVE_RINTF.
7306         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
7307         HAVE_RINTF.
7308         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
7309
7310 2012-03-07  Bruno Haible  <bruno@clisp.org>
7311
7312         roundl: Avoid compilation error on AIX.
7313         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
7314         AIX 5.2..7.1.
7315
7316 2012-03-07  Bruno Haible  <bruno@clisp.org>
7317
7318         roundl: Don't override undeclared system function on IRIX 6.5.
7319         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
7320         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
7321         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7322         * modules/roundl (configure.ac): For replacement code, test
7323         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7324         (Depends-on): Update conditions.
7325         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
7326
7327 2012-03-07  Bruno Haible  <bruno@clisp.org>
7328
7329         roundf: Don't override undeclared system function on IRIX 6.5.
7330         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
7331         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
7332         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7333         * modules/roundf (configure.ac): For replacement code, test
7334         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7335         (Depends-on): Update conditions.
7336         * modules/roundf-ieee (Depends-on): Update conditions.
7337         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
7338
7339 2012-03-07  Bruno Haible  <bruno@clisp.org>
7340
7341         round: Don't override undeclared system function on IRIX 6.5.
7342         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
7343         argument.
7344         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
7345         also when it is not declared. Set HAVE_ROUND. For replacement code,
7346         test HAVE_ROUND, not HAVE_DECL_ROUND.
7347         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
7348         not HAVE_DECL_ROUND.
7349         (Depends-on): Update conditions.
7350         * modules/round-ieee (Depends-on): Update conditions.
7351         * doc/posix-functions/round.texi: Mention the IRIX problem.
7352
7353 2012-03-07  Bruno Haible  <bruno@clisp.org>
7354
7355         copysignf: Don't override undeclared system function on IRIX 6.5.
7356         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
7357         HAVE_COPYSIGNF.
7358         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
7359         declared when it exists. Set HAVE_DECL_COPYSIGNF.
7360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
7361         not HAVE_COPYSIGNF.
7362         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
7363         HAVE_COPYSIGNF.
7364         * doc/posix-functions/copysignf.texi: Mention missing declaration
7365         problem.
7366
7367 2012-03-07  Jim Meyering  <meyering@redhat.com>
7368
7369         readtokens: add tests
7370         * modules/readtokens-tests: New file.
7371         * tests/test-readtokens.c: New file.
7372
7373 2012-03-07  Jim Meyering  <meyering@redhat.com>
7374
7375         quotearg: the module must now include quote.h
7376         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
7377         So must the module.
7378         * modules/quotearg (Files): Add quote.h.
7379
7380 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
7381
7382         readtokens: avoid core dumps with unusual calling patterns
7383         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
7384         * lib/readtokens.c: Include limits.h.
7385         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
7386         (readtoken): Don't cache the delimiters; the cache code was buggy
7387         if !delim && saved_delim, or if the new n_delim differs from the old.
7388         Also, it wasn't thread-safe.
7389
7390 2012-03-07  Bruno Haible  <bruno@clisp.org>
7391
7392         quote: Adhere to common module description layout.
7393         * modules/quote (Makefile.am): Add back empty section.
7394
7395 2012-03-06  Akim Demaille  <demaille@gostai.com>
7396
7397         quote: fuse into quotearg
7398         This patch is made for the benefit of Bison.
7399         quote does not leave the choice of the quoting style to the user.
7400         quoting_style provides poor customizability, yet quoting_options,
7401         which is very rich, is hidden inside quotearg.c.  So in order to
7402         allow quote customization, move its implementation to quotearg.c.
7403         * lib/quote.c: Remove.
7404         * modules/quote: Adjust.
7405         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
7406         warning: provide all the members of literal structs.
7407         (quote_quoting_options): New.
7408         (quote, quote_n): Import implementation from quote.c.
7409         * lib/quote.h: Import the comments from quote.c.
7410         (quote_quoting_options): New.
7411
7412 2012-03-06  Bruno Haible  <bruno@clisp.org>
7413
7414         Tests for module 'expm1l-ieee'.
7415         * modules/expm1l-ieee-tests: New file.
7416         * tests/test-expm1l-ieee.c: New file.
7417
7418         New module 'expm1l-ieee'.
7419         * modules/expm1l-ieee: New file.
7420
7421         Tests for module 'expm1f-ieee'.
7422         * modules/expm1f-ieee-tests: New file.
7423         * tests/test-expm1f-ieee.c: New file.
7424
7425         New module 'expm1f-ieee'.
7426         * modules/expm1f-ieee: New file.
7427
7428         Tests for module 'expm1-ieee'.
7429         * modules/expm1-ieee-tests: New file.
7430         * tests/test-expm1-ieee.c: New file.
7431         * tests/test-expm1-ieee.h: New file.
7432
7433         New module 'expm1-ieee'.
7434         * modules/expm1-ieee: New file.
7435         * m4/expm1-ieee.m4: New file.
7436         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
7437         whether expm1 works with a minus zero argument. Replace it if not.
7438         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
7439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
7440         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
7441         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
7442         (Depends-on): Update conditions.
7443         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
7444         AIX problem.
7445
7446 2012-03-06  Bruno Haible  <bruno@clisp.org>
7447
7448         Work around expm1f bug on IRIX 6.5.
7449         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
7450         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
7451         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
7452         not work.
7453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
7454         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
7455         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
7456         (Depends-on): Update conditions.
7457         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
7458
7459 2012-03-06  Bruno Haible  <bruno@clisp.org>
7460
7461         Tests for module 'expm1l'.
7462         * modules/expm1l-tests: New file.
7463         * tests/test-expm1l.c: New file.
7464
7465         New module 'expm1l'.
7466         * lib/math.in.h (expm1l): New declaration.
7467         * lib/expm1l.c: New file.
7468         * m4/expm1l.m4: New file.
7469         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
7470         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
7471         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
7472         * modules/expm1l: New file.
7473         * tests/test-math-c++.cc: Check the declaration of expm1l.
7474         * doc/posix-functions/expm1l.texi: Mention the new module.
7475
7476 2012-03-06  Bruno Haible  <bruno@clisp.org>
7477
7478         Tests for module 'expm1f'.
7479         * modules/expm1f-tests: New file.
7480         * tests/test-expm1f.c: New file.
7481
7482         New module 'expm1f'.
7483         * lib/math.in.h (expm1f): New declaration.
7484         * lib/expm1f.c: New file.
7485         * m4/expm1f.m4: New file.
7486         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
7487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
7488         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
7489         * modules/expm1f: New file.
7490         * tests/test-math-c++.cc: Check the declaration of expm1f.
7491         * doc/posix-functions/expm1f.texi: Mention the new module.
7492
7493 2012-03-06  Bruno Haible  <bruno@clisp.org>
7494
7495         Tests for module 'expm1'.
7496         * modules/expm1-tests: New file.
7497         * tests/test-expm1.c: New file.
7498         * tests/test-expm1.h: New file.
7499
7500         New module 'expm1'.
7501         * lib/math.in.h (expm1): New declaration.
7502         * lib/expm1.c: New file.
7503         * m4/expm1.m4: New file.
7504         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
7505         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7506         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7507         * modules/expm1: New file.
7508         * tests/test-math-c++.cc: Check the declaration of expm1.
7509         * doc/posix-functions/expm1.texi: Mention the new module.
7510
7511 2012-03-06  Bruno Haible  <bruno@clisp.org>
7512
7513         math: Ensure declarations of math functions.
7514         * modules/acosf (Depends-on): Add 'extensions'.
7515         * modules/asinf (Depends-on): Likewise.
7516         * modules/atan2f (Depends-on): Likewise.
7517         * modules/atanf (Depends-on): Likewise.
7518         * modules/cbrt (Depends-on): Likewise.
7519         * modules/cbrtf (Depends-on): Likewise.
7520         * modules/cbrtl (Depends-on): Likewise.
7521         * modules/copysignf (Depends-on): Likewise.
7522         * modules/copysignl (Depends-on): Likewise.
7523         * modules/cosf (Depends-on): Likewise.
7524         * modules/coshf (Depends-on): Likewise.
7525         * modules/expf (Depends-on): Likewise.
7526         * modules/fabsf (Depends-on): Likewise.
7527         * modules/fabsl (Depends-on): Likewise.
7528         * modules/fmaf (Depends-on): Likewise.
7529         * modules/fmal (Depends-on): Likewise.
7530         * modules/fmodf (Depends-on): Likewise.
7531         * modules/fmodl (Depends-on): Likewise.
7532         * modules/frexpf (Depends-on): Likewise.
7533         * modules/frexpl (Depends-on): Likewise.
7534         * modules/hypot (Depends-on): Likewise.
7535         * modules/hypotf (Depends-on): Likewise.
7536         * modules/hypotl (Depends-on): Likewise.
7537         * modules/ldexpf (Depends-on): Likewise.
7538         * modules/ldexpl (Depends-on): Likewise.
7539         * modules/log10f (Depends-on): Likewise.
7540         * modules/log10l (Depends-on): Likewise.
7541         * modules/log1p (Depends-on): Likewise.
7542         * modules/logb (Depends-on): Likewise.
7543         * modules/logf (Depends-on): Likewise.
7544         * modules/modff (Depends-on): Likewise.
7545         * modules/modfl (Depends-on): Likewise.
7546         * modules/powf (Depends-on): Likewise.
7547         * modules/remainderf (Depends-on): Likewise.
7548         * modules/remainderl (Depends-on): Likewise.
7549         * modules/rintf (Depends-on): Likewise.
7550         * modules/rintl (Depends-on): Likewise.
7551         * modules/sinf (Depends-on): Likewise.
7552         * modules/sinhf (Depends-on): Likewise.
7553         * modules/sqrtf (Depends-on): Likewise.
7554         * modules/tanf (Depends-on): Likewise.
7555         * modules/tanhf (Depends-on): Likewise.
7556         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7557         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7558         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7559         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7560         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7561         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7562         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7563         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7564         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7565         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7566         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7567         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7568         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7569         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7570         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7571         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7572         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7573         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7574         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7575         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7576         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7577         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7578         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7579         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7580         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7581         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7582         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7583         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7584         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7585         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7586         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7587         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7588         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7589         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7590         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7591         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7592         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7593         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7594         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7595         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7596         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7597
7598 2012-03-06  Bruno Haible  <bruno@clisp.org>
7599
7600         math: Update module names in warnings.
7601         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7602         tanl): Use specific module name in warn-on-use warning.
7603
7604 2012-03-06  Bruno Haible  <bruno@clisp.org>
7605
7606         expl: Simplify computation.
7607         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7608
7609 2012-03-05  Bruno Haible  <bruno@clisp.org>
7610
7611         exp* tests: More tests.
7612         * tests/test-exp.h: New file.
7613         * tests/test-exp.c: Include <float.h> and test-exp.h.
7614         (main): Invoke test_function.
7615         * tests/test-expf.c: Include <float.h> and test-exp.h.
7616         (main): Invoke test_function.
7617         * tests/test-expl.c: Include <float.h> and test-exp.h.
7618         (main): Invoke test_function.
7619         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7620         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7621         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7622         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7623         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7624         (Depends-on): Add 'float'.
7625         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7626
7627         expl: Fix precision of computed result.
7628         * lib/expl.c: Completely rewritten.
7629         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7630         (Maintainer): Add me.
7631         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7632
7633 2012-03-05  Bruno Haible  <bruno@clisp.org>
7634
7635         cbrt* tests: More tests.
7636         * tests/test-cbrt.h: New file.
7637         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7638         (main): Invoke test_function.
7639         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7640         (main): Invoke test_function.
7641         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7642         (main): Invoke test_function.
7643         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7644         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7645         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7646         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7647         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7648         (Depends-on): Add 'float'.
7649         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7650
7651 2012-03-05  Bruno Haible  <bruno@clisp.org>
7652
7653         hypot* tests: More tests.
7654         * tests/test-hypot.h: New file, partially extracted from
7655         tests/test-hypotl.c.
7656         * tests/test-hypot.c: Include test-hypot.h.
7657         (main): Invoke test_function.
7658         * tests/test-hypotf.c: Include test-hypot.h.
7659         (main): Invoke test_function.
7660         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7661         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7662         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7663         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7664         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7665         tests/randomf.c.
7666         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7667         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7668         tests/randoml.c.
7669         (Depends-on): Add 'fpucw', 'float'.
7670         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7671
7672 2012-03-05  Bruno Haible  <bruno@clisp.org>
7673
7674         fpucw: Doc about FreeBSD.
7675         * lib/fpucw.h: Mention FreeBSD in comments.
7676
7677 2012-03-04  Bruno Haible  <bruno@clisp.org>
7678
7679         sqrt* tests: More tests.
7680         * tests/test-sqrt.h: New file.
7681         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7682         (main): Invoke test_function.
7683         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7684         (main): Invoke test_function.
7685         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7686         (main): Invoke test_function.
7687         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7688         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7689         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7690         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7691         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7692         (Depends-on): Add 'float'.
7693         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7694
7695 2012-03-04  Bruno Haible  <bruno@clisp.org>
7696
7697         remainder* tests: More tests.
7698         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7699         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7700         (main): Invoke test_function.
7701         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7702         (main): Invoke test_function.
7703         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7704         (main): Invoke test_function.
7705         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7706         tests/randomd.c.
7707         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7708         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7709         tests/randomf.c.
7710         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7711         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7712         tests/randoml.c.
7713         (Depends-on): Add 'float'.
7714         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7715
7716 2012-03-04  Bruno Haible  <bruno@clisp.org>
7717
7718         remainder, remainderf, remainderl: Fix computation for large quotients.
7719         * lib/remainder.c: Completely rewritten.
7720         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7721         USE_FLOAT.
7722         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7723         USE_LONG_DOUBLE.
7724         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7725         isnand, isinf. Remove round, fma.
7726         * modules/remainderf (Files): Add lib/remainder.c.
7727         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7728         Remove roundf, fmaf.
7729         * modules/remainderl (Files): Add lib/remainder.c.
7730         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7731         isinf. Remove roundl, fmal.
7732         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7733         REMAINDER_LIBM.
7734         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7735         REMAINDERF_LIBM.
7736         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7737         REMAINDERL_LIBM.
7738
7739 2012-03-04  Bruno Haible  <bruno@clisp.org>
7740
7741         fmod* tests: More tests.
7742         * tests/test-fmod.h (my_ldexp): New function.
7743         (test_function): Reduce amount of random numbers to test. Add tests
7744         of very large quotients x / y.
7745         * tests/test-fmod.c (MAX_EXP): New macro.
7746         * tests/test-fmodf.c (MAX_EXP): Likewise.
7747         * tests/test-fmodl.c (MAX_EXP): Likewise.
7748
7749 2012-03-04  Bruno Haible  <bruno@clisp.org>
7750
7751         fmod, fmodl: Fix computation for large quotients x / y.
7752         * lib/fmod.c: Completely rewritten.
7753         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7754         USE_LONG_DOUBLE.
7755         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7756         isnand. Remove fma.
7757         * modules/fmodl (Files): Add lib/fmod.c.
7758         (Depends-on): Add float, isfinite, signbit, fabsl,
7759         frexpl, ldexpl, isnanl. Remove fma.
7760         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7761         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7762
7763 2012-03-03  Bruno Haible  <bruno@clisp.org>
7764
7765         fmod* tests: More tests.
7766         * tests/test-fmod.h: New file.
7767         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7768         (main): Invoke test_function.
7769         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7770         (main): Invoke test_function.
7771         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7772         (main): Invoke test_function.
7773         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7774         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7775         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7776         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7777         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7778         (Depends-on): Add 'float'.
7779         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7780
7781 2012-03-03  Bruno Haible  <bruno@clisp.org>
7782
7783         rint* tests: More tests.
7784         * tests/test-rint.h: New file, partially extracted from
7785         tests/test-rintl.c.
7786         * tests/test-rint.c: Include test-rint.h.
7787         (main): Invoke test_function.
7788         * tests/test-rintf.c: Include test-rint.h.
7789         (main): Invoke test_function.
7790         * tests/test-rintl.c: Include test-rint.h.
7791         (main): Invoke test_function.
7792         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7793         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7794         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7795         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7796         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7797         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7798
7799 2012-03-03  Bruno Haible  <bruno@clisp.org>
7800
7801         modf* tests: More tests.
7802         * tests/test-modf.h: New file.
7803         * tests/test-modf.c: Include <float.h> and test-modf.h.
7804         (main): Invoke test_function.
7805         * tests/test-modff.c: Include <float.h> and test-modf.h.
7806         (main): Invoke test_function.
7807         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7808         (main): Invoke test_function.
7809         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7810         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7811         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7812         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7813         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7814         (Depends-on): Add 'float'.
7815         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7816
7817 2012-03-03  Bruno Haible  <bruno@clisp.org>
7818
7819         fabs* tests: More tests.
7820         * tests/test-fabs.h: New file, partially extracted from
7821         tests/test-fabsl.c.
7822         * tests/test-fabs.c (RANDOM): New macro.
7823         * tests/test-fabsf.c (RANDOM): New macro.
7824         * tests/test-fabsl.c (RANDOM): New macro.
7825         * modules/fabs-tests (Files): Add tests/randomd.c.
7826         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7827         * modules/fabsf-tests (Files): Add tests/randomf.c.
7828         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7829         * modules/fabsl-tests (Files): Add tests/randoml.c.
7830         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7831
7832 2012-03-03  Bruno Haible  <bruno@clisp.org>
7833
7834         ldexp* tests: More tests.
7835         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7836         * tests/test-ldexp.c (RANDOM): New macro.
7837         * tests/test-ldexpf.c (RANDOM): New macro.
7838         * tests/test-ldexpl.c (RANDOM): New macro.
7839         * modules/ldexp-tests (Files): Add tests/randomd.c.
7840         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7841         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7842         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7843         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7844         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7845
7846 2012-03-03  Bruno Haible  <bruno@clisp.org>
7847
7848         frexp* tests: More tests.
7849         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7850         * tests/test-frexp.c (RANDOM): New macro.
7851         * tests/test-frexpf.c (RANDOM): New macro.
7852         * tests/test-frexpl.c (RANDOM): New macro.
7853         * modules/frexp-tests (Files): Add tests/randomd.c.
7854         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7855         * modules/frexpf-tests (Files): Add tests/randomf.c.
7856         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7857         * modules/frexpl-tests (Files): Add tests/randoml.c.
7858         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7859
7860 2012-03-03  Bruno Haible  <bruno@clisp.org>
7861
7862         Support for pseudo-random numbers in tests.
7863         * tests/randomf.c: New file.
7864         * tests/randomd.c: New file.
7865         * tests/randoml.c: New file.
7866         * tests/macros.h (randomf, randomd, randoml): New declarations.
7867
7868 2012-03-03  Bruno Haible  <bruno@clisp.org>
7869
7870         frexp* tests: Refactor.
7871         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7872         * tests/test-frexp.c: Include and use it.
7873         * tests/test-frexpf.c: Likewise.
7874         * tests/test-frexpl.c: Likewise.
7875         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7876         * modules/frexpf-tests (Files): Likewise.
7877         * modules/frexpl-tests (Files): Likewise.
7878
7879 2012-03-02  Jim Meyering  <meyering@redhat.com>
7880
7881         maint: don't specify XZ_OPT=-9ev in dist-related rule
7882         Using xz's -9 option is warranted only if you have a very large
7883         tarball (see xz's documentation for the sizes vs. presets), and
7884         requires 64MiB of memory at decompression time.
7885         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7886         Automake's default of just "-e" is fine.  Override on a
7887         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7888
7889 2012-03-01  Eric Blake  <eblake@redhat.com>
7890
7891         maint.mk: allow announcement for non-gnulib project
7892         * maint.mk (announcement): Skip gnulib version if not used.
7893
7894 2012-03-01  Jim Meyering  <meyering@redhat.com>
7895
7896         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7897         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7898         envvar settings cannot interfere.  Otherwise, setting envvars like
7899         prohibit=foo require=bar, etc. would cause spurious test failures.
7900
7901 2012-03-01  Eric Blake  <eblake@redhat.com>
7902
7903         maint.mk: add per-line exclusions to prohibitions
7904         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7905         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7906         (sc_const_long_option): Use it.
7907
7908 2012-03-01  Bruno Haible  <bruno@clisp.org>
7909
7910         Tests for module 'expl-ieee'.
7911         * modules/expl-ieee-tests: New file.
7912         * tests/test-expl-ieee.c: New file.
7913
7914         New module 'expl-ieee'.
7915         * modules/expl-ieee: New file.
7916
7917         Tests for module 'exp-ieee'.
7918         * modules/exp-ieee-tests: New file.
7919         * tests/test-exp-ieee.c: New file.
7920
7921         New module 'exp-ieee'.
7922         * modules/exp-ieee: New file.
7923
7924         Tests for module 'expf-ieee'.
7925         * modules/expf-ieee-tests: New file.
7926         * tests/test-expf-ieee.c: New file.
7927         * tests/test-exp-ieee.h: New file.
7928
7929         New module 'expf-ieee'.
7930         * modules/expf-ieee: New file.
7931
7932 2012-02-29  Bruno Haible  <bruno@clisp.org>
7933
7934         cbrtl-ieee: Work around test failure on IRIX 6.5.
7935         * m4/cbrtl-ieee.m4: New file.
7936         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7937         test whether cbrtl works with a minus zero argument. Replace it if not.
7938         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7940         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7941         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7942         (Depends-on): Update conditions.
7943         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7944         m4/signbit.m4.
7945         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7946         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7947         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7948
7949         Tests for module 'cbrtl-ieee'.
7950         * modules/cbrtl-ieee-tests: New file.
7951         * tests/test-cbrtl-ieee.c: New file.
7952
7953         New module 'cbrtl-ieee'.
7954         * modules/cbrtl-ieee: New file.
7955
7956         Tests for module 'cbrt-ieee'.
7957         * modules/cbrt-ieee-tests: New file.
7958         * tests/test-cbrt-ieee.c: New file.
7959
7960         New module 'cbrt-ieee'.
7961         * modules/cbrt-ieee: New file.
7962
7963         Tests for module 'cbrtf-ieee'.
7964         * modules/cbrtf-ieee-tests: New file.
7965         * tests/test-cbrtf-ieee.c: New file.
7966         * tests/test-cbrt-ieee.h: New file.
7967
7968         New module 'cbrtf-ieee'.
7969         * modules/cbrtf-ieee: New file.
7970
7971 2012-02-29  Bruno Haible  <bruno@clisp.org>
7972
7973         cbrtf: Work around bug in IRIX 6.5 system function.
7974         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7975         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7976         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7977         work.
7978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7979         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7980         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7981         (Depends-on): Update conditions.
7982         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7983
7984 2012-02-29  Bruno Haible  <bruno@clisp.org>
7985
7986         Tests for module 'cbrtl'.
7987         * modules/cbrtl-tests: New file.
7988         * tests/test-cbrtl.c: New file.
7989
7990         New module 'cbrtl'.
7991         * lib/math.in.h (cbrtl): New declaration.
7992         * lib/cbrtl.c: New file.
7993         * m4/cbrtl.m4: New file.
7994         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7996         HAVE_DECL_CBRTL.
7997         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7998         HAVE_DECL_CBRTL.
7999         * modules/cbrtl: New file.
8000         * tests/test-math-c++.cc: Check the declaration of cbrtl.
8001         * doc/posix-functions/cbrtl.texi: Mention the new module.
8002
8003 2012-02-29  Bruno Haible  <bruno@clisp.org>
8004
8005         Tests for module 'cbrtf'.
8006         * modules/cbrtf-tests: New file.
8007         * tests/test-cbrtf.c: New file.
8008
8009         New module 'cbrtf'.
8010         * lib/math.in.h (cbrtf): New declaration.
8011         * lib/cbrtf.c: New file.
8012         * m4/cbrtf.m4: New file.
8013         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
8014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
8015         HAVE_DECL_CBRTF.
8016         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
8017         HAVE_DECL_CBRTF.
8018         * modules/cbrtf: New file.
8019         * tests/test-math-c++.cc: Check the declaration of cbrtf.
8020         * doc/posix-functions/cbrtf.texi: Mention the new module.
8021
8022 2012-02-29  Bruno Haible  <bruno@clisp.org>
8023
8024         cbrt: Provide replacement on MSVC and Minix.
8025         * lib/math.in.h (cbrt): New declaration.
8026         * lib/cbrt.c: New file.
8027         * m4/cbrt.m4: New file.
8028         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
8029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
8030         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
8031         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
8032         (Depends-on): Add dependencies.
8033         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
8034         * tests/test-math-c++.cc: Check the declaration of cbrt.
8035         * doc/posix-functions/cbrt.texi: Mention that the module provides a
8036         replacement.
8037
8038 2012-02-29  Bruno Haible  <bruno@clisp.org>
8039
8040         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
8041         * m4/hypotl-ieee.m4: New file.
8042         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
8043         test whether hypotl works with mixed NaN and Infinity arguments.
8044         Replace it if not.
8045         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
8046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
8047         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
8048         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
8049         (Depends-on): Update conditions.
8050         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
8051         (Depends-on): Add hypot-ieee.
8052         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
8053         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
8054
8055         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
8056         * m4/hypotf-ieee.m4: New file.
8057         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
8058         test whether hypotf works with mixed NaN and Infinity arguments.
8059         Replace it if not.
8060         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
8061         (Depends-on): Add hypot-ieee.
8062         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
8063         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
8064
8065         hypot-ieee: Work around test failure on OSF/1 and native Windows.
8066         * lib/math.in.h (hypot): New declaration.
8067         * lib/hypot.c: New file.
8068         * m4/hypot-ieee.m4: New file.
8069         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
8070         whether hypot works with mixed NaN and Infinity arguments. Replace it
8071         if not.
8072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
8073         REPLACE_HYPOT.
8074         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
8075         * modules/hypot (Files): Add lib/hypot.c.
8076         (Depends-on): Add dependencies.
8077         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
8078         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
8079         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
8080         * tests/test-math-c++.cc: Check the declaration of hypot.
8081         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
8082
8083         Tests for module 'hypotl-ieee'.
8084         * modules/hypotl-ieee-tests: New file.
8085         * tests/test-hypotl-ieee.c: New file.
8086
8087         New module 'hypotl-ieee'.
8088         * modules/hypotl-ieee: New file.
8089
8090         Tests for module 'hypot-ieee'.
8091         * modules/hypot-ieee-tests: New file.
8092         * tests/test-hypot-ieee.c: New file.
8093
8094         New module 'hypot-ieee'.
8095         * modules/hypot-ieee: New file.
8096
8097         Tests for module 'hypotf-ieee'.
8098         * modules/hypotf-ieee-tests: New file.
8099         * tests/test-hypotf-ieee.c: New file.
8100         * tests/test-hypot-ieee.h: New file.
8101
8102         New module 'hypotf-ieee'.
8103         * modules/hypotf-ieee: New file.
8104
8105 2012-02-29  Bruno Haible  <bruno@clisp.org>
8106
8107         Remove unused variables.
8108         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
8109         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
8110         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
8111         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
8112
8113 2012-02-29  Eric Blake  <eblake@redhat.com>
8114
8115         termios: fix pid_t always, not just for tcgetsid
8116         * doc/posix-headers/termios.texi (termios.h): Mention problem.
8117         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
8118         just when building tcgetsid.
8119
8120 2012-02-29  Bruno Haible  <bruno@clisp.org>
8121
8122         Tests for module 'hypotl'.
8123         * modules/hypotl-tests: New file.
8124         * tests/test-hypotl.c: New file.
8125
8126         New module 'hypotl'.
8127         * lib/math.in.h (hypotl): New declaration.
8128         * lib/hypotl.c: New file.
8129         * m4/hypotl.m4: New file.
8130         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8131         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
8132         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
8133         * modules/hypotl: New file.
8134         * tests/test-math-c++.cc: Check the hypotl declaration.
8135         * doc/posix-functions/hypotl.texi: Mention the new module.
8136
8137 2012-02-29  Eric Blake  <eblake@redhat.com>
8138
8139         tcgetsid: fix cygwin header bug
8140         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
8141
8142         docs: update cygwin progress
8143         * doc/posix-functions/llround.texi (llround): Added in cygwin
8144         1.7.8.
8145         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
8146         * doc/glibc-functions/program_invocation_name.texi
8147         (program_invocation_name): Likewise.
8148         * doc/glibc-functions/program_invocation_short_name.texi
8149         (program_invocation_short_name): Likewise.
8150         * doc/glibc-functions/madvise.texi (madvise): Likewise.
8151         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
8152         Likewise.
8153         * doc/posix-functions/pthread_spin_destroy.texi
8154         (pthread_spin_destroy): Added in cygwin 1.7.10.
8155         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
8156         Likewise.
8157         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
8158         Likewise.
8159         * doc/posix-functions/pthread_spin_trylock.texi
8160         (pthread_spin_trylock): Likewise.
8161         * doc/posix-functions/pthread_spin_unlock.texi
8162         (pthread_spin_unlock): Likewise.
8163         * doc/posix-functions/pthread_setschedprio.texi
8164         (pthread_setschedprio): Likewise.
8165         * doc/posix-functions/pthread_attr_getstack.texi
8166         (pthread_attr_getstack): Likewise.
8167         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
8168         (pthread_attr_getstackaddr): Likewise.
8169         * doc/glibc-functions/pthread_getattr_np.texi
8170         (pthread_getattr_np): Likewise.
8171         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
8172         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
8173         * doc/posix-functions/clock_settime.texi (clock_settime):
8174         Likewise.
8175         * doc/posix-functions/pthread_attr_getguardsize.texi
8176         (pthread_attr_getguardsize): Likewise.
8177         * doc/posix-functions/pthread_attr_setguardsize.texi
8178         (pthread_attr_setguardsize): Likewise.
8179         * doc/posix-functions/pthread_attr_setstack.texi
8180         (pthread_attr_setstack): Likewise.
8181         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
8182         (pthread_attr_setstackaddr): Likewise.
8183         * doc/posix-functions/clock_getcpuclockid.texi
8184         (clock_getcpuclockid): Likewise.
8185         * doc/posix-functions/pthread_getcpuclockid.texi
8186         (pthread_getcpuclockid): Likewise.
8187         * doc/glibc-functions/error.texi (error): Likewise.
8188         * doc/glibc-functions/error_at_line.texi (error_at_line):
8189         Likewise.
8190         * doc/glibc-functions/error_message_count.texi
8191         (error_message_count): Likewise.
8192         * doc/glibc-functions/error_one_per_line.texi
8193         (error_one_per_line): Likewise.
8194         * doc/glibc-functions/error_print_progname.texi
8195         (error_print_progname): Likewise.
8196         * doc/posix-functions/pthread_condattr_getclock.texi
8197         (pthread_condattr_getclock): Likewise.
8198         * doc/posix-functions/pthread_condattr_setclock.texi
8199         (pthread_condattr_setclock): Likewise.
8200         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
8201         Likewise.
8202         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
8203         * doc/glibc-functions/getpt.texi (getpt): Likewise.
8204         * doc/glibc-functions/get_current_dir_name.texi
8205         (get_current_dir_name): Likewise.
8206         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
8207         Likewise.
8208         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
8209         wrong return type.
8210         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
8211         1.7.11.
8212
8213 2012-02-29  Bruno Haible  <bruno@clisp.org>
8214
8215         Tests for module 'hypotf'.
8216         * modules/hypotf-tests: New file.
8217         * tests/test-hypotf.c: New file.
8218
8219         New module 'hypotf'.
8220         * lib/math.in.h (hypotf): New declaration.
8221         * lib/hypotf.c: New file.
8222         * m4/hypotf.m4: New file.
8223         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
8225         REPLACE_HYPOTF.
8226         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
8227         REPLACE_HYPOTF.
8228         * modules/hypotf: New file.
8229         * tests/test-math-c++.cc: Check the hypotf declaration.
8230         * doc/posix-functions/hypotf.texi: Mention the new module.
8231
8232         hypot: Prepare for hypotf module.
8233         * m4/hypot.m4: New file.
8234         * modules/hypot (Files): Add m4/hypot.m4.
8235         (configure.ac): Invoke gl_FUNC_HYPOT.
8236
8237 2012-02-29  Bruno Haible  <bruno@clisp.org>
8238
8239         hypot tests: More tests.
8240         * tests/test-hypot.c: Include <float.h>.
8241         (main): Add tests about overflow and underflow.
8242
8243 2012-02-29  Bruno Haible  <bruno@clisp.org>
8244
8245         math code: Add comments.
8246         * lib/acosl.c: Add comment about related glibc source files.
8247         * lib/asinl.c: Likewise.
8248         * lib/atanl.c: Likewise.
8249         * lib/expl.c: Likewise.
8250         * lib/logl.c: Likewise.
8251         * lib/sincosl.c: Likewise.
8252         * lib/sinl.c: Likewise.
8253         * lib/tanl.c: Likewise.
8254         * lib/trigl.c: Likewise.
8255         * lib/cosl.c: Likewise. Fix comments.
8256
8257 2012-02-28  Bruno Haible  <bruno@clisp.org>
8258
8259         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
8260         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
8261         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
8262         HUGE_VALL are defined.
8263         (numeric_equald): Renamed from numeric_equal.
8264         (numeric_equalf, numeric_equall): New functions.
8265         (main): Check also HUGE_VALF, HUGE_VALL.
8266         * modules/math-tests (Files): Add tests/macros.h.
8267         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
8268         HUGE_VALL.
8269
8270 2012-02-28  Bruno Haible  <bruno@clisp.org>
8271
8272         doc: Move ISO C11 feature notes into POSIX chapters.
8273         * doc/posix-functions/aligned_alloc.texi: Renamed from
8274         doc/glibc-functions/aligned_alloc.texi.
8275         * doc/posix-functions/quick_exit.texi: Renamed from
8276         doc/glibc-functions/quick_exit.texi.
8277         * doc/posix-headers/uchar.texi: Renamed from
8278         doc/glibc-headers/uchar.texi.
8279         * doc/posix-functions/c16rtomb.texi: Renamed from
8280         doc/glibc-functions/c16rtomb.texi.
8281         * doc/posix-functions/c32rtomb.texi: Renamed from
8282         doc/glibc-functions/c32rtomb.texi.
8283         * doc/posix-functions/mbrtoc16.texi: Renamed from
8284         doc/glibc-functions/mbrtoc16.texi.
8285         * doc/posix-functions/mbrtoc32.texi: Renamed from
8286         doc/glibc-functions/mbrtoc32.texi.
8287         * doc/gnulib.texi: Update.
8288         (Glibc uchar.h): Remove section.
8289         Suggested by Eric Blake.
8290
8291 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
8292
8293         stdnoreturn: port to MSVC better
8294         MSVC standard headers use __declspec(noreturn), so #define noreturn
8295         to empty on that platform.  Reported by Bruno Haible in
8296         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
8297         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
8298         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
8299
8300 2012-02-28  Bruno Haible  <bruno@clisp.org>
8301
8302         doc: Mention new glibc headers and functions.
8303         * doc/glibc-headers/uchar.texi: New file.
8304         * doc/glibc-functions/aligned_alloc.texi: New file.
8305         * doc/glibc-functions/c16rtomb.texi: New file.
8306         * doc/glibc-functions/c32rtomb.texi: New file.
8307         * doc/glibc-functions/clock_adjtime.texi: New file.
8308         * doc/glibc-functions/fanotify_init.texi: New file.
8309         * doc/glibc-functions/fanotify_mark.texi: New file.
8310         * doc/glibc-functions/inet6_opt_append.texi: New file.
8311         * doc/glibc-functions/inet6_opt_find.texi: New file.
8312         * doc/glibc-functions/inet6_opt_finish.texi: New file.
8313         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
8314         * doc/glibc-functions/inet6_opt_init.texi: New file.
8315         * doc/glibc-functions/inet6_opt_next.texi: New file.
8316         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
8317         * doc/glibc-functions/inet6_rth_add.texi: New file.
8318         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
8319         * doc/glibc-functions/inet6_rth_init.texi: New file.
8320         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
8321         * doc/glibc-functions/inet6_rth_segments.texi: New file.
8322         * doc/glibc-functions/inet6_rth_space.texi: New file.
8323         * doc/glibc-functions/login.texi: New file.
8324         * doc/glibc-functions/mbrtoc16.texi: New file.
8325         * doc/glibc-functions/mbrtoc32.texi: New file.
8326         * doc/glibc-functions/name_to_handle_at.texi: New file.
8327         * doc/glibc-functions/ntp_gettimex.texi: New file.
8328         * doc/glibc-functions/open_by_handle_at.texi: New file.
8329         * doc/glibc-functions/prlimit.texi: New file.
8330         * doc/glibc-functions/process_vm_readv.texi: New file.
8331         * doc/glibc-functions/process_vm_writev.texi: New file.
8332         * doc/glibc-functions/recvmmsg.texi: New file.
8333         * doc/glibc-functions/scandirat.texi: New file.
8334         * doc/glibc-functions/sendmmsg.texi: New file.
8335         * doc/glibc-functions/setns.texi: New file.
8336         * doc/glibc-functions/timespec_get.texi: New file.
8337         * doc/gnulib.texi: Include them.
8338         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
8339         sections.
8340         Reported by Eric Blake.
8341
8342 2012-02-28  Bruno Haible  <bruno@clisp.org>
8343
8344         Avoid compilation errors with MSVC option -fp:strict.
8345         * lib/floor.c: Use MSVC specific pragma fenv_access.
8346         * lib/ceil.c: Likewise.
8347         * lib/trunc.c: Likewise.
8348         * lib/round.c: Likewise.
8349         * lib/rint.c: Likewise.
8350         * lib/fma.c: Likewise.
8351         * lib/integer_length.c: Likewise.
8352         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8353         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8354         * tests/test-floor2.c: Likewise.
8355         * tests/test-floorf2.c: Likewise.
8356         * tests/test-ceil2.c: Likewise.
8357         * tests/test-ceilf2.c: Likewise.
8358         * tests/test-trunc2.c: Likewise.
8359         * tests/test-truncf2.c: Likewise.
8360         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8361
8362 2012-02-27  Bruno Haible  <bruno@clisp.org>
8363
8364         Tests for module 'sqrtl-ieee'.
8365         * modules/sqrtl-ieee-tests: New file.
8366         * tests/test-sqrtl-ieee.c: New file.
8367
8368         New module 'sqrtl-ieee'.
8369         * modules/sqrtl-ieee: New file.
8370
8371         Tests for module 'sqrt-ieee'.
8372         * modules/sqrt-ieee-tests: New file.
8373         * tests/test-sqrt-ieee.c: New file.
8374
8375         New module 'sqrt-ieee'.
8376         * modules/sqrt-ieee: New file.
8377
8378         Tests for module 'sqrtf-ieee'.
8379         * modules/sqrtf-ieee-tests: New file.
8380         * tests/test-sqrtf-ieee.c: New file.
8381         * tests/test-sqrt-ieee.h: New file.
8382
8383         New module 'sqrtf-ieee'.
8384         * modules/sqrtf-ieee: New file.
8385
8386 2012-02-27  Bruno Haible  <bruno@clisp.org>
8387
8388         remainderl-ieee: Work around test failure on OSF/1.
8389         * m4/remainderl-ieee.m4: New file.
8390         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
8391         present, test whether remainderl works with a zero second argument.
8392         Replace it if not.
8393         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
8394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
8395         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
8396         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
8397         (Depends-on): Update conditions.
8398         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
8399         (Depends-on): Add remainder-ieee.
8400         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
8401         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
8402         module.
8403
8404         remainderf-ieee: Work around test failure on OSF/1.
8405         * m4/remainderf-ieee.m4: New file.
8406         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
8407         present, test whether remainderf works with a zero second argument.
8408         Replace it if not.
8409         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
8410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
8411         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
8412         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
8413         (Depends-on): Update conditions.
8414         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
8415         (Depends-on): Add remainder-ieee.
8416         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
8417         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
8418         module.
8419
8420         remainder-ieee: Work around test failure on OSF/1.
8421         * m4/remainder-ieee.m4: New file.
8422         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
8423         present, test whether remainder works with a zero second argument.
8424         Replace it if not.
8425         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
8426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
8427         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
8428         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
8429         (Depends-on): Update dependencies.
8430         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
8431         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
8432         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
8433
8434         Tests for module 'remainderl-ieee'.
8435         * modules/remainderl-ieee-tests: New file.
8436         * tests/test-remainderl-ieee.c: New file.
8437
8438         New module 'remainderl-ieee'.
8439         * modules/remainderl-ieee: New file.
8440
8441         Tests for module 'remainder-ieee'.
8442         * modules/remainder-ieee-tests: New file.
8443         * tests/test-remainder-ieee.c: New file.
8444
8445         New module 'remainder-ieee'.
8446         * modules/remainder-ieee: New file.
8447
8448         Tests for module 'remainderf-ieee'.
8449         * modules/remainderf-ieee-tests: New file.
8450         * tests/test-remainderf-ieee.c: New file.
8451         * tests/test-remainder-ieee.h: New file.
8452
8453         New module 'remainderf-ieee'.
8454         * modules/remainderf-ieee: New file.
8455
8456 2012-02-27  Bruno Haible  <bruno@clisp.org>
8457
8458         modff, modfl: Fix configure syntax error.
8459         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
8460         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8461
8462 2012-02-27  Bruno Haible  <bruno@clisp.org>
8463
8464         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
8465         * m4/fmodl-ieee.m4: New file.
8466         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
8467         whether fmodl works with zero arguments. Replace it if not.
8468         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
8469         (Depends-on): Add fmod-ieee.
8470         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
8471         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
8472
8473         fmodf-ieee: Work around test failure on OSF/1.
8474         * m4/fmodf-ieee.m4: New file.
8475         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
8476         whether fmodf works with zero arguments. Replace it if not.
8477         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
8478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
8479         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
8480         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
8481         (Depends-on): Update dependencies.
8482         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
8483         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
8484         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
8485
8486         fmodf-ieee: Work around test failure on MSVC 9.
8487         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
8488         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
8489
8490         fmod-ieee: Work around test failures on OSF/1, mingw.
8491         * m4/fmod-ieee.m4: New file.
8492         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
8493         whether fmod works with zero arguments. Replace it if not.
8494         * lib/math.in.h (fmod): New declaration.
8495         * lib/fmod.c: New file.
8496         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
8497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
8498         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
8499         * modules/fmod (Files): Add lib/fmod.c.
8500         (Depends-on): Add math, isinf, trunc, fma.
8501         (configure.ac): Arrange to compile lib/fmod.c if needed.
8502         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
8503         m4/signbit.m4.
8504         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
8505         * tests/test-math-c++.cc: Check the declaration of fmod.
8506         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8507
8508         fmodl-ieee: Fix test failures.
8509         * lib/fmodl.c (fmodl): Treat Inf specially.
8510         * modules/fmodl (Depends-on): Add isinf.
8511
8512         Tests for module 'fmodl-ieee'.
8513         * modules/fmodl-ieee-tests: New file.
8514         * tests/test-fmodl-ieee.c: New file.
8515
8516         New module 'fmodl-ieee'.
8517         * modules/fmodl-ieee: New file.
8518
8519         Tests for module 'fmod-ieee'.
8520         * modules/fmod-ieee-tests: New file.
8521         * tests/test-fmod-ieee.c: New file.
8522
8523         New module 'fmod-ieee'.
8524         * modules/fmod-ieee: New file.
8525
8526         Tests for module 'fmodf-ieee'.
8527         * modules/fmodf-ieee-tests: New file.
8528         * tests/test-fmodf-ieee.c: New file.
8529         * tests/test-fmod-ieee.h: New file.
8530
8531         New module 'fmodf-ieee'.
8532         * modules/fmodf-ieee: New file.
8533
8534 2012-02-27  Bruno Haible  <bruno@clisp.org>
8535
8536         Tests for module 'rintl-ieee'.
8537         * modules/rintl-ieee-tests: New file.
8538         * tests/test-rintl-ieee.c: New file.
8539
8540         New module 'rintl-ieee'.
8541         * modules/rintl-ieee: New file.
8542
8543         Tests for module 'rint-ieee'.
8544         * modules/rint-ieee-tests: New file.
8545         * tests/test-rint-ieee.c: New file.
8546
8547         New module 'rint-ieee'.
8548         * modules/rint-ieee: New file.
8549
8550         Tests for module 'rintf-ieee'.
8551         * modules/rintf-ieee-tests: New file.
8552         * tests/test-rintf-ieee.c: New file.
8553         * tests/test-rint-ieee.h: New file.
8554
8555         New module 'rintf-ieee'.
8556         * modules/rintf-ieee: New file.
8557
8558 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8559
8560         regex: re_search etc. should return -2 when memory exhausted
8561         This bug was uncovered when testing 'grep'.  Without the fix,
8562         re_search and friends return -1 when memory is exhausted, but -1
8563         means no match, and this causes grep to falsely report no-match
8564         instead of memory-exhaustion.  See
8565         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8566         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8567         trouble; this can occur if re_search_internal ran out of memory.
8568
8569 2012-02-26  Bruno Haible  <bruno@clisp.org>
8570
8571         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8572         * m4/modfl-ieee.m4: New file.
8573         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8574         whether modfl works with Inf. Replace it if not.
8575         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8577         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8578         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8579         (Depends-on): Update dependencies.
8580         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8581         m4/signbit.m4.
8582         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8583         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8584
8585         modfl-ieee: Fix dependencies.
8586         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8587
8588         modfl-ieee: Fix test failures.
8589         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8590         * modules/modfl (Depends-on): Add isfinite, isinf.
8591
8592         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8593         * m4/modff-ieee.m4: New file.
8594         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8595         whether modff works with NaN and Inf. Replace it if not.
8596         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8598         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8599         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8600         (Depends-on): Update dependencies.
8601         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8602         m4/signbit.m4.
8603         (Depends-on): Add modf-ieee.
8604         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8605         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8606
8607         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8608         * m4/modf-ieee.m4: New file.
8609         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8610         whether modf works with NaN and Inf. Replace it if not.
8611         * lib/math.in.h (modf): New declaration.
8612         * lib/modf.c: New file.
8613         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8614         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8615         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8616         * modules/modf (Files): Add lib/modf.c.
8617         (Depends-on): Add math, isfinite, trunc, isinf.
8618         (configure.ac): Addrange to compile lib/modf.c if needed.
8619         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8620         m4/signbit.m4.
8621         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8622         * tests/test-math-c++.cc: Check the declaration of modf.
8623         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8624
8625         Tests for module 'modfl-ieee'.
8626         * modules/modfl-ieee-tests: New file.
8627         * tests/test-modfl-ieee.c: New file.
8628
8629         New module 'modfl-ieee'.
8630         * modules/modfl-ieee: New file.
8631
8632         Tests for module 'modf-ieee'.
8633         * modules/modf-ieee-tests: New file.
8634         * tests/test-modf-ieee.c: New file.
8635
8636         New module 'modf-ieee'.
8637         * modules/modf-ieee: New file.
8638
8639         Tests for module 'modff-ieee'.
8640         * modules/modff-ieee-tests: New file.
8641         * tests/test-modff-ieee.c: New file.
8642         * tests/test-modf-ieee.h: New file.
8643
8644         New module 'modff-ieee'.
8645         * modules/modff-ieee: New file.
8646
8647 2012-02-26  Bruno Haible  <bruno@clisp.org>
8648
8649         Tests for module 'fabsl-ieee'.
8650         * modules/fabsl-ieee-tests: New file.
8651         * tests/test-fabsl-ieee.c: New file.
8652
8653         New module 'fabsl-ieee'.
8654         * modules/fabsl-ieee: New file.
8655
8656         Tests for module 'fabs-ieee'.
8657         * modules/fabs-ieee-tests: New file.
8658         * tests/test-fabs-ieee.c: New file.
8659
8660         New module 'fabs-ieee'.
8661         * modules/fabs-ieee: New file.
8662
8663         Tests for module 'fabsf-ieee'.
8664         * modules/fabsf-ieee-tests: New file.
8665         * tests/test-fabsf-ieee.c: New file.
8666         * tests/test-fabs-ieee.h: New file.
8667
8668         New module 'fabsf-ieee'.
8669         * modules/fabsf-ieee: New file.
8670
8671 2012-02-26  Bruno Haible  <bruno@clisp.org>
8672
8673         Tests for module 'fmal-ieee'.
8674         * modules/fmal-ieee-tests: New file.
8675         * tests/test-fmal-ieee.c: New file.
8676
8677         New module 'fmal-ieee'.
8678         * modules/fmal-ieee: New file.
8679
8680         Tests for module 'fma-ieee'.
8681         * modules/fma-ieee-tests: New file.
8682         * tests/test-fma-ieee.c: New file.
8683
8684         New module 'fma-ieee'.
8685         * modules/fma-ieee: New file.
8686
8687         Tests for module 'fmaf-ieee'.
8688         * modules/fmaf-ieee-tests: New file.
8689         * tests/test-fmaf-ieee.c: New file.
8690         * tests/test-fma-ieee.h: New file.
8691
8692         New module 'fmaf-ieee'.
8693         * modules/fmaf-ieee: New file.
8694
8695 2012-02-26  Bruno Haible  <bruno@clisp.org>
8696
8697         Tests for module 'ldexpl-ieee'.
8698         * modules/ldexpl-ieee-tests: New file.
8699         * tests/test-ldexpl-ieee.c: New file.
8700
8701         New module 'ldexpl-ieee'.
8702         * modules/ldexpl-ieee: New file.
8703
8704         Tests for module 'ldexp-ieee'.
8705         * modules/ldexp-ieee-tests: New file.
8706         * tests/test-ldexp-ieee.c: New file.
8707
8708         New module 'ldexp-ieee'.
8709         * modules/ldexp-ieee: New file.
8710
8711         Tests for module 'ldexpf-ieee'.
8712         * modules/ldexpf-ieee-tests: New file.
8713         * tests/test-ldexpf-ieee.c: New file.
8714         * tests/test-ldexp-ieee.h: New file.
8715
8716         New module 'ldexpf-ieee'.
8717         * modules/ldexpf-ieee: New file.
8718
8719 2012-02-26  Bruno Haible  <bruno@clisp.org>
8720
8721         Refactor frexp*-ieee tests.
8722         * tests/test-frexp-ieee.h: New file.
8723         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8724         (main): Just call test_function.
8725         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8726         (main): Just call test_function.
8727         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8728         (main): Just call test_function.
8729         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8730         * modules/frexp-ieee-tests (Files): Likewise.
8731         * modules/frexpl-ieee-tests (Files): Likewise.
8732
8733         Tests for module 'frexpl-ieee'.
8734         * modules/frexpl-ieee-tests: New file.
8735         * tests/test-frexpl-ieee.c: New file.
8736
8737         New module 'frexpl-ieee'.
8738         * modules/frexpl-ieee: New file.
8739
8740         Tests for module 'frexp-ieee'.
8741         * modules/frexp-ieee-tests: New file.
8742         * tests/test-frexp-ieee.c: New file.
8743
8744         New module 'frexp-ieee'.
8745         * modules/frexp-ieee: New file.
8746
8747         Tests for module 'frexpf-ieee'.
8748         * modules/frexpf-ieee-tests: New file.
8749         * tests/test-frexpf-ieee.c: New file.
8750
8751         New module 'frexpf-ieee'.
8752         * modules/frexpf-ieee: New file.
8753
8754 2012-02-26  Bruno Haible  <bruno@clisp.org>
8755
8756         roundl-ieee tests: More tests.
8757         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8758         (main): Add tests for [MX] shaded specification in POSIX.
8759         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8760         (Depends-on): Add isnanl-nolibm.
8761
8762         round-ieee tests: More tests.
8763         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8764         (main): Add tests for [MX] shaded specification in POSIX.
8765         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8766         (Depends-on): Add isnand-nolibm.
8767
8768         roundf-ieee tests: More tests.
8769         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8770         (main): Add tests for [MX] shaded specification in POSIX.
8771         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8772         (Depends-on): Add isnanf-nolibm.
8773
8774         truncl-ieee tests: More tests.
8775         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8776         (main): Add tests for [MX] shaded specification in POSIX.
8777         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8778         (Depends-on): Add isnanl-nolibm.
8779
8780         trunc-ieee tests: More tests.
8781         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8782         (main): Add tests for [MX] shaded specification in POSIX.
8783         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8784         (Depends-on): Add isnand-nolibm.
8785
8786         truncf-ieee tests: More tests.
8787         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8788         (main): Add tests for [MX] shaded specification in POSIX.
8789         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8790         (Depends-on): Add isnanf-nolibm.
8791
8792         ceill-ieee tests: More tests.
8793         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8794         (main): Add tests for [MX] shaded specification in POSIX.
8795         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8796         (Depends-on): Add isnanl-nolibm.
8797
8798         ceil-ieee tests: More tests.
8799         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8800         (main): Add tests for [MX] shaded specification in POSIX.
8801         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8802         (Depends-on): Add isnand-nolibm.
8803
8804         ceilf-ieee tests: More tests.
8805         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8806         (main): Add tests for [MX] shaded specification in POSIX.
8807         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8808         (Depends-on): Add isnanf-nolibm.
8809
8810         floorl-ieee tests: More tests.
8811         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8812         (main): Add tests for [MX] shaded specification in POSIX.
8813         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8814         (Depends-on): Add isnanl-nolibm.
8815
8816         floor-ieee tests: More tests.
8817         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8818         (main): Add tests for [MX] shaded specification in POSIX.
8819         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8820         (Depends-on): Add isnand-nolibm.
8821
8822         floorf-ieee tests: More tests.
8823         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8824         (main): Add tests for [MX] shaded specification in POSIX.
8825         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8826         (Depends-on): Add isnanf-nolibm.
8827
8828 2012-02-26  Bruno Haible  <bruno@clisp.org>
8829
8830         fpieee: More comments.
8831         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8832
8833 2012-02-25  Bruno Haible  <bruno@clisp.org>
8834
8835         Tests for module 'log10l'.
8836         * modules/log10l-tests: New file.
8837         * tests/test-log10l.c: New file.
8838         * tests/test-math-c++.cc: Check the declaration of log10l.
8839
8840         New module 'log10l'.
8841         * lib/math.in.h (log10l): New declaration.
8842         * lib/log10l.c: New file.
8843         * m4/log10l.m4: New file.
8844         * modules/log10l: New file.
8845         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8846         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8847         HAVE_DECL_LOG10L.
8848         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8849         HAVE_DECL_LOG10L.
8850         * doc/posix-functions/log10l.texi: Mention the new module.
8851
8852 2012-02-25  Bruno Haible  <bruno@clisp.org>
8853
8854         fmodl, remainder*: Avoid wrong results due to rounding errors.
8855         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8856         expected bounds.
8857         * lib/remainderf.c (remainderf): Likewise.
8858         * lib/remainder.c (remainder): Likewise.
8859         * lib/remainderl.c (remainderl): Likewise.
8860
8861 2012-02-25  Bruno Haible  <bruno@clisp.org>
8862
8863         Tests for module 'remainderl'.
8864         * modules/remainderl-tests: New file.
8865         * tests/test-remainderl.c: New file.
8866         * tests/test-math-c++.cc: Check the declaration of remainderl.
8867
8868         New module 'remainderl'.
8869         * lib/math.in.h (remainderl): New declaration.
8870         * lib/remainderl.c: New file.
8871         * m4/remainderl.m4: New file.
8872         * modules/remainderl: New file.
8873         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8875         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8876         HAVE_REMAINDERL.
8877         * doc/posix-functions/remainderl.texi: Mention the new module.
8878
8879 2012-02-25  Bruno Haible  <bruno@clisp.org>
8880
8881         Tests for module 'remainderf'.
8882         * modules/remainderf-tests: New file.
8883         * tests/test-remainderf.c: New file.
8884         * tests/test-math-c++.cc: Check the declaration of remainderf.
8885
8886         New module 'remainderf'.
8887         * lib/math.in.h (remainderf): New declaration.
8888         * lib/remainderf.c: New file.
8889         * m4/remainderf.m4: New file.
8890         * modules/remainderf: New file.
8891         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8893         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8894         HAVE_REMAINDERF.
8895         * doc/posix-functions/remainderf.texi: Mention the new module.
8896
8897 2012-02-25  Bruno Haible  <bruno@clisp.org>
8898
8899         remainder: Support for MSVC.
8900         * lib/math.in.h (remainder): New declaration.
8901         * lib/remainder.c: New file.
8902         * m4/remainder.m4: New file.
8903         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8904         (Depends-on): Add math, round, fma.
8905         (configure.ac): Use results of gl_FUNC_REMAINDER.
8906         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8907         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8908         HAVE_DECL_REMAINDER.
8909         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8910         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8911         * tests/test-math-c++.cc: Check the declaration of remainder.
8912         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8913         problems are fixed.
8914
8915 2012-02-25  Bruno Haible  <bruno@clisp.org>
8916
8917         Tests for module 'fmodl'.
8918         * modules/fmodl-tests: New file.
8919         * tests/test-fmodl.c: New file.
8920         * tests/test-math-c++.cc: Check the declaration of fmodl.
8921
8922         New module 'fmodl'.
8923         * lib/math.in.h (fmodl): New declaration.
8924         * lib/fmodl.c: New file.
8925         * m4/fmodl.m4: New file.
8926         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8928         REPLACE_FMODL.
8929         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8930         REPLACE_FMODL.
8931         * modules/fmodl: New file.
8932         * doc/posix-functions/fmodl.texi: Mention the new module.
8933
8934 2012-02-25  Bruno Haible  <bruno@clisp.org>
8935
8936         Tests for module 'modfl'.
8937         * modules/modfl-tests: New file.
8938         * tests/test-modfl.c: New file.
8939         * tests/test-math-c++.cc: Check the declaration of modfl.
8940
8941         New module 'modfl'.
8942         * lib/math.in.h (modfl): New declaration.
8943         * lib/modfl.c: New file.
8944         * m4/modfl.m4: New file.
8945         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8947         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8948         * modules/modfl: New file.
8949         * doc/posix-functions/modfl.texi: Mention the new module.
8950
8951 2012-02-25  Bruno Haible  <bruno@clisp.org>
8952
8953         Tests for module 'fabsl'.
8954         * modules/fabsl-tests: New file.
8955         * tests/test-fabsl.c: New file.
8956         * tests/test-math-c++.cc: Check the declaration of fabsl.
8957
8958         New module 'fabsl'.
8959         * lib/math.in.h (fabsl): New declaration.
8960         * lib/fabsl.c: New file.
8961         * m4/fabsl.m4: New file.
8962         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8963         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8964         REPLACE_FABSL.
8965         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8966         REPLACE_FABSL.
8967         * modules/fabsl: New file.
8968         * doc/posix-functions/fabsl.texi: Mention the new module.
8969
8970 2012-02-25  Bruno Haible  <bruno@clisp.org>
8971
8972         fabs tests: More tests.
8973         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8974         (zero): New variable.
8975         (main): Add tests for signed zero.
8976         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8977
8978         fabsf tests: More tests.
8979         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8980         (zero): New variable.
8981         (main): Add tests for signed zero.
8982         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8983
8984 2012-02-24  Bruno Haible  <bruno@clisp.org>
8985
8986         atanl: Provide function definition on MSVC.
8987         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8988         function pointer.
8989         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8990
8991 2012-02-24  Bruno Haible  <bruno@clisp.org>
8992
8993         acosl: Provide function definition on MSVC.
8994         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8995         function pointer.
8996         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8997
8998 2012-02-24  Bruno Haible  <bruno@clisp.org>
8999
9000         asinl: Provide function definition on MSVC.
9001         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
9002         function pointer.
9003         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
9004
9005 2012-02-24  Bruno Haible  <bruno@clisp.org>
9006
9007         tanl: Provide function definition on MSVC.
9008         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
9009         function pointer.
9010         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
9011
9012 2012-02-24  Bruno Haible  <bruno@clisp.org>
9013
9014         cosl: Provide function definition on MSVC.
9015         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
9016         function pointer.
9017         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
9018
9019 2012-02-24  Bruno Haible  <bruno@clisp.org>
9020
9021         sinl: Provide function definition on MSVC.
9022         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
9023         function pointer.
9024         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
9025
9026 2012-02-24  Bruno Haible  <bruno@clisp.org>
9027
9028         logl: Provide function definition on MSVC.
9029         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
9030         function pointer.
9031         * lib/math.in.h (logl): Undefine if it does not exist as a function.
9032
9033 2012-02-24  Bruno Haible  <bruno@clisp.org>
9034
9035         expl: Provide function definition on MSVC.
9036         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
9037         function pointer.
9038         * lib/math.in.h (expl): Undefine if it does not exist as a function.
9039
9040 2012-02-24  Bruno Haible  <bruno@clisp.org>
9041
9042         sqrtl: Provide function definition on MSVC.
9043         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
9044         a function pointer.
9045         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
9046
9047 2012-02-24  Bruno Haible  <bruno@clisp.org>
9048
9049         ceill: Provide function definition on MSVC.
9050         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
9051         used as a function pointer.
9052         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
9053
9054 2012-02-24  Bruno Haible  <bruno@clisp.org>
9055
9056         floorl: Provide function definition on MSVC.
9057         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
9058         used as a function pointer.
9059         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
9060
9061 2012-02-24  Bruno Haible  <bruno@clisp.org>
9062
9063         ceilf: Provide function definition on MSVC.
9064         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
9065         used as a function pointer.
9066         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
9067
9068 2012-02-24  Bruno Haible  <bruno@clisp.org>
9069
9070         floorf: Provide function definition on MSVC.
9071         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
9072         used as a function pointer.
9073         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
9074
9075 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9076
9077         stdnoreturn: new module
9078         This implements a replacement for C11's <stdnoreturn.h>.
9079         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
9080         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
9081         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
9082         * tests/test-stdnoreturn.c: New files.
9083
9084 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
9085
9086         regex: fix false multibyte matches in some regular expressions
9087         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
9088         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
9089         * lib/regex_internal.c (re_string_skip_chars):
9090         Fix miscomputation of remain_len that may cause incomplete
9091         multi-byte character and false match.
9092
9093 2012-02-24  Jim Meyering  <meyering@redhat.com>
9094
9095         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
9096         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
9097         uses with "==" *before* the call, e.g., 0 == strcmp (...)
9098         Remove now-unnecessary str''cmp obfuscation.
9099         Suggested by Akim Demaille.
9100
9101 2012-02-24  Bruno Haible  <bruno@clisp.org>
9102
9103         streq: Rename macro.
9104         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
9105         * NEWS: Mention the change.
9106         * lib/mbrtowc.c (mbrtowc): Update.
9107         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
9108         * lib/wcwidth.c (wcwidth): Update.
9109         Suggested by Akim Demaille and Jim Meyering.
9110
9111 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9112
9113         regex: fix typo in definition of MIN
9114         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
9115         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
9116
9117 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9118             Bruno Haible  <bruno@clisp.org>
9119
9120         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
9121         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
9122         entries into a stack-allocated buffer directly.
9123         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
9124
9125 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9126             Bruno Haible  <bruno@clisp.org>
9127
9128         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
9129
9130          - There were several instances of this pattern:
9131
9132              for (;;) {
9133                n = acl (f, GETACLCNT, 0, NULL);
9134                [ allocate an array A of size N ]
9135                if (acl (f, GETACL, n, a) == n)
9136                  break;
9137              }
9138
9139            This loop might never terminate if some other process is constantly
9140            manipulating the file's ACL.  The loop should be rewritten to
9141            terminate.
9142
9143          - The acl (... GETACLNT ...) call is merely an optimization; its value
9144            is merely a hint as to how big to make the array.  A better
9145            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
9146            and just guess a reasonably-big size, growing the size and trying
9147            again if it's not large enough.  This guarantees termination, and
9148            saves a system call.
9149
9150         * lib/acl-internal.h: Include <limits.h>.
9151         (MIN, SIZE_MAX): New macros.
9152         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
9153         a stack-allocated buffer, and use malloc if it does not fit. Don't
9154         use GETACLCNT.
9155         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9156
9157 2012-02-19  Bruno Haible  <bruno@clisp.org>
9158
9159         acl: Fix endless loop on Solaris with vxfs.
9160         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
9161         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
9162         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9163         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
9164         * tests/test-sameacls.c (main)[Solaris]: Likewise.
9165         Reported by Bill Jones in
9166         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
9167
9168 2012-02-19  Bruno Haible  <bruno@clisp.org>
9169
9170         acl: Fix copy-acl test failure on Solaris 11 2011-11.
9171         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
9172         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
9173         that this function returns 0 in some more cases.
9174
9175 2012-02-19  Bruno Haible  <bruno@clisp.org>
9176
9177         acl: Update doc references.
9178         * doc/acl-resources.txt: Update links to Solaris documentation.
9179
9180 2012-02-19  Bruno Haible  <bruno@clisp.org>
9181
9182         Fix test failure in many locales on Solaris 11.
9183         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
9184         'tr' arguments.
9185         * tests/test-pipe-filter-ii1.c (main): Likewise.
9186         * build-aux/bootstrap (check_versions): Run 'tr' command with range
9187         expressions in the C locale.
9188         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9189         * m4/host-os.m4 (gl_HOST_OS): Likewise.
9190
9191 2012-02-19  Bruno Haible  <bruno@clisp.org>
9192
9193         gnulib-tool: Improve usage message.
9194         * gnulib-tool (func_usage): Move doc of --help and --version to the
9195         section "Operation modes".
9196
9197 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
9198
9199         README-release: make it easier to execute commands
9200         * top/README-release: break commands out on to separate lines.
9201
9202 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
9203
9204         GNUmakefile: simplify detection of unconfigured trees
9205         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
9206         whether the tree make is being run from is already configured or
9207         not.  Related simplifications.
9208
9209 2012-02-13  Simon Josefsson  <simon@josefsson.org>
9210
9211         * gnulib-tool (func_usage): Document --help and --version.
9212
9213 2012-02-11  Jim Meyering  <meyering@redhat.com>
9214
9215         bootstrap: don't exit 0 upon gnulib-tool failure
9216         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
9217         its exit status, not 0.
9218
9219 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
9220
9221         README-release: various improvements
9222         * top/README-release: Give a command to push changes for the
9223         release.  Add "distcheck" to list of other pre-release checks.
9224         Fix instance of "make stable" which should be "make TYPE".
9225
9226 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9227
9228         maint: replace FSF snail-mail addresses with URLs
9229         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
9230         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
9231         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
9232         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
9233         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
9234         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
9235         * lib/check-version.c, lib/check-version.h, lib/config.charset:
9236         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
9237         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
9238         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
9239         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
9240         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
9241         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
9242         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
9243         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
9244         * lib/glthread/thread.c, lib/glthread/thread.h:
9245         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
9246         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
9247         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
9248         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
9249         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
9250         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
9251         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
9252         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
9253         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
9254         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
9255         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
9256         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
9257         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
9258         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
9259         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
9260         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
9261         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
9262         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
9263         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
9264         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
9265         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
9266         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
9267         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
9268         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
9269         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
9270         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
9271         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
9272         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
9273         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
9274         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
9275         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
9276         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
9277         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
9278         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
9279         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
9280         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
9281         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
9282         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
9283         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
9284         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
9285         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
9286         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
9287         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
9288         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
9289         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
9290         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
9291         * tests/test-poll.c, tests/test-quotearg-simple.c:
9292         * tests/test-quotearg.c, tests/test-quotearg.h:
9293         * tests/test-round-ieee.c, tests/test-round1.c:
9294         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
9295         * tests/test-roundl-ieee.c, tests/test-roundl.c:
9296         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
9297         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
9298         * tests/test-strerror.c, tests/test-strerror_r.c:
9299         * tests/test-strsignal.c, tests/test-strverscmp.c:
9300         * tests/test-xmemdup0.c:
9301         Replace FSF snail mail addresses with URLs, as per GNU coding
9302         standards.  See glibc bug
9303         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
9304
9305 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9306
9307         README-release: capitalize a word and split a line
9308         * top/README-release: Fix punctuation and spacing.
9309
9310 2012-02-08  Akim Demaille  <demaille@gostai.com>
9311
9312         fatal-signal: use C prototypes (with explicit void).
9313         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9314         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
9315
9316 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9317
9318         regex: spelling fix
9319         * lib/regexec.c: spelling fix
9320
9321         regex: rely on stdint.h for SIZE_MAX
9322         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
9323
9324 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9325
9326         regex: merge glibc changes
9327
9328         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
9329         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
9330         (init_word_char): Work even if bitset words are not exactly 32 or
9331         64 bits wide.  Don't assume there are no padding bits.
9332         * lib/regex.c [_LIBC]: Do not include <config.h>.
9333         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
9334         and -Wtype-limits.
9335         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
9336         needless disagreement with glibc.  All uses changed.  Define it to
9337         1 only if _GNU_SOURCE, to match glibc.
9338         (_REG_RM_NAME): Remove; no longer needed, since the names in
9339         question are now all protected by __USE_GNU.
9340         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
9341         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
9342         * lib/regex_internal.h (MIN): New macro.
9343
9344         2012-01-03 Ulrich Drepper <drepper@gmail.com>
9345         * lib/regcomp.c (init_word_char): Optimize regex a bit.
9346
9347         2011-12-30 Jakub Jelinek <jakub@redhat.com>
9348         * lib/regex_internal.c (re_string_fetch_byte_case):
9349         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
9350         is miscompiled, and it turns out it is because of an incorrect
9351         attribute on re_string_fetch_byte_case.  Unlike
9352         re_string_peek_byte_case, this one is really not pure, it modifies
9353         memory (increments pstr->cur_idx), and with the pure attribute GCC
9354         assumed it doesn't and it cached the presumed value of
9355         regexp->cur_idx in a variable across the
9356          for (;; ++i)
9357            {
9358              if (i >= BRACKET_NAME_BUF_SIZE)
9359                return REG_EBRACK;
9360              if (token->type == OP_OPEN_CHAR_CLASS)
9361                ch = re_string_fetch_byte_case (regexp);
9362              else
9363                ch = re_string_fetch_byte (regexp);
9364              if (re_string_eoi(regexp))
9365                return REG_EBRACK;
9366              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
9367                break;
9368              elem->opr.name[i] = ch;
9369            }
9370
9371         2011-11-29 Andreas Schwab <schwab@redhat.com>
9372         * lib/regcomp.c (build_equiv_class):
9373         Fix access after end of search string in regex matcher.
9374
9375         2011-11-12 Ulrich Drepper <drepper@redhat.com>
9376         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
9377
9378         2011-10-12 Ulrich Drepper <drepper@redhat.com>
9379         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
9380
9381         2011-10-11 Ulrich Drepper <drepper@redhat.com>
9382         * lib/regcomp.c (parse_branch, parse_sub_exp):
9383         More regex memory leak fixes and tests.
9384         (parse_sub_exp, parse_bracket_exp):
9385         Fix memory leak for some invalid regular expressions.
9386
9387         2011-05-28 Ulrich Drepper <drepper@gmail.com>
9388         * lib/regex_internal.c, lib/regexec.c:
9389         Fix unnecessary overallocation due to incomplete character.  When
9390         incomplete characters are found at the end of a string the code
9391         ran amok and allocated lots of memory.  Stricter limits are now in
9392         place.
9393
9394         2011-05-20 Reuben Thomas <rrt@sc3d.org>
9395         * lib/regex.h: Update documentation.
9396
9397         2011-05-16 Aharon Robbins <arnold@skeeve.com>
9398         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
9399
9400         2010-05-05 Andreas Schwab <schwab@redhat.com>
9401         * lib/regexec.c (find_collation_sequence_value):
9402         Fix lookup of collation sequence value during regexp matching.
9403
9404         2010-01-22 Ulrich Drepper <drepper@redhat.com>
9405         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
9406
9407         2008-01-16 Ulrich Drepper <drepper@redhat.com>
9408         * lib/regex.h: Cleanup namespace.
9409
9410         2007-11-26 Ulrich Drepper <drepper@redhat.com>
9411         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
9412
9413         2007-08-26 Ulrich Drepper <drepper@redhat.com>
9414         * lib/regex_internal.h: Prevent some declarations and definitions
9415         to be seen when used in tests.
9416
9417         2005-05-06 Ulrich Drepper <drepper@redhat.com>
9418         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
9419         __libc_lock_* macros if not _LIBC.
9420         (struct re_dfa_t): Add lock.
9421
9422 2012-02-07  Eric Blake  <eblake@redhat.com>
9423
9424         maint.mk: also prohibit lower-case @var@
9425         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
9426         lower case, like @top_srcdir@.
9427
9428 2012-02-04  Eric Blake  <eblake@redhat.com>
9429
9430         canonicalize: avoid uninitialized memory use
9431         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
9432         random '/' left in dest.
9433         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
9434
9435 2012-02-04  Bruno Haible  <bruno@clisp.org>
9436
9437         isatty: Fix test failure of ptsname_r on native Windows.
9438         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
9439         and don't set errno.
9440         (isatty): Test first whether fd is valid. Set errno when returning 0.
9441
9442 2012-02-04  Bruno Haible  <bruno@clisp.org>
9443
9444         spawn-pipe tests: Fix a NULL program name in a diagnostic.
9445         * tests/test-spawn-pipe-main.c: Include progname.h.
9446         (main): Invoke set_program_name.
9447         * modules/spawn-pipe-tests (Depends-on): Add progname.
9448
9449         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
9450         * tests/test-nonblocking-socket-main.c: Include progname.h.
9451         (main): Invoke set_program_name.
9452         * modules/nonblocking-socket-tests (Depends-on): Add progname.
9453
9454         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
9455         * tests/test-nonblocking-pipe-main.c: Include progname.h.
9456         (main): Invoke set_program_name.
9457         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
9458
9459 2012-02-04  Eric Blake  <eblake@redhat.com>
9460
9461         canonicalize-lgpl: fix // handling
9462         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
9463
9464         canonicalize: fix // handling
9465         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
9466         /// to //, since only // is special.
9467
9468 2012-02-04  Bruno Haible  <bruno@clisp.org>
9469
9470         ioctl: Fix test failure on native Windows.
9471         * lib/ioctl.c: Include msvc-nothrow.h.
9472         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
9473
9474 2012-02-04  Bruno Haible  <bruno@clisp.org>
9475
9476         fsync: Avoid test failure on native Windows.
9477         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
9478         read-only.
9479
9480 2012-02-04  Bruno Haible  <bruno@clisp.org>
9481
9482         sys_select: Avoid syntax error on OpenBSD 5.0.
9483         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
9484         currently being included, just include the system's <sys/select.h>.
9485
9486 2012-02-04  Bruno Haible  <bruno@clisp.org>
9487
9488         sys_select: Avoid syntax error on OpenBSD 5.0.
9489         * lib/sys_select.in.h: Include <signal.h> only after the include_next
9490         <sys/select.h>, not before.
9491         Reported by Jiri B <jirib@devio.us>.
9492
9493 2012-02-04  Bruno Haible  <bruno@clisp.org>
9494
9495         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
9496         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
9497         global variables.
9498         * tests/test-get-rusage-data.c (main): Likewise.
9499         Reported by Jim Meyering.
9500
9501 2012-02-04  Bruno Haible  <bruno@clisp.org>
9502
9503         stdioext: Fix last commit.
9504         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
9505
9506 2012-02-03  Bruno Haible  <bruno@clisp.org>
9507
9508         stdioext: Add tentative support for Plan9.
9509         * lib/stdio-impl.h: Include <errno.h>.
9510         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9511         * lib/freadable.c (freadable): Likewise.
9512         * lib/fwritable.c (fwritable): Likewise.
9513         * lib/fbufmode.c (fbufmode): Likewise.
9514         * lib/freading.c (freading): Likewise.
9515         * lib/fwriting.c (fwriting): Likewise.
9516         * lib/freadptr.c (freadptr): Likewise.
9517         * lib/freadseek.c (freadptrinc): Likewise.
9518         * lib/freadahead.c (freadahead): Likewise.
9519         * lib/fpurge.c (fpurge): Likewise.
9520         * lib/fseeko.c (rpl_fseeko): Likewise.
9521         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9522         Reported by Jens Staal <staal1978@gmail.com>.
9523
9524 2012-02-02  Jim Meyering  <meyering@redhat.com>
9525
9526         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9527         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9528         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9529         not even to try to add the attribute.  Instead, add a pragma to suppress
9530         the suggestion/warning.
9531
9532 2012-01-31  Karl Berry  <karl@gnu.org>
9533
9534         setstate doc: typo.
9535         * doc/posix-functions/setstate.texi (setstate): { not (.
9536
9537 2012-01-31  Bruno Haible  <bruno@clisp.org>
9538
9539         popen: Make more robust on Windows.
9540         * lib/popen.c: On native Windows, use the _popen based code even if
9541         HAVE_POPEN is set.
9542         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9543         environment variable on native Windows.
9544
9545 2012-01-30  Bruno Haible  <bruno@clisp.org>
9546
9547         pclose: Fix typo.
9548         * lib/stdio.in.h (pclose): Fix typo in warning message.
9549
9550 2012-01-30  Bruno Haible  <bruno@clisp.org>
9551
9552         doc about getlogin_r, setstate.
9553         * doc/posix-functions/getlogin_r.texi: List the incompatible
9554         declaration problem under "not fixed by gnulib".
9555         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9556         problem on Solaris 11 and other platforms.
9557
9558 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9559             Bruno Haible  <bruno@clisp.org>
9560
9561         poll tests: Make test more robust.
9562         * tests/test-poll.c: Include macros.h.
9563         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9564         return value of various I/O operations.
9565         * modules/poll-tests (Files): Add tests/macros.h.
9566
9567 2012-01-30  Bruno Haible  <bruno@clisp.org>
9568
9569         sys_stat: Fix support for mingw64 and MSVC.
9570         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9571         header files already do it.
9572         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9573         stat itself.
9574         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9575
9576 2012-01-30  Bruno Haible  <bruno@clisp.org>
9577
9578         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9579         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9580         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9581
9582 2012-01-29  Bruno Haible  <bruno@clisp.org>
9583
9584         quotearg: Fix test failure on MacOS X 10.5.
9585         * tests/test-quotearg-simple.c: Include localcharset.h.
9586         (main): If the locale encoding is not ASCII, bypass the tests of
9587         locale_quoting_style and clocale_quoting_style.
9588         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9589
9590 2012-01-29  Jim Meyering  <meyering@redhat.com>
9591
9592         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9593         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9594         detect uses of canonicalize_file_name.
9595
9596 2012-01-28  Bruno Haible  <bruno@clisp.org>
9597
9598         test-framework-sh: Fix test failure with AIX 7.1 diff.
9599         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9600         in column 1, like 'diff -c' does.
9601         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9602         whether 'diff -u' is used. Instead, test whether the output contains
9603         some '@' character.
9604
9605 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9606
9607         strtoimax: eliminate need for stdint.h, inttypes.h checks
9608         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9609         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9610         the prerequisites for a recently-introduced strtoimax test.
9611         I guess this might cause strtoimax to be replaced when not
9612         strictly necessary on older hosts, but this shouldn't introduce
9613         any bugs and it should make Emacs 'configure' faster on typical
9614         modern hosts.  Problem discovered when importing the latest gnulib
9615         to an Emacs test version.
9616         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9617
9618 2012-01-28  Bruno Haible  <bruno@clisp.org>
9619
9620         sys_time: Override 'struct timeval' on some native Windows platforms.
9621         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9622         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9623         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9624         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9625         needs to be overridden.
9626         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9627         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9628         * tests/test-sys_select.c: Check that the tv_sec member has the same
9629         size as a 'time_t'.
9630         * tests/test-sys_time.c: Likewise.
9631         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9632         is set, set also REPLACE_GETTIMEOFDAY.
9633         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9634         convert the resulting 'struct timeval' before returning.
9635         * lib/select.c: Include <sys/time.h>.
9636         (select, timeval): Undefine at the right place.
9637         * modules/select (Depends-on): Add sys_time.
9638         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9639         some Windows platforms.
9640         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9641
9642 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9643
9644         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9645         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9646         an integer.
9647         * lib/fcntl.c (dupfd): Likewise.
9648         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9649
9650 2012-01-28  Bruno Haible  <bruno@clisp.org>
9651
9652         fcntl: Avoid compilation error on native Windows.
9653         * modules/fcntl (Depends-on): Add 'close'.
9654
9655 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9656
9657         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9658         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9659         pointer to an integer.
9660         * lib/poll.c (IsConsoleHandle): Likewise.
9661         * lib/isatty.c (IsConsoleHandle): Likewise.
9662
9663 2012-01-28  Jim Meyering  <meyering@redhat.com>
9664
9665         doc: clarify README-release
9666         * top/README-release: Clarify: you should make a point to have
9667         the latest stable versions of build tools in your PATH, and the
9668         reference to buildreq is solely for its list of tool names, not
9669         for its minimal-functional version numbers.
9670         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9671
9672         maint.mk: use more readable (yet functionally equivalent) quoting
9673         It is common to quote a single quote in a single quoted string like
9674         this:  '...'\''...'.  Unless you know the idiom, that looks like
9675         gibberish, so prefer to double-quote the string when possible.
9676         Then you can use a more readable, lone single quote: "...'..."
9677         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9678         "don't" is more readable than the equivalent 'don'\''t'.
9679         (sc_cast_of_x_alloc_return_value): Likewise.
9680         (sc_cast_of_alloca_return_value): Likewise.
9681         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9682         rather than '\'':'\''.
9683
9684 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9685
9686         stdalign: relax _Alignof and tighten _Alignas test
9687         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9688         as it was too strict: alignof must divide offsetof, but it need
9689         not equal offsetof.  Inspired by Joseph S. Myers's comment
9690         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9691         Conversely, tighten the _Alignas test a bit, as the resulting
9692         alignment must be exactly 8.
9693
9694 2012-01-27  Bruno Haible  <bruno@clisp.org>
9695
9696         stdalign: Document the last change.
9697         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9698
9699 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9700
9701         stdalign: check that alignof and offsetof are consistent
9702         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9703         Problem reported for gnulib by Richard W.M. Jones in
9704         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9705
9706 2012-01-27  Jim Meyering  <meyering@redhat.com>
9707
9708         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9709         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9710         convert a sequence with gaps to the minimal containing range.
9711         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9712         * tests/test-update-copyright.sh: Test for this.
9713         The FSF confirmed it is ok to do this, assuming there is at
9714         least one significant change per year in the affected range:
9715         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9716
9717 2012-01-26  Bruno Haible  <bruno@clisp.org>
9718
9719         pipe2: refine doc about thread-safety
9720         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9721         multithread-safety problem.
9722         * doc/glibc-functions/accept4.texi: Likewise.
9723
9724 2012-01-26  Bruno Haible  <bruno@clisp.org>
9725
9726         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9727         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9728         In the test program, include <fcntl.h>, for O_RDONLY.
9729
9730 2012-01-26  Eric Blake  <eblake@redhat.com>
9731
9732         pipe2: document lack of thread-safety in replacement
9733         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9734         issue in replacement.
9735         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9736         Based on a report by Eric Wong.
9737
9738 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9739             Bruno Haible  <bruno@clisp.org>
9740
9741         malloca: Avoid warnings on x86_64 mingw64.
9742         * lib/malloca.c: Include <stdint.h>.
9743         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9744         * modules/malloca (Depends-on): Add stdint.
9745         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9746
9747 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9748
9749         obstack: remove __STDC__ conditionals
9750         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9751         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9752         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9753         m4/include_next.m4 as the only gnulib-maintained places that still
9754         refer to __STDC__.
9755
9756 2012-01-24  Bruno Haible  <bruno@clisp.org>
9757
9758         havelib: Modern quoting.
9759         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9760         the recent change to the GNU coding standards.
9761
9762 2012-01-24  Bruno Haible  <bruno@clisp.org>
9763
9764         stdint: Improve support for Android.
9765         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9766         Reported by Simon Josefsson <simon@josefsson.org>.
9767
9768 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9769
9770         doc: omit trailing empty lines from INSTALL etc.
9771         * doc/Makefile (INSTALL): Omit trailing empty lines.
9772         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9773         omit trailing empty lines.  This simplifies the build procedure.
9774
9775 2012-01-23  Jim Meyering  <meyering@redhat.com>
9776
9777         tests: avoid spurious warnings about gl_sockets_startup
9778         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9779         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9780         reporting a "statement with no effect".
9781         * tests/test-accept.c (main): Mark as "(void)".
9782         * tests/test-accept4.c (main): Likewise.
9783         * tests/test-bind.c (main): Likewise.
9784         * tests/test-connect.c (main): Likewise.
9785         * tests/test-getpeername.c (main): Likewise.
9786         * tests/test-getsockname.c (main): Likewise.
9787         * tests/test-getsockopt.c (main): Likewise.
9788         * tests/test-listen.c (main): Likewise.
9789         * tests/test-recv.c (main): Likewise.
9790         * tests/test-recvfrom.c (main): Likewise.
9791         * tests/test-send.c (main): Likewise.
9792         * tests/test-sendto.c (main): Likewise.
9793         * tests/test-setsockopt.c (main): Likewise.
9794         * tests/test-shutdown.c (main): Likewise.
9795
9796 2012-01-21  Bruno Haible  <bruno@clisp.org>
9797
9798         locale-fr.m4: Fix for Android.
9799         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9800         failure of the test program on Bionic libc.
9801
9802 2012-01-21  Jim Meyering  <meyering@redhat.com>
9803
9804         bootstrap: fail when bootstrap_post_import_hook fails
9805         Otherwise, it's far too easy to miss diagnostics emitted
9806         between gnulib-tool's output and that of running configure.
9807         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9808
9809 2012-01-17  Jim Meyering  <meyering@redhat.com>
9810
9811         maint: enable sc_trailing_blank
9812         * build-aux/pmccabe.css: Remove trailing blanks.
9813         * doc/acl-cygwin.txt: Likewise.
9814         * doc/gnu-oids.texi: Likewise
9815         * cfg.mk: Enable sc_trailing_blank.
9816         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9817
9818 2012-01-17  Jim Meyering  <meyering@redhat.com>
9819
9820         maint: enable sc_prohibit_openat_without_use
9821         * cfg.mk: Enable sc_prohibit_openat_without_use.
9822         Exempt lib/selinux-at.c.
9823
9824 2012-01-17  Jim Meyering  <meyering@redhat.com>
9825
9826         maint: enable sc_prohibit_cloexec_without_use
9827         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9828         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9829
9830 2012-01-17  Jim Meyering  <meyering@redhat.com>
9831
9832         maint: enable sc_prohibit_intprops_without_use
9833         * cfg.mk: Enable sc_prohibit_intprops_without_use
9834         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9835
9836 2012-01-17  Jim Meyering  <meyering@redhat.com>
9837
9838         maint: enable sc_prohibit_hash_pjw_without_use
9839         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9840         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9841         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9842         following " (".
9843
9844 2012-01-17  Jim Meyering  <meyering@redhat.com>
9845
9846         maint: enable double-word-prohibiting rule
9847         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9848         Exempt three files.
9849
9850 2012-01-17  Jim Meyering  <meyering@redhat.com>
9851
9852         maint: remove empty lines at EOF, but excluding modules/*
9853         Apply syntax rules at home as well as abroad.  Most changes
9854         were induced by running this:
9855           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9856             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9857             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9858         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9859         Exempt modules/* and two binary files.
9860         Also exempt doc/INSTALL*, per request from Bruno Haible.
9861         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9862         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9863         * doc/Copyright/request-assign.future: Likewise.
9864         * doc/Copyright/request-disclaim.changes: Likewise.
9865         * doc/INSTALL: Likewise.
9866         * doc/INSTALL.ISO: Likewise.
9867         * doc/INSTALL.UTF-8: Likewise.
9868         * doc/acl-cygwin.txt: Likewise.
9869         * doc/acl-resources.txt: Likewise.
9870         * doc/fdl-1.2.texi: Likewise.
9871         * doc/fdl-1.3.texi: Likewise.
9872         * doc/fdl.texi: Likewise.
9873         * lib/argp-pin.c: Likewise.
9874         * lib/round.c: Likewise.
9875         * lib/unicase/u16-totitle.c: Likewise.
9876         * lib/unictype/block_test.c: Likewise.
9877         * lib/uninorm/canonical-decomposition.c: Likewise.
9878         * m4/README: Likewise.
9879         * m4/relocatable-lib.m4: Likewise.
9880         * tests/test-isnand-nolibm.c: Likewise.
9881         * tests/test-isnand.c: Likewise.
9882         * tests/uninorm/NormalizationTest.txt: Likewise.
9883
9884 2012-01-17  Jim Meyering  <meyering@redhat.com>
9885
9886         maint: add framework to run syntax-check rules against gnulib sources
9887         * cfg.mk: New file, to disable all currently-failing tests.
9888         We'll enable them one by one, as they are made to pass.
9889         * Makefile (sc_maint): New rule.
9890
9891 2012-01-21  Bruno Haible  <bruno@clisp.org>
9892
9893         stdint: Add support for Android.
9894         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9895         include the system's <stdint.h>.
9896         Reported by Simon Josefsson <simon@josefsson.org>.
9897
9898 2012-01-19  Jim Meyering  <meyering@redhat.com>
9899
9900         bootstrap: add bootstrap_post_import_hook
9901         Bison does still need something like the gnulib_mk_hook whose
9902         invocation I had to remove along with slurp in commit 767ccd40.
9903         Technically, we could get along without it, but doing so would
9904         have required living with a warning and a mandatory post-bootstrap
9905         automake rerun.
9906         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9907         (bootstrap_post_import_hook): New function.
9908         Invoke it after gnulib-tool --import and before autoreconf.
9909
9910 2012-01-18  Jim Meyering  <meyering@redhat.com>
9911
9912         gitlog-to-changelog: don't use "no_"-prefixed variable name
9913         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9914         to enable both --cluster and --no-cluster.  Change variable name,
9915         s/\$no_cluster/$cluster/, and reverse usage to match.
9916
9917         gitlog-to-changelog: use "||", not "or" in expressions
9918         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9919         expressions.
9920
9921 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9922
9923         gitlog-to-changelog: new option --no-cluster
9924         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9925         clustering of adjacent commit messages.
9926
9927 2012-01-17  Jim Meyering  <meyering@redhat.com>
9928
9929         maint: spell file systems with two words, not one
9930         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9931         two words, not one.
9932
9933 2012-01-16  Jim Meyering  <meyering@redhat.com>
9934
9935         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9936         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9937
9938 2012-01-16  Eric Blake  <eblake@redhat.com>
9939
9940         bootstrap: cater to autoconf 2.59
9941         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9942         is not available.
9943
9944         bootstrap: properly check for libtool
9945         * build-aux/bootstrap (libtoolize): Also run libtool when older
9946         usage is detected.
9947
9948 2012-01-15  Bruno Haible  <bruno@clisp.org>
9949
9950         Improve support for MSVC 9.
9951         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9952         clashes on MSVC.
9953         * lib/fcntl.in.h: Likewise.
9954         * lib/stdlib.in.h: Likewise.
9955         * lib/sys_stat.in.h: Likewise.
9956
9957 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9958
9959         gnupload: we hold the master copy of this script now
9960         For motivation and more information, see:
9961         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9962         * build-aux/gnupload: Make it clear in the heading comments that the
9963         master copy of this file is maintained by gnulib.  Since we are at
9964         it, bump its copyright year and ...
9965         ($scriptversion): ... the date in its version.
9966         ($usage): Patches and bug reports should be sent to the gnulib list,
9967         not the automake one.
9968         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9969         anymore.
9970
9971 2012-01-15  Bruno Haible  <bruno@clisp.org>
9972
9973         Fix module 'random'.
9974         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9975         initstate, setstate are declared.
9976
9977 2012-01-14  Bruno Haible  <bruno@clisp.org>
9978
9979         Tests for module 'random'.
9980         * modules/random-tests: New file.
9981         * tests/test-random.c: New file, based on tests/test-random_r.c.
9982
9983         New module 'random'.
9984         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9985         declarations.
9986         * lib/random.c: New file, based on glibc/stdlib/random.c.
9987         * m4/random.m4: New file.
9988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9989         HAVE_RANDOM.
9990         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9991         * modules/random: New file.
9992         * config/srclist.txt: Add an entry for random.c.
9993         * doc/posix-functions/random.texi: Mention the 'random' module.
9994         * doc/posix-functions/initstate.texi: Likewise.
9995         * doc/posix-functions/setstate.texi: Likewise.
9996         * doc/posix-functions/srandom.texi: Likewise.
9997
9998 2012-01-12  Bruno Haible  <bruno@clisp.org>
9999
10000         random_r: Use common idioms.
10001         * lib/random_r.c: Include <stdlib.h> first.
10002
10003         random_r: Override incompatible API on AIX, OSF/1.
10004         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
10005         Override the system function if REPLACE_RANDOM_R is 1.
10006         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
10007         and OSF/1, set REPLACE_RANDOM_R.
10008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
10009         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
10010         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
10011         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
10012         * doc/glibc-functions/random_r.texi: Likewise.
10013         * doc/glibc-functions/setstate_r.texi: Likewise.
10014
10015         random_r: Support for MSVC 9.
10016         * lib/random_r.c: Include stdint.h, not inttypes.h.
10017
10018 2012-01-12  Eric Blake  <eblake@redhat.com>
10019
10020         inet_ntop: guard extra work by IF_LINT
10021         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
10022         better code generation when not checking for warnings.
10023         Suggested by Paul Eggert and Jim Meyering.
10024
10025         strptime: fix regression on mingw
10026         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
10027         Fix regression.  Reported by Bruno Haible.
10028
10029 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
10030             Bruno Haible  <bruno@clisp.org>
10031
10032         copy-file: add error-code-returning variant.
10033         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
10034         (qcopy_file_preserving): New declaration.
10035         * lib/copy-file.c (qcopy_file_preserving): Renamed from
10036         copy_file_preserving. Change return type to 'int'. Don't emit an error
10037         message here.
10038         (copy_file_preserving): New function.
10039         * tests/test-copy-file.c: Include <stdlib.h>.
10040         (main): Test qcopy_file_preserving if the environment variable
10041         NO_STDERR_OUTPUT is set.
10042         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
10043         with NO_STDERR_OUTPUT
10044         * tests/test-copy-file-2.sh: Likewise.
10045
10046 2012-01-10  Bruno Haible  <bruno@clisp.org>
10047
10048         copy-file: Use 'quote' module consistently.
10049         * lib/copy-file.c (copy_file_preserving): Use quote().
10050
10051         copy-file: Refactor.
10052         * lib/copy-file.c: Include quote.h.
10053         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
10054         message here.
10055         * modules/copy-file (Depends-on): Add quote.
10056
10057         acl: Export qcopy_acl.
10058         * lib/acl.h (qcopy_acl): New declaration.
10059         * lib/copy-acl.c (qcopy_acl): Make non-static.
10060
10061         acl: Rename a local variable.
10062         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
10063
10064         acl: Align return values of copy_acl and qcopy_acl.
10065         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
10066         maybe < -1.
10067
10068 2012-01-11  Eric Blake  <eblake@redhat.com>
10069
10070         strptime: silence gcc warnings
10071         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
10072         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
10073         Reported by Daniel P. Berrange.
10074
10075         inet_ntop: silence gcc warning
10076         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
10077         Reported by Daniel P. Berrange.
10078
10079 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
10080
10081         getloadavg test: skip the test on GNU/Linux without /proc mounted
10082         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
10083         file.  When /proc is not mounted, it always fails with ENOENT.
10084         * tests/test-getloadavg.c (main): Treat ENOENT return code from
10085         getloadavg(3) the same way as ENOSYS and ENOTSUP.
10086
10087 2012-01-10  Bruno Haible  <bruno@clisp.org>
10088
10089         regex: Avoid link error on MSVC 9.
10090         * modules/regex (Depends-on): Add wctype.
10091
10092 2012-01-10  Bruno Haible  <bruno@clisp.org>
10093
10094         doc: Mention --with-tests option.
10095         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
10096         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
10097         --with-tests.
10098         Reported by Reuben Thomas.
10099
10100 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
10101
10102         users.txt: order package names lexicographically.
10103         * users.txt: Order package names lexicographically.
10104
10105 2012-01-10  Jim Meyering  <meyering@redhat.com>
10106
10107         maint.mk: fix description in comment
10108         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
10109
10110         ignore-value: remove deprecated ignore_ptr function
10111         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
10112         * NEWS: Note this.
10113
10114 2012-01-09  Jim Meyering  <meyering@redhat.com>
10115
10116         test-init.sh: avoid a subshell
10117         * tests/test-init.sh: Remove protective subshell.
10118         Suggested by Bernhard Voelker.  While a subshell is normally
10119         required to protect against older shells (Solaris, FreeBSD) that
10120         warn about a missing program before performing redirection, the
10121         shell-selection tests performed by init.sh probably exclude any
10122         offending shell.
10123
10124 2012-01-08  Bruno Haible  <bruno@clisp.org>
10125
10126         setlocale tests: Avoid test failure on Solaris 11 2011-11.
10127         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
10128         variable.
10129
10130 2012-01-08  Bruno Haible  <bruno@clisp.org>
10131
10132         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
10133         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10134         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10135         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
10136         macro.
10137         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
10138         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10139         * lib/spawn_faction_addopen.c: Add workaround implementation if
10140         HAVE_WORKING_POSIX_SPAWN.
10141         * modules/spawn (Makefile): Substitute
10142         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10143         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
10144         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
10145         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10146         (Depends-on): Update conditions.
10147         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
10148         the Solaris 11 bug.
10149
10150 2012-01-08  Bruno Haible  <bruno@clisp.org>
10151
10152         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
10153         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10154         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10155         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
10156         macro.
10157         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
10158         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10159         * lib/spawn_faction_adddup2.c: Add workaround implementation if
10160         HAVE_WORKING_POSIX_SPAWN.
10161         * modules/spawn (Makefile): Substitute
10162         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10163         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
10164         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
10165         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10166         (Depends-on): Update conditions.
10167         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
10168         the Solaris 11 bug.
10169
10170 2012-01-08  Bruno Haible  <bruno@clisp.org>
10171
10172         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
10173         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10174         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10175         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
10176         HAVE_WORKING_POSIX_SPAWN.
10177         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
10178         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
10179         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10180         * lib/spawn_faction_addclose.c: Add workaround implementation if
10181         HAVE_WORKING_POSIX_SPAWN.
10182         * modules/spawn (Makefile): Substitute
10183         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10184         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
10185         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
10186         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10187         (Depends-on): Update conditions.
10188         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10189         the Solaris 11 bug.
10190
10191 2012-01-08  Bruno Haible  <bruno@clisp.org>
10192
10193         doc: Update for Solaris 11 2011-11.
10194         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
10195         * m4/printf.m4: Update comments.
10196
10197 2012-01-08  Bruno Haible  <bruno@clisp.org>
10198
10199         mktime: Avoid compilation error on Solaris 11.
10200         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
10201
10202 2012-01-08  Bruno Haible  <bruno@clisp.org>
10203
10204         doc: Small fix.
10205         * doc/posix-headers/nl_types.texi: Correct platforms list.
10206
10207 2012-01-08  Simon Josefsson  <simon@josefsson.org>
10208
10209         Add lgpl-3.0 module.
10210         * MODULES.html.sh (Support for building documentation): Add
10211         lgpl-3.0.
10212         * modules/lgpl-3.0: New file.
10213
10214 2012-01-08  Jim Meyering  <meyering@redhat.com>
10215
10216         select.c: indent with spaces, not TABs
10217         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
10218
10219 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10220
10221         quotearg: do not use grave accent for left quote
10222         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
10223         locale_quoting_style.
10224         (quotearg_buffer_restyled): Fix example.
10225         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
10226
10227 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10228
10229         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
10230         Most programs do not have translation catalogs for English and much
10231         less separate catalogs for British and American English.  Drop the
10232         suggestion to translators about these two, and provide it
10233         automatically for Unicode locales.  Like most programs, even those
10234         using American English, we use single quotation marks.  This conflicts
10235         with the American typographic convention, but works better when you
10236         cite the entire error message within double quotes.  It also tries not
10237         to clash with established practice and with what non-gnulib programs
10238         will usually do.
10239         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
10240         using an UTF-8 or GB-18030 locale.  The list of other locales with
10241         quotes was provided by Bruno Haible.
10242         (quotearg_buffer_restyled): Adjust instructions to translators.
10243         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
10244         text, since this would be wrong when using Unicode.
10245         * modules/quotearg: Depend on c-strcaseeq.
10246
10247 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10248
10249         quotearg: fix Wikipedia link
10250         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
10251
10252 2012-01-07  Simon Josefsson  <simon@josefsson.org>
10253
10254         Fix for mingw with MSVC9.
10255         * m4/ld-version-script.m4: Check that compiler rejects version
10256         scripts with syntax errors.  Reported by Bruno Haible
10257         <bruno@clisp.org>.
10258
10259 2012-01-06  Bruno Haible  <bruno@clisp.org>
10260
10261         Talk about "native Windows API", not "Woe32".
10262         * lib/accept4.c: Update comments to mention native Windows.
10263         * lib/execute.c: Likewise.
10264         * lib/fatal-signal.c: Likewise.
10265         * lib/localcharset.c: Likewise.
10266         * lib/nanosleep.c: Likewise.
10267         * lib/nl_langinfo.c: Likewise.
10268         * lib/pclose.c: Likewise.
10269         * lib/pipe-filter-gi.c: Likewise.
10270         * lib/pipe-filter-ii.c: Likewise.
10271         * lib/pipe.c: Likewise.
10272         * lib/pipe2.c: Likewise.
10273         * lib/popen.c: Likewise.
10274         * lib/progreloc.c: Likewise.
10275         * lib/relocatable.c: Likewise.
10276         * lib/sigaction.c: Likewise.
10277         * lib/sigprocmask.c: Likewise.
10278         * lib/spawn-pipe.h: Likewise.
10279         * lib/spawn-pipe.c: Likewise.
10280         * lib/spawni.c: Likewise.
10281         * lib/stat-time.h: Likewise.
10282         * lib/w32spawn.h: Likewise.
10283         * tests/test-isatty.c: Likewise.
10284         * lib/config.charset: More comments.
10285         * doc/gnulib-intro.texi: Mention native Windows.
10286         * doc/posix-functions/_Exit_C99.texi: Likewise.
10287         * doc/posix-headers/fcntl.texi: Likewise.
10288
10289 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
10290
10291         argp: Avoid crash if translator uses % characters in a translation.
10292         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
10293         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10294
10295 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10296
10297         doc: C11 and C++11 are now official
10298         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
10299         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
10300         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
10301         * modules/stdalign:
10302         Replace references to draft C1X to C11, and to draft C++0X to C++11.
10303
10304 2012-01-06  Bruno Haible  <bruno@clisp.org>
10305
10306         uc-is-grapheme-break tests: Tweak.
10307         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
10308         message.
10309
10310 2012-01-06  Bruno Haible  <bruno@clisp.org>
10311
10312         test-init.sh: correct the test for diff -u
10313         * tests/test-init.sh: Also redirect stdout to /dev/null.
10314
10315 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10316
10317         Use ', not `, for quoting output.
10318         * build-aux/announce-gen (usage, sizes, print_news_deltas)
10319         (print_changelog_deltas, get_tool_versions, main program):
10320         * build-aux/git-version-gen:
10321         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
10322         * build-aux/move-if-change (help):
10323         * build-aux/useless-if-before-free (usage, main program):
10324         * check-module (parse_module_file, usage)
10325         (find_included_lib_files, check_module):
10326         * lib/argmatch.c (main) [TEST]:
10327         * lib/argp-help.c (_help):
10328         * lib/getopt1.c (main) [TEST]:
10329         * lib/git-merge-changelog.c (usage):
10330         * lib/xstrtol-error.c (xstrtol_error):
10331         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
10332         * m4/argz.m4 (gl_FUNC_ARGZ):
10333         * m4/bison.m4 (gl_BISON):
10334         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
10335         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10336         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10337         * m4/fpending.m4 (gl_PREREQ_FPENDING):
10338         * m4/gc-random.m4 (gl_GC_RANDOM):
10339         * m4/intl.m4 (gt_CHECK_DECL):
10340         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
10341         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
10342         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
10343         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
10344         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10345         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
10346         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
10347         * tests/test-dirname.c (main):
10348         * tests/test-getpass.c (main):
10349         * tests/test-iconvme.c (main):
10350         * tests/test-parse-datetime.c (LOG):
10351         * tests/test-xstrtoimax.sh:
10352         * tests/test-xstrtol.sh:
10353         * tests/test-xstrtoll.sh:
10354         * tests/test-xstrtoumax.sh:
10355         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
10356         * top/GNUmakefile (abort-due-to-no-makefile):
10357         Quote 'like this', not `like this', as per the recent change to
10358         the GNU coding standards.
10359
10360 2012-01-05  Bruno Haible  <bruno@clisp.org>
10361
10362         strtoimax: Don't force a replacement on systems where intmax_t is int.
10363         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
10364         'intmax_t' is not larger than 'int'.
10365         Reported by Pádraig Brady <P@draigBrady.com>.
10366
10367 2012-01-05  Bruno Haible  <bruno@clisp.org>
10368
10369         doc: Mention NetBSD bugs.
10370         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
10371         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
10372
10373 2012-01-05  Bruno Haible  <bruno@clisp.org>
10374
10375         strtoumax tests: Enhance tests.
10376         * tests/test-strtoumax.c (main): Add tests for large values.
10377
10378 2012-01-05  Bruno Haible  <bruno@clisp.org>
10379
10380         strtoimax: Work around AIX 5.1 bug.
10381         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
10382         definition.
10383         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
10384         Set HAVE_STRTOIMAX.
10385         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
10386         REPLACE_STRTOIMAX.
10387         * modules/inttypes-incomplete (Makefile.am): Substitute
10388         REPLACE_STRTOIMAX.
10389         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
10390         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
10391         (Depends-on): Update conditions.
10392         * tests/test-strtoimax.c (main): Add tests for large values.
10393         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
10394
10395 2012-01-05  Bruno Haible  <bruno@clisp.org>
10396
10397         inttypes: Modernize.
10398         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
10399         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
10400         (Makefile.am): Update inttypes.h rule.
10401
10402 2012-01-05  Jim Meyering  <meyering@redhat.com>
10403
10404         init.sh: don't waste a subshell just to redirect stderr
10405         * tests/init.sh: In testing for diff -u and diff -c, use a
10406         stderr-redirecting exec inside `...` rather than a subshell.
10407
10408         test-init.sh: avoid failure on HP-UX 11.00
10409         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
10410         resolves to diff -c or cmp.  Reported by Bruno Haible.
10411
10412 2012-01-05  Bruno Haible  <bruno@clisp.org>
10413
10414         Tests for module 'strtoull'.
10415         * modules/strtoull-tests: New file.
10416         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
10417
10418 2012-01-05  Bruno Haible  <bruno@clisp.org>
10419
10420         Tests for module 'strtoll'.
10421         * modules/strtoll-tests: New file.
10422         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
10423
10424 2012-01-05  Bruno Haible  <bruno@clisp.org>
10425
10426         Tests for module 'strtoul'.
10427         * modules/strtoul-tests: New file.
10428         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
10429
10430 2012-01-05  Bruno Haible  <bruno@clisp.org>
10431
10432         Tests for module 'strtol'.
10433         * modules/strtol-tests: New file.
10434         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
10435
10436 2012-01-04  Jim Meyering  <meyering@redhat.com>
10437
10438         test-init.sh: accommodate Solaris 5.10's different diff -u output
10439         * tests/test-init.sh: Also exempt @@ lines from the comparison
10440         of diff output, since Solaris 5.10 and GNU diff formats differ.
10441         Reported by Stefano Lattarini.
10442
10443 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10444
10445         test-posixtm: don't assume signed integer wraparound
10446         * tests/test-posixtm.c (main): Don't assume wraparound semantics
10447         after signed integer overflow.  Inspired by (though it may not
10448         fix) Bruno Haible's bug report in
10449         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
10450
10451         Spell out "Windows 9x" and "Windows XP".
10452         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
10453         "Windows 9x" and "WinXP" with "Windows XP".
10454
10455 2012-01-04  Jim Meyering  <meyering@redhat.com>
10456
10457         test-vc-list-files-cvs.sh: remove obsolete comment
10458         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
10459         double exit.  Now that's all encapsulated via skip_ and Exit.
10460
10461 2012-01-04  Bruno Haible  <bruno@clisp.org>
10462
10463         Talk about "native Windows API", not "Win32".
10464         * lib/classpath.c: Update comments to mention native Windows.
10465         * lib/csharpexec.c: Likewise.
10466         * lib/dup2.c: Likewise.
10467         * lib/error.c: Likewise.
10468         * lib/fcntl.c: Likewise.
10469         * lib/filename.h: Likewise.
10470         * lib/findprog.c: Likewise.
10471         * lib/get-rusage-as.c: Likewise.
10472         * lib/get-rusage-data.c: Likewise.
10473         * lib/getpagesize.c: Likewise.
10474         * lib/javaexec.c: Likewise.
10475         * lib/msvc-inval.c: Likewise.
10476         * lib/msvc-nothrow.c: Likewise.
10477         * lib/nanosleep.c: Likewise.
10478         * lib/nonblocking.c: Likewise.
10479         * lib/printf-parse.c: Likewise.
10480         * lib/setlocale.c: Likewise.
10481         * lib/sigaction.c: Likewise.
10482         * lib/strerror_r.c: Likewise.
10483         * lib/tmpdir.c: Likewise.
10484         * lib/vasnprintf.c: Likewise.
10485         * lib/w32spawn.h: Likewise.
10486         * lib/waitpid.c: Likewise.
10487         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
10488         * m4/locale-ar.m4: Likewise.
10489         * m4/locale-fr.m4: Likewise.
10490         * m4/locale-ja.m4: Likewise.
10491         * m4/locale-tr.m4: Likewise.
10492         * m4/locale-zh.m4: Likewise.
10493         * m4/printf.m4: Likewise.
10494         * tests/test-cloexec.c: Likewise.
10495         * tests/test-copy-acl.sh: Likewise.
10496         * tests/test-copy-file.sh: Likewise.
10497         * tests/test-file-has-acl.sh: Likewise.
10498         * tests/test-set-mode-acl.sh: Likewise.
10499         * tests/test-dup-safer.c: Likewise.
10500         * tests/test-dup2.c: Likewise.
10501         * tests/test-dup3.c: Likewise.
10502         * tests/test-fcntl.c: Likewise.
10503         * tests/test-nonblocking-pipe.h: Likewise.
10504         * tests/test-nonblocking-socket.h: Likewise.
10505         * tests/test-pipe.c: Likewise.
10506         * tests/test-pipe2.c: Likewise.
10507         * tests/test-spawn-pipe-child.c: Likewise.
10508         * doc/acl-resources.txt: Likewise.
10509         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10510         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10511         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10512         * lib/localcharset.c: Update comments to mention native Windows.
10513         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10514         * lib/localename.c: Likewise.
10515         * lib/progreloc.c: Likewise.
10516         * lib/relocatable.c: Likewise.
10517         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10518         (windows_compute_revents): Renamed from win32_compute_revents.
10519         (windows_compute_revents_socket): Renamed from
10520         win32_compute_revents_socket.
10521         * lib/select.c: Update comments to mention native Windows.
10522         (windows_poll_handle): Renamed from win32_poll_handle.
10523         * m4/threadlib.m4: Update comments to mention native Windows.
10524         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10525         --enable-threads=windows instead of --enable-threads=win32. Set
10526         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10527         * lib/glthread/lock.h: Update comments to mention native Windows.
10528         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10529         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10530         USE_WIN32_THREADS.
10531         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10532         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10533         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10534         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10535         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10536         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10537         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10538         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10539         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10540         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10541         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10542         * tests/test-tls.c: Likewise.
10543         Rationale:
10544         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10545         on both 32-bit and 64-bit Windows systems.
10546         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10547         line of distinction is between "native Windows" on one side and Unix/
10548         POSIX systems on the other side. More details in
10549         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10550         Suggested by Paul Eggert.
10551
10552 2012-01-03  Bruno Haible  <bruno@clisp.org>
10553
10554         isatty: Support for MSVC 9.
10555         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10556         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10557         (_isatty_nothrow): New function.
10558         (isatty): Use it instead of _isatty.
10559         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10560         * lib/poll.c (IsConsoleHandle): Likewise.
10561         * lib/select.c (IsConsoleHandle): Likewise.
10562         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10563         (gl_PREREQ_ISATTY): New macro.
10564         * modules/isatty (Depends-on): Add msvc-inval.
10565         (configure.ac): Invoke gl_PREREQ_ISATTY.
10566
10567 2012-01-03  Jim Meyering  <meyering@redhat.com>
10568
10569         maint.mk: remove temporary transition aid from over 1.5 years ago
10570         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10571         purpose was to aid in the transition (avoiding silent malfunction)
10572         from that old name to the new _sc_search_regexp.  This shim was
10573         added by commit 219c504b.
10574
10575         init.sh: do not try to accommodate compare arguments starting with "-"
10576         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10577         compare arguments that start with "-".  Besides, we do not worry
10578         about this when invoking diff or cmp; why start now with sed?
10579         Using "--" to separate options from argument would trigger sed
10580         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10581         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10582
10583 2012-01-02  Bruno Haible  <bruno@clisp.org>
10584
10585         Enhance tests for module 'isatty'.
10586         * modules/isatty-tests (Depends-on): Add pipe-posix.
10587         * tests/test-isatty.c: Include <fcntl.h>.
10588         (DEV_NULL): New macro.
10589         (main): Test the resut of isatty() also on regular files, pipes, and
10590         /dev/null.
10591
10592         New module 'isatty'.
10593         * lib/unistd.in.h (isatty): New declaration.
10594         * lib/isatty.c: New file, based on an idea of
10595         Bastien Roucariès <roucaries.bastien@gmail.com>.
10596         * m4/isatty.m4: New file.
10597         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10598         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10599         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10600         REPLACE_ISATTY.
10601         * modules/isatty: New file.
10602         * doc/posix-functions/isatty.texi: Mention the new module.
10603         Suggested by Paolo Bonzini.
10604
10605 2012-01-02  Bruno Haible  <bruno@clisp.org>
10606
10607         canonicalize: Tweak 2011-12-29 commit.
10608         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10609         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10610
10611 2012-01-02  Jim Meyering  <meyering@redhat.com>
10612
10613         gitlog-to-changelog: describe input syntax in --help output
10614         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10615
10616         gitlog-to-changelog: fix typo in --help: show backslash before email @
10617         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10618         in sources, but not in actual output.
10619
10620 2011-12-30  Jim Meyering  <meyering@redhat.com>
10621
10622         gitlog-to-changelog: don't malfunction when name contains %-directive
10623         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10624         in a name string cause trouble.  E.g., with a user name of "%s",
10625         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10626
10627 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10628
10629         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10630         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10631         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10632         the "  (tiny change)" notation that is appended to the standard
10633         ChangeLog "date  name  email" header line.
10634
10635 2012-01-01  Jim Meyering  <meyering@redhat.com>
10636
10637         test-framework-sh: init.sh: fix "make dist" failure
10638         When using gnulib-tool's --with-tests option and any module that
10639         depends on test-framework-sh, "make dist" would fail due to the
10640         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10641         in the gltests directory, and not in the gllib/ directory.
10642         One way to work around that is to move the EXTRA_DIST += init.sh
10643         from the primary module to the -tests one:
10644         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10645         * modules/test-framework-sh (Makefile.am): ...not here.
10646         Reported by Tom G. Christensen in
10647         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10648
10649         version-etc: update copyright year reported by --version
10650         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10651
10652 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10653
10654         canonicalize: only stat() if required
10655         * lib/canonicalize.c (canonicalize_filename_mode):
10656         Avoid calling l?stat() when both CAN_MISSING,
10657         and CAN_NOLINKS are set, as we neither need
10658         to resolve symlinks or test component existence.
10659
10660 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10661
10662         doc: cover st_ino issues once; add OpenVMS etc.
10663         * doc/posix-functions/stat.texi (stat):
10664         * doc/posix-functions/lstat.texi (lstat):
10665         * doc/posix-functions/fstatat.texi (fstatat):
10666         * doc/posix-functions/fstat.texi (fstat):
10667         Move general 'struct stat' stuff to sys_stat.texi,
10668         leaving behind a pointer.
10669         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10670         Merge duplicate info about 'struct stat' problems into here.
10671         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10672         and suggest partial workarounds.
10673
10674         same-inode: port to OpenVMS
10675         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10676         three st_ino values.
10677
10678 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10679
10680         canonicalize: fix references to stat() and lstat()
10681         * lib/canonicalize.c (canonicalize_filename_mode):
10682         Ensure references always resolve to a replacement
10683         function if required (even via a macro).
10684
10685 2011-12-30  Jim Meyering  <meyering@redhat.com>
10686
10687         gitlog-to-changelog: remove a little duplication
10688         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10689         rather than twice.
10690
10691 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10692
10693         canonicalize: add support for not resolving symlinks
10694         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10695         indicate we don't want to follow symlinks.  Also
10696         provide CAN_MODE_MASK to aid setting these existing
10697         mutually exclusive values.
10698         * lib/canonicalize.c (canonicalize_filename_mode):
10699         Extract the flags from can_mode parameter, which
10700         are currently just used to select between stat()
10701         and lstat().  Also ensure that mutually exclusive
10702         values are flagged immediately as invalid.
10703         * tests/test-canonicalize.c: Verify symlinks are
10704         not followed, and that invalid flag combinations
10705         are diagnosed.
10706
10707 2011-12-25  Jim Meyering  <meyering@redhat.com>
10708
10709         gitlog-to-changelog: do not clump multi-paragraph entries
10710         Identical header lines (date,name,email+coauthors) are suppressed,
10711         thus putting all entries with those same characteristics under
10712         a single header.  However, when a log entry consists of two or
10713         more paragraphs, it may not be clear where it starts and ends.
10714         This change makes it so that such an entry is always separated
10715         from others by a header line, even when that header would
10716         otherwise be suppressed.
10717         * build-aux/gitlog-to-changelog: Implement the above.
10718         Inspired by a related request from Stefano Lattarini in
10719         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10720
10721 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10722
10723         announce-gen: fix `cmd' typo in diagnostic
10724         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10725         diagnostic: a missing '$' meant that the command was not output.
10726
10727 2011-12-23  Jim Meyering  <meyering@redhat.com>
10728
10729         test-framework-sh: distribute init.sh
10730         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10731         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10732         fail due to the lack of init.sh.
10733
10734         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10735         * modules/atexit-tests: Rather than listing tests/init.sh,
10736         now that there's a module for it, simply depend on that new module.
10737         * modules/closein-tests: Likewise.
10738         * modules/exclude-tests: Likewise.
10739         * modules/getcwd-tests: Likewise.
10740         * modules/perror-tests: Likewise.
10741         * modules/pread-tests: Likewise.
10742         * modules/pwrite-tests: Likewise.
10743         * modules/vc-list-files-tests: Likewise.
10744         * modules/verify-tests: Likewise.
10745         * modules/xalloc-die-tests: Likewise.
10746         * modules/xstrtoimax-tests: Likewise.
10747         * modules/xstrtol-tests: Likewise.
10748         * modules/xstrtoll-tests: Likewise.
10749         * modules/xstrtoumax-tests: Likewise.
10750         * modules/yesno-tests: Likewise.
10751
10752 2011-12-22  Jim Meyering  <meyering@redhat.com>
10753
10754         test-framework-sh: add minimal tests of init.sh's compare function
10755         * modules/test-framework-sh-tests: New file.
10756         * tests/test-init.sh: New file.
10757
10758         test-framework-sh: new module
10759         * modules/test-framework-sh: New file.
10760         * MODULES.html.sh (Support for maintaining and releasing projects):
10761         List it.
10762
10763         init.sh: do not emit simulated diff output to stderr
10764         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10765
10766 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10767
10768         .gitignore: ignore gnulib.dvi and regex.info
10769         * doc/.gitignore:add gnulib.dvi and regex.info
10770
10771 2011-12-22  Jim Meyering  <meyering@redhat.com>
10772
10773         init.sh: correct previous change
10774         * tests/init.sh (compare): My previous change was wrong.
10775         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10776
10777         init.sh: avoid unwarranted test failure when using "set -e"
10778         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10779         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10780         a use like "compare exp out" would get evoke an unconditional failure.
10781
10782 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10783
10784         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10785         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10786         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10787         autoreconf that did not.
10788         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10789         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10790
10791 2011-12-17  Jim Meyering  <meyering@redhat.com>
10792
10793         bootstrap: remove some now-unneeded code
10794         This script arose back when gnulib-tool was young.
10795         Since then, it has seen improvements that render much of this
10796         script unnecessary.  In particular, it can now make symlinks
10797         to the files it uses.  Also, I no longer see as much value in
10798         marking files as read-only via comments.
10799         If you relied on the symlink-creation feature of the preceding
10800         version of this script, you can get most of that functionality
10801         by adding the --symlink option to the definition of
10802         gnulib_tool_option_extras in your bootstrap.conf file.
10803         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10804         Run autopoint and libtoolize *before* gnulib-tool.
10805         After it, run an abbreviated autoreconf, rather than a loop around
10806         all tools.
10807         (slirp, bt_mark_as_generated): Remove functions.
10808
10809 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10810
10811         ftoastr: fix typo
10812         * lib/ftoastr.h: Fix misspelling in comment.
10813
10814 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10815
10816         * top/README-release: fix punctuation.
10817
10818 2011-12-17  Jim Meyering  <meyering@redhat.com>
10819
10820         bootstrap: correct the recent buildreq change
10821         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10822         had no effect.
10823         * build-aux/bootstrap (buildreq): Bracket each search term with
10824         "*...*", so that the shell "case" statement works as intended.
10825         Add comments.
10826
10827 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10828
10829         build: let bootstrap resort to wget when downloading .po files
10830         * build-aux/bootstrap (download_po_files): Fallback to wget when
10831         downloading the .po files via rsync fails.  This is necessary to
10832         bootstrap from behind a strict firewall.
10833
10834 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10835
10836         stdint: don't assume C++11 when compiling with g++
10837         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10839         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10840         work also in C++ before C++11, as that improperly inhibits
10841         generating a substitute stdint.h for that case.
10842
10843 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10844
10845         alloca: protect comment from gnulib-tool
10846         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10847         that gnulib-tool doesn't think it's a license, and munge it to
10848         say "GCC version 3".
10849
10850 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10851
10852         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10853         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10854         $(abs_top_builddir) instead of $(top_builddir).
10855
10856 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10857
10858         strftime-tests: also test nanoseconds
10859         * tests/test-strftime.c (T): Add a test of %N.
10860
10861 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10862
10863         inttypes, stdint: add C++11 support
10864         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10865         when including inttypes.h and stdint.h.  Support this change to
10866         the standard.
10867         * doc/posix-headers/inttypes.texi (inttypes.h):
10868         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10869         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10870         Define if not defined already, for the benefit of pre-C++11 hosts.
10871         Define the standard format macros (e.g., PRId8) always.
10872         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10873         Likewise, if __cpluspus.  Define the standard constant and limit
10874         macros (e.g., INT8_C, INT8_MAX) always.
10875         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10876         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10877         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10878         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10879         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10880         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10881         Likewise.
10882
10883 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10884
10885         nonblocking tests: Fix test failure on Linux/PPC.
10886         Suggested by Prerna Saxena in
10887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10888         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10889         Set to 1100000.
10890
10891 2011-12-12  Jim Meyering  <meyering@redhat.com>
10892
10893         argmatch: don't hard-code `' when listing valid option arguments
10894         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10895         use the quote function to add quotes.  Use fputs rather than
10896         fprintf for the format string with no format directive.
10897
10898 2011-12-07  Eric Blake  <eblake@redhat.com>
10899
10900         bootstrap: detect tools required by gnulib-tool
10901         * build-aux/bootstrap (buildreq): Provide minimum implicit
10902         dependencies.
10903         * DEPENDENCIES: Mention patch as a prereq.
10904
10905 2011-12-04  Bruno Haible  <bruno@clisp.org>
10906
10907         sethostname: Port to Windows platforms.
10908         * lib/sethostname.c: Provide an alternate implementation for Windows
10909         platforms.
10910         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10911         (main): Skip the test if sethostname() fails with EPERM. On Windows
10912         platforms, don't check the result of gethostname().
10913
10914 2011-12-04  Bruno Haible  <bruno@clisp.org>
10915             Jim Meyering  <meyering@redhat.com>
10916
10917         tests: Avoid spurious error message on platforms without mktemp program.
10918         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10919
10920 2011-12-04  Bruno Haible  <bruno@clisp.org>
10921
10922         sethostname: Fix documentation.
10923         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10924         "not fixed" section.
10925
10926 2011-12-03  Bruno Haible  <bruno@clisp.org>
10927
10928         gnulib-tool: Verify that the License field is present and non-empty.
10929         * gnulib-tool (func_get_license_raw): New function, extracted from
10930         func_get_license.
10931         (func_get_license): Use it. Warn if the module is not a test module and
10932         has no license.
10933         Suggested by Jim Meyering.
10934
10935 2011-12-03  Bruno Haible  <bruno@clisp.org>
10936
10937         sethostname tests: Fix link error on mingw.
10938         * tests/test-sethostname1.c: New file, extracted from
10939         tests/test-sethostname.c.
10940         * tests/test-sethostname2.c: New file, extracted from
10941         tests/test-sethostname.c.
10942         * tests/test-sethostname.c: Remove file.
10943         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10944         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10945         (Depends-on): Add gethostname.
10946         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10947         Link the latter with $(GETHOSTNAME_LIB).
10948
10949         sethostname tests: Fix compilation error on mingw.
10950         * tests/test-sethostname.c: Don't include <sys/types.h>.
10951         (geteuid): Use a dummy value without uid_t.
10952         * modules/sethostname-tests (Depends-on): Remove sys_types.
10953
10954         sethostname tests: Avoid a gcc warning.
10955         * tests/test-sethostname.c (main): Remove an unused variable.
10956
10957         Tweak last commit.
10958         * modules/sethostname-tests (Files): Sort by decreasing importance.
10959         (configure.ac): Check for geteuid.
10960         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10961         the test when there's nothing to test. Drop an unnecessary cast.
10962         Improve an error message. Verify that the final sethostname() call
10963         succeeds.
10964
10965 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10966
10967         Add a test suite for the sethostname module.
10968         * modules/sethostname-tests: New file.  A test program
10969         for the sethostname module.
10970         * tests/test-sethostname.c: Likewise.
10971
10972 2011-12-03  Bruno Haible  <bruno@clisp.org>
10973
10974         Tweak last commit.
10975         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10976         Fix preprocessor directives indentation. Fix typos.
10977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10978         * modules/unistd (Makefile): Likewise.
10979
10980 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10981
10982         Integrate the sethostname module into unistd.
10983         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10984         into the unistd.h header.
10985         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10986         preprocessor directives.
10987         * modules/unistd: Setup the Makefile substitutions of the
10988         SETHOSTNAME preprocessor directives.
10989
10990 2011-12-03  Bruno Haible  <bruno@clisp.org>
10991
10992         Tweak last commit.
10993         * lib/sethostname.c: Don't include <string.h>.
10994         (sethostname): No need to copy the argument string to the stack. Don't
10995         call clearerr. Preserve errno when fprintf failed.
10996         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10997         Don't invoke AC_REPLACE_FUNCS.
10998         * modules/sethostname (Link): Remove empty section.
10999         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
11000         failure problem.
11001
11002 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
11003
11004         New module 'sethostname'.
11005         * lib/sethostname.c (sethostname): New file.  Provide sethostname
11006         for systems that lack it.
11007         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
11008         sethostname declaration and function.
11009         * modules/sethostname: New file.  Define the sethostname module.
11010
11011 2011-12-03  Bruno Haible  <bruno@clisp.org>
11012
11013         Tweak last commit.
11014         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
11015
11016 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
11017
11018         Split the HOST_NAME_MAX detection into a separate m4 macro.
11019         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
11020         macro so it can be used by the pending sethostname module.
11021
11022 2011-12-03  Bruno Haible  <bruno@clisp.org>
11023
11024         Fix module descriptions syntax.
11025         * modules/argv-iter (License): Fix syntax.
11026         * modules/di-set (License): Likewise.
11027         * modules/ino-map (License): Likewise.
11028         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
11029
11030 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
11031
11032         stdalign: port to Clang 3.0
11033         Problem reported by Simon Josefsson in
11034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
11035         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
11036         which has <stdalign.h> but which does not define alignof.
11037         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
11038
11039 2011-12-01  Eric Blake  <eblake@redhat.com>
11040
11041         mktempd: silence dd usage
11042         * build-aux/mktempd (rand_bytes): Silence dd.
11043
11044 2011-11-30  Simon Josefsson  <simon@josefsson.org>
11045
11046         manywarnings: Don't mention gcc version in docstring.
11047         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
11048         Jim Meyering <meyering@redhat.com>.
11049
11050 2011-11-30  Jim Meyering  <meyering@redhat.com>
11051
11052         hash: mark a few floating point constants with "f" suffix
11053         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
11054         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
11055         floating point constants with "f", since they're destined to be
11056         saved/used as "float"s.
11057
11058 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
11059
11060         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
11061         * tests/test-float.c (test_long_double): Correct and re-enable the
11062         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
11063
11064 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
11065
11066         Avoid subtracting two pointers that don't point into the same block.
11067         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
11068         only pointers into the same memory block are subtracted. We cannot
11069         assume that sizeof (ptrdiff_t) == sizeof (void *).
11070
11071 2011-11-29  Eric Blake  <eblake@redhat.com>
11072
11073         maint.mk: add syntax check for use of compare from init.sh
11074         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
11075         moved here from coreutils.
11076
11077         manywarnings: drop -Wunsuffixed-float-constants
11078         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
11079         '1.0D', which is the only way to silence this warning for 'double'.
11080
11081 2011-11-29  Jim Meyering  <meyering@redhat.com>
11082
11083         hash: mark compute_bucket_size with the pure attribute
11084         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
11085
11086         quotearg, propername: correct pragma guard expression
11087         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
11088         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
11089
11090 2011-11-28  Jim Meyering  <meyering@redhat.com>
11091
11092         propername: do not mark proper_name with the const attribute
11093         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
11094         since it examines data pointed to by its parameter.
11095         * lib/propername.c (proper_name): Instead, add a pragma to suppress
11096         the suggestion from -Wsuggest-attribute=const.
11097
11098         propername: mark one more function as const
11099         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
11100
11101 2011-11-27  Jim Meyering  <meyering@redhat.com>
11102
11103         mark functions with const and pure attributes
11104
11105         Mark functions per suggestions from gcc-4.6 when using these options:
11106         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
11107         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
11108         Follow these guidelines: when possible, apply the attribute to
11109         an extern declaration, not to its definition.  Apply it to the
11110         definition only when the definition is static.
11111         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
11112         * lib/argv-iter.h (argv_iter_n_args): Likewise.
11113         * lib/base64.h (isbase64): Likewise.
11114         * lib/basename-lgpl.c (last_component, base_len): Likewise.
11115         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
11116         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
11117         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
11118         (c_tolower, c_toupper): Likewise.
11119         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
11120         * lib/chdir-long.c (find_non_slash): Likewise.
11121         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
11122         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
11123         * lib/file-type.h (file_type): Likewise.
11124         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
11125         * lib/filevercmp.c (verrevcmp): Likewise.
11126         * lib/freadahead.h (freadahead): Likewise.
11127         * lib/fts.c (fts_maxarglen): Likewise.
11128         * lib/hash-pjw.h (hash_pjw): Likewise.
11129         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
11130         * lib/hash.c (is_prime, next_prime): Likewise.
11131         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
11132         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
11133         (hash_table_ok, hash_get_first, hash_string): Likewise.
11134         (compute_bucket_size): Likewise.
11135         * lib/i-ring.h (i_ring_empty): Likewise.
11136         * lib/isnan.c (isnanl): Likewise.
11137         * lib/math.h (isnanl, rpl_isnanl): Likewise.
11138         * lib/memcasecmp.h (memcasecmp): Likewise.
11139         * lib/memchr2.h (memchr2): Likewise.
11140         * lib/memcmp2.h (memcmp2): Likewise.
11141         * lib/parse-datetime.y (lookup_zone): Likewise.
11142         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
11143         [!WINDOWS_SOCKETS]: Likewise.
11144         * lib/strnlen1.h (strnlen1): Likewise.
11145         * lib/uniwidth.in.h (uc_width): Likewise.
11146         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
11147         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
11148         (quoting_options_from_style): Add a comment.
11149         * lib/propername.h (proper_name): Add a comment.
11150
11151 2011-11-27  Bruno Haible  <bruno@clisp.org>
11152
11153         Remove unused macros from !_LIBC code in glibc-borrowed files.
11154         * lib/fnmatch.c (STRCOLL): Remove macro.
11155         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
11156         * lib/glob.c (__stat, __readdir64): Remove macros.
11157         * lib/tempname.c (__open64, __xstat64): Remove macros.
11158         Suggested by Paul Eggert.
11159
11160 2011-11-27  Bruno Haible  <bruno@clisp.org>
11161
11162         getcwd: Fix link error on MSVC 9.
11163         * modules/getcwd (Depends-on): Add readdir, rewinddir.
11164
11165 2011-11-27  Bruno Haible  <bruno@clisp.org>
11166
11167         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
11168         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
11169         HAVE_OPENDIR is 0.
11170         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
11171         HAVE_CLOSEDIR is 0.
11172         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
11173         is 0.
11174         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
11175
11176 2011-11-27  Bruno Haible  <bruno@clisp.org>
11177
11178         getcwd: Fix bug from 2011-08-17.
11179         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
11180         platforms that need it.
11181         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
11182         code of 4 to be a failure, not a success. This ensures that
11183         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
11184
11185 2011-11-27  Bruno Haible  <bruno@clisp.org>
11186
11187         binary-io tests: Avoid test failure on mingw when libtool is used.
11188         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
11189         Don't verify the size of t-bin-out1.tmp here.
11190         * tests/test-binary-io.sh: Verify it here.
11191         Reported by Simon Josefsson.
11192
11193 2011-11-26  Bruno Haible  <bruno@clisp.org>
11194
11195         Fix conflict between two instantiations of module 'unistd'.
11196         * gnulib-tool (func_emit_autoconf_snippet): Substitute
11197         ${include_guard_prefix} also in the autoconf snippet.
11198         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
11199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
11200         GNULIB_UNISTD_H_GETOPT.
11201         * modules/getopt-posix (configure.ac): Set the
11202         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
11203         * modules/getopt-gnu (configure.ac): Likewise.
11204         * modules/unistd (Makefile.am): Change the substitution value of
11205         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
11206         Reported by Simon Josefsson.
11207
11208 2011-11-25  Bruno Haible  <bruno@clisp.org>
11209
11210         pagealign_alloc: Doc and comments.
11211         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
11212         module.
11213         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
11214
11215 2011-11-25  Jim Meyering  <meyering@redhat.com>
11216
11217         test-update-copyright.sh: avoid false-positive failure
11218         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
11219         around false positive failure on Cygwin/Windows.  The latter was
11220         matching erroneously-created files with names like
11221         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
11222
11223 2011-11-25  Simon Josefsson  <simon@josefsson.org>
11224
11225         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
11226         * m4/valgrind-tests.m4: Check that the parameters that will be
11227         used works, not just a subset of them.  Reported by Bruno Haible
11228         <bruno@clisp.org>.
11229
11230 2011-11-24  Jim Meyering  <meyering@redhat.com>
11231
11232         test-stdalign.c: comment out long double tests
11233         * tests/test-stdalign.c: Don't try to reduce alignment of long double
11234         variables.  That provokes errors like this from gcc-4.7.0 20111124:
11235         error: '_Alignas' specifiers cannot reduce alignment of \
11236         'static_longdouble_alignas'.
11237
11238 2011-11-22  Jim Meyering  <meyering@redhat.com>
11239
11240         init.sh: make "compare /dev/null FILE" output more readable
11241         * tests/init.sh (compare_): Document the preferred order of arguments.
11242         (emit_diff_u_header_): New function.
11243         (compare_dev_null_): Emit a simulated diff, rather than just the
11244         contents of the unexpected file.  Suggestion from Bruno Haible.
11245
11246 2011-11-21  Jim Meyering  <meyering@redhat.com>
11247             Eric Blake  <eblake@redhat.com>
11248
11249         init.sh: work around OSF/1 5.1's mishandling of /dev/null
11250         * tests/init.sh: Make our compare function slightly more portable.
11251         Reported by Bruno Haible in
11252         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
11253
11254 2011-11-21  Simon Josefsson  <simon@josefsson.org>
11255
11256         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
11257         before using it, in code that ends up in config.h.
11258
11259 2011-11-20  Bruno Haible  <bruno@clisp.org>
11260
11261         getcwd: Work around getcwd bug on AIX 5..7.
11262         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
11263         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
11264         Use a different value for gl_cv_func_getcwd_path_max. Move the
11265         definition of HAVE_PARTLY_WORKING_GETCWD from here...
11266         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
11267         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
11268         Define HAVE_MINIMALLY_WORKING_GETCWD.
11269         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
11270         where it is not even minimally working, that is, on AIX.
11271         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
11272         m4/getcwd-path-max.m4.
11273         (main): Update exit code computation.
11274         * doc/posix-functions/getcwd.texi: Mention list of platforms where
11275         getcwd does not handle long file names.
11276
11277 2011-11-20  Bruno Haible  <bruno@clisp.org>
11278
11279         getcwd: Fix bug from 2009-09-10.
11280         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
11281         like "no".
11282
11283 2011-11-20  Simon Josefsson  <simon@josefsson.org>
11284
11285         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
11286
11287 2011-11-20  Bruno Haible  <bruno@clisp.org>
11288
11289         fma tests: Avoid shadowing local variables.
11290         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
11291         expected.
11292
11293 2011-11-20  Bruno Haible  <bruno@clisp.org>
11294
11295         copysignf tests: Fix.
11296         * tests/test-copysignf.c: Fix signature check.
11297
11298 2011-11-20  Bruno Haible  <bruno@clisp.org>
11299
11300         fma: Remove unused code.
11301         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
11302         unused macros.
11303
11304 2011-11-20  Bruno Haible  <bruno@clisp.org>
11305
11306         sethostname: Fix doc about AIX.
11307         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
11308         sethostname; it has it.
11309
11310         sethostname: Mention more portability problems.
11311         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
11312         problem.
11313         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11314
11315 2011-11-19  Bruno Haible  <bruno@clisp.org>
11316
11317         Depend on module fcntl-h when AT_FDCWD is used.
11318         * modules/utimens (Depends-on): Add fcntl-h.
11319         * modules/areadlinkat (Depends-on): Likewise.
11320         * modules/areadlinkat-with-size (Depends-on): Likewise.
11321         * modules/faccessat (Depends-on): Likewise.
11322         * modules/fchmodat (Depends-on): Likewise.
11323         * modules/fchownat (Depends-on): Likewise.
11324         * modules/getcwd (Depends-on): Likewise.
11325         * modules/mkdirat (Depends-on): Likewise.
11326         * modules/mkfifoat (Depends-on): Likewise.
11327         * modules/readlinkat (Depends-on): Likewise.
11328         * modules/symlinkat (Depends-on): Likewise.
11329         * modules/dup2-tests (Depends-on): Likewise.
11330         * modules/fdutimensat-tests (Depends-on): Likewise.
11331         * modules/futimens-tests (Depends-on): Likewise.
11332
11333 2011-11-19  Bruno Haible  <bruno@clisp.org>
11334
11335         euidaccess: Update a comment.
11336         * lib/euidaccess.c: Update comment about platforms with faccessat.
11337
11338 2011-11-19  Bruno Haible  <bruno@clisp.org>
11339
11340         openat: Fix file list.
11341         * modules/openat (Files): Remove lib/at-func.c.
11342
11343 2011-11-19  Bruno Haible  <bruno@clisp.org>
11344
11345         fstatat: Simplify.
11346         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
11347         gnulib should define rpl_fstatat, there is a
11348         "#define fstatat rpl_fstatat" in <sys/stat.h>.
11349
11350 2011-11-19  Bruno Haible  <bruno@clisp.org>
11351
11352         Ensure 'inline' can be used in tests/test-utimens-common.h.
11353         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
11354         * modules/futimens-tests (configure.ac): Likewise.
11355         * modules/utimens-tests (configure.ac): Likewise.
11356         * modules/utimensat-tests (configure.ac): Likewise.
11357
11358 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11359
11360         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
11361         not hash_insert0.
11362         (hash_insert_if_absent): Doc fix.
11363
11364 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11365
11366         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
11367
11368 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11369
11370         test-getcwd: disambiguate exit status
11371         * tests/test-getcwd.c (test_long_name): Return 0..7.
11372         (main): Exit with an unambiguous exit status.  The old
11373         code yielded a mysterious mixture of two failure codes.
11374
11375         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
11376         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
11377         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
11378         rpl_fstatat or fstatat.  This should fix the other problem
11379         reported by Kai Habel in
11380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11381         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
11382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
11383         and I reproduced it on a Solaris 8 host we still have in production.
11384
11385 2011-11-18  Jim Meyering  <meyering@redhat.com>
11386
11387         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
11388         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
11389         Add a sentence to the comment.
11390         (hash_insert0): New function that simply calls hash_insert_if_absent.
11391         * lib/hash.h (hash_insert_if_absent): Declare it.
11392         (hash_insert0): Add deprecation attribute.
11393         (_GL_ATTRIBUTE_DEPRECATED): Define.
11394         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
11395         not hash_insert0.
11396         * NEWS: Mention it, even though it's not really an incompatible change.
11397
11398 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
11399
11400         openat: avoid compilation failure due to lack of <errno.h> inclusion
11401         * lib/openat.c: Include <errno.h>.
11402
11403 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11404
11405         * modules/getcwd (Depends-on): Add fdopendir.
11406         This fixes one of the two problems reported by Kai Habel in
11407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11408
11409         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
11410         stdalign problem reported by Ian Beckwith in
11411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
11412         * modules/crypto/gc-arcfour (Depends-on):
11413         Depend conditionally on crypto/arcfour.
11414         * modules/crypto/gc-arctwo (Depends-on):
11415         Depend conditionally on crypto/arctwo.
11416         * modules/crypto/gc-des (Depends-on):
11417         Depend conditionally on crypto/des.
11418         * modules/crypto/gc-hmac-md5 (Depends-on):
11419         Depend conditionally on crypto/hmac-md5.
11420         * modules/crypto/gc-hmac-sha1 (Depends-on):
11421         Depend conditionally on crypto/hmac-sha1.
11422         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
11423         * modules/crypto/gc-md4 (Depends-on):
11424         Depend conditionally on crypto/md4.
11425         * modules/crypto/gc-md5 (Depends-on):
11426         Depend conditionally on crypto/md5.
11427         * modules/crypto/gc-rijndael (Depends-on):
11428         Depend conditionally on crypto/rijndael.
11429         * modules/crypto/gc-sha1 (Depends-on):
11430         Depend conditionally on crypto/sha1.
11431         * modules/crypto/gc-arcfour:
11432         * modules/crypto/gc-arctwo:
11433         * modules/crypto/gc-des:
11434         * modules/crypto/gc-hmac-md5:
11435         * modules/crypto/gc-hmac-sha1:
11436         * modules/crypto/gc-md2:
11437         * modules/crypto/gc-md4:
11438         * modules/crypto/gc-md5:
11439         * modules/crypto/gc-rijndael:
11440         * modules/crypto/gc-sha1:
11441         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
11442         now that the conditional dependencies do the work for us.
11443
11444 2011-11-17  Jim Meyering  <meyering@redhat.com>
11445
11446         tests: factor st_ctime-comparison out of two headers
11447         * tests/test-utimens-common.h (ctime_compare): Define.
11448         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
11449         * tests/test-lutimens.h (test_lutimens): Likewise.
11450         * tests/test-utimens.h (test_utimens): Likewise.
11451
11452         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
11453         Invoke the test program via an init.sh-using wrapper.
11454         * tests/test-getcwd.sh: New file.
11455         * modules/getcwd-tests (Files): Add it.
11456         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
11457
11458 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
11459
11460         gitlog-to-changelog: support multi-author commits.
11461         The FSF cares about keeping track of all authors of patches to its
11462         projects, but Git doesn't provide obvious support for multi-author
11463         changesets. Consensus seems to be forming around the use of extra
11464         Signed-off-by inspired lines in the log message formatted as
11465         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
11466         multi-author commits between version control systems.
11467         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
11468         log message and output in standard ChangeLog multi-author format.
11469         Reported by Peter Rosin <peda@lysator.liu.se>
11470
11471 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
11472             Bruno Haible  <bruno@clisp.org>
11473
11474         Fix some modules' file list.
11475         * modules/fstatat (Files): Add m4/lstat.m4.
11476         * modules/openat (Files): Likewise.
11477         * modules/unlinkat (Files): Likewise.
11478
11479 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
11480
11481         maint.mk: fix tight-scope.mk generation in VPATH builds.
11482         * top/maint.mk (tight-scope.mk): Make sure to prefix file
11483         reference with $(srcdir) so that the file is found correctly even
11484         when running `make syntax-check' in a VPATH build.
11485
11486 2011-11-13  Bruno Haible  <bruno@clisp.org>
11487             Jim Meyering  <meyering@redhat.com>
11488
11489         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
11490         * tests/init.sh (compare): Remove "No differences encountered" or
11491         synonymous output from the 'diff' program.
11492
11493 2011-11-13  Bruno Haible  <bruno@clisp.org>
11494
11495         Makefile: Tweak indentation.
11496         * Makefile: Use tab as first character in every line that contains rule
11497         commands.
11498
11499 2011-11-13  Bruno Haible  <bruno@clisp.org>
11500
11501         Syntax check for copyright statements.
11502         * check-copyright: New file.
11503         * Makefile (sc_check_copyright): New rule.
11504
11505 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11506
11507         * build-aux/git-version-gen: Add --prefix to configure the tag
11508         match string.
11509
11510 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11511
11512         * build-aux/git-version-gen: Add --help and --version.
11513
11514 2011-11-12  Jim Meyering  <meyering@redhat.com>
11515
11516         revamp the other test-exclude?.sh scripts to use init.sh, too
11517         * tests/test-exclude1.sh: Use init.sh.
11518         * tests/test-exclude2.sh: Likewise.
11519         * tests/test-exclude3.sh: Likewise.
11520         * tests/test-exclude4.sh: Likewise.
11521         * tests/test-exclude5.sh: Likewise.
11522         * tests/test-exclude6.sh: Likewise.
11523         * tests/test-exclude7.sh: Likewise.
11524         * tests/test-exclude8.sh: Likewise.
11525         * modules/exclude-tests (Files): List init.sh.
11526
11527         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11528         These shell scripts ignored failure of the binary test-exclude,
11529         so making the latter return 77 didn't cause them to be skipped.
11530         * tests/test-exclude5.sh: Exit with test-exclude's error status
11531         when that program fails.  Revamp to use init.sh.
11532         * tests/test-exclude2.sh: Likewise.
11533
11534         test-exclude: fix a typo
11535         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11536
11537 2011-11-11  Bruno Haible  <bruno@clisp.org>
11538
11539         obstack: Fix compilation error on MSVC 9.
11540         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11541
11542 2011-11-11  Jim Meyering  <meyering@redhat.com>
11543
11544         test-exclude: skip tests rather than failing on deficient systems
11545         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11546         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11547         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11548         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11549
11550 2011-11-10  Bruno Haible  <bruno@clisp.org>
11551
11552         ptsname_r test: Avoid gcc warning on glibc systems.
11553         * tests/test-ptsname_r.c (null_ptr): New function.
11554         (test_errors): Use it.
11555
11556 2011-11-10  Bruno Haible  <bruno@clisp.org>
11557
11558         ptsname_r: Avoid compilation error on OSF/1 5.1.
11559         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11561         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11562         function is not declared or incompatibly declared.
11563         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11564         * modules/ptsname_r (Depends-on, configure.ac): Update.
11565         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11566
11567 2011-11-10  Bruno Haible  <bruno@clisp.org>
11568
11569         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11570         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11571         When cross-compiling, guess yes on all platforms except AIX.
11572         Reported by Ludovic Courtès <ludo@gnu.org>.
11573
11574 2011-11-09  Bruno Haible  <bruno@clisp.org>
11575
11576         ptsname_r tests: Fix bugs.
11577         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11578         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11579
11580 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11581
11582         fstatat: work with cross-compilation
11583         Problem reported by Ludovic Courtès in
11584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11585         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11586         "cross-compiling" and assume the bug is present.  Replace
11587         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11588         an inverted sense, to be more conservative about our assumptions.
11589         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11590
11591 2011-11-09  Bruno Haible  <bruno@clisp.org>
11592
11593         Improve MODULES.html output.
11594         * modules/mkfifoat (Description): Use the word "function".
11595         * modules/readlinkat (Description): Likewise.
11596         * modules/symlinkat (Description): Likewise.
11597
11598 2011-11-09  Eric Blake  <eblake@redhat.com>
11599
11600         ptsname_r-tests: new test module
11601         * modules/ptsname_r-tests: New module.
11602         * tests/test-ptsname_r.c: New file.
11603
11604         ptsname_r: new module
11605         * modules/ptsname_r: New module.
11606         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11607         * lib/ptsname.c (__ptsname_r): Split...
11608         * lib/ptsname_r.c: ...into new file.
11609         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11610         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11611         * modules/stdlib (Makefile.am): Substitute witnesses.
11612         * lib/stdlib.in.h (ptsname_r): Declare it.
11613         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11614         * MODULES.html.sh (Misc): Likewise.
11615         * modules/ptsname (Depends-on): Alter dependency.
11616         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11617
11618 2011-11-09  Jim Meyering  <meyering@redhat.com>
11619
11620         announce-gen: be more concise when there's only one URL+tarball
11621         * build-aux/announce-gen (get_tool_versions): When you distribute
11622         only one type of tarball, combine the first two "Here are..."
11623         sections and make the key-checking grammar independent of
11624         how many tarballs there are.
11625
11626 2011-11-09  Eric Blake  <eblake@redhat.com>
11627
11628         openpty: provide a stub on mingw
11629         * lib/pty.in.h (includes): Provide forward declarations.
11630         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11631
11632         raise: fix mingw handling of SIGPIPE
11633         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11634
11635 2011-11-08  Bruno Haible  <bruno@clisp.org>
11636
11637         More conditional dependencies.
11638         * modules/faccessat (Depends-on): Add conditions.
11639         * modules/fchmodat (Depends-on): Likewise.
11640         * modules/fchownat (Depends-on): Likewise.
11641         * modules/fstatat (Depends-on): Likewise.
11642         * modules/mkfifoat (Depends-on): Likewise.
11643         * modules/readlinkat (Depends-on): Likewise.
11644         * modules/symlinkat (Depends-on): Likewise.
11645         * modules/unlinkat (Depends-on): Likewise.
11646         * modules/utimensat (Depends-on): Likewise.
11647         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11648         * modules/linkat (Depends-on): Refine the conditions.
11649         * modules/renameat (Depends-on): Likewise.
11650
11651 2011-11-08  Bruno Haible  <bruno@clisp.org>
11652
11653         faccessat: Move AC_LIBOBJ invocation to module description.
11654         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11655         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11656         invocation from here...
11657         * modules/faccessat (configure.ac): ... to here. Invoke
11658         gl_PREREQ_FACCESSAT.
11659
11660 2011-11-08  Bruno Haible  <bruno@clisp.org>
11661
11662         faccessat: Simplify autoconf macro.
11663         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11664         gl_FUNC_EUIDACCESS.
11665
11666 2011-11-08  Bruno Haible  <bruno@clisp.org>
11667
11668         renameat: Fix dependencies.
11669         * modules/renameat (Depends-on): Add stdbool.
11670
11671 2011-11-08  Bruno Haible  <bruno@clisp.org>
11672
11673         mkfifoat: Fix module description.
11674         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11675         not gl_UNISTD_MODULE_INDICATOR.
11676
11677 2011-11-08  Bruno Haible  <bruno@clisp.org>
11678
11679         fstatat: Remove unused dependency.
11680         * modules/fstatat (Depends-on): Remove fstat.
11681
11682 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11683
11684         GNUmakefile: behave when Makefile is missing.
11685         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11686
11687 2011-11-08  Bruno Haible  <bruno@clisp.org>
11688
11689         openat: Conditionalize dependencies.
11690         * lib/openat.c: Reduce the scope of some #includes.
11691         * modules/openat (Depends-on): Add conditions.
11692
11693 2011-11-07  Jim Meyering  <meyering@redhat.com>
11694
11695         maint.mk: extract GPG key ID without using a temporary file
11696         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11697         without using a temporary file.  Based on a suggestion from Werner Koch
11698         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11699
11700 2011-11-07  Eric Blake  <eblake@redhat.com>
11701
11702         grantpt: fix typo
11703         * lib/stdlib.in.h (grantpt): Check correct function.
11704
11705         maint.mk: silence new syntax check
11706         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11707
11708 2011-11-06  Bruno Haible  <bruno@clisp.org>
11709
11710         Doc about floating-point and math API.
11711         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11712         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11713
11714 2011-11-06  Bruno Haible  <bruno@clisp.org>
11715
11716         stdalign tests: Skip the test when compiled by Sun C.
11717         * tests/test-stdalign.c (main): Skip the test on Sun C.
11718
11719 2011-11-06  Bruno Haible  <bruno@clisp.org>
11720
11721         ansi-c++-opt: Complete the 2011-06-05 change.
11722         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11723         does not support namespaces, set the variable to "no", not to ":".
11724
11725 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11726
11727         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11728
11729 2011-11-06  Bruno Haible  <bruno@clisp.org>
11730
11731         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11732         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11733         (minus_zerol) [HP-UX]: New macro.
11734         (unary_minus) [HP-UX]: New function.
11735         (copysignl) [HP-UX]: Use unary_minus function.
11736
11737 2011-11-06  Bruno Haible  <bruno@clisp.org>
11738
11739         ldexp, ldexpf, ldexpl: Enhance tests.
11740         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11741         and tests/test-ldexpl.c.
11742         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11743         LDEXP, MIN_EXP, MAX_EXP): New macros.
11744         Include test-ldexp.h.
11745         (main): Just call test_function.
11746         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11747         infinity.h, nan.h.
11748         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11749         MAX_EXP): New macros.
11750         Include test-ldexp.h.
11751         (x, y): Remove variables.
11752         (main): Just call test_function.
11753         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11754         infinity.h, nan.h.
11755         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11756         MAX_EXP): New macros.
11757         Include test-ldexp.h.
11758         (x, y): Remove variables.
11759         (main): Just call test_function.
11760         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11761         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11762         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11763         (Depends-on): Add isnand-nolibm, signbit, float.
11764         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11765         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11766         (Depends-on): Add isnanf-nolibm, signbit, float.
11767
11768 2011-11-06  Bruno Haible  <bruno@clisp.org>
11769
11770         math tests: Cosmetics.
11771         * tests/test-math-c++.cc: Reorder declarations.
11772
11773 2011-11-05  Bruno Haible  <bruno@clisp.org>
11774
11775         fma*: Simplify test.
11776         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11777         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11778
11779         Tests for module 'fmal'.
11780         * modules/fmal-tests: New file.
11781         * tests/test-fmal1.c: New file.
11782         * tests/test-fmal2.c: New file.
11783
11784         New module 'fmal'.
11785         * lib/math.in.h (fmal): New declaration.
11786         * lib/fmal.c: New file.
11787         * m4/fmal.m4: New file.
11788         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11789         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11790         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11791         REPLACE_FMAL.
11792         * modules/fmal: New file.
11793         * doc/posix-functions/fmal.texi: Mention the new module and the various
11794         bugs.
11795
11796         Tests for module 'fmaf'.
11797         * modules/fmaf-tests: New file.
11798         * tests/test-fmaf1.c: New file.
11799         * tests/test-fmaf2.c: New file.
11800
11801         New module 'fmaf'.
11802         * lib/math.in.h (fmaf): New declaration.
11803         * lib/fmaf.c: New file.
11804         * m4/fmaf.m4: New file.
11805         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11807         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11808         REPLACE_FMAF.
11809         * modules/fmaf: New file.
11810         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11811         bugs.
11812
11813         Tests for module 'fma'.
11814         * modules/fma-tests: New file.
11815         * tests/test-fma1.c: New file.
11816         * tests/test-fma1.h: New file.
11817         * tests/test-fma2.c: New file.
11818         * tests/test-fma2.h: New file.
11819
11820         New module 'fma'.
11821         * lib/math.in.h (fma): New declaration.
11822         * lib/fma.c: New file.
11823         * m4/fma.m4: New file.
11824         * m4/fegetround.m4: New file.
11825         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11827         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11828         REPLACE_FMA.
11829         * modules/fma: New file.
11830         * doc/posix-functions/fma.texi: Mention the new module and the various
11831         bugs.
11832
11833         Extend gl_MATHFUNC.
11834         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11835         Support 'void' as argument type.
11836         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11837
11838 2011-11-05  Jim Meyering  <meyering@redhat.com>
11839
11840         maint.mk: also prohibit inclusion of dirent.h without use
11841         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11842
11843 2011-11-05  Bruno Haible  <bruno@clisp.org>
11844
11845         ldexpl tests: Avoid test failure on MSVC 9.
11846         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11847         value. Needed in order to enforce the conversion from a value greater
11848         than LDBL_MAX to Infinity.
11849
11850 2011-11-05  Bruno Haible  <bruno@clisp.org>
11851
11852         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11853         * modules/at-internal: New file, extracted from modules/openat.
11854         * modules/openat-h: New file.
11855         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11856         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11857         * modules/openat (Description): Add reference to POSIX function.
11858         (Files): Remove lib/openat.h, lib/openat-proc.c.
11859         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11860         intprops, unistd.
11861         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11862         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11863         gl_FCNTL_MODULE_INDICATOR.
11864         (Include): Remove unistd.h, openat.h.
11865         * modules/areadlinkat (Files): Add lib/at-func.c.
11866         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11867         openat-die, openat-h, save-cwd.
11868         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11869         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11870         openat-die, openat-h, save-cwd, unistd.
11871         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11872         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11873         openat-h, save-cwd. Remove fcntl-h, openat.
11874         * modules/fchmodat (Files): Remove lib/openat.h.
11875         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11876         openat, stdbool, unistd.
11877         * modules/fchownat (Files): Remove lib/openat.h.
11878         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11879         openat, stdbool, sys_stat.
11880         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11881         lib/openat-proc.c.
11882         (Depends-on): Add at-internal.
11883         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11884         * modules/fstatat (Files): Remove lib/openat.h.
11885         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11886         stdbool, unistd.
11887         * modules/fts (Depends-on): Add openat-h.
11888         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11889         openat.
11890         * modules/mkdirat (Files): Remove lib/openat.h.
11891         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11892         openat, stdbool, sys_stat.
11893         * modules/mkfifoat (Files): Add lib/at-func.c.
11894         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11895         openat-h, save-cwd. Remove fcntl-h, openat.
11896         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11897         * modules/readlinkat (Files): Add lib/at-func.c.
11898         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11899         openat-h, save-cwd. Remove fcntl-h, openat.
11900         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11901         openat.
11902         * modules/selinux-at (Files): Add lib/at-func.c.
11903         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11904         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11905         * modules/symlinkat (Files): Add lib/at-func.c.
11906         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11907         openat-h, save-cwd. Remove fcntl-h, openat.
11908         * modules/unlinkat (Files): Remove lib/openat.h.
11909         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11910         stdbool.
11911         * modules/utimensat (Files): Add lib/at-func.c.
11912         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11913         openat-die, openat-h, save-cwd.
11914         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11915         * modules/fdutimensat-tests (Depends-on): Add openat.
11916         * modules/fstatat-tests (Depends-on): Add openat-h.
11917         * modules/readlinkat-tests (Depends-on): Add openat.
11918         * modules/symlinkat-tests (Depends-on): Add openat.
11919
11920 2011-11-05  Bruno Haible  <bruno@clisp.org>
11921
11922         openat: Include <stdbool.h>.
11923         * lib/openat.c: Include <stdbool.h>.
11924
11925 2011-11-04  Bruno Haible  <bruno@clisp.org>
11926
11927         fchownat, renameat, unlinkat: Fix dependencies.
11928         * modules/fchownat (Depends-on): Add fstatat.
11929         * modules/renameat (Depends-on): Likewise.
11930         * modules/unlinkat (Depends-on): Likewise.
11931
11932 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11933
11934         openat: remove direct dependency on dirent
11935         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11936         and hasn't been needed ever since fdopendir was split into its own
11937         module on 2009-08-31.
11938         * modules/openat (Depends-on): Remove dirent.
11939
11940 2011-11-04  Bruno Haible  <bruno@clisp.org>
11941
11942         renameat: Optimize code size.
11943         * modules/renameat (configure.ac): Don't compile at-func2.c if
11944         REPLACE_RENAMEAT is 1.
11945
11946 2011-11-04  Bruno Haible  <bruno@clisp.org>
11947
11948         openat tests: Fix file list.
11949         * modules/openat-tests (Files): Add tests/test-open.h.
11950
11951 2011-11-04  Bruno Haible  <bruno@clisp.org>
11952
11953         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11954         * modules/fchmodat (Depends-on): Add openat-die.
11955         * modules/fchownat (Depends-on): Likewise.
11956         * modules/linkat (Depends-on): Likewise.
11957         * modules/renameat (Depends-on): Likewise.
11958         * modules/openat (Depends-on): Add dirent.
11959
11960 2011-11-04  Jim Meyering  <meyering@redhat.com>
11961
11962         at-func*.c: fix comments
11963         * lib/at-func2.c: Correct/improve first-line comment.
11964         * lib/at-func.c: Correct grammar in first-line comment.
11965
11966 2011-11-04  Bruno Haible  <bruno@clisp.org>
11967
11968         New module 'mkdirat', split off from module 'openat'.
11969         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11970         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11971         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11972         * modules/mkdirat: New file, extracted from modules/openat.
11973         * modules/openat (Files): Remove lib/mkdirat.c.
11974         (Depends-on): Remove mkdir.
11975         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11976         (Include): Remove <sys/stat.h>.
11977         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11978         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11979         tests/test-mkdir.h.
11980         (Depends-on): Remove ignore-value.
11981         (Makefile.am): Remove rules for test-mkdirat.
11982         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11983         of module 'openat'.
11984         * NEWS: Mention the change.
11985
11986 2011-11-04  Bruno Haible  <bruno@clisp.org>
11987
11988         closedir: Avoid warning on mingw.
11989         * lib/closedir.c: Include <unistd.h>.
11990
11991 2011-11-04  Bruno Haible  <bruno@clisp.org>
11992
11993         New module 'fstatat', split off from module 'openat'.
11994         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11995         defined.
11996         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11997         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11998         gl_FUNC_FSTATAT.
11999         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
12000         * modules/fstatat: New file, extracted from modules/openat.
12001         * modules/openat (Files): Remove lib/fstatat.c.
12002         (Depends-on): Remove lstat.
12003         (configure.ac): Remove AC_LIBOBJ of fstatat.
12004         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
12005         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
12006         tests/test-lstat.h, tests/test-stat.h.
12007         (Depends-on): Remove getcwd-lgpl.
12008         (Makefile.am): Remove rules for test-fstatat.
12009         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
12010         of module 'openat'.
12011         * NEWS: Mention the change.
12012         * modules/getcwd (Depends-on): Add fstatat.
12013         * modules/linkat (Depends-on): Likewise.
12014         * modules/mkfifoat-tests (Depends-on): Likewise.
12015         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
12016
12017 2011-11-03  Bruno Haible  <bruno@clisp.org>
12018
12019         New module 'unlinkat', split off from module 'openat'.
12020         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
12021         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
12022         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
12023         * modules/unlinkat: New file, extracted from modules/openat. Correct
12024         the dependency conditions.
12025         * modules/openat (Files): Remove lib/unlinkat.c.
12026         (Depends-on): Remove rmdir, unlink.
12027         (configure.ac): Remove AC_LIBOBJ of unlinkat.
12028         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
12029         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
12030         tests/test-rmdir.h, tests/test-unlink.h.
12031         (Depends-on): Remove unlinkdir.
12032         (Makefile.am): Remove rules for test-unlinkat.
12033         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
12034         of module 'openat'.
12035         * NEWS: Mention the change.
12036         * modules/linkat-tests (Depends-on): Add unlinkat.
12037         * modules/mkfifoat-tests (Depends-on): Likewise.
12038         * modules/readlinkat-tests (Depends-on): Likewise.
12039
12040 2011-11-02  Bruno Haible  <bruno@clisp.org>
12041
12042         New module 'fchmodat', split off from module 'openat'.
12043         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
12044         defined.
12045         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
12046         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
12047         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
12048         * modules/fchmodat: New file, extracted from modules/openat.
12049         * modules/openat (Files): Remove lib/fchmodat.c.
12050         (configure.ac): Remove AC_LIBOBJ of fchmodat.
12051         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
12052         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
12053         (Makefile.am): Remove rules for test-fchmodat.
12054         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
12055         of module 'openat'.
12056         * NEWS: Mention the change.
12057
12058 2011-11-02  Jim Meyering  <meyering@redhat.com>
12059
12060         putenv: indent #definition of "environ" to placate cppi
12061         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
12062
12063         gitlog-to-changelog: provide a ChangeLog-repair mechanism
12064         Git logs are often treated as immutable, because editing them
12065         changes the SHA1 checksums of all descendants.  Thus, errors in
12066         git logs tend to stay there forever.  However, when we generate
12067         a ChangeLog file -- typically for distribution -- from that git log,
12068         we can actually make corrections in the generated file.  The key
12069         lies in recording in machine-readable/applicable form the desired
12070         corrections.  See --help for description and an example.
12071         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
12072         (usage): Describe it; alphabetize option descriptions.
12073         (main): Honor the new option, carefully.
12074
12075 2011-11-01  Jim Meyering  <meyering@redhat.com>
12076
12077         gitlog-to-changelog: avoid an infloop
12078         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
12079         that ends up being empty.
12080
12081 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12082
12083         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
12084         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
12085         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
12086         contains (possibly-quoted) backslashes.  This should avoid
12087         all-too-common shell bugs if COMPLICATED contains backslashes in
12088         the "wrong" places.  Reported by David Evans in
12089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
12090         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
12091         because we want ASCII ranges.  Is there some reason we don't use
12092         the C locale everywhere in this script?
12093         (func_module, top level): Avoid unwanted pathname expansion when
12094         $repo_url_prefix or $repo_url_suffix_repl contain shell
12095         metacharacters like '?' and '*'.
12096
12097 2011-11-01  Bruno Haible  <bruno@clisp.org>
12098
12099         fchownat: Improve description.
12100         * modules/fchownat (Description): Add link to function.
12101
12102 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12103
12104         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
12105         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
12106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
12107         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
12108
12109 2011-11-01  Bruno Haible  <bruno@clisp.org>
12110
12111         alignof: Avoid collision with stdalign module.
12112         * lib/alignof.h (alignof): Remove macro.
12113         * NEWS: Mention the change.
12114         Reported by Paul Eggert.
12115
12116 2011-11-01  Bruno Haible  <bruno@clisp.org>
12117
12118         New module 'fchownat', split off from module 'openat'.
12119         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
12120         defined.
12121         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
12122         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
12123         invoke gl_FUNC_FCHOWNAT.
12124         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
12125         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
12126         * modules/fchownat: New file, extracted from modules/openat.
12127         * modules/openat (Files): Remove lib/fchownat.c.
12128         (Depends-on): Remove lchown.
12129         (configure.ac): Remove AC_LIBOBJ of fchownat.
12130         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
12131         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
12132         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
12133         (Depends-on): Remove mgetgroups, usleep, stat-time.
12134         (configure.ac): Remove test for getegid.
12135         (Makefile.am): Remove rules for test-fchownat.
12136         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
12137         of module 'openat'.
12138         * NEWS: Mention the change.
12139
12140 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12141
12142         stdalign: port better to MSVC and to Sun C 5.11
12143         This fixes some of the problems reported by Bruno Haible in
12144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
12145         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
12146         shortcomings of MSVC and of Sun C 5.11.
12147         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
12148         around __declspec arg.
12149         * modules/stdalign-tests (Files): Add tests/macros.h.
12150         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
12151         Include macros.h, for ASSERT.
12152         (DECLARE_ALIGNED): Remove.
12153         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
12154         to catch bug), and to 1 if not (simplifies the rest of the code).
12155         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
12156         (CHECK_AUTO): Remove.
12157         (CHECK_ALIGNED): Check only the alignment of the static vars,
12158         since auto var alignment isn't supported by Sun C 5.11.
12159         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
12160         ASSERT failures are easier to diagnose.
12161
12162 2011-10-31  Bruno Haible  <bruno@clisp.org>
12163
12164         doc about some IRIX 5.3 problems.
12165         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
12166         on IRIX 5.3.
12167         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
12168         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
12169         5.3.
12170         * doc/posix-functions/grantpt.texi: Likewise.
12171         * doc/posix-functions/unlockpt.texi: Likewise.
12172         * doc/posix-functions/lgamma.texi: Likewise.
12173         * doc/posix-functions/nextafter.texi: Likewise.
12174         * doc/posix-functions/remainder.texi: Likewise.
12175         * doc/posix-functions/select.texi: Mention misplaced declaration on
12176         IRIX 5.3.
12177         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12178
12179 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
12180
12181         gitlog-to-changelog: fix git-log invocation.
12182         git-log mishandles date strings before 1970-01-01 UTC, and there is
12183         no use to specify --since=1970-01-01 by default anyway.
12184         * build-aux/gitlog-to-changelog: By default, when no --since option
12185         was given, do not specify explicit --since option to git-log.
12186
12187 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
12188
12189         gitlog-to-changelog: new option --append-dot.
12190         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
12191         first non-blank line of each commit message terminated with a dot.
12192
12193 2011-10-30  Bruno Haible  <bruno@clisp.org>
12194
12195         ffsl, ffsll: Avoid compilation error due to 'restrict'.
12196         * lib/ffsl.h: Include <config.h>.
12197         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
12198
12199 2011-10-30  Jim Meyering  <meyering@redhat.com>
12200
12201         GNUmakefile: reenable "make syntax-check" for most projects
12202         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
12203         build-aux variable", "syntax-check" would do nothing but succeed with
12204         the "No version control files detected..." diagnostic (unless you
12205         happened to override _build-aux via cfg.mk).
12206         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
12207         to precede inclusion of maint.mk.  Otherwise, these variables would
12208         be used undefined in any project that does not override the default.
12209
12210 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
12211
12212         gitlog-to-changelog: treat a message with only blank lines as empty.
12213         * build-aux/gitlog-to-changelog: Move the code that removes leading and
12214         trailing blank lines before the code that issues a warning about an
12215         empty commit message.
12216
12217 2011-10-30  Jim Meyering  <meyering@redhat.com>
12218
12219         test-parse-datetime.c: avoid new DST-related false positive test failure
12220         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
12221         based on the time/date we'll convert, not the current time.
12222         Otherwise, the moment we cross a DST boundary like today's in
12223         Europe, (CEST to CET), that offset ends up being one hour off.
12224
12225 2011-10-27  Bruno Haible  <bruno@clisp.org>
12226
12227         fstat: Tweak documentation.
12228         * modules/fstat (Description): More precise description.
12229
12230 2011-10-27  Bruno Haible  <bruno@clisp.org>
12231
12232         Update documentation regarding 'largefile' module.
12233         * doc/posix-functions/fstat.texi: Tweak wording.
12234         * doc/posix-functions/opendir.texi: Mention that the module fixes the
12235         problems with huge directories and/or small ino_t types.
12236         * doc/posix-functions/readdir.texi: Likewise.
12237         * doc/posix-functions/rewinddir.texi: Likewise.
12238
12239 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
12240
12241         maint.mk: don't maintain a second build-aux variable.
12242         * maint.mk (build_aux): Removed.  The maintainer-makefile module
12243         depends on GNUmakefile, which already maintains a cfg.mk
12244         overridable $(_build-aux) for projects with a non-standard
12245         build-aux directory location, although without the $(srcdir)
12246         prefix.  Use that variable consistently instead of introducing a
12247         second one.  Adjust all call sites.
12248
12249 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
12250
12251         Add stdalign module and use it in other modules.
12252         This is based on a previous proposal by Bruno Haible
12253         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
12254
12255         stdalign: new module
12256         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
12257         * modules/stdalign: New files.
12258         * MODULES.html.sh (c1x_core_properties): Add stdalign.
12259         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
12260
12261         stdalign-tests: new module
12262         * modules/stdalign-tests, tests/test-stdalign.c: New files.
12263
12264         argp: use stdalign
12265         * lib/argp-parse.c: Include <stdalign.h>.
12266         (alignof): Remove.
12267         * modules/argp (Depends-on): Add stdalign.
12268
12269         crypto libraries: use stdalign
12270         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
12271         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
12272         Do not include <stdlib.h> twice, in md4.c.
12273         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
12274         because we are accessing a pointer's bit-pattern, not a size.
12275         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
12276         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
12277         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
12278         * modules/crypto/sha512: Likewise.
12279
12280         sys_socket: use stdalign, not alignof
12281         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
12282         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
12283
12284 2011-10-27  Bruno Haible  <bruno@clisp.org>
12285
12286         raise test: Avoid a test failure on Linux/MIPS.
12287         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
12288         because 99 is a valid signal on Linux/MIPS.
12289
12290 2011-10-27  Bruno Haible  <bruno@clisp.org>
12291
12292         nonblocking tests: Fix test failure on Linux/MIPS.
12293         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
12294         Set to 270000.
12295
12296 2011-10-27  Bruno Haible  <bruno@clisp.org>
12297
12298         utimensat: Work around problem on Linux/hppa.
12299         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
12300         values.
12301         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
12302
12303 2011-10-25  Jim Meyering  <meyering@redhat.com>
12304
12305         maint.mk: fix a bug in sc_prohibit_stddef_without_use
12306         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
12307         after symbols like NULL, size_t, etc.
12308         Reported by Alfred M. Szmidt.
12309
12310         maint.mk: exempt ENODATA from a syntax-check rule
12311         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
12312         from the sc_prohibit_always-defined_macros syntax-check rule.
12313         Add a comment.  See this for more details:
12314         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
12315
12316 2011-10-23  Jim Meyering  <meyering@redhat.com>
12317
12318         fts: close parent dir FD before returning from post-traversal fts_read
12319         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
12320         unlink A, even though an FD open on A remained.  This is suboptimal
12321         (holding a file descriptor open longer than needed), but otherwise not
12322         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
12323         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
12324         that represents a real problem: it causes the removal of A to fail
12325         with e.g., "rm: cannot remove `A': Device or resource busy"
12326
12327         fts visits each directory twice and keeps a cache (fts_fd_ring) of
12328         directory file descriptors.  After completing the final, FTS_DP,
12329         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
12330         cache, but then proceeded to add a new FD to it via the subsequent
12331         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
12332         final file descriptor would be closed only via fts_close's call to
12333         fd_ring_clear.  Now, it is usually closed earlier, via the final
12334         FTS_DP-returning fts_read call.
12335         * lib/fts.c (restore_initial_cwd): New function, converted from
12336         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
12337         Update callers.
12338         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
12339         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
12340
12341 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
12342             Bruno Haible  <bruno@clisp.org>
12343             Jim Meyering  <jim@meyering.net>
12344
12345         readme-release: improve safety of release prep instructions.
12346         * README-release: Don't git pull all branches when only master
12347         is needed for the release process.
12348         Run make maintainer-clean before changing trees and merging.
12349         Don't try to run ./configure right after git pull in case files
12350         that influence the bootstrap process have changed, move the
12351         ./configure step to after running ./bootstrap.
12352         Don't bootstrap "one last time"... it's the first time!
12353
12354 2011-10-22  Bruno Haible  <bruno@clisp.org>
12355
12356         errno, strerror-override: Support for MSVC 10.
12357         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
12358         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
12359         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
12360         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
12361         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
12362         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
12363         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
12364         Assign values compatible with MSVC 10.
12365         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
12366         New macros.
12367         (GNULIB_defined_EWINSOCK): New macro.
12368         * lib/strerror-override.c (strerror_override): Update accordingly.
12369         * lib/strerror-override.h: Likewise.
12370         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
12371         longer equal to the corresponding errno value.
12372         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12373
12374 2011-10-22  Bruno Haible  <bruno@clisp.org>
12375
12376         perror: Recognize when test program crashes.
12377         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
12378         strerror, set gl_cv_func_perror_works to no.
12379         Reported by Daniel Richard G. <skunk@iskunk.org>.
12380
12381         perror: Fix indentation.
12382         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
12383
12384 2011-10-22  Bruno Haible  <bruno@clisp.org>
12385
12386         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
12387         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
12388         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
12389         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
12390         functions, not as a macro.
12391         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
12392         macros.
12393         (isfinite, isinf, isnan, signbit): Check overloaded functions and
12394         absence of macro.
12395         Suggested by Eric Blake.
12396         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12397
12398 2011-10-21  Bruno Haible  <bruno@clisp.org>
12399
12400         relocatable-prog-wrapper: Don't leave object files behind.
12401         * build-aux/install-reloc: Re-synchronize list of .o files to be
12402         removed with list of compilation units.
12403
12404 2011-10-20  Bruno Haible  <bruno@clisp.org>
12405
12406         openpty, posix_openpt: Remove code duplication.
12407         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
12408         * lib/openpty.c: Include <stdlib.h>.
12409         (openpty): Use posix_openpt on all platforms except IRIX.
12410         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
12411
12412 2011-10-20  Bruno Haible  <bruno@clisp.org>
12413
12414         unlockpt: Detect invalid argument.
12415         * lib/unlockpt.c: Include <fcntl.h>.
12416         (unlockpt): Check whether fd is valid, using fcntl().
12417         * modules/unlockpt (Depends-on): Add fcntl-h.
12418
12419 2011-10-20  Bruno Haible  <bruno@clisp.org>
12420
12421         openpty: Avoid compilation error on AIX 6.1.
12422         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
12423
12424 2011-10-20  Bruno Haible  <bruno@clisp.org>
12425
12426         posix_openpt: Support for OpenBSD.
12427         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
12428         (posix_openpt) [OpenBSD]: New code.
12429         * lib/grantpt.c: Include <fcntl.h>.
12430         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
12431         * modules/grantpt (Depends-on): Add fcntl-h.
12432
12433 2011-10-20  Bruno Haible  <bruno@clisp.org>
12434
12435         posix_openpt test: Coding style.
12436         * tests/test-posix_openpt.c: Use GNU coding style.
12437
12438 2011-10-20  Bruno Haible  <bruno@clisp.org>
12439
12440         grantpt: Support --avoid=pt_chown.
12441         * modules/grantpt (Files): Add lib/pty-private.h.
12442
12443 2011-10-20  Bruno Haible  <bruno@clisp.org>
12444
12445         posix_openpt: Fix autoconf macro.
12446         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
12447         unneeded check for _getpty.
12448
12449 2011-10-20  Bruno Haible  <bruno@clisp.org>
12450
12451         openpty: Update comments.
12452         * lib/openpty.c: Add comments about Minix.
12453
12454 2011-10-19  Eric Blake  <eblake@redhat.com>
12455
12456         openpty: relax license
12457         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
12458
12459         pt_chown: use configmake to simplify build
12460         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
12461
12462         ptsname and others: relax license
12463         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
12464         * modules/unlockpt (License): Likewise.
12465         * modules/pt_chown (License): Likewise.
12466         * modules/ptsname (License): Likewise.
12467         * modules/ttyname_r (License): Likewise.
12468
12469 2011-10-19  Jim Meyering  <meyering@redhat.com>
12470
12471         posix_openpt: remove spurious #endif
12472         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
12473
12474 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
12475
12476         maint.mk: Respect $(build_aux) in web-manual rule.
12477         * top/maint.mk (web-manual): Find gen-announce script in user's
12478         $(build_aux) directory instead of hard-coding 'build-aux'.
12479
12480 2011-10-19  Bruno Haible  <bruno@clisp.org>
12481
12482         posix_openpt: Fix compilation error.
12483         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
12484         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
12485         Mention the openpty module as an alternative.
12486
12487 2011-10-19  Bruno Haible  <bruno@clisp.org>
12488
12489         Support for old NeXTstep 3.3 frexp().
12490         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
12491         execution time of the test to 5 seconds.
12492         Reported by Daniel Richard G. <skunk@iskunk.org>.
12493
12494 2011-10-19  Bruno Haible  <bruno@clisp.org>
12495
12496         Support for old NeXTstep 3.3 sed.
12497         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
12498         part, use /.../, not \|...|. Escape periods in the header file name.
12499         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12500         Reported by Daniel Richard G. <skunk@iskunk.org>.
12501
12502 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12503
12504         Support for old NeXTstep 3.3 gcc.
12505         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12506         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12507         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12508         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12509         * lib/regex.h (_Restrict_arr_): Likewise.
12510         * lib/regex_internal.h (re_token_t): Likewise.
12511         * lib/regexec.c (check_node_accept_bytes): Likewise.
12512         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12513
12514 2011-10-18  Eric Blake  <eblake@redhat.com>
12515
12516         posix_openpt: new module
12517         * modules/posix_openpt: New module.
12518         * m4/posix_openpt.m4: New file.
12519         * lib/posix_openpt.c: Likewise.
12520         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12521         (gl_STDLIB_H_DEFAULTS): Set defaults.
12522         * modules/stdlib (Makefile.am): Substitute macros.
12523         * lib/stdlib.in.h (posix_openpt): Declare.
12524         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12525         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12526         * modules/posix_openpt-tests: New test module.
12527         * tests/test-posix_openpt.c: New test.
12528
12529 2011-10-15  Bruno Haible  <bruno@clisp.org>
12530
12531         xstrtoll: Fix compilation failure.
12532         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12533         from lib/strtol.c.
12534         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12535         some platforms.
12536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12537
12538 2011-10-15  Bruno Haible  <bruno@clisp.org>
12539
12540         vasnprintf: Optimize bit search operation.
12541         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12542         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12543         gl_DOUBLE_EXPONENT_LOCATION.
12544         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12545         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12546         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12547         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12548         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12549         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12550         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12551         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12552         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12553
12554 2011-10-15  Bruno Haible  <bruno@clisp.org>
12555
12556         vasnprintf: Fix comments.
12557         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12558
12559 2011-10-14  Bruno Haible  <bruno@clisp.org>
12560
12561         Tests for module 'integer_length_ll'.
12562         * modules/integer_length_ll-tests: New file.
12563         * tests/test-integer_length_ll.c: New file.
12564
12565         New module 'integer_length_ll'.
12566         * lib/integer_length_ll.c: New file.
12567         * modules/integer_length_ll: New file.
12568
12569 2011-10-14  Bruno Haible  <bruno@clisp.org>
12570
12571         Tests for module 'integer_length_l'.
12572         * modules/integer_length_l-tests: New file.
12573         * tests/test-integer_length_l.c: New file.
12574
12575         New module 'integer_length_l'.
12576         * lib/integer_length_l.c: New file.
12577         * modules/integer_length_l: New file.
12578
12579 2011-10-14  Bruno Haible  <bruno@clisp.org>
12580
12581         Tests for module 'integer_length'.
12582         * modules/integer_length-tests: New file.
12583         * tests/test-integer_length.c: New file.
12584
12585         New module 'integer_length'.
12586         * lib/integer_length.h: New file.
12587         * lib/integer_length.c: New file.
12588         * modules/integer_length: New file.
12589
12590 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12591
12592         popen: Fix dependency conditions.
12593         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12594
12595 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12596
12597         perror: Fix autoconf test.
12598         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12599         <stdlib.h> and <string.h>.
12600
12601 2011-10-14  Bruno Haible  <bruno@clisp.org>
12602
12603         ffsl: Optimize on 64-bit platforms.
12604         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12605         unrolling.
12606
12607 2011-10-13  Bruno Haible  <bruno@clisp.org>
12608
12609         ffsl: Optimize on 32-bit platforms.
12610         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12611         use ffs() without a loop.
12612
12613         ffsl, ffsll: Optimize for GCC.
12614         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12615         * lib/ffsl.c (GCC_BUILTIN): New macro.
12616         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12617
12618 2011-10-13  Bruno Haible  <bruno@clisp.org>
12619
12620         ffs, bcopy, memset: Support symbol renaming via config.h.
12621         * lib/ffs.c: Include <config.h>.
12622         * lib/bcopy.c: Likewise.
12623         * lib/memset.c: Likewise.
12624
12625 2011-10-10  Bruno Haible  <bruno@clisp.org>
12626
12627         atanl: Simplify for platforms where 'long double' == 'double'.
12628         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12629         alternative implementation.
12630         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12631         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12632         * modules/atanl (Depends-on): Add atan. Update conditions.
12633
12634 2011-10-10  Bruno Haible  <bruno@clisp.org>
12635
12636         acosl: Simplify for platforms where 'long double' == 'double'.
12637         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12638         alternative implementation.
12639         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12640         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12641         * modules/acosl (Depends-on): Add acos. Update conditions.
12642
12643 2011-10-10  Bruno Haible  <bruno@clisp.org>
12644
12645         asinl: Simplify for platforms where 'long double' == 'double'.
12646         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12647         alternative implementation.
12648         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12649         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12650         * modules/asinl (Depends-on): Add asin. Update conditions.
12651
12652 2011-10-10  Bruno Haible  <bruno@clisp.org>
12653
12654         tanl: Simplify for platforms where 'long double' == 'double'.
12655         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12656         implementation.
12657         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12658         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12659         * modules/tanl (Depends-on): Add tan. Update conditions.
12660         (configure.ac): Don't compile trigl.c if
12661         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12662
12663 2011-10-10  Bruno Haible  <bruno@clisp.org>
12664
12665         cosl: Simplify for platforms where 'long double' == 'double'.
12666         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12667         implementation.
12668         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12669         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12670         * modules/cosl (Depends-on): Add cos. Update conditions.
12671         (configure.ac): Don't compile sincosl.c and trigl.c if
12672         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12673
12674 2011-10-10  Bruno Haible  <bruno@clisp.org>
12675
12676         sinl: Simplify for platforms where 'long double' == 'double'.
12677         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12678         implementation.
12679         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12680         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12681         * modules/sinl (Depends-on): Add sin. Update conditions.
12682         (configure.ac): Don't compile sincosl.c and trigl.c if
12683         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12684
12685 2011-10-10  Bruno Haible  <bruno@clisp.org>
12686
12687         logl: Simplify for platforms where 'long double' == 'double'.
12688         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12689         implementation.
12690         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12691         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12692         * modules/logl (Depends-on): Add log. Update conditions.
12693
12694 2011-10-10  Bruno Haible  <bruno@clisp.org>
12695
12696         expl: Simplify for platforms where 'long double' == 'double'.
12697         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12698         implementation.
12699         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12700         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12701         * modules/expl (Depends-on): Add exp. Update conditions.
12702
12703 2011-10-10  Bruno Haible  <bruno@clisp.org>
12704
12705         sqrtl: Simplify for platforms where 'long double' == 'double'.
12706         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12707         alternative implementation.
12708         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12709         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12710         * modules/sqrtl (Depends-on): Update conditions.
12711
12712 2011-10-10  Bruno Haible  <bruno@clisp.org>
12713
12714         ldexpl: Simplify for platforms where 'long double' == 'double'.
12715         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12716         alternative implementation.
12717         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12718         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12719         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12720
12721 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12722
12723         ffsll: set correct witness
12724         * modules/ffsll (configure.ac): Fix typo.
12725
12726 2011-10-10  Bruno Haible  <bruno@clisp.org>
12727
12728         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12729         * lib/printf-frexpl.c: Include <config.h>.
12730         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12731         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12732         second time.
12733         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12734         gl_LONG_DOUBLE_VS_DOUBLE.
12735         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12736         conditions.
12737
12738 2011-10-10  Bruno Haible  <bruno@clisp.org>
12739
12740         frexpl: Simplify for platforms where 'long double' == 'double'.
12741         * lib/frexpl.c: Include <config.h>.
12742         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12743         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12744         time.
12745         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12746         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12747         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12748         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12749         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12750         conditions.
12751
12752 2011-10-10  Jim Meyering  <meyering@redhat.com>
12753
12754         test-renameat: don't leave behind a temporary file
12755         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12756           ERROR: files left in build directory after distclean:
12757           ./gltests/test-renameat.too
12758           make[1]: *** [distcleancheck] Error 1
12759         Reported by Tom G. Christensen.
12760
12761 2011-10-09  Bruno Haible  <bruno@clisp.org>
12762
12763         rint: Determine RINT_LIBM correctly on AIX 7.
12764         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12765         directly, not only through a function pointer. Also accept an optional
12766         4th argument with extra code.
12767         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12768         rintf() call by gcc when optimizing.
12769
12770         mathfunc.m4: Refactor.
12771         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12772         m4 variable.
12773
12774 2011-10-09  Bruno Haible  <bruno@clisp.org>
12775
12776         rintl: Simplify for platforms where 'long double' == 'double'.
12777         * lib/rintl.c: Include <config.h>.
12778         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12779         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12780         time.
12781         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12782         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12783         * modules/rintl (Depends-on): Add rint. Update conditions.
12784
12785 2011-10-09  Bruno Haible  <bruno@clisp.org>
12786
12787         roundl: Simplify for platforms where 'long double' == 'double'.
12788         * lib/roundl.c: Include <config.h>.
12789         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12790         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12791         time.
12792         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12793         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12794         * modules/roundl (Depends-on): Add round. Update conditions.
12795
12796 2011-10-09  Bruno Haible  <bruno@clisp.org>
12797
12798         truncl: Simplify for platforms where 'long double' == 'double'.
12799         * lib/truncl.c: Include <config.h>.
12800         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12801         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12802         time.
12803         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12804         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12805         * modules/truncl (Depends-on): Add trunc. Update conditions.
12806
12807 2011-10-09  Bruno Haible  <bruno@clisp.org>
12808
12809         ceill: Simplify for platforms where 'long double' == 'double'.
12810         * lib/ceill.c: Include <config.h>.
12811         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12812         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12813         time.
12814         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12815         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12816         * modules/ceill (Depends-on): Add ceil. Update conditions.
12817
12818 2011-10-09  Bruno Haible  <bruno@clisp.org>
12819
12820         floorl: Simplify for platforms where 'long double' == 'double'.
12821         * lib/floorl.c: Include <config.h>.
12822         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12823         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12824         time.
12825         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12826         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12827         * modules/floorl (Depends-on): Add floor. Update conditions.
12828
12829 2011-10-09  Bruno Haible  <bruno@clisp.org>
12830
12831         rint: Fix ordering constraints.
12832         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12833         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12834         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12835
12836 2011-10-09  Bruno Haible  <bruno@clisp.org>
12837
12838         copysignl: Simplify for platforms where 'long double' == 'double'.
12839         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12840         alternative.
12841         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12842         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12843         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12844
12845 2011-10-09  Bruno Haible  <bruno@clisp.org>
12846
12847         Tests for module 'rintl'.
12848         * modules/rintl-tests: New file.
12849         * tests/test-rintl.c: New file.
12850
12851         New module 'rintl'.
12852         * lib/math.in.h (rintl): New declaration.
12853         * lib/rintl.c: New file.
12854         * m4/rintl.m4: New file.
12855         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12857         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12858         * modules/rintl: New file.
12859         * tests/test-math-c++.cc: Check the declaration of rintl.
12860         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12861         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12862         * doc/posix-functions/rintl.texi: Mention the new module.
12863
12864 2011-10-09  Bruno Haible  <bruno@clisp.org>
12865
12866         Tests for module 'rintf'.
12867         * modules/rintf-tests: New file.
12868         * tests/test-rintf.c: New file.
12869
12870         New module 'rintf'.
12871         * lib/math.in.h (rintf): New declaration.
12872         * lib/rintf.c: New file.
12873         * m4/rintf.m4: New file.
12874         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12875         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12876         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12877         * modules/rintf: New file.
12878         * tests/test-math-c++.cc: Check the declaration of rintf.
12879         * doc/posix-functions/rintf.texi: Mention the new module.
12880
12881 2011-10-09  Bruno Haible  <bruno@clisp.org>
12882
12883         rint: Support for MSVC.
12884         * lib/math.in.h (rint): New declaration.
12885         * lib/rint.c: New file.
12886         * m4/rint.m4: New file.
12887         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12889         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12890         * modules/rint (Description): Fix.
12891         (Files): Add lib/rint.c, m4/rint.m4.
12892         (Depends-on): Add math.
12893         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12894         gl_MATH_MODULE_INDICATOR.
12895         * tests/test-math-c++.cc: Check the declaration of rint.
12896         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12897         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12898         * doc/posix-functions/rint.texi: Mention the replacement provided by
12899         the module.
12900
12901         rint tests: More tests.
12902         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12903         minus-zero.h, infinity.h, nan.h.
12904         (main): Skip the test if the current rounding mode is not standard. Add
12905         tests for negative numbers, minus zero, infinity, NaN.
12906         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12907         tests/nan.h.
12908         (Depends-on): Add isnand-nolibm.
12909
12910 2011-10-09  Bruno Haible  <bruno@clisp.org>
12911
12912         Tests for module 'copysignl'.
12913         * modules/copysignl-tests: New file.
12914         * tests/test-copysignl.c: New file.
12915
12916         New module 'copysignl'.
12917         * lib/math.in.h (copysignl): New declaration.
12918         * lib/copysignl.c: New file.
12919         * m4/copysignl.m4: New file.
12920         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12922         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12923         HAVE_COPYSIGNL.
12924         * modules/copysignl: New file.
12925         * tests/test-math-c++.cc: Check the declaration of copysignl.
12926         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12927         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12928         * doc/posix-functions/copysignl.texi: Mention the new module.
12929
12930 2011-10-09  Bruno Haible  <bruno@clisp.org>
12931
12932         Tests for module 'copysignf'.
12933         * modules/copysignf-tests: New file.
12934         * tests/test-copysignf.c: New file.
12935
12936         New module 'copysignf'.
12937         * lib/math.in.h (copysignf): New declaration.
12938         * lib/copysignf.c: New file.
12939         * m4/copysignf.m4: New file.
12940         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12942         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12943         HAVE_COPYSIGNF.
12944         * modules/copysignf: New file.
12945         * tests/test-math-c++.cc: Check the declaration of copysignf.
12946         * doc/posix-functions/copysignf.texi: Mention the new module.
12947
12948 2011-10-09  Bruno Haible  <bruno@clisp.org>
12949
12950         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12951         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12952         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12953         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12954         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12955         gl_SIGNAL_H_DEFAULTS.
12956
12957 2011-10-09  Bruno Haible  <bruno@clisp.org>
12958
12959         poll: Make macro safer.
12960         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12961         ac_cv_header_poll_h is not set.
12962
12963 2011-10-09  Bruno Haible  <bruno@clisp.org>
12964
12965         copysign: Provide replacement.
12966         * lib/math.in.h (copysign): New declaration.
12967         * lib/copysign.c: New file.
12968         * m4/copysign.m4: New file.
12969         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12971         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12972         HAVE_COPYSIGN.
12973         * modules/copysign (Description): Clarify.
12974         (Files): Add lib/copysign.c, m4/copysign.m4.
12975         (Depends-on): Add math, signbit.
12976         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12977         gl_MATH_MODULE_INDICATOR.
12978         * tests/test-math-c++.cc: Check the declaration of copysign.
12979         * doc/posix-functions/copysign.texi: Mention the effects of the module
12980         on Minix and MSVC.
12981
12982 2011-10-09  Bruno Haible  <bruno@clisp.org>
12983
12984         isinf: Ensure macro on AIX 5.1.
12985         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12986         macro.
12987         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12988
12989 2011-10-09  Bruno Haible  <bruno@clisp.org>
12990
12991         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12992         * modules/snprintf-posix-tests (configure.ac): Require
12993         gl_LONG_DOUBLE_VS_DOUBLE.
12994         * modules/sprintf-posix-tests (configure.ac): Likewise.
12995         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12996         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12997         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12998         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12999         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
13000         tests on platforms where 'long double' is the same as 'double'.
13001         * tests/test-sprintf-posix.h (test_function): Likewise.
13002         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13003         * tests/test-vasprintf-posix.c (test_function): Likewise.
13004
13005         *printf: Fix for platforms where 'long double' == 'double'.
13006         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
13007         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
13008         * modules/dprintf-posix (Files): Add m4/math_h.m4.
13009         * modules/fprintf-posix (Files): Likewise.
13010         * modules/obstack-printf-posix (Files): Likewise.
13011         * modules/snprintf-posix (Files): Likewise.
13012         * modules/sprintf-posix (Files): Likewise.
13013         * modules/vasnprintf (Files): Likewise.
13014         * modules/vasnprintf-posix (Files): Likewise.
13015         * modules/vasprintf-posix (Files): Likewise.
13016         * modules/vdprintf-posix (Files): Likewise.
13017         * modules/vfprintf-posix (Files): Likewise.
13018         * modules/vsnprintf-posix (Files): Likewise.
13019         * modules/vsprintf-posix (Files): Likewise.
13020         * modules/unistdio/u8-vasnprintf (Files): Likewise.
13021         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
13022         * modules/unistdio/u16-vasnprintf (Files): Likewise.
13023         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
13024         * modules/unistdio/u32-vasnprintf (Files): Likewise.
13025         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
13026         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
13027
13028         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
13029         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
13030         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
13031         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
13032         'long double'.
13033         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
13034
13035         isinf: Fix for platforms where 'long double' == 'double'.
13036         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
13037         Don't blindly assume 80-bit 'long double'.
13038
13039         isfinite: Fix for platforms where 'long double' == 'double'.
13040         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
13041         Don't blindly assume 80-bit 'long double'.
13042
13043         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
13044         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
13045         * modules/isfinite-tests (configure.ac): Require
13046         gl_LONG_DOUBLE_VS_DOUBLE.
13047         * modules/isinf-tests (configure.ac): Likewise.
13048         * modules/isnan-tests (configure.ac): Likewise.
13049         * modules/isnanl-tests (configure.ac): Likewise.
13050         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
13051         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
13052         tests on platforms where 'long double' is the same as 'double'.
13053         * tests/test-isinf.c (test_isinfl): Likewise.
13054         * tests/test-isnan.c (test_long_double): Likewise.
13055         * tests/test-isnanl.h (main): Likewise.
13056
13057 2011-10-08  Bruno Haible  <bruno@clisp.org>
13058
13059         Tests for module 'tanhf'.
13060         * modules/tanhf-tests: New file.
13061         * tests/test-tanhf.c: New file.
13062
13063         New module 'tanhf'.
13064         * lib/math.in.h (tanhf): New declaration.
13065         * lib/tanhf.c: New file.
13066         * m4/tanhf.m4: New file.
13067         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
13068         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
13069         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
13070         * modules/tanhf: New file.
13071         * tests/test-math-c++.cc: Check the declaration of tanhf.
13072         * doc/posix-functions/tanhf.texi: Mention the new module.
13073
13074         tanh: Use a .m4 file.
13075         * m4/tanh.m4: New file.
13076         * modules/tanh (Files): Add it.
13077         (configure.ac): Just invoke gl_FUNC_TANH.
13078
13079 2011-10-08  Bruno Haible  <bruno@clisp.org>
13080
13081         Tests for module 'coshf'.
13082         * modules/coshf-tests: New file.
13083         * tests/test-coshf.c: New file.
13084
13085         New module 'coshf'.
13086         * lib/math.in.h (coshf): New declaration.
13087         * lib/coshf.c: New file.
13088         * m4/coshf.m4: New file.
13089         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
13090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
13091         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
13092         * modules/coshf: New file.
13093         * tests/test-math-c++.cc: Check the declaration of coshf.
13094         * doc/posix-functions/coshf.texi: Mention the new module.
13095
13096         cosh: Use a .m4 file.
13097         * m4/cosh.m4: New file.
13098         * modules/cosh (Files): Add it.
13099         (configure.ac): Just invoke gl_FUNC_COSH.
13100
13101 2011-10-08  Bruno Haible  <bruno@clisp.org>
13102
13103         Tests for module 'sinhf'.
13104         * modules/sinhf-tests: New file.
13105         * tests/test-sinhf.c: New file.
13106
13107         New module 'sinhf'.
13108         * lib/math.in.h (sinhf): New declaration.
13109         * lib/sinhf.c: New file.
13110         * m4/sinhf.m4: New file.
13111         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
13112         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
13113         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
13114         * modules/sinhf: New file.
13115         * tests/test-math-c++.cc: Check the declaration of sinhf.
13116         * doc/posix-functions/sinhf.texi: Mention the new module.
13117
13118         sinh: Use a .m4 file.
13119         * m4/sinh.m4: New file.
13120         * modules/sinh (Files): Add it.
13121         (configure.ac): Just invoke gl_FUNC_SINH.
13122
13123 2011-10-08  Bruno Haible  <bruno@clisp.org>
13124
13125         Tests for module 'atan2f'.
13126         * modules/atan2f-tests: New file.
13127         * tests/test-atan2f.c: New file.
13128
13129         New module 'atan2f'.
13130         * lib/math.in.h (atan2f): New declaration.
13131         * lib/atan2f.c: New file.
13132         * m4/atan2f.m4: New file.
13133         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
13134         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
13135         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
13136         * modules/atan2f: New file.
13137         * tests/test-math-c++.cc: Check the declaration of atan2f.
13138         * doc/posix-functions/atan2f.texi: Mention the new module.
13139
13140         atan2: Use a .m4 file.
13141         * m4/atan2.m4: New file.
13142         * modules/atan2 (Files): Add it.
13143         (configure.ac): Just invoke gl_FUNC_ATAN2.
13144
13145 2011-10-08  Bruno Haible  <bruno@clisp.org>
13146
13147         Tests for module 'atanf'.
13148         * modules/atanf-tests: New file.
13149         * tests/test-atanf.c: New file.
13150
13151         New module 'atanf'.
13152         * lib/math.in.h (atanf): New declaration.
13153         * lib/atanf.c: New file.
13154         * m4/atanf.m4: New file.
13155         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
13156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
13157         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
13158         * modules/atanf: New file.
13159         * tests/test-math-c++.cc: Check the declaration of atanf.
13160         * doc/posix-functions/atanf.texi: Mention the new module.
13161
13162         atan: Use a .m4 file.
13163         * m4/atan.m4: New file.
13164         * modules/atan (Files): Add it.
13165         (configure.ac): Just invoke gl_FUNC_ATAN.
13166
13167 2011-10-08  Bruno Haible  <bruno@clisp.org>
13168
13169         Tests for module 'acosf'.
13170         * modules/acosf-tests: New file.
13171         * tests/test-acosf.c: New file.
13172
13173         New module 'acosf'.
13174         * lib/math.in.h (acosf): New declaration.
13175         * lib/acosf.c: New file.
13176         * m4/acosf.m4: New file.
13177         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
13178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
13179         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
13180         * modules/acosf: New file.
13181         * tests/test-math-c++.cc: Check the declaration of acosf.
13182         * doc/posix-functions/acosf.texi: Mention the new module.
13183
13184         acos: Use a .m4 file.
13185         * m4/acos.m4: New file.
13186         * modules/acos (Files): Add it.
13187         (configure.ac): Just invoke gl_FUNC_ACOS.
13188
13189 2011-10-08  Bruno Haible  <bruno@clisp.org>
13190
13191         Tests for module 'asinf'.
13192         * modules/asinf-tests: New file.
13193         * tests/test-asinf.c: New file.
13194
13195         New module 'asinf'.
13196         * lib/math.in.h (asinf): New declaration.
13197         * lib/asinf.c: New file.
13198         * m4/asinf.m4: New file.
13199         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
13200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
13201         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
13202         * modules/asinf: New file.
13203         * tests/test-math-c++.cc: Check the declaration of asinf.
13204         * doc/posix-functions/asinf.texi: Mention the new module.
13205
13206         asin: Use a .m4 file.
13207         * m4/asin.m4: New file.
13208         * modules/asin (Files): Add it.
13209         (configure.ac): Just invoke gl_FUNC_ASIN.
13210
13211 2011-10-08  Bruno Haible  <bruno@clisp.org>
13212
13213         Tests for module 'tanf'.
13214         * modules/tanf-tests: New file.
13215         * tests/test-tanf.c: New file.
13216
13217         New module 'tanf'.
13218         * lib/math.in.h (tanf): New declaration.
13219         * lib/tanf.c: New file.
13220         * m4/tanf.m4: New file.
13221         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
13222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
13223         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
13224         * modules/tanf: New file.
13225         * tests/test-math-c++.cc: Check the declaration of tanf.
13226         * doc/posix-functions/tanf.texi: Mention the new module.
13227
13228         tan: Use a .m4 file.
13229         * m4/tan.m4: New file.
13230         * modules/tan (Files): Add it.
13231         (configure.ac): Just invoke gl_FUNC_TAN.
13232
13233 2011-10-08  Bruno Haible  <bruno@clisp.org>
13234
13235         Tests for module 'cosf'.
13236         * modules/cosf-tests: New file.
13237         * tests/test-cosf.c: New file.
13238
13239         New module 'cosf'.
13240         * lib/math.in.h (cosf): New declaration.
13241         * lib/cosf.c: New file.
13242         * m4/cosf.m4: New file.
13243         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
13244         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
13245         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
13246         * modules/cosf: New file.
13247         * tests/test-math-c++.cc: Check the declaration of cosf.
13248         * doc/posix-functions/cosf.texi: Mention the new module.
13249
13250         cos: Use a .m4 file.
13251         * m4/cos.m4: New file.
13252         * modules/cos (Files): Add it.
13253         (configure.ac): Just invoke gl_FUNC_COS.
13254
13255 2011-10-08  Bruno Haible  <bruno@clisp.org>
13256
13257         Tests for module 'sinf'.
13258         * modules/sinf-tests: New file.
13259         * tests/test-sinf.c: New file.
13260
13261         New module 'sinf'.
13262         * lib/math.in.h (sinf): New declaration.
13263         * lib/sinf.c: New file.
13264         * m4/sinf.m4: New file.
13265         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
13266         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
13267         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
13268         * modules/sinf: New file.
13269         * tests/test-math-c++.cc: Check the declaration of sinf.
13270         * doc/posix-functions/sinf.texi: Mention the new module.
13271
13272         sin: Use a .m4 file.
13273         * m4/sin.m4: New file.
13274         * modules/sin (Files): Add it.
13275         (configure.ac): Just invoke gl_FUNC_SIN.
13276
13277 2011-10-08  Bruno Haible  <bruno@clisp.org>
13278
13279         Tests for module 'powf'.
13280         * modules/powf-tests: New file.
13281         * tests/test-powf.c: New file.
13282
13283         New module 'powf'.
13284         * lib/math.in.h (powf): New declaration.
13285         * lib/powf.c: New file.
13286         * m4/powf.m4: New file.
13287         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
13288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
13289         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
13290         * modules/powf: New file.
13291         * tests/test-math-c++.cc: Check the declaration of powf.
13292         * doc/posix-functions/powf.texi: Mention the new module.
13293
13294         pow: Use a .m4 file.
13295         * m4/pow.m4: New file.
13296         * modules/pow (Files): Add it.
13297         (configure.ac): Just invoke gl_FUNC_POW.
13298
13299 2011-10-08  Bruno Haible  <bruno@clisp.org>
13300
13301         Tests for module 'log10f'.
13302         * modules/log10f-tests: New file.
13303         * tests/test-log10f.c: New file.
13304
13305         New module 'log10f'.
13306         * lib/math.in.h (log10f): New declaration.
13307         * lib/log10f.c: New file.
13308         * m4/log10f.m4: New file.
13309         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
13310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
13311         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
13312         * modules/log10f: New file.
13313         * tests/test-math-c++.cc: Check the declaration of log10f.
13314         * doc/posix-functions/log10f.texi: Mention the new module.
13315
13316         log10: Use a .m4 file.
13317         * m4/log10.m4: New file.
13318         * modules/log10 (Files): Add it.
13319         (configure.ac): Just invoke gl_FUNC_LOG10.
13320
13321 2011-10-08  Bruno Haible  <bruno@clisp.org>
13322
13323         Tests for module 'logf'.
13324         * modules/logf-tests: New file.
13325         * tests/test-logf.c: New file.
13326
13327         New module 'logf'.
13328         * lib/math.in.h (logf): New declaration.
13329         * lib/logf.c: New file.
13330         * m4/logf.m4: New file.
13331         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
13332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
13333         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
13334         * modules/logf: New file.
13335         * tests/test-math-c++.cc: Check the declaration of logf.
13336         * doc/posix-functions/logf.texi: Mention the new module.
13337
13338         log: Use a .m4 file.
13339         * m4/log.m4: New file.
13340         * modules/log (Files): Add it.
13341         (configure.ac): Just invoke gl_FUNC_LOG.
13342
13343 2011-10-08  Bruno Haible  <bruno@clisp.org>
13344
13345         Tests for module 'expf'.
13346         * modules/expf-tests: New file.
13347         * tests/test-expf.c: New file.
13348
13349         New module 'expf'.
13350         * lib/math.in.h (expf): New declaration.
13351         * lib/expf.c: New file.
13352         * m4/expf.m4: New file.
13353         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
13354         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
13355         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
13356         * modules/expf: New file.
13357         * tests/test-math-c++.cc: Check the declaration of expf.
13358         * doc/posix-functions/expf.texi: Mention the new module.
13359
13360         exp: Use a .m4 file.
13361         * m4/exp.m4: New file.
13362         * modules/exp (Files): Add it.
13363         (configure.ac): Just invoke gl_FUNC_EXP.
13364
13365 2011-10-08  Bruno Haible  <bruno@clisp.org>
13366
13367         Tests for module 'sqrtf'.
13368         * modules/sqrtf-tests: New file.
13369         * tests/test-sqrtf.c: New file.
13370
13371         New module 'sqrtf'.
13372         * lib/math.in.h (sqrtf): New declaration.
13373         * lib/sqrtf.c: New file.
13374         * m4/sqrtf.m4: New file.
13375         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
13376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
13377         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
13378         * modules/sqrtf: New file.
13379         * tests/test-math-c++.cc: Check the declaration of sqrtf.
13380         * doc/posix-functions/sqrtf.texi: Mention the new module.
13381
13382 2011-10-08  Bruno Haible  <bruno@clisp.org>
13383
13384         Tests: Avoid link failures w.r.t. libintl.
13385         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
13386         $(LIBINTL).
13387         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
13388         $(LIBINTL).
13389         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
13390         against $(LIBINTL).
13391         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
13392         $(LIBINTL).
13393         * modules/openat-tests (Makefile.am): Link test-fchmodat against
13394         $(LIBINTL).
13395         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
13396
13397 2011-10-08  Bruno Haible  <bruno@clisp.org>
13398
13399         pow tests: Defeat compiler optimizations.
13400         * tests/test-pow.c (main): Assign arguments to x and y before use.
13401
13402 2011-10-08  Bruno Haible  <bruno@clisp.org>
13403
13404         gnulib-tool: Improve last commit.
13405         * gnulib-tool (func_modules_transitive_closure): Simplify code.
13406         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
13407         ignore dependencies that are not among the modules list.
13408
13409 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
13410
13411         gnulib-tool: don't follow dependencies to avoided modules
13412         This fixes a bug that is related to the previous one.
13413         * gnulib-tool (func_modules_transitive_closure)
13414         (func_emit_autoconf_snippets):
13415         Check whether a dependency is acceptable before using it.
13416         (--extract-dependencies): Report an error if --avoid is also used,
13417         since this combination of options is not yet supported.
13418
13419         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
13420         Problem reported by Peter Dyballa in
13421         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
13422         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
13423         when echoing "$condition".
13424
13425 2011-10-07  Bruno Haible  <bruno@clisp.org>
13426
13427         Fix documentation about math functions on MacOS X.
13428         * doc/posix-functions/exp2.texi: Don't say the function is missing on
13429         MacOS X 10.5.
13430         * doc/posix-functions/fdim.texi: Likewise.
13431         * doc/posix-functions/feclearexcept.texi: Likewise.
13432         * doc/posix-functions/fegetenv.texi: Likewise.
13433         * doc/posix-functions/fegetround.texi: Likewise.
13434         * doc/posix-functions/feholdexcept.texi: Likewise.
13435         * doc/posix-functions/feraiseexcept.texi: Likewise.
13436         * doc/posix-functions/fesetenv.texi: Likewise.
13437         * doc/posix-functions/fesetround.texi: Likewise.
13438         * doc/posix-functions/fetestexcept.texi: Likewise.
13439         * doc/posix-functions/feupdateenv.texi: Likewise.
13440         * doc/posix-functions/fmax.texi: Likewise.
13441         * doc/posix-functions/fmin.texi: Likewise.
13442         * doc/posix-functions/log2.texi: Likewise.
13443         * doc/posix-functions/modff.texi: Likewise.
13444         * doc/posix-functions/nan.texi: Likewise.
13445         * doc/posix-functions/nanf.texi: Likewise.
13446         * doc/posix-functions/nextafterf.texi: Likewise.
13447         * doc/posix-functions/remquo.texi: Likewise.
13448
13449 2011-10-07  Bruno Haible  <bruno@clisp.org>
13450
13451         modff: Drop assumption about library that defines modff.
13452         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
13453         AC_CHECK_FUNCS.
13454         * modules/modff (Files): Add m4/mathfunc.m4.
13455
13456 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
13457
13458         raise tests: Avoid a GCC warning.
13459         * tests/test-raise.c (handler): Use _Noreturn.
13460
13461 2011-10-07  Bruno Haible  <bruno@clisp.org>
13462
13463         Tests for module 'ldexpf'.
13464         * modules/ldexpf-tests: New file.
13465         * tests/test-ldexpf.c: New file.
13466
13467         New module 'ldexpf'.
13468         * lib/math.in.h (ldexpf): New declaration.
13469         * lib/ldexpf.c: New file.
13470         * m4/ldexpf.m4: New file.
13471         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
13472         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
13473         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
13474         * modules/ldexpf: New file.
13475         * tests/test-math-c++.cc: Check the declaration of ldexpf.
13476         * doc/posix-functions/ldexpf.texi: Mention the new module.
13477
13478 2011-10-06  Bruno Haible  <bruno@clisp.org>
13479
13480         frexpf: Work around problems on IRIX and mingw.
13481         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
13482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
13483         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
13484         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
13485         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
13486         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
13487         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
13488
13489 2011-10-06  Bruno Haible  <bruno@clisp.org>
13490
13491         fabsf: Drop assumption about library that defines fabsf.
13492         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
13493         AC_CHECK_FUNCS.
13494         * modules/fabsf (Files): Add m4/mathfunc.m4.
13495
13496 2011-10-06  Bruno Haible  <bruno@clisp.org>
13497
13498         frexpf: Drop assumption about library that defines frexpf.
13499         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
13500         'int *', 'float *', 'long double *', 'float', 'long double'.
13501         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
13502         AC_CHECK_FUNCS.
13503         * modules/frexpf (Files): Add m4/mathfunc.m4.
13504
13505         Tests for module 'frexpf'.
13506         * modules/frexpf-tests: New file.
13507         * tests/test-frexpf.c: New file.
13508
13509         New module 'frexpf'.
13510         * lib/math.in.h (frexpf): New declaration.
13511         * lib/frexpf.c: New file.
13512         * m4/frexpf.m4: New file.
13513         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13515         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13516         * modules/frexpf: New file.
13517         * tests/test-math-c++.cc: Check the declaration of frexpf.
13518         * doc/posix-functions/frexpf.texi: Mention the new module.
13519
13520 2011-10-06  Bruno Haible  <bruno@clisp.org>
13521
13522         math: Sort function declarations of math.in.h.
13523         * lib/math.in.h (frexp, logb): Move declarations.
13524
13525 2011-10-05  Bruno Haible  <bruno@clisp.org>
13526
13527         Tests for module 'modff'.
13528         * modules/modff-tests: New file.
13529         * tests/test-modff.c: New file.
13530
13531         New module 'modff'.
13532         * lib/math.in.h (modff): New declaration.
13533         * lib/modff.c: New file.
13534         * m4/modff.m4: New file.
13535         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13536         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13537         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13538         * modules/modff: New file.
13539         * tests/test-math-c++.cc: Check the declaration of modff.
13540         * doc/posix-functions/modff.texi: Mention the new module.
13541
13542         modf tests: Make test sharper.
13543         * tests/test-modf.c (main): Strengthen upper bound.
13544
13545         modf: Use a .m4 file.
13546         * m4/modf.m4: New file.
13547         * modules/modf (Files): Add it.
13548         (configure.ac): Just invoke gl_FUNC_MODF.
13549
13550 2011-10-05  Bruno Haible  <bruno@clisp.org>
13551
13552         Tests for module 'fmodf'.
13553         * modules/fmodf-tests: New file.
13554         * tests/test-fmodf.c: New file.
13555
13556         New module 'fmodf'.
13557         * lib/math.in.h (fmodf): New declaration.
13558         * lib/fmodf.c: New file.
13559         * m4/fmodf.m4: New file.
13560         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13562         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13563         * modules/fmodf: New file.
13564         * tests/test-math-c++.cc: Check the declaration of fmodf.
13565         * doc/posix-functions/fmodf.texi: Mention the new module.
13566
13567         fmod: Use a .m4 file.
13568         * m4/fmod.m4: New file.
13569         * modules/fmod (Files): Add it.
13570         (configure.ac): Just invoke gl_FUNC_FMOD.
13571
13572 2011-10-05  Bruno Haible  <bruno@clisp.org>
13573
13574         Tests for module 'fabsf'.
13575         * modules/fabsf-tests: New file.
13576         * tests/test-fabsf.c: New file.
13577
13578         New module 'fabsf'.
13579         * lib/math.in.h (fabsf): New declaration.
13580         * lib/fabsf.c: New file.
13581         * m4/fabsf.m4: New file.
13582         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13584         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13585         * modules/fabsf: New file.
13586         * tests/test-math-c++.cc: Check the declaration of fabsf.
13587         * doc/posix-functions/fabsf.texi: Mention the new module.
13588
13589         fabs: Use a .m4 file.
13590         * m4/fabs.m4: New file.
13591         * modules/fabs (Files): Add it.
13592         (configure.ac): Just invoke gl_FUNC_FABS.
13593
13594 2011-10-05  Jim Meyering  <meyering@redhat.com>
13595
13596         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13597         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13598         ls -lL regression introduced in coreutils-8.12, it does so at the
13599         cost of an additional stat call in the common case.  Besides, now
13600         that the kernel change that prompted commit 95f7c57f has been reverted
13601         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13602         we have no use for commit 95f7c57f, "file-has-acl: use
13603         acl_extended_file_nofollow if available".
13604
13605 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13606
13607         file-has-acl: revert unintended change in behavior of ls -L
13608         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13609         derived from...
13610         (file_has_acl): ...code here.  Call it.
13611         This problem was introduced with 2011-07-22 commit 95f7c57f,
13612         "file-has-acl: use acl_extended_file_nofollow if available".
13613         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13614
13615 2011-10-03  Bruno Haible  <bruno@clisp.org>
13616
13617         poll: Avoid link errors on MSVC.
13618         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13619         * modules/poll (Depends-on): Add sockets.
13620         (Link): New section.
13621         * NEWS: Mention the change.
13622         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13623         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13624         $(LIB_POLL) instead of $(LIBSOCKET).
13625
13626 2011-10-03  Bruno Haible  <bruno@clisp.org>
13627
13628         sys_select tests: Fix link error on MSVC 9.
13629         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13630         with $(LIB_SELECT) instead of $(LIBSOCKET).
13631
13632 2011-10-03  Bruno Haible  <bruno@clisp.org>
13633
13634         sys_select: Fix compilation error on mingw.
13635         * lib/sys_select.in.h: On native Windows, include <io.h>.
13636
13637 2011-10-03  Bruno Haible  <bruno@clisp.org>
13638
13639         wmemset: Support for MSVC.
13640         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13641         whether wmemset() exists.
13642
13643 2011-10-03  Bruno Haible  <bruno@clisp.org>
13644
13645         wmemmove: Support for MSVC.
13646         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13647         whether wmemmove() exists.
13648
13649 2011-10-03  Bruno Haible  <bruno@clisp.org>
13650
13651         wmemcpy: Support for MSVC.
13652         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13653         whether wmemcpy() exists.
13654
13655 2011-10-03  Bruno Haible  <bruno@clisp.org>
13656
13657         wmemcmp: Support for MSVC.
13658         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13659         whether wmemcmp() exists.
13660
13661 2011-10-03  Bruno Haible  <bruno@clisp.org>
13662
13663         wmemchr: Support for MSVC.
13664         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13665         whether wmemchr() exists.
13666
13667 2011-10-03  Bruno Haible  <bruno@clisp.org>
13668
13669         glthread/*, strsignal: Support for MSVC.
13670         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13671         including <winsock.h> on MSVC 9.
13672         * lib/glthread/lock.h: Likewise.
13673         * lib/glthread/thread.h: Likewise.
13674         * lib/glthread/tls.h: Likewise.
13675         * lib/glthread/yield.h: Likewise.
13676         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13677         if HAVE_UNISTD_H is false.
13678         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13679
13680 2011-10-03  Bruno Haible  <bruno@clisp.org>
13681
13682         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13683         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13684         Set to 100000.
13685
13686 2011-10-03  Bruno Haible  <bruno@clisp.org>
13687
13688         acl: Fix specification.
13689         * lib/file-has-acl.c (file_has_acl): Fix specification.
13690
13691 2011-10-03  Bruno Haible  <bruno@clisp.org>
13692
13693         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13694         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13695         (compute_curr_prefix, shared_library_fullname,
13696         find_shared_library_fullname, get_shared_library_fullname, relocate):
13697         Use it together with PIC && INSTALLDIR.
13698         Reported by <jojelino@gmail.com>
13699         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13700
13701 2011-10-01  Jim Meyering  <meyering@redhat.com>
13702
13703         maint.mk: adjust a release-related rule not to require use of gzip
13704         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13705         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13706         projects that build only .tar.xz files.  Also fix an erroneous test.
13707
13708         test-linkat: don't leave behind a temporary file
13709         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13710         Otherwise, coreutils' "make distcheck" would fail with this:
13711           Only in /c/cu/tests/torture/coreutils/test/\
13712             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13713           make[2]: *** [my-distcheck] Error 1
13714
13715         float, math: add omitted file
13716         * lib/itold.c: Add file, required for yesterday's float change.
13717
13718 2011-10-01  Bruno Haible  <bruno@clisp.org>
13719
13720         isinf: Fix for OpenBSD/x86.
13721         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13722         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13723         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13724
13725 2011-10-01  Bruno Haible  <bruno@clisp.org>
13726
13727         isfinite: Fix syntax error in configure test.
13728         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13729
13730         isfinite: Fix typo.
13731         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13732         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13733
13734 2011-10-01  Bruno Haible  <bruno@clisp.org>
13735
13736         nonblocking tests: Fix test failure on Linux/IA-64.
13737         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13738         Set to 270000.
13739
13740 2011-10-01  Bruno Haible  <bruno@clisp.org>
13741
13742         mkfifoat tests: Fix a test failure on mingw.
13743         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13744         with error ENOSYS.
13745
13746 2011-09-30  Bruno Haible  <bruno@clisp.org>
13747
13748         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13749         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13750         'long double'. Set REPLACE_ITOLD.
13751         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13752         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13753         * lib/itold.c: New file.
13754         * modules/float (Files): Add lib/itold.c.
13755         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13756         (Makefile.am): Substitute REPLACE_ITOLD.
13757         * modules/math (Depends-on): Add float.
13758         (Makefile.am): Substitute REPLACE_ITOLD.
13759         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13760         * doc/posix-headers/math.texi: Likewise.
13761         * doc/posix-functions/logl.texi: Likewise.
13762
13763 2011-09-30  Bruno Haible  <bruno@clisp.org>
13764
13765         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13766         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13767         Set to 140000.
13768
13769 2011-09-30  Bruno Haible  <bruno@clisp.org>
13770
13771         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13772         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13773         invocation, say "right after AC_PROG_CC_STDC", not "right after
13774         AC_PROG_CC".
13775         Reported by Gary V. Vaughan <gary@gnu.org>.
13776
13777 2011-09-30  Bruno Haible  <bruno@clisp.org>
13778
13779         Centralize C99 requirement.
13780         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13781         * modules/stdarg (configure.ac-early): Invoke it instead of
13782         AC_PROG_CC_STDC.
13783         Reported by Gary V. Vaughan and Paul Eggert.
13784
13785 2011-09-29  Bruno Haible  <bruno@clisp.org>
13786
13787         float: Fix LDBL_MAX value on Linux/PowerPC.
13788         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13789         on Linux/PowerPC.
13790         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13791         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13792         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13793         platform.
13794         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13795
13796 2011-09-29  Bruno Haible  <bruno@clisp.org>
13797
13798         doc: Improve doc about gl_EARLY.
13799         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13800         AC_PROG_CC_STDC invocation.
13801         Reported by Gary V. Vaughan <gary@gnu.org>.
13802
13803 2011-09-28  Bruno Haible  <bruno@clisp.org>
13804
13805         fgetc, fputc, fread, fwrite tests: Fix link error.
13806         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13807         on non-MSVC platforms.
13808         * tests/test-fputc.c (main): Likewise.
13809         * tests/test-fread.c (main): Likewise.
13810         * tests/test-fwrite.c (main): Likewise.
13811         Reported by Jim Meyering.
13812
13813 2011-09-27  Bruno Haible  <bruno@clisp.org>
13814
13815         fputc, fwrite tests: Avoid test failure on MSVC.
13816         * tests/test-fgetc.c: Include msvc-inval.h.
13817         (main): Invoke gl_msvc_inval_ensure_handler.
13818         * tests/test-fputc.c: Include msvc-inval.h.
13819         (main): Invoke gl_msvc_inval_ensure_handler.
13820         * tests/test-fread.c: Include msvc-inval.h.
13821         (main): Invoke gl_msvc_inval_ensure_handler.
13822         * tests/test-fwrite.c: Include msvc-inval.h.
13823         (main): Invoke gl_msvc_inval_ensure_handler.
13824         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13825         * modules/fputc-tests (Depends-on): Likewise.
13826         * modules/fread-tests (Depends-on): Likewise.
13827         * modules/fwrite-tests (Depends-on): Likewise.
13828
13829 2011-09-27  Bruno Haible  <bruno@clisp.org>
13830
13831         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13832         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13833         (raise): Remove older, duplicated declaration.
13834         (_gl_raise_SIGPIPE): New declaration.
13835         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13836         (rpl_raise): Remove function.
13837         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13838         a gnulib-defined SIGPIPE here.
13839         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13840         'sigprocmask' has detected missing signal-blocking and the module
13841         'sigpipe' is enabled.
13842         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13843
13844 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13845
13846         base64-tests: avoid memory leak
13847         * tests/test-base64.c (main): Plug memory leak.
13848
13849         base32: new module
13850         * modules/base32: New module.
13851         * lib/base32.c: New file.
13852         * lib/base32.h: Likewise.
13853         * m4/base32.m4: Likewise.
13854         * modules/base32-tests: New test.
13855         * tests/test-base32.c: Likewise.
13856         * MODULES.html.sh (Misc): Mention it.
13857
13858 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13859
13860         gnulib: use more-standard license notice wording
13861         * gnulib-tool (func_emit_copyright_notice): When emitting a
13862         license notice into a file, use the standard wording as suggested
13863         by the current information for GNU maintainers, except say "file"
13864         rather than "program".  The new wording gives a license version
13865         number, which addresses an issue raised by Glenn Morris in
13866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13867         * m4/onceonly.m4: Use that same wording here, too.
13868
13869         dup2: minor simplification
13870         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13871         as lib/dup2.c no longer uses 'inline'.
13872
13873 2011-09-25  Bruno Haible  <bruno@clisp.org>
13874
13875         strings: Fix compilation error on MSVC.
13876         * lib/strings.in.h: Include <stddef.h> for size_t.
13877
13878 2011-09-25  Bruno Haible  <bruno@clisp.org>
13879
13880         fflush et al.: Document limitation on MSVC.
13881         * doc/posix-functions/fflush.texi: Document possible crash in handling
13882         mode other than DEFAULT_HANDLING.
13883         * doc/posix-functions/fgetc.texi: Likewise.
13884         * doc/posix-functions/fputc.texi: Likewise.
13885         * doc/posix-functions/fread.texi: Likewise.
13886         * doc/posix-functions/fwrite.texi: Likewise.
13887
13888 2011-09-25  Bruno Haible  <bruno@clisp.org>
13889
13890         msvc-inval: Allow three invalid parameter handling modes.
13891         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13892         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13893         macros.
13894         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13895         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13896         SANE_LIBRARY_HANDLING as a no-op.
13897         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13898         <stdlib.h>.
13899         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13900
13901 2011-09-25  Bruno Haible  <bruno@clisp.org>
13902
13903         msvc-inval: Make handler multithread-safe.
13904         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13905         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13906         declarations.
13907         (gl_msvc_inval_current): New declaration.
13908         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13909         Operate on the structure returned by gl_msvc_inval_current().
13910         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13911         Remove varaiables.
13912         (tls_index, tls_initialized): New variables.
13913         (not_per_thread): New variable.
13914         (gl_msvc_inval_current): New function.
13915         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13916         returned by gl_msvc_inval_current().
13917
13918 2011-09-25  Bruno Haible  <bruno@clisp.org>
13919
13920         msvc-inval: Install handler globally.
13921         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13922         !_MSC_VER.
13923         (gl_msvc_invalid_parameter_handler): Remove declaration.
13924         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13925         declarations.
13926         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13927         Install the handler globally, don't uninstall it.
13928         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13929         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13930         currently valid, call RaiseException instead.
13931         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13932         for !_MSC_VER.
13933
13934 2011-09-25  Bruno Haible  <bruno@clisp.org>
13935
13936         strerror_r-posix: Fix for MSVC 9.
13937         * lib/strerror_r.c (local_snprintf): New function.
13938         (snprintf): Define to local_snprintf, not to _snprintf.
13939
13940 2011-09-25  Bruno Haible  <bruno@clisp.org>
13941
13942         ftruncate: Support for MSVC 9.
13943         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13944         (chsize_nothrow): New function.
13945         (chsize): Redefine as a macro.
13946         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13947         * modules/ftruncate (Depends-on): Add msvc-inval.
13948
13949 2011-09-25  Bruno Haible  <bruno@clisp.org>
13950
13951         New module 'fstat'.
13952         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13953         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13954         * lib/fchdir.c (rpl_fstat): Remove function.
13955         * m4/fstat.m4: New file.
13956         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13957         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13958         declared.
13959         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13960         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13961         * modules/fstat: New file.
13962         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13963         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13964         is set.
13965         * doc/posix-functions/fstat.texi: Mention the new module and the
13966         problem on MSVC.
13967         * NEWS: Mention the change.
13968         * modules/acl (Depends-on): Add fstat.
13969         * modules/chdir-safer (Depends-on): Likewise.
13970         * modules/chown (Depends-on): Likewise.
13971         * modules/copy-file (Depends-on): Likewise.
13972         * modules/fchdir (Depends-on): Likewise.
13973         * modules/fdopendir (Depends-on): Likewise.
13974         * modules/fopen (Depends-on): Likewise.
13975         * modules/fts (Depends-on): Likewise.
13976         * modules/getcwd (Depends-on): Likewise.
13977         * modules/isapipe (Depends-on): Likewise.
13978         * modules/linkat (Depends-on): Likewise.
13979         * modules/lseek (Depends-on): Likewise.
13980         * modules/mkdir-p (Depends-on): Likewise.
13981         * modules/open (Depends-on): Likewise.
13982         * modules/openat (Depends-on): Likewise.
13983         * modules/read-file (Depends-on): Likewise.
13984         * modules/renameat (Depends-on): Likewise.
13985         * modules/utimens (Depends-on): Likewise.
13986
13987 2011-09-25  Bruno Haible  <bruno@clisp.org>
13988
13989         linkat: Fix compilation on MSVC 9.
13990         * lib/linkat.c: Don't include <stdint.h>.
13991
13992 2011-09-25  Bruno Haible  <bruno@clisp.org>
13993
13994         fclose: Support for MSVC 9.
13995         * lib/fclose.c: Include msvc-inval.h.
13996         (fclose_nothrow): New function.
13997         (rpl_fclose): Use it.
13998         * modules/fclose (Depends-on): Add msvc-inval.
13999         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
14000
14001 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
14002
14003         dup2: minor simplifications
14004         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
14005         that it's a performance win.
14006         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
14007         ! defined __CYGWIN__)" to "ifdef F_GETFL".
14008
14009 2011-09-24  Jim Meyering  <meyering@redhat.com>
14010
14011         test-futimens: avoid a warning from gcc -Wshadow
14012         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
14013         to avoid a shadowing warning.
14014
14015 2011-09-24  Bruno Haible  <bruno@clisp.org>
14016
14017         fdopen: Support for MSVC 9.
14018         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
14019         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
14020         * lib/fdopen.c: Include msvc-inval.h.
14021         (fdopen_nothrow): New function.
14022         (rpl_fdopen): Use it.
14023         * modules/fdopen (Depends-on): Add msvc-inval.
14024         * modules/fclose-tests (Depends-on): Add fdopen.
14025         * modules/fflush-tests (Depends-on): Likewise.
14026         * modules/fgetc-tests (Depends-on): Likewise.
14027         * modules/fputc-tests (Depends-on): Likewise.
14028         * modules/fread-tests (Depends-on): Likewise.
14029         * modules/freopen-tests (Depends-on): Likewise.
14030         * modules/fseeko-tests (Depends-on): Likewise.
14031         * modules/ftello-tests (Depends-on): Likewise.
14032         * modules/fwrite-tests  (Depends-on): Likewise.
14033         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
14034
14035 2011-09-24  Bruno Haible  <bruno@clisp.org>
14036
14037         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
14038         * modules/fgetc-tests (Depends-on): Add unistd.
14039         * modules/fputc-tests (Depends-on): Likewise.
14040         * modules/fread-tests (Depends-on): Likewise.
14041         * modules/fwrite-tests (Depends-on): Likewise.
14042
14043 2011-09-24  Bruno Haible  <bruno@clisp.org>
14044
14045         dup: Simplify autoconf test.
14046         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
14047         on gl_MSVC_INVAL's result.
14048
14049 2011-09-24  Bruno Haible  <bruno@clisp.org>
14050
14051         Tests for function fwrite().
14052         * modules/fwrite-tests: New file.
14053         * tests/test-fwrite.c: New file.
14054         * modules/stdio-tests (Depends-on): Add fwrite-tests.
14055
14056         Tests for function fread().
14057         * modules/fread-tests: New file.
14058         * tests/test-fread.c: New file.
14059         * modules/stdio-tests (Depends-on): Add fread-tests.
14060
14061         Activate fputc tests.
14062         * modules/stdio-tests (Depends-on): Add fputc-tests.
14063
14064         Enhance fgetc, fputc tests.
14065         * tests/test-fgetc.c (main): Also test the stream's error indicator.
14066         * tests/test-fputc.c (main): Likewise.
14067
14068 2011-09-24  Bruno Haible  <bruno@clisp.org>
14069
14070         write: Support for MSVC 9.
14071         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
14072         is not 1.
14073         * lib/write.c (write_nothrow): New function.
14074         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
14075         not 1. Use write_nothrow.
14076         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
14077         invalid parameter handler.
14078         (gl_PREREQ_WRITE): New macro.
14079         * modules/write (Depends-on): Add msvc-inval.
14080         (configure.ac): Invoke gl_PREREQ_WRITE.
14081         * doc/posix-functions/write.texi: Mention the problem on MSVC.
14082
14083 2011-09-24  Bruno Haible  <bruno@clisp.org>
14084
14085         read: Fix last commit.
14086         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
14087
14088 2011-09-24  Bruno Haible  <bruno@clisp.org>
14089
14090         dup2: Fix last commit.
14091         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
14092         (rpl_dup2): Disable fcntl workaround on native Windows.
14093
14094         sigprocmask: Make code safer.
14095         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
14096         section that changes macro definitions for this compilation unit.
14097
14098 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
14099
14100         dup2: clarify by coalescing Windows-specific material
14101         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
14102         "msvc-nothrow.h"' to the Windows-specific section, so that the
14103         Emacs source need not contain these include files.
14104         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
14105         Windows-specific fixes into this function rather than just the
14106         nothrow fix, as this shortens and clarifies the code.  Always
14107         define as a function, as that's a bit cleaner than having it be
14108         sometimes a function and sometimes a macro.
14109         (rpl_dup2): Move the Windows-specific stuff out of here and into
14110         ms_windows_dup2.  Don't protect the Haiku-related fix with
14111         "#if !defined __linux__", as the same code also works around
14112         a Linux kernel bug, and it doesn't add any system calls on any
14113         platform.  Add comment about FreeBSD 6.1.
14114
14115         sigprocmask: move #include directive
14116         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
14117         Windows-specific section, so that the Emacs source need not
14118         contain msvc-inval.h.
14119
14120 2011-09-23  Bruno Haible  <bruno@clisp.org>
14121
14122         read: Support for MSVC 9.
14123         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
14124         is not 1.
14125         * lib/read.c (read_nothrow): New function.
14126         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
14127         read_nothrow.
14128         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
14129         invalid parameter handler.
14130         (gl_PREREQ_READ): New macro.
14131         * modules/read (Depends-on): Add msvc-inval.
14132         (configure.ac): Invoke gl_PREREQ_READ.
14133         * doc/posix-functions/read.texi: Mention the problem on MSVC.
14134
14135 2011-09-23  Bruno Haible  <bruno@clisp.org>
14136
14137         close: Support for MSVC 9.
14138         * lib/close.c: Include <errno.h>, msvc-inval.h.
14139         (close_nothrow): New function.
14140         (rpl_close): Use it.
14141         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
14142         invalid parameter handler.
14143         * modules/close (Depends-on): Add msvc-inval.
14144         * modules/dup2-tests (Depends-on): Add close.
14145         * modules/dup3-tests (Depends-on): Likewise.
14146         * modules/fcntl-tests (Depends-on): Likewise.
14147         * modules/spawn-pipe-tests (Depends-on): Likewise.
14148         * modules/unistd-safer-tests (Depends-on): Likewise.
14149         * doc/posix-functions/close.texi: Mention the problem on MSVC.
14150
14151 2011-09-23  Bruno Haible  <bruno@clisp.org>
14152
14153         New module 'dup'.
14154         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
14155         Allow replacement.
14156         * lib/dup.c: New file.
14157         * lib/fchdir.c (rpl_dup): Remove function.
14158         * m4/dup.m4: New file.
14159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
14160         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
14161         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
14162         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
14163         * modules/dup: New file.
14164         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
14165         'dup' module is in use.
14166         * modules/fdopendir (Depends-on): Add dup.
14167         * modules/fdutimensat-tests (Depends-on): Likewise.
14168         * modules/fts (Depends-on): Likewise.
14169         * modules/futimens-tests (Depends-on): Likewise.
14170         * modules/posix_spawnp-tests (Depends-on): Likewise.
14171         * modules/unistd-safer-tests (Depends-on): Likewise.
14172         * modules/utimens-tests (Depends-on): Likewise.
14173         * doc/posix-functions/dup.texi: Mention the new module and the problem
14174         on MSVC.
14175
14176 2011-09-23  Bruno Haible  <bruno@clisp.org>
14177
14178         getdtablesize: Support for MSVC 9.
14179         * lib/getdtablesize.c: Include msvc-inval.h.
14180         (_setmaxstdio_nothrow): New function.
14181         (_setmaxstdio): Redefine it.
14182         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
14183         * modules/getdtablesize (Depends-on): Add msvc-inval.
14184         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
14185
14186 2011-09-23  Bruno Haible  <bruno@clisp.org>
14187
14188         signal-h: Rename from signal.
14189         * modules/signal-h: Renamed from modules/signal.
14190         * modules/pthread_sigmask (Depends-on): Update.
14191         * modules/raise (Depends-on): Likewise.
14192         * modules/sigaction (Depends-on): Likewise.
14193         * modules/sigpipe (Depends-on): Likewise.
14194         * modules/sigprocmask (Depends-on): Likewise.
14195         * modules/sys_select (Depends-on): Likewise.
14196         * modules/signal-h-tests: Renamed from modules/signal-tests.
14197         (Files, Depends-on, Makefile.am): Update.
14198         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
14199         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
14200         (Files, Makefile.am): Update.
14201         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
14202         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
14203         * modules/signal: New placeholder file.
14204         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
14205         * doc/posix-headers/signal.texi: Update.
14206         * NEWS: Mention the change.
14207
14208 2011-09-23  Bruno Haible  <bruno@clisp.org>
14209
14210         sigprocmask: Avoid crashes through signal() on MSVC 9.
14211         * lib/sigprocmask.c: Include msvc-inval.h.
14212         (signal_nothrow): New function.
14213         (signal): Redefine it.
14214         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
14215         * modules/sigprocmask (Depends-on): Add msvc-inval.
14216         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
14217
14218 2011-09-23  Bruno Haible  <bruno@clisp.org>
14219
14220         Tests for module 'raise'.
14221         * modules/raise-tests: New file.
14222         * tests/test-raise.c: New file.
14223
14224         raise: Support for MSVC.
14225         * lib/signal.in.h (raise): New declaration.
14226         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
14227         for native Windows platforms.
14228         * m4/raise.m4: New file.
14229         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
14230         HAVE_RAISE, REPLACE_RAISE.
14231         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
14232         REPLACE_RAISE.
14233         * modules/raise (Status, Notice): Remove fields.
14234         (Files): Add m4/raise.m4.
14235         (Depends-on): Add signal, msvc-inval.
14236         (configure.ac): Use the common idioms.
14237         (Maintainer): Add me.
14238         * tests/test-signal-c++.cc: Check the signature of raise.
14239         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
14240
14241 2011-09-23  Bruno Haible  <bruno@clisp.org>
14242
14243         pipe2: Fix compilation on pre-C99 compilers.
14244         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
14245
14246 2011-09-23  Bruno Haible  <bruno@clisp.org>
14247
14248         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
14249         * lib/msvc-nothrow.h: New file.
14250         * lib/msvc-nothrow.c: New file.
14251         * m4/msvc-nothrow.m4: New file.
14252         * modules/msvc-nothrow: New file.
14253         * lib/dup2.c: Include msvc-nothrow.h.
14254         (rpl_dup2): No need to protect _get_osfhandle call here.
14255         * lib/accept4.c: Include msvc-nothrow.h.
14256         * lib/error.c: Likewise.
14257         * lib/fcntl.c: Likewise.
14258         * lib/lseek.c: Likewise.
14259         * lib/nonblocking.c: Likewise.
14260         * lib/poll.c: Likewise.
14261         * lib/read.c: Likewise.
14262         * lib/select.c: Likewise.
14263         * lib/sockets.h: Likewise.
14264         * lib/sockets.c: Likewise.
14265         * lib/stdio-read.c: Likewise.
14266         * lib/stdio-write.c: Likewise.
14267         * lib/write.c: Likewise.
14268         * lib/w32sock.h: Likewise.
14269         * lib/w32spawn.h: Likewise.
14270         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
14271         * lib/fsync.c: Likewise.
14272         * lib/isapipe.c: Likewise.
14273         * modules/dup2 (Depends-on): Add msvc-nothrow.
14274         * modules/accept4 (Depends-on): Likewise.
14275         * modules/error (Depends-on): Likewise.
14276         * modules/fcntl (Depends-on): Likewise.
14277         * modules/lseek (Depends-on): Likewise.
14278         * modules/nonblocking (Depends-on): Likewise.
14279         * modules/poll (Depends-on): Likewise.
14280         * modules/read (Depends-on): Likewise.
14281         * modules/select (Depends-on): Likewise.
14282         * modules/sockets (Depends-on): Likewise.
14283         * modules/sigpipe (Depends-on): Likewise.
14284         * modules/write (Depends-on): Likewise.
14285         * modules/accept (Depends-on): Likewise.
14286         * modules/bind (Depends-on): Likewise.
14287         * modules/connect (Depends-on): Likewise.
14288         * modules/gethostname (Depends-on): Likewise.
14289         * modules/getpeername (Depends-on): Likewise.
14290         * modules/getsockname (Depends-on): Likewise.
14291         * modules/getsockopt (Depends-on): Likewise.
14292         * modules/ioctl (Depends-on): Likewise.
14293         * modules/listen (Depends-on): Likewise.
14294         * modules/recv (Depends-on): Likewise.
14295         * modules/recvfrom (Depends-on): Likewise.
14296         * modules/send (Depends-on): Likewise.
14297         * modules/sendto (Depends-on): Likewise.
14298         * modules/setsockopt (Depends-on): Likewise.
14299         * modules/shutdown (Depends-on): Likewise.
14300         * modules/socket (Depends-on): Likewise.
14301         * modules/execute (Depends-on): Likewise.
14302         * modules/spawn-pipe (Depends-on): Likewise.
14303         * modules/flock (Depends-on): Likewise.
14304         * modules/fsync (Depends-on): Likewise.
14305         * modules/isapipe (Depends-on): Likewise.
14306         * tests/test-cloexec.c: Include msvc-nothrow.h.
14307         * tests/test-dup-safer.c: Likewise.
14308         * tests/test-dup2.c: Likewise.
14309         * tests/test-dup3.c: Likewise.
14310         * tests/test-fcntl.c: Likewise.
14311         * tests/test-pipe.c: Likewise.
14312         * tests/test-pipe2.c: Likewise.
14313         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
14314         * modules/unistd-safer-tests (Depends-on): Likewise.
14315         * modules/dup2-tests (Depends-on): Likewise.
14316         * modules/dup3-tests (Depends-on): Likewise.
14317         * modules/fcntl-tests (Depends-on): Likewise.
14318         * modules/pipe-posix-tests (Depends-on): Likewise.
14319         * modules/pipe2-tests (Depends-on): Likewise.
14320
14321 2011-09-23  Bruno Haible  <bruno@clisp.org>
14322
14323         dup2: Make code more maintainable.
14324         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
14325         (rpl_dup2): Use it.
14326         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
14327         * modules/dup2 (configure.ac): Invoke it.
14328         Reported by Paul Eggert.
14329
14330 2011-09-23  Bruno Haible  <bruno@clisp.org>
14331
14332         msvc-inval: Fix compilation error.
14333         * lib/msvc-inval.h: Include <excpt.h>.
14334
14335 2011-09-23  Bruno Haible  <bruno@clisp.org>
14336
14337         mkdir: Tweak for MSVC 9.
14338         * lib/sys_stat.in.h: Update comments.
14339         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
14340
14341         Tests for module 'chdir'.
14342         * modules/chdir-tests: New file.
14343         * tests/test-chdir.c: New file.
14344
14345         New module 'chdir'.
14346         * modules/chdir: New file.
14347         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
14348         (chdir): New declaration.
14349         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
14350         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
14351         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
14352         * tests/test-unistd-c++.cc: Check signature of chdir.
14353         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
14354         * modules/chdir-long (Depends-on): Add chdir.
14355         * modules/fchdir (Depends-on): Likewise.
14356         * modules/rename (Depends-on): Likewise.
14357         * modules/savewd (Depends-on): Likewise.
14358
14359         rmdir: Support for mingw, MSVC 9.
14360         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
14361         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
14362
14363         getcwd: Tweak for MSVC 9.
14364         * lib/unistd.in.h: Update comments.
14365         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
14366
14367 2011-09-22  Bruno Haible  <bruno@clisp.org>
14368
14369         strerror_r-posix: Avoid a link error on MSVC.
14370         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
14371         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
14372
14373 2011-09-22  Bruno Haible  <bruno@clisp.org>
14374
14375         select: Avoid link errors on MSVC.
14376         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
14377         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
14378         * modules/pselect (Link): Likewise.
14379         * NEWS: Mention the change.
14380         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
14381         test-select-stdin against $(LIB_SELECT).
14382         * modules/pselect-tests (Makefile.am): Link test-pselect against
14383         $(LIB_SELECT).
14384
14385 2011-09-22  Bruno Haible  <bruno@clisp.org>
14386
14387         select: Avoid compilation error on MSVC.
14388         * lib/select.c: Don't include <stdbool.h>.
14389
14390 2011-09-21  Bruno Haible  <bruno@clisp.org>
14391
14392         Consolidate all uses of PATH_MAX in *.m4 files.
14393         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
14394         macros.
14395         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
14396         and gl_PATHMAX_SNIPPET.
14397         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14398         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14399         * modules/chdir-long (Files): Add m4/pathmax.m4.
14400         * modules/getcwd (Files): Likewise.
14401
14402 2011-09-21  Bruno Haible  <bruno@clisp.org>
14403
14404         ftruncate: Un-deprecate, concentrate on Win32 support.
14405         * modules/ftruncate (Status, Notice): Remove sections.
14406         (Depends-on): Add largefile.
14407         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
14408         non-mingw platforms.
14409         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
14410         include <io.h>.
14411         * modules/perror-tests (Depends-on): Add ftruncate.
14412         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
14413         'ftruncate' module.
14414
14415 2011-09-21  Bruno Haible  <bruno@clisp.org>
14416
14417         Add dependencies to new dirent related modules.
14418         * modules/opendir (Depends-on): Add closedir.
14419         * modules/getcwd (Depends-on): Add opendir, closedir.
14420         * modules/dirent-safer-tests (Depends-on): Likewise.
14421         * modules/fdopendir-tests (Depends-on): Likewise.
14422         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
14423         * modules/renameat-tests (Depends-on): Likewise.
14424
14425 2011-09-21  Bruno Haible  <bruno@clisp.org>
14426
14427         opendir: Avoid compilation error on mingw.
14428         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
14429         * modules/opendir (Depends-on): Add unistd.
14430
14431 2011-09-21  Bruno Haible  <bruno@clisp.org>
14432
14433         ftruncate tests: Avoid a test failure on mingw.
14434         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
14435
14436 2011-09-21  Bruno Haible  <bruno@clisp.org>
14437
14438         select tests: Avoid test failures on OSF/1 5.1 and mingw.
14439         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
14440         native Windows.
14441
14442 2011-09-21  Bruno Haible  <bruno@clisp.org>
14443
14444         New module 'fdopen'.
14445         * lib/stdio.in.h (fdopen): New declaration.
14446         * lib/fdopen.c: New file.
14447         * m4/fdopen.m4: New file.
14448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14449         REPLACE_FDOPEN.
14450         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
14451         REPLACE_FDOPEN.
14452         * modules/fdopen: New file.
14453         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
14454         * tests/test-stdio-c++.cc: Check signature of fdopen.
14455         * doc/posix-functions/fdopen.texi: Mention the new module.
14456
14457 2011-09-21  Bruno Haible  <bruno@clisp.org>
14458
14459         unlockpt tests: Avoid test failure on NetBSD 5.1.
14460         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
14461         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
14462
14463 2011-09-21  Bruno Haible  <bruno@clisp.org>
14464
14465         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
14466         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
14467         * tests/test-getlogin_r.c (main): Likewise.
14468
14469 2011-09-20  Bruno Haible  <bruno@clisp.org>
14470
14471         time tests: Don't require pid_t.
14472         * doc/posix-headers/time.texi: Revert last change.
14473         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
14474         * tests/test-time.c: Comment out the check for pid_t.
14475
14476 2011-09-20  Bruno Haible  <bruno@clisp.org>
14477
14478         fsync tests: Avoid a test failure on mingw.
14479         * tests/test-fsync.c (main): Allow a failure with EIO.
14480
14481 2011-09-20  Bruno Haible  <bruno@clisp.org>
14482
14483         euidaccess: Update comments.
14484         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
14485
14486 2011-09-20  Bruno Haible  <bruno@clisp.org>
14487
14488         Ensure EBADF returns for socket functions on mingw.
14489         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
14490         descriptor is invalid.
14491         * lib/bind.c (rpl_bind): Likewise.
14492         * lib/connect.c (rpl_connect): Likewise.
14493         * lib/getpeername.c (rpl_getpeername): Likewise.
14494         * lib/getsockname.c (rpl_getsockname): Likewise.
14495         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14496         * lib/listen.c (rpl_listen): Likewise.
14497         * lib/recv.c (rpl_recv): Likewise.
14498         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14499         * lib/send.c (rpl_send): Likewise.
14500         * lib/sendto.c (rpl_sendto): Likewise.
14501         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14502         * lib/shutdown.c (rpl_shutdown): Likewise.
14503
14504 2011-09-20  Bruno Haible  <bruno@clisp.org>
14505
14506         select tests: EBADF tests.
14507         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14508         test_bad_fd): New functions.
14509         (test_function): Invoke also test_bad_fd.
14510
14511 2011-09-20  Bruno Haible  <bruno@clisp.org>
14512
14513         Tests for module 'posix_spawn_file_actions_addopen.
14514         * modules/posix_spawn_file_actions_addopen-tests: New file.
14515         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14516
14517         Tests for module 'posix_spawn_file_actions_adddup2'.
14518         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14519         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14520
14521         Tests for module 'posix_spawn_file_actions_addclose'.
14522         * modules/posix_spawn_file_actions_addclose-tests: New file.
14523         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14524
14525 2011-09-20  Bruno Haible  <bruno@clisp.org>
14526
14527         Tests for module 'unlockpt'.
14528         * modules/unlockpt-tests: New file.
14529         * tests/test-unlockpt.c: New file.
14530         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14531
14532         Tests for module 'grantpt'.
14533         * modules/grantpt-tests: New file.
14534         * tests/test-grantpt.c: New file.
14535         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14536
14537 2011-09-20  Bruno Haible  <bruno@clisp.org>
14538
14539         freopen tests: EBADF tests.
14540         * tests/test-freopen.c: Include errno.h, unistd.h.
14541         (main): Add tests for EBADF, commented out for the moment.
14542
14543         fclose tests: EBADF tests.
14544         * tests/test-fclose.c (main): Add tests for EBADF.
14545
14546         fflush tests: EBADF tests.
14547         * tests/test-fflush.c: Include errno.h, macros.h.
14548         (main): Add tests for EBADF.
14549
14550         ftello tests: EBADF tests.
14551         * tests/test-ftello4.sh: New file.
14552         * tests/test-ftello4.c: New file.
14553         * modules/ftello-tests (Files): Add them.
14554         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14555
14556         fseeko tests: EBADF tests.
14557         * tests/test-fseeko4.sh: New file.
14558         * tests/test-fseeko4.c: New file.
14559         * modules/fseeko-tests (Files): Add them.
14560         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14561
14562         Tests for function fputc().
14563         * modules/fputc-tests: New file.
14564         * tests/test-fputc.c: New file.
14565         * modules/stdio-tests (Depends-on): Add fputc-tests.
14566
14567         Tests for function fgetc().
14568         * modules/fgetc-tests: New file.
14569         * tests/test-fgetc.c: New file.
14570         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14571
14572         Tests for function fdopen().
14573         * modules/fdopen-tests: New file.
14574         * tests/test-fdopen.c: New file.
14575         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14576
14577         Tests for module 'vdprintf'.
14578         * modules/vdprintf-tests: New file.
14579         * tests/test-vdprintf.c: New file.
14580
14581         Tests for module 'dprintf'.
14582         * modules/dprintf-tests: New file.
14583         * tests/test-dprintf.c: New file.
14584
14585 2011-09-20  Bruno Haible  <bruno@clisp.org>
14586
14587         Tests for module 'ioctl'.
14588         * modules/ioctl-tests: New file.
14589         * tests/test-ioctl.c: New file.
14590
14591 2011-09-20  Bruno Haible  <bruno@clisp.org>
14592
14593         fcntl tests: EBADF tests.
14594         * tests/test-fcntl.c (main): Add more tests for EBADF.
14595
14596 2011-09-20  Bruno Haible  <bruno@clisp.org>
14597
14598         utimensat tests: EBADF tests.
14599         * tests/test-utimensat.c (main): Add tests for EBADF.
14600
14601         renameat tests: EBADF tests.
14602         * tests/test-renameat.c (main): Add tests for EBADF.
14603
14604         mkfifoat tests: EBADF tests.
14605         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14606
14607         readlinkat tests: EBADF tests.
14608         * tests/test-readlinkat.c (main): Add tests for EBADF.
14609
14610         symlinkat tests: EBADF tests.
14611         * tests/test-symlinkat.c (main): Add tests for EBADF.
14612
14613         linkat tests: EBADF tests.
14614         * tests/test-linkat.c (main): Add tests for EBADF.
14615
14616         Tests for module 'faccessat'.
14617         * modules/faccessat-tests: New file.
14618         * tests/test-faccessat.c: New file.
14619
14620         fdopendir tests: EBADF tests.
14621         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14622
14623         openat tests: EBADF tests.
14624         * tests/test-fchownat.c (main): Add tests for EBADF.
14625         * tests/test-fstatat.c (main): Likewise.
14626         * tests/test-mkdirat.c (main): Likewise.
14627         * tests/test-openat.c (main): Likewise.
14628         * tests/test-unlinkat.c (main): Likewise.
14629         * tests/test-fchmodat.c: New file.
14630         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14631         (Makefile.am): Also run 'test-fchmodat'.
14632
14633 2011-09-20  Bruno Haible  <bruno@clisp.org>
14634
14635         utimens, futimens, fdutimensat tests: EBADF tests.
14636         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14637
14638         Tests for function fstat().
14639         * modules/fstat-tests: New file.
14640         * tests/test-fstat.c: New file.
14641         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14642
14643 2011-09-20  Bruno Haible  <bruno@clisp.org>
14644
14645         test-ttyname_r tests: EBADF tests.
14646         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14647
14648         Tests for module 'isatty'.
14649         * modules/isatty-tests: New file.
14650         * tests/test-isatty.c: New file.
14651
14652         Tests for module 'write'.
14653         * modules/write-tests: New file.
14654         * tests/test-write.c: New file.
14655
14656         Tests for module 'read'.
14657         * modules/read-tests: New file.
14658         * tests/test-read.c: New file.
14659
14660         pwrite tests: EBADF tests.
14661         * tests/test-pwrite.c (main): Add tests for EBADF.
14662
14663         pread tests: EBADF tests.
14664         * tests/test-pread.c (main): Add tests for EBADF.
14665
14666         lseek tests: EBADF tests.
14667         * tests/test-lseek.c (main): Add more tests for EBADF.
14668
14669         Tests for module 'ftruncate'.
14670         * modules/ftruncate-tests: New file.
14671         * tests/test-ftruncate.sh: New file.
14672         * tests/test-ftruncate.c: New file.
14673
14674         fsync tests: EBADF tests.
14675         * tests/test-fsync.c (main): Add more tests for EBADF.
14676
14677         fdatasync tests: EBADF tests.
14678         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14679
14680         Tests for module 'fchown'.
14681         * modules/fchown-tests: New file.
14682         * tests/test-fchown.c: New file.
14683
14684         Tests for module 'fchmod'.
14685         * modules/fchmod-tests: New file.
14686         * tests/test-fchmod.c: New file.
14687
14688         fchdir tests: EBADF tests.
14689         * tests/test-fchdir.c (main): Add more tests for EBADF.
14690
14691         dup2 tests: EBADF tests.
14692         * tests/test-dup2.c (main): Add more tests for EBADF.
14693
14694         Tests for module 'dup'.
14695         * modules/dup-tests: New file.
14696         * tests/test-dup.c: New file.
14697
14698         Tests for module 'close'.
14699         * modules/close-tests: New file.
14700         * tests/test-close.c: New file.
14701
14702 2011-09-20  Bruno Haible  <bruno@clisp.org>
14703
14704         Tests for module 'shutdown'.
14705         * modules/shutdown-tests: New file.
14706         * tests/test-shutdown.c: New file.
14707
14708         Tests for module 'setsockopt'.
14709         * modules/setsockopt-tests: New file.
14710         * tests/test-setsockopt.c: New file.
14711
14712         Tests for module 'sendto'.
14713         * modules/sendto-tests: New file.
14714         * tests/test-sendto.c: New file.
14715
14716         Tests for module 'send'.
14717         * modules/send-tests: New file.
14718         * tests/test-send.c: New file.
14719
14720         Tests for module 'recvfrom'.
14721         * modules/recvfrom-tests: New file.
14722         * tests/test-recvfrom.c: New file.
14723
14724         Tests for module 'recv'.
14725         * modules/recv-tests: New file.
14726         * tests/test-recv.c: New file.
14727
14728         Tests for module 'listen'.
14729         * modules/listen-tests: New file.
14730         * tests/test-listen.c: New file.
14731
14732         Tests for module 'getsockopt'.
14733         * modules/getsockopt-tests: New file.
14734         * tests/test-getsockopt.c: New file.
14735
14736         Tests for module 'getsockname'.
14737         * modules/getsockname-tests: New file.
14738         * tests/test-getsockname.c: New file.
14739
14740         Tests for module 'getpeername'.
14741         * modules/getpeername-tests: New file.
14742         * tests/test-getpeername.c: New file.
14743
14744         Tests for module 'connect'.
14745         * modules/connect-tests: New file.
14746         * tests/test-connect.c: New file.
14747
14748         Tests for module 'bind'.
14749         * modules/bind-tests: New file.
14750         * tests/test-bind.c: New file.
14751
14752         accept4 tests: Fix for native Windows.
14753         * tests/test-accept4.c: Include sockets.h.
14754         (main): Invoke gl_sockets_startup.
14755         * modules/accept4-tests (Depends-on): Add sockets.
14756
14757         accept tests: Fix for native Windows.
14758         * tests/test-accept.c: Include sockets.h.
14759         (main): Invoke gl_sockets_startup.
14760         * modules/accept-tests (Depends-on): Add sockets.
14761
14762 2011-09-19  Bruno Haible  <bruno@clisp.org>
14763
14764         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14765         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14766         do...while(0).
14767         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14768         Suggested by Paul Eggert.
14769
14770 2011-09-19  Bruno Haible  <bruno@clisp.org>
14771
14772         sched: Ensure pid_t is defined.
14773         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14774         not define pid_t.
14775         * lib/sched.in.h: Include <sys/types.h>.
14776         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14778
14779 2011-09-19  Bruno Haible  <bruno@clisp.org>
14780
14781         msvc-inval: Ensure the entire expansion is a single statement.
14782         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14783         of braces.
14784
14785 2011-09-19  Jim Meyering  <meyering@redhat.com>
14786
14787         tests: use printf, not echo in init.sh's warn_ function
14788         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14789         misbehave when given strings containing a backslash or starting
14790         with e.g., -n.  James Youngman suggested setting IFS.
14791
14792 2011-09-19  Eric Blake  <eblake@redhat.com>
14793
14794         futimens: enhance test
14795         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14796         closed non-negative fd.
14797
14798         date: accept 'hence' as opposite of 'ago'
14799         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14800         * tests/test-parse-datetime.c (main): Enhance test.
14801         Suggested by Jesse Wilson.
14802
14803 2011-09-19  Jim Meyering  <meyering@redhat.com>
14804
14805         getcwd: don't fail in a deep directory on a system without openat
14806         Before this change, getcwd would fail when called from a directory
14807         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14808         the non-openat implementation used "..", "../..", "../../..", etc.
14809         to access ancestor directories.  With too many, that string would
14810         be longer than PATH_MAX.
14811         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14812         using gnulib's openat replacement.
14813         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14814         we're using the replacement function.
14815
14816 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14817
14818         maint.mk: avoid warnings from perl about missing files
14819         * top/maint.mk (def_sym_regex): Ignore files listed in
14820         $(gl_other_headers_) that do not exist, say because a project
14821         does not use a corresponding module.
14822
14823 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14824
14825         stat: use pathmax.h only if needed
14826         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14827         This is better for Emacs, which does not have a mingw port and
14828         therefore can avoid the pathmax module.
14829
14830         utimens: remove dependency on dup2
14831         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14832         to work around the Linux kernel bug.
14833         * modules/utimens (Depends-on): Remove dup2.
14834
14835 2011-09-18  Bruno Haible  <bruno@clisp.org>
14836
14837         inet_ntop, inet_pton: Look for it also in libresolv.
14838         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14839         libnsl, search for it in libresolv.
14840         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14841         Needed on Solaris 7.
14842
14843 2011-09-18  Bruno Haible  <bruno@clisp.org>
14844
14845         accept, accept4 tests: Avoid link error on Solaris.
14846         * modules/accept-tests (Makefile.am): Link test-accept against
14847         $(LIBSOCKET).
14848         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14849         $(LIBSOCKET).
14850
14851         accept4: Avoid link error on Solaris.
14852         * modules/accept4 (Link): New section.
14853
14854         socket functions: Avoid link errors on Solaris.
14855         * modules/accept (Depends-on): Add socketlib.
14856         (Link): New section.
14857         * modules/bind (Depends-on): Add socketlib.
14858         (Link): New section.
14859         * modules/connect (Depends-on): Add socketlib.
14860         (Link): New section.
14861         * modules/getpeername (Depends-on): Add socketlib.
14862         (Link): New section.
14863         * modules/getsockname (Depends-on): Add socketlib.
14864         (Link): New section.
14865         * modules/getsockopt (Depends-on): Add socketlib.
14866         (Link): New section.
14867         * modules/listen (Depends-on): Add socketlib.
14868         (Link): New section.
14869         * modules/recv (Depends-on): Add socketlib.
14870         (Link): New section.
14871         * modules/recvfrom (Depends-on): Add socketlib.
14872         (Link): New section.
14873         * modules/send (Depends-on): Add socketlib.
14874         (Link): New section.
14875         * modules/sendto (Depends-on): Add socketlib.
14876         (Link): New section.
14877         * modules/setsockopt (Depends-on): Add socketlib.
14878         (Link): New section.
14879         * modules/shutdown (Depends-on): Add socketlib.
14880         (Link): New section.
14881         * modules/socket (Depends-on): Add socketlib.
14882         (Link): New section.
14883
14884 2011-09-18  Bruno Haible  <bruno@clisp.org>
14885
14886         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14887         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14888         than 5 seconds.
14889         * modules/ptsname-tests (configure.ac): Test for alarm.
14890
14891 2011-09-18  Bruno Haible  <bruno@clisp.org>
14892
14893         posix_spawn_file_actions_add*: Fix module dependencies.
14894         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14895         posix_spawn_file_actions_init.
14896         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14897         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14898
14899 2011-09-18  Bruno Haible  <bruno@clisp.org>
14900
14901         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14902         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14903         * tests/test-renameat.c (main): Likewise.
14904
14905 2011-09-18  Bruno Haible  <bruno@clisp.org>
14906
14907         Tests for module 'accept4'.
14908         * modules/accept4-tests: New file.
14909         * tests/test-accept4.c: New file.
14910
14911 2011-09-18  Bruno Haible  <bruno@clisp.org>
14912
14913         Tests for module 'accept'.
14914         * modules/accept-tests: New file.
14915         * tests/test-accept.c: New file.
14916
14917 2011-09-18  Bruno Haible  <bruno@clisp.org>
14918
14919         dup2: Support for MSVC.
14920         * lib/dup2.c: Include msvc-inval.h.
14921         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14922         _get_osfhandle calls.
14923         * modules/dup2 (Depends-on): Add msvc-inval.
14924         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14925
14926         New module 'msvc-inval'.
14927         * lib/msvc-inval.h: New file.
14928         * lib/msvc-inval.c: New file.
14929         * m4/msvc-inval.m4: New file.
14930         * modules/msvc-inval: New file.
14931
14932 2011-09-17  Bruno Haible  <bruno@clisp.org>
14933
14934         Tests for module 'pclose'.
14935         * modules/pclose-tests: New file.
14936
14937         New module 'pclose'.
14938         * lib/stdio.in.h (pclose): New declaration.
14939         * lib/pclose.c: New file.
14940         * m4/pclose.m4: New file.
14941         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14942         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14943         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14944         * modules/pclose: New file.
14945         * modules/popen-tests (Depends-on): Add pclose.
14946         * modules/popen-safer-tests (Depends-on): Likewise.
14947         * doc/posix-functions/pclose.texi: Mention the new module.
14948
14949 2011-09-17  Bruno Haible  <bruno@clisp.org>
14950
14951         popen: Support for MSVC.
14952         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14953         * lib/popen.c (popen): Provide alternate definition for native Windows.
14954         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14956         * modules/popen (Depends-on, configure.ac): Update condition.
14957         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14958         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14959         fixed.
14960
14961 2011-09-17  Bruno Haible  <bruno@clisp.org>
14962
14963         isnanl, isnand, isnanf: Work around MSVC bug.
14964         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14965
14966 2011-09-17  Bruno Haible  <bruno@clisp.org>
14967
14968         sys_socket tests: Fix recent mistake.
14969         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14970
14971 2011-09-17  Bruno Haible  <bruno@clisp.org>
14972
14973         putenv: Support for MSVC.
14974         * modules/putenv (Depends-on): Add environ.
14975         * lib/putenv.c (environ): Disable declaration.
14976         * lib/unistd.in.h: Update comment.
14977
14978 2011-09-17  Bruno Haible  <bruno@clisp.org>
14979
14980         math: Avoid macro redefinition warnings on MSVC.
14981         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14982         Undefine before redefining.
14983
14984 2011-09-17  Bruno Haible  <bruno@clisp.org>
14985
14986         doc: Mention functions which are declared as macros.
14987         * doc/posix-functions/*[fl].texi: Mention that some functions are
14988         defined as macros with arguments only.
14989
14990 2011-09-17  Bruno Haible  <bruno@clisp.org>
14991
14992         Add dependencies to new dirent related modules.
14993         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14994         * modules/fts (Depends-on): Likewise.
14995         * modules/glob (Depends-on): Likewise.
14996         * modules/savedir (Depends-on): Likewise.
14997         * modules/scandir (Depends-on): Likewise.
14998         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14999         * modules/fdopendir (Depends-on): Add opendir.
15000
15001 2011-09-17  Bruno Haible  <bruno@clisp.org>
15002
15003         inet_pton: Support for MSVC on Windows Vista or newer.
15004         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
15005         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
15006         HAVE_DECL_INET_PTON is defined.
15007         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
15008         On platforms with <winsock2.h>, test whether inet_pton is declared in
15009         <ws2tcpip.h>. If so, arrange to replace it.
15010         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
15011         REPLACE_INET_PTON.
15012         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
15013         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
15014         (Depends-on, configure.ac): Update condition.
15015         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
15016
15017 2011-09-17  Bruno Haible  <bruno@clisp.org>
15018
15019         inet_ntop: Support for MSVC on Windows Vista or newer.
15020         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
15021         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
15022         HAVE_DECL_INET_NTOP is defined.
15023         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
15024         On platforms with <winsock2.h>, test whether inet_ntop is declared in
15025         <ws2tcpip.h>. If so, arrange to replace it.
15026         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
15027         REPLACE_INET_NTOP.
15028         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
15029         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
15030         (Depends-on, configure.ac): Update condition.
15031         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
15032
15033 2011-09-16  Eric Blake  <eblake@redhat.com>
15034
15035         test-fsync: yet another enhancement
15036         * tests/test-fsync.c (main): Also test behavior on read-only text
15037         file.
15038
15039 2011-09-16  Bruno Haible  <bruno@clisp.org>
15040
15041         Enhance fsync, fdatasync tests.
15042         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
15043         * tests/test-fdatasync.c (main): Likewise.
15044
15045 2011-09-16  Bruno Haible  <bruno@clisp.org>
15046
15047         Support for MSVC compiler: Ensure mode_t gets defined.
15048         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
15049         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15050         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
15051         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
15052         * tests/test-fcntl-h.c: Check that mode_t is defined.
15053         * tests/test-sys_stat.c: Likewise.
15054         * tests/test-sys_types.c: Likewise.
15055         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
15056         * doc/posix-headers/sys_stat.texi: Likewise.
15057         * doc/posix-headers/sys_types.texi: Likewise.
15058
15059 2011-09-16  Bruno Haible  <bruno@clisp.org>
15060
15061         sys_stat: Support for MSVC.
15062         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
15063         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
15064         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
15065         MSVC.
15066
15067 2011-09-16  Bruno Haible  <bruno@clisp.org>
15068
15069         Support for MSVC compiler: Ensure off_t gets defined.
15070         * lib/unistd.in.h: Include <sys/types.h>.
15071         * tests/test-fcntl-h.c: Check that off_t is defined.
15072         * tests/test-sys_stat.c: Likewise.
15073         * tests/test-sys_types.c: Likewise.
15074
15075 2011-09-16  Eric Blake  <eblake@redhat.com>
15076
15077         fdatasync: port to Solaris
15078         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
15079         * modules/fdatasync (Link): Document it.
15080         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
15081
15082         fdatasync: port to MacOS X 10.7
15083         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
15084         declared.
15085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
15086         * modules/unistd (Makefile.am): Substitute it.
15087         * lib/unistd.in.h (fdatasync): Declare on MacOS.
15088         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
15089
15090         fdatasync: minor improvements
15091         * modules/fdatasync (Depends-on): Add condition for fsync.
15092         * lib/fdatasync.c (fdatasync): Add comment.
15093         * tests/test-unistd-c++.cc: Test fdatasync.
15094
15095         unistd: update refs to newer POSIX
15096         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
15097         Suggested by Bruno Haible.
15098
15099         fdatasync: new module
15100         * modules/fsync (Description): Document difference to fdatasync.
15101         * modules/fdatasync: New module.
15102         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
15103         * lib/fdatasync.c (fdatasync): Likewise.
15104         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
15105         defaults.
15106         * modules/unistd (Makefile.am): Set witnesses.
15107         * lib/unistd.in.h (fdatasync): Declare.
15108         * MODULES.html.sh: Document it.
15109         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
15110         * modules/fdatasync-tests: New test.
15111         * tests/test-fdatasync.c: Likewise.
15112
15113 2011-09-16  Eric Blake  <eblake@redhat.com>
15114
15115         test-fsync: enhance tests
15116         * modules/fsync-tests (Depends-on): Add errno, for mingw.
15117         * tests/test-fsync.c (main): Enhance test.
15118
15119 2011-09-15  Bruno Haible  <bruno@clisp.org>
15120
15121         Support for MSVC compiler: Ensure ssize_t gets defined.
15122         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
15123         * doc/posix-headers/stdio.texi: Likewise.
15124         * modules/stdio (Depends-on): Add ssize_t.
15125         * modules/sys_socket (Depends-on): Likewise.
15126         * modules/sys_types (Depends-on): Likewise.
15127         * modules/sys_uio (Depends-on): Likewise.
15128         * modules/unistd (Depends-on): Likewise.
15129         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
15130         * tests/test-sys_types.c: Check that ssize_t is defined.
15131
15132 2011-09-14  Bruno Haible  <bruno@clisp.org>
15133
15134         Avoid using #, the m4 comment starter character, near brackets.
15135         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
15136         delimiter character in sed expressions.
15137         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
15138         Suggested by Eric Blake.
15139
15140         Properly quote AC_CHECK_DECLS' 4th argument.
15141         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
15142         argument.
15143         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15144         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15145         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15146         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15147         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15148         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
15149         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
15150         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
15151         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
15152         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15153         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
15154         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
15155         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15156         * m4/isinf.m4 (gl_ISINF): Likewise.
15157         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15158         * m4/readutmp.m4 (gl_READUTMP): Likewise.
15159         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15160         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15161         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15162         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15163         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15164         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15165         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
15166         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15167         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15168         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15169         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
15170         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15171         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15172         Reported by Eric Blake.
15173
15174         Properly quote AC_CHECK_DECL's 4th argument.
15175         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
15176         argument.
15177         * m4/argp.m4 (gl_ARGP): Likewise.
15178         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15179         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15180         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15181         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15182         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
15183         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
15184         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
15185         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15186         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15187         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15188         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15189         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15190         Reported by Eric Blake.
15191
15192 2011-09-14  Eric Blake  <eblake@redhat.com>
15193
15194         opendir: avoid compile warning
15195         * lib/opendir.c (includes): Always include errno.h.
15196         Reported by Tatsuro MATSUOKA.
15197
15198 2011-09-14  Jim Meyering  <meyering@redhat.com>
15199
15200         maint.mk: sc_tight_scope: propagate failure from sub-make
15201         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
15202         Reported by Martin von Gagern.
15203
15204 2011-09-13  Bruno Haible  <bruno@clisp.org>
15205
15206         tempname: Support for MSVC.
15207         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
15208         MSVC.
15209         * modules/tempname (Depends-on): Add fcntl-h.
15210
15211 2011-09-13  Bruno Haible  <bruno@clisp.org>
15212
15213         sys_time: Support for MSVC.
15214         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
15215         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
15216         include <winsock2.h>.
15217         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
15218         function declarations that collide with POSIX.
15219         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
15220         (Makefile.am): Substitute HAVE_WINSOCK2_H.
15221
15222 2011-09-13  Bruno Haible  <bruno@clisp.org>
15223
15224         stat: Support for MSVC.
15225         * lib/stat.c: Include pathmax.h.
15226         * modules/stat (Depends-on): Add pathmax.
15227
15228         pathmax: Support for native Windows.
15229         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
15230
15231 2011-09-12  Bruno Haible  <bruno@clisp.org>
15232
15233         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
15234         * lib/dirent.in.h (struct dirent): New type.
15235         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
15236         DT_WHT): New macros.
15237         (DIR): New type.
15238         (opendir, closedir): Declare only if the module 'opendir' is enabled.
15239         (readdir, rewinddir): New declarations.
15240         * lib/dirent-private.h: New file.
15241         * lib/opendir.c: New file.
15242         * lib/readdir.c: New file.
15243         * lib/rewinddir.c: New file.
15244         * lib/closedir.c: New file.
15245         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
15246         * m4/opendir.m4: New file.
15247         * m4/readdir.m4: New file.
15248         * m4/rewinddir.m4: New file.
15249         * m4/closedir.m4: New file.
15250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
15251         REPLACE_CLOSEDIR here.
15252         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
15253         readdir, rewinddir are declared.
15254         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
15255         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
15256         HAVE_REWINDDIR, HAVE_CLOSEDIR.
15257         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
15258         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
15259         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
15260         * modules/opendir: New file.
15261         * modules/readdir: New file.
15262         * modules/rewinddir: New file.
15263         * modules/closedir: New file.
15264         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
15265         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
15266         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
15267         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
15268         * NEWS: Mention the 'fchdir' change.
15269
15270 2011-09-11  Bruno Haible  <bruno@clisp.org>
15271
15272         asm-underscore.m4: Support for MSVC.
15273         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
15274         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
15275
15276 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
15277
15278         Doc about crypt functions.
15279         * doc/posix-functions/crypt.texi: Expand range of glibc versions
15280         needing for _GNU_SOURCE to get crypt.
15281         * doc/posix-functions/encrypt.texi: Likewise.
15282         * doc/posix-functions/setkey.texi: Likewise.
15283
15284 2011-09-11  Bruno Haible  <bruno@clisp.org>
15285
15286         doc: Update regarding MSVC 9.
15287         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
15288         tested".
15289         * doc/posix-functions/*.texi: Update with info about MSVC 9.
15290         * doc/posix-headers/*.texi: Likewise.
15291         * doc/pastposix-functions/*.texi: Likewise.
15292         * doc/glibc-functions/*.texi: Likewise.
15293         * doc/glibc-headers/*.texi: Likewise.
15294
15295 2011-09-11  Bruno Haible  <bruno@clisp.org>
15296
15297         unistd et al.: Don't assume <unistd.h> exists.
15298         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
15299         does not exist.
15300         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
15301         exist. But include <stdlib.h>.
15302         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
15303         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
15304         symlink() does not exist.
15305         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
15306         include <io.h> instead.
15307         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
15308         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
15309         include <direct.h> instead.
15310         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15311         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15312         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
15313         <io.h> instead.
15314         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
15315         correctly if the system does not have hard links.
15316         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
15317         <direct.h> instead.
15318         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
15319         it when looking for function declarations.
15320         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
15321         <direct.h> and <io.h> instead.
15322         * doc/posix-headers/unistd.texi: More details about MSVC problem.
15323
15324 2011-09-11  Bruno Haible  <bruno@clisp.org>
15325
15326         strcase: Support for MSVC.
15327         * modules/strcase (Status, Notice): Remove obsoletion mark.
15328         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
15329         * doc/posix-functions/strncasecmp.texi: Likewise.
15330
15331         strings: Don't assume <strings.h> exists.
15332         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
15333         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
15334         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
15335         * doc/posix-headers/strings.texi: Mention the MSVC problem.
15336
15337 2011-09-11  Bruno Haible  <bruno@clisp.org>
15338
15339         dirent: Don't assume <dirent.h> exists.
15340         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
15341         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
15342         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
15343         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
15344
15345 2011-09-11  Bruno Haible  <bruno@clisp.org>
15346
15347         Fix wint_t on MSVC.
15348         * lib/wchar.in.h (wint_t): On MSVC, override it.
15349         * lib/wctype.in.h (wint_t): Likewise.
15350         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
15351         MSVC.
15352         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
15353         * doc/posix-headers/wctype.texi: Likewise.
15354
15355 2011-09-11  Bruno Haible  <bruno@clisp.org>
15356
15357         sys_types: Fix typo.
15358         * lib/sys_types.in.h: Fix typo in comment.
15359         Reported by Paul Eggert.
15360
15361         Support for MSVC compiler: Ensure size_t gets defined.
15362         * modules/strings (Depends-on): Add 'sys_types'.
15363         * modules/sys_uio (Depends-on): Likewise.
15364         * lib/sys_uio.in.h: Update comment.
15365
15366         C++ tests for module 'sys_types'.
15367         * modules/sys_types-c++-tests: New file.
15368         * tests/test-sys_types-c++.cc: New file.
15369
15370         Tests for module 'sys_types'.
15371         * modules/sys_types-tests: New file.
15372         * tests/test-sys_types.c: New file.
15373
15374         New module 'sys_types'.
15375         * lib/sys_types.in.h: New file.
15376         * m4/sys_types_h.m4: New file.
15377         * modules/sys_types: New file.
15378         * doc/posix-headers/sys_types.texi: Mention the new module and the
15379         size_t problem on MSVC 9.
15380
15381 2011-09-11  Bruno Haible  <bruno@clisp.org>
15382
15383         Support for MSVC compiler: Avoid division by a literal 0.
15384         * lib/math.in.h (NAN): Define through a function call also on MSVC.
15385         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
15386         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
15387         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
15388         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
15389         * tests/infinity.h: New file.
15390         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
15391         on MSVC.
15392         * tests/test-ceilf1.c: Include infinity.h.
15393         (main): Use Infinityf.
15394         * tests/test-ceil1.c: Include infinity.h.
15395         (main): Use Infinityd.
15396         * tests/test-ceill.c: Include infinity.h.
15397         (main): Use Infinityl.
15398         * tests/test-dprintf-posix.c: Include infinity.h.
15399         (test_function): Use Infinityd.
15400         * tests/test-floorf1.c: Include infinity.h.
15401         (main): Use Infinityf.
15402         * tests/test-floor1.c: Include infinity.h.
15403         (main): Use Infinityd.
15404         * tests/test-floorl.c: Include infinity.h.
15405         (main): Use Infinityl.
15406         * tests/test-fprintf-posix.c: Include infinity.h.
15407         (test_function): Use Infinityd.
15408         * tests/test-frexp.c: Include infinity.h.
15409         (main): Use Infinityd.
15410         * tests/test-frexpl.c: Include infinity.h.
15411         (main): Use Infinityl.
15412         * tests/test-isfinite.c: Include infinity.h.
15413         (test_isfinitef): Use Infinityf.
15414         (test_isfinited): Use Infinityd.
15415         (test_isfinitel): Use Infinityl.
15416         * tests/test-isinf.c: Include infinity.h.
15417         (test_isinff): Use Infinityf.
15418         (test_isinfd): Use Infinityd.
15419         (test_isinfl): Use Infinityl.
15420         * tests/test-isnan.c: Include infinity.h.
15421         (test_float): Use Infinityf.
15422         (test_double): Use Infinityd.
15423         (test_long_double): Use Infinityl.
15424         * tests/test-isnanf.h: Include infinity.h.
15425         (main): Use Infinityf.
15426         * tests/test-isnand.h: Include infinity.h.
15427         (main): Use Infinityd.
15428         * tests/test-isnanl.h: Include infinity.h.
15429         (main): Use Infinityl.
15430         * tests/test-ldexpl.c: Include infinity.h.
15431         (main): Use Infinityl.
15432         * tests/test-printf-posix.h: Include infinity.h.
15433         (test_function): Use Infinityd.
15434         * tests/test-roundf1.c: Include infinity.h.
15435         (main): Use Infinityf.
15436         * tests/test-round1.c: Include infinity.h.
15437         (main): Use Infinityd.
15438         * tests/test-roundl.c: Include infinity.h.
15439         (main): Use Infinityl.
15440         * tests/test-signbit.c: Include infinity.h.
15441         (test_signbitf): Use Infinityf.
15442         (test_signbitd): Use Infinityd.
15443         (test_signbitl): Use Infinityl.
15444         * tests/test-snprintf-posix.h: Include infinity.h.
15445         (test_function): Use Infinityd, Infinityl.
15446         * tests/test-sprintf-posix.h: Include infinity.h.
15447         (test_function): Use Infinityd, Infinityl.
15448         * tests/test-truncf1.c: Include infinity.h.
15449         (main): Use Infinityf.
15450         * tests/test-trunc1.c: Include infinity.h.
15451         (main): Use Infinityd.
15452         * tests/test-truncl.c: Include infinity.h.
15453         (main): Use Infinityl.
15454         * tests/test-vasnprintf-posix.c: Include infinity.h.
15455         (test_function): Use Infinityd, Infinityl.
15456         * tests/test-vasprintf-posix.c: Include infinity.h.
15457         (test_function): Use Infinityd, Infinityl.
15458         * modules/ceilf-tests (Files): Add tests/infinity.h.
15459         * modules/ceil-tests (Files): Likewise.
15460         * modules/ceill-tests (Files): Likewise.
15461         * modules/dprintf-posix-tests (Files): Likewise.
15462         * modules/floorf-tests (Files): Likewise.
15463         * modules/floor-tests (Files): Likewise.
15464         * modules/floorl-tests (Files): Likewise.
15465         * modules/fprintf-posix-tests (Files): Likewise.
15466         * modules/frexp-tests (Files): Likewise.
15467         * modules/frexp-nolibm-tests (Files): Likewise.
15468         * modules/frexpl-tests (Files): Likewise.
15469         * modules/frexpl-nolibm-tests (Files): Likewise.
15470         * modules/isfinite-tests (Files): Likewise.
15471         * modules/isinf-tests (Files): Likewise.
15472         * modules/isnan-tests (Files): Likewise.
15473         * modules/isnanf-tests (Files): Likewise.
15474         * modules/isnanf-nolibm-tests (Files): Likewise.
15475         * modules/isnand-tests (Files): Likewise.
15476         * modules/isnand-nolibm-tests (Files): Likewise.
15477         * modules/isnanl-tests (Files): Likewise.
15478         * modules/isnanl-nolibm-tests (Files): Likewise.
15479         * modules/ldexpl-tests (Files): Likewise.
15480         * modules/printf-posix-tests (Files): Likewise.
15481         * modules/roundf-tests (Files): Likewise.
15482         * modules/round-tests (Files): Likewise.
15483         * modules/roundl-tests (Files): Likewise.
15484         * modules/signbit-tests (Files): Likewise.
15485         * modules/snprintf-posix-tests (Files): Likewise.
15486         * modules/sprintf-posix-tests (Files): Likewise.
15487         * modules/truncf-tests (Files): Likewise.
15488         * modules/trunc-tests (Files): Likewise.
15489         * modules/truncl-tests (Files): Likewise.
15490         * modules/vasnprintf-posix-tests (Files): Likewise.
15491         * modules/vasprintf-posix-tests (Files): Likewise.
15492         * modules/vdprintf-posix-tests (Files): Likewise.
15493         * modules/vfprintf-posix-tests (Files): Likewise.
15494         * modules/vprintf-posix-tests (Files): Likewise.
15495         * modules/vsnprintf-posix-tests (Files): Likewise.
15496         * modules/vsprintf-posix-tests (Files): Likewise.
15497         * modules/xprintf-posix-tests (Files): Likewise.
15498
15499 2011-09-11  Bruno Haible  <bruno@clisp.org>
15500
15501         Ensure pid_t gets defined.
15502         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
15503         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15504         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15505         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15506         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15507         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15508         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15509         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15510         * tests/test-fcntl-h.c: Check that pid_t is defined.
15511         * tests/test-sched.c: Likewise.
15512         * tests/test-termios.c: Likewise.
15513         * tests/test-time.c: Likewise.
15514         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15515         * doc/posix-headers/signal.texi: Likewise.
15516         * doc/posix-headers/sys_types.texi: Likewise.
15517         * doc/posix-headers/time.texi: Likewise.
15518
15519 2011-09-11  Bruno Haible  <bruno@clisp.org>
15520
15521         acl: Fix compilation on Solaris 10 (older version).
15522         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15523         of ACE_EVERYONE.
15524         * lib/set-mode-acl.c (qset_acl): Likewise.
15525         Reported by Christian Jullien <eligis@orange.fr>.
15526
15527 2011-09-10  Bruno Haible  <bruno@clisp.org>
15528
15529         iconv, unsetenv: Add support for MSVC compiler.
15530         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15531         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15532
15533 2011-09-10  Bruno Haible  <bruno@clisp.org>
15534
15535         *printf: Add support for MSVC compiler.
15536         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15537         handles the exception caused by the %n directive. When cross-compiling,
15538         guess no on native Windows.
15539         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15540         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15541         emulate it through vsnprintf.
15542         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15543         * doc/posix-functions/dprintf.texi: Update documentation regarding
15544         MSVC 9.
15545         * doc/posix-functions/fprintf.texi: Likewise.
15546         * doc/posix-functions/printf.texi: Likewise.
15547         * doc/posix-functions/snprintf.texi: Likewise.
15548         * doc/posix-functions/sprintf.texi: Likewise.
15549         * doc/posix-functions/swprintf.texi: Likewise.
15550         * doc/posix-functions/vdprintf.texi: Likewise.
15551         * doc/posix-functions/vfprintf.texi: Likewise.
15552         * doc/posix-functions/vprintf.texi: Likewise.
15553         * doc/posix-functions/vsnprintf.texi: Likewise.
15554         * doc/posix-functions/vsprintf.texi: Likewise.
15555         * doc/glibc-functions/asprintf.texi: Likewise.
15556         * doc/glibc-functions/obstack_printf.texi: Likewise.
15557         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15558         * doc/glibc-functions/vasprintf.texi: Likewise.
15559
15560 2011-09-10  Bruno Haible  <bruno@clisp.org>
15561
15562         nocrash: Add support for native Windows.
15563         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15564
15565 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15566             Bruno Haible  <bruno@clisp.org>
15567
15568         absolute-header, include-next: Add support for MSVC compiler.
15569         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15570         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15571         directory separator in #line directives.
15572         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15573         recognize also backslash as directory separator in #line directives.
15574
15575 2011-09-08  Jim Meyering  <meyering@redhat.com>
15576
15577         maint.mk: mark the post-release commit log with "maint: " prefix
15578         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15579         one-line commit-log summary.
15580
15581 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15582             Bruno Haible  <bruno@clisp.org>
15583
15584         Doc about crypt functions.
15585         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15586         systems.
15587         * doc/posix-functions/encrypt.texi: Likewise.
15588         * doc/posix-functions/setkey.texi: Likewise.
15589
15590 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15591
15592         * lib/gc.h: Fix copyright header.
15593
15594 2011-09-07  Bruno Haible  <bruno@clisp.org>
15595
15596         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15597         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15598         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15599
15600 2011-09-07  Bruno Haible  <bruno@clisp.org>
15601
15602         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15603         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15604         * lib/freopen.c: Likewise.
15605         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15606         * lib/lstat.c: Likewise.
15607         * lib/stat.c: Likewise.
15608         * lib/open.c: Use different syntax for include of <fcntl.h>.
15609         * lib/openat.c: Include fcntl.h again, explicitly.
15610
15611 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15612
15613         parse-datetime: document the newly accepted format
15614         * doc/parse-datetime.texi (Combined date and time of day items):
15615         New section.
15616
15617 2011-09-06  Bruno Haible  <bruno@clisp.org>
15618
15619         acl: Fix a test failure on newer Solaris 10 with ZFS.
15620         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15621         ENOSYS as no ACL.
15622         Reported by Jim Meyering.
15623
15624 2011-09-06  Bruno Haible  <bruno@clisp.org>
15625
15626         acl: Update for AIX >= 5.3 with NFS.
15627         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15628         ENOSYS as no ACL.
15629
15630         acl: Fix a test failure on AIX >= 5.3 with NFS.
15631         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15632         as no ACL.
15633
15634 2011-09-06  Bruno Haible  <bruno@clisp.org>
15635
15636         acl: Fix a test failure on IRIX 6.5 with NFS.
15637         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15638         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15639         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15640         * lib/copy-acl.c (qcopy_acl): Likewise.
15641
15642 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15643
15644         openat: port to AIX 7.1 with large files
15645         AIX 7.1 does a "#define openat open64at" if large files are in use,
15646         so we can't simply #undef openat.  Use the orig_openat trick (similar
15647         to orig_open in lib/open.c) to work around the problem.  Problem
15648         reported by Kevin Brott for GNU tar, in the thread containing
15649         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15650         * lib/openat.c (__need_system_fcntl_h): Define first.
15651         Include <fcntl.h> and <sys/types.h> before undefining.
15652         (orig_openat) [HAVE_OPENAT]: New inline function.
15653         (openat) [HAVE_OPENAT]: Do not undef.
15654         (rpl_openat): Use orig_openat, not openat.
15655
15656 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15657             Bruno Haible  <bruno@clisp.org>
15658
15659         acl: Avoid errors on NonStop Kernel.
15660         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15661         ENOTSUP errors.
15662
15663 2011-09-05  Bruno Haible  <bruno@clisp.org>
15664
15665         acl: Clean up Solaris code.
15666         * lib/acl-internal.h: Remove no-op #if.
15667         * lib/file-has-acl.c: Likewise.
15668         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15669         * lib/copy-acl.c (qcopy_acl): Likewise.
15670
15671 2011-09-05  Bruno Haible  <bruno@clisp.org>
15672
15673         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15674         binaries built on the original Solaris 10.
15675         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15676         trivial.
15677
15678 2011-09-05  Bruno Haible  <bruno@clisp.org>
15679
15680         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15681         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15682         10.
15683         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15684         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15685         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15686         instead of acl_get, facl_get, acl_set, facl_set.
15687
15688 2011-09-05  Bruno Haible  <bruno@clisp.org>
15689
15690         copy-file: Try unit tests on more file systems.
15691         * tests/test-copy-file-1.sh: New file.
15692         * tests/test-copy-file-2.sh: New file.
15693         * modules/copy-file-tests (Files): Add them.
15694         (Makefile.am): Add them to TESTS.
15695
15696         acl: Try unit tests on more file systems.
15697         * tests/test-file-has-acl-1.sh: New file.
15698         * tests/test-file-has-acl-2.sh: New file.
15699         * tests/test-set-mode-acl-1.sh: New file.
15700         * tests/test-set-mode-acl-2.sh: New file.
15701         * tests/test-copy-acl-1.sh: New file.
15702         * tests/test-copy-acl-2.sh: New file.
15703         * modules/acl-tests (Files): Add them.
15704         (Makefile.am): Add them to TESTS.
15705
15706 2011-09-04  Bruno Haible  <bruno@clisp.org>
15707
15708         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15709         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15710         10.
15711         (OLD_ALLOW, OLD_DENY): New macros.
15712         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15713         ACE_ACCESS_ALLOWED_ACE_TYPE.
15714         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15715         ACE_ACCESS_DENIED_ACE_TYPE.
15716         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15717         (NEW_ACE_EXECUTE): Fix value.
15718         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15719         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15720         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15721         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15722         NEW_ACE_SYNCHRONIZE): New macros.
15723         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15724         instead of acl_fromtext, acl_set, facl_set.
15725         Fixes a coreutils/tests/cp/perm failure.
15726
15727 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15728
15729         openat: test for fstatat (..., 0) bug
15730         Further testing with tar suggests that fstatat (..., 0)
15731         does not work in general, on AIX 7.1; see
15732         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15733         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15734         replacement fstatat (which is what older AIX releases were using
15735         anyway).
15736         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15737         use is now changed to orig_fstatat.  This was probably the right
15738         thing to do anyway.
15739         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15740         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15741         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15742         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15743         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15744         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15745         if the bug is found.
15746
15747         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15748         This tests for another fstatat bug on AIX 7.1:
15749         fstatat (AT_FDCWD, ..., 0) does not work.  See
15750         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15751         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15752         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15753         (rpl_fstatat): Adjust so that it works around either (or both)
15754         bugs if present.
15755         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15756
15757 2011-09-03  Karl Berry  <karl@gnu.org>
15758
15759         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15760         in index entries.
15761
15762 2011-09-02  Bruno Haible  <bruno@clisp.org>
15763
15764         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15765         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15766         values of AR, ARFLAGS, RANLIB.
15767         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15768
15769 2011-09-02  Bruno Haible  <bruno@clisp.org>
15770
15771         Find 'ar' program that fits with --host argument.
15772         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15773
15774 2011-09-02  Bruno Haible  <bruno@clisp.org>
15775
15776         tests: init.sh: Support any non-GNU diff.
15777         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15778         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15779         Solaris 8.
15780
15781 2011-09-02  Bruno Haible  <bruno@clisp.org>
15782
15783         tests: init.sh: work also with any non-GNU diff that supports -u
15784         * tests/init.sh: Relax check for diff -u support.
15785         Rather than checking for GNU diff via --version, simply check
15786         for support for -u itself.  Useful at least on OpenBSD 4.9,
15787         AIX 7.1, IRIX 6.5, and Solaris 10.
15788
15789 2011-09-01  Bruno Haible  <bruno@clisp.org>
15790
15791         strtoimax, strtoumax: Document problem on HP-UX 11.
15792         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15793         * doc/posix-functions/strtoumax.texi: Likewise.
15794
15795 2011-09-01  Bruno Haible  <bruno@clisp.org>
15796
15797         strtoumax: Avoid link error on OSF/1 with DTK cc.
15798         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15799         defined as a function.
15800         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15801         strtoumax is defined, not whether it is declared.
15802
15803 2011-09-01  Bruno Haible  <bruno@clisp.org>
15804
15805         strtoimax: Avoid link error on OSF/1 with DTK cc.
15806         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15807         defined as a function.
15808         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15809         strtoimax is defined, not whether it is declared.
15810
15811 2011-09-01  Bruno Haible  <bruno@clisp.org>
15812
15813         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15814         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15815         as a function.
15816         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15817         whether it is declared.
15818
15819 2011-09-01  Bruno Haible  <bruno@clisp.org>
15820
15821         imaxabs: Avoid link error on OSF/1 with DTK cc.
15822         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15823         as a function.
15824         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15825         whether it is declared.
15826
15827 2011-09-01  Bruno Haible  <bruno@clisp.org>
15828
15829         Tests for module 'strtoumax'.
15830         * modules/strtoumax-tests: New file.
15831         * tests/test-strtoumax.c: New file.
15832
15833         Tests for module 'strtoimax'.
15834         * modules/strtoimax-tests: New file.
15835         * tests/test-strtoimax.c: New file.
15836
15837         Tests for module 'imaxdiv'.
15838         * modules/imaxdiv-tests: New file.
15839         * tests/test-imaxdiv.c: New file.
15840
15841         Tests for module 'imaxabs'.
15842         * modules/imaxabs-tests: New file.
15843         * tests/test-imaxabs.c: New file.
15844
15845 2011-09-01  Bruno Haible  <bruno@clisp.org>
15846
15847         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15848         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15849         pthread_create.
15850
15851 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15852
15853         openat: work around AIX 7.1 fstatat issue
15854         This should fix the problem that was not properly fixed
15855         in the previous change, dated 2011-08-30.
15856         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15857         __need_system_stat_h defined.
15858         (orig_fstatat) [HAVE_FSTATAT]: New function.
15859         (rpl_fstatat): Go back to the old way of doing things,
15860         except call orig_fstatat instead of fstatat.
15861         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15862         Remove unnecessary check whether fstatat fills in st_size etc.
15863
15864 2011-09-01  Bruno Haible  <bruno@clisp.org>
15865
15866         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15867         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15868         just include the system's header.
15869
15870 2011-08-31  Jim Meyering  <meyering@redhat.com>
15871
15872         tests: avoid spurious assertion failure in test-float.c on ppc64
15873         * tests/test-float.c (test_long_double): Comment out an assertion,
15874         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15875         with gcc-4.4.4.
15876
15877         maint: indent with spaces, not TABs
15878         I need to get in the habit of running gnulib's "make check".
15879         Both of these would have been caught.
15880         * m4/largefile.m4: Indent with spaces, not TABs.
15881         * lib/parse-datetime.y (iso_8601_time): Likewise.
15882         Spotted by Pádraig Brady.
15883
15884         test-parse-datetime.c: accommodate a relatively strict gcc warning
15885         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15886         to avoid a warning from gcc's -Werror=missing-declarations.
15887         Insert a few spaces-before-funcall-parenthesis.
15888
15889 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15890
15891         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15892         The parser now accepts ISO 8601 date-time strings with "T" as the
15893         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15894         with a space between the date and time strings.  Now it also parses
15895         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15896         variants like "2004-02-29T16:21:42.333-07:00"
15897         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15898         of day representation using the 'T' separator character.
15899         * doc/parse-datetime.texi (General date syntax): replace use of
15900         deprecated --iso-8601 option with --rfc-3339 in example of date
15901         command output formats that can be parsed.
15902         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15903         lib/parse-datetime.y.
15904         (gmt_offset): New function.
15905         (main): Add additional test cases to validate ISO8601 extended
15906         date and time of day parsing.
15907
15908 2011-08-31  Bruno Haible  <bruno@clisp.org>
15909
15910         freopen: Documentation.
15911         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15912         name.
15913         Reported by Claudio Bley <claudio.bley@gmail.com>.
15914
15915 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15916
15917         freopen: Don't crash if the filename argument is NULL.
15918         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15919         NULL.
15920
15921 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15922
15923         openat: work around AIX 7.1 fstatat bug
15924         Problem reported by Kevin Brott for GNU tar, in the thread containing
15925         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15926         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15927         FSTATAT_ST_SIZE_ETC_BROKEN.
15928         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15929         rpl_fstatat.
15930         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15931         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15932         AC_CHECK_FUNCS_ONCE for fstatat.
15933         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15934         fchmodat, mkdirat, openat and unlinkat.
15935
15936 2011-08-30  Bruno Haible  <bruno@clisp.org>
15937
15938         Avoid endless recursions if config.h includes some header files.
15939         * lib/fopen.c (__need_FILE): Define already before including config.h.
15940         * lib/freopen.c (__need_FILE): Likewise.
15941         * lib/open.c (__need_system_fcntl_h): Likewise.
15942         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15943         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15944         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15945
15946 2011-08-25  Karl Berry  <karl@gnu.org>
15947
15948         * config/srclist.txt (ylwrap): new try.
15949         * build-aux/ylwrap: new file.
15950
15951 2011-08-23  Bruno Haible  <bruno@clisp.org>
15952
15953         tmpdir: Use a good default directory on native Windows.
15954         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15955         (P_tmpdir): Default to _P_tmpdir on native Windows.
15956         (path_search): On native Windows, try the value returned by GetTempPath
15957         before trying P_tmpdir.
15958         * modules/tmpdir (Depends-on): Add pathmax.
15959         Suggested by John Darrington <john@darrington.wattle.id.au>.
15960
15961 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15962
15963         doc: fix typo in README-release
15964         * top/README-release: Capitalize first word of a sentence.
15965
15966 2011-08-19  Jim Meyering  <meyering@redhat.com>
15967
15968         fts: do not exhaust memory when processing million-entry directories
15969         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15970         directory would require about 256*N bytes of memory.  Thus, it was
15971         easy to construct a directory too large to be processed by any of
15972         those tools.  With this change, fts' maximum memory utilization is
15973         now limited to around 30MB.
15974         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15975         (fts_read): When we've processed the final entry (i.e., when
15976         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15977         using the parent entry to read any remaining entries.  Dispatch
15978         depending on what fts_build returns:
15979         - NULL+stop, aka failure: stop
15980         - NULL otherwise: move up in the dir hierarchy
15981         - non-NULL: handle this new entry
15982         (fts_build): Declare and use new local, continue_readdir.
15983         Prepare to be called from fts_read, when the entries
15984         from a partially-read directory have just been exhausted.
15985         In that case, we'll skip the opendir and instead use the parent's
15986         fts_dirp and derive dir_fd from that.
15987         Finally, in the readdir loop, if we read max_entries entries,
15988         exit the loop ensuring *not* to call closedir.  This is required
15989         so that fts_dirp can be reused on a subsequent call.
15990         Prompted by Ben England's report of memory exhaustion in find
15991         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15992
15993         maint: fts: move decl of `dp' down into while loop; split a long line
15994         * lib/fts.c (fts_build): No semantic change.
15995
15996         fts: add/use new struct member, fts_dirp
15997         We are about to use this to manage any directory with
15998         too many entries to read all of them into memory at once.
15999         To do that, we'll need to save the DIR* pointer in each
16000         affected FTSENT struct.
16001         * lib/fts_.h: Include <dirent.h>.
16002         (struct FTSENT) [fts_dirp]: New member.
16003         * lib/fts.c (closedir_and_clear): Define.
16004         Use it in place of closedir so that we are sure to
16005         clear the new fts_dirp member when done with it.
16006         (fts_alloc): Initialize the new member.
16007         (fts_lfree): Free, if needed.
16008
16009         maint: fts: give __opendir2 a new parameter and rename
16010         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
16011         than surreptitiously using sole caller's "dir_fd".
16012         (fts_opendir): Rename from __opendir2.
16013
16014         maint: fts.c: remove __opendir2's now-unused parameter, oflag
16015         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
16016
16017         maint: fts.c: correct off-by-one indentation
16018         * lib/fts.c (fts_build): Correct indentation, change style
16019         of a couple of block comments, and bracing style.
16020
16021         maint: fts.c: move __opendir2 #define "up" out of function body
16022         * lib/fts.c (__opendir2): Move "up".  No semantic change.
16023
16024         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
16025         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
16026         out for a long time and besides was useful only on BSD systems.
16027
16028 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
16029
16030         regex: port to Stratus OpenVOS
16031         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
16032         define to empty, rather than attempting nonportable optimizations.
16033         Problem reported by Paul Green in:
16034         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
16035         and fix suggested by Eric Blake in:
16036         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
16037
16038 2011-08-17  Eric Blake  <eblake@redhat.com>
16039
16040         getcwd: fix test failures on mingw
16041         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
16042         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
16043         test if long directory cannot be created, and allow mingw errno.
16044
16045         getcwd-lgpl: fix m4 to match relaxed test for BSD
16046         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
16047         (gl_FUNC_GETCWD_SIGNATURE): New macro.
16048         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
16049         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
16050         signature problem.
16051
16052         getcwd: fix compilation on mingw64
16053         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
16054         getcwd.
16055         Reported by Marc-André Lureau.
16056
16057         pipe2: silence compiler warning
16058         * lib/pipe2.c (pipe2): Hide label if it is not used.
16059
16060 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
16061
16062         relocatable-prog: fix link error
16063         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
16064         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
16065         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
16066         into modules/relocatable-lib without noticing that
16067         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
16068         also needs to build relocatable.c.
16069
16070 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16071
16072         getaddrinfo: fix sh typo in gai_strerrorA decl checking
16073         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
16074         shell code: it contained a 'break' that was not in a loop.
16075         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
16076         via a shell-language loop; this may have been true in old Autoconf
16077         versions, but it's not true in Autoconf 2.68.  I found this bug
16078         when testing coreutils git on Solaris 8, whose shell complains
16079         about the syntax error.
16080
16081 2011-08-12  Simon Josefsson  <simon@josefsson.org>
16082
16083         * lib/base64.c: Fix comment to reference RFC 4648.
16084         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
16085         <gvtulder@gmail.com>.
16086
16087 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16088
16089         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
16090
16091         po/Makefile.in.in: fix make -q problem
16092         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
16093         rule, since there's no file named 'check-macro-version' and its
16094         use as a file breaks make -q.
16095         (all): Don't depend on check-macro-version.
16096         (CHECK_MACRO_VERSION): New macro.
16097         (stamp-po): Use it.
16098
16099         configmake: fix make -q problem
16100         * modules/configmake (configmake.h): Update configmake.h's time stamp
16101         even if the file does not change.  Otherwise, 'make -q' fails.
16102         Problem reported by Simon Josefsson in
16103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
16104
16105 2011-08-11  Jim Meyering  <meyering@redhat.com>
16106
16107         git-version-gen: correct the advice in a comment
16108         * build-aux/git-version-gen: Correct comment.
16109         Don't recommend to list .tarball-version in .gitignore.
16110
16111 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16112
16113         base64: fix off-by-one buffer size bug
16114         Problem and (trivial) fix reported by Gijs van Tulder in
16115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
16116         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
16117         * tests/test-base64.c (main): Catch the bug.
16118
16119 2011-08-10  Eric Blake  <eblake@redhat.com>
16120
16121         closein: correct comments
16122         * lib/closein.c (close_stdin): Improve comments.
16123
16124 2011-08-09  Bruno Haible  <bruno@clisp.org>
16125
16126         More tests for 'fseeko'.
16127         * tests/test-fseeko3.c: New file, from Eric Blake.
16128         * tests/test-fseeko3.sh: New file.
16129         * modules/fseeko-tests (Files): Add them.
16130         (TESTS): Add test-fseeko3.sh.
16131         (check_PROGRAMS): Add test-fseeko3.
16132
16133 2011-08-09  Eric Blake  <eblake@redhat.com>
16134
16135         fseeko: remove unneeded hack
16136         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
16137
16138         fseeko: fix bug on glibc
16139         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
16140         Reported by John W. Eaton.
16141
16142 2011-08-08  Bruno Haible  <bruno@clisp.org>
16143
16144         unictype/base: Fix interoperability with preinstalled libunistring.
16145         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
16146         Reported by Simon Josefsson.
16147
16148 2011-08-08  Bruno Haible  <bruno@clisp.org>
16149
16150         iswblank: Detect declaration correctly.
16151         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
16152         AC_CHECK_DECLS invocation.
16153
16154 2011-08-08  Bruno Haible  <bruno@clisp.org>
16155
16156         tcgetsid: Detect declaration correctly.
16157         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
16158         AC_CHECK_DECLS invocation.
16159         Reported by Simon Josefsson.
16160
16161 2011-08-08  Eric Blake  <eblake@redhat.com>
16162
16163         largefile: fix typo that regressed large file support
16164         * modules/largefile (configure.ac-early): Fix section name.
16165
16166 2011-08-06  Karl Berry  <karl@gnu.org>
16167
16168         * MODULES.html.sh (func_all_files): _Noreturn is no longer
16169         a separate module.
16170
16171 2011-08-05  Simon Josefsson  <simon@josefsson.org>
16172
16173         openat: Fix warnings and commens when building unlinkat.c on Hurd.
16174         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
16175         get prototype for free.
16176
16177 2011-08-04  Bruno Haible  <bruno@clisp.org>
16178
16179         Tests for module 'pathmax'.
16180         * modules/pathmax-tests: New file.
16181         * tests/test-pathmax.c: New file.
16182
16183         canonicalize-lgpl: Support larger filenames on the Hurd.
16184         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
16185         Reported by Paul Eggert.
16186
16187         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
16188         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
16189         * lib/chdir-long.h: Include pathmax.h.
16190         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
16191         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
16192         (PATH_MAX): Remove code that is done by pathmax.h.
16193         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
16194         * lib/tmpfile.c: Add a comment.
16195         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
16196         * modules/chdir-long (Depends-on): Add pathmax.
16197         * modules/getcwd (Depends-on): Add pathmax.
16198         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
16199         is not defined.
16200         * doc/posix-headers/limits.texi: Mention the pathmax module.
16201         * NEWS: Mention the change.
16202
16203 2011-08-02  Bruno Haible  <bruno@clisp.org>
16204
16205         pthread_sigmask: Actually use results of gl_THREADLIB.
16206         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
16207         gl_THREADLIB, not gl_[]THREADLIB.
16208         Reported by Eric Blake.
16209
16210 2011-08-02  Jim Meyering  <meyering@redhat.com>
16211
16212         maint.mk: relax the default _gl_TS_function_match regexp
16213         * top/maint.mk (_gl_TS_function_match): Don't require at least one
16214         space between function name and "(" in an "extern" declaration.
16215         That would fail to match a decl with no space there: extern void foo();
16216
16217 2011-07-31  Iain Nicol  <iain@thenicols.net>
16218
16219         git-version-gen: document that EXTRA_DIST must include .version
16220         * build-aux/git-version-gen: In the how-to-use comment, document
16221         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
16222         will fail when run from an unpacked distribution tarball.
16223
16224 2011-08-01  Bruno Haible  <bruno@clisp.org>
16225
16226         wctype-h: Fix last change.
16227         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
16228         REPLACE_TOWLOWER to 0.
16229         Reported by Sam Steingold <sds@gnu.org>.
16230
16231 2011-07-31  Bruno Haible  <bruno@clisp.org>
16232
16233         frexpl: Update autoconf test.
16234         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
16235         according to changes of 2011-06-20.
16236
16237 2011-07-31  Bruno Haible  <bruno@clisp.org>
16238
16239         sys_utsname: Add support for Minix.
16240         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
16241         <sys/utsname.h>.
16242         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16243         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
16244
16245 2011-07-31  Bruno Haible  <bruno@clisp.org>
16246
16247         strings: Add support for Minix.
16248         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
16249         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16250         * doc/posix-headers/strings.texi: Document the Minix problem.
16251
16252 2011-07-31  Bruno Haible  <bruno@clisp.org>
16253
16254         wctype-h: Add support for Minix.
16255         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
16256         REPLACE_TOWLOWER.
16257         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
16258         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
16259         REPLACE_ISWCNTRL.
16260
16261 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
16262
16263         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
16264         This is a performance improvement for 64-bit hosts: it causes the
16265         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
16266
16267 2011-07-31  Bruno Haible  <bruno@clisp.org>
16268
16269         stdioext: Add support for Minix.
16270         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
16271         * lib/fpurge.c (fpurge): Likewise.
16272         * lib/freadahead.c (freadahead): Likewise.
16273         * lib/freadable.c (freadable): Likewise.
16274         * lib/freading.c (freading): Likewise.
16275         * lib/freadptr.c (freadptr): Likewise.
16276         * lib/freadseek.c (freadptrinc): Likewise.
16277         * lib/fseeko.c (rpl_fseeko): Likewise.
16278         * lib/fseterr.c (fseterr): Likewise.
16279         * lib/fwritable.c (fwritable): Likewise.
16280         * lib/fwriting.c (fwriting): Likewise.
16281         * lib/fflush.c (clear_ungetc_buffer): Update comment.
16282         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
16283
16284 2011-07-31  Bruno Haible  <bruno@clisp.org>
16285
16286         errno: Port to Minix.
16287         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
16288         ECONNABORTED are defined.
16289         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
16290         GNULIB_defined_ECONNABORTED): New macros.
16291         * lib/strerror-override.h (strerror_override): Test also
16292         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
16293         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
16294         ECONNABORTED.
16295         * doc/posix-headers/errno.texi: Mention the Minix problem.
16296
16297 2011-07-31  Bruno Haible  <bruno@clisp.org>
16298
16299         Work around declaration collisions on Minix.
16300         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
16301         defined, set REPLACE_MBSINIT.
16302         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
16303         defined, set REPLACE_MBRTOWC.
16304         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
16305         set REPLACE_MBRLEN.
16306         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
16307         defined, set REPLACE_MBSRTOWCS.
16308         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
16309         defined, set REPLACE_WCRTOMB.
16310         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
16311         defined, set REPLACE_WCSRTOMBS.
16312
16313 2011-07-31  Bruno Haible  <bruno@clisp.org>
16314
16315         Add support for Minix with ACK compiler.
16316         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
16317         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
16318         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
16319
16320 2011-07-31  Bruno Haible  <bruno@clisp.org>
16321
16322         Documentation about Minix.
16323         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
16324         * doc/glibc-headers/*.texi: Likewise.
16325         * doc/posix-functions/*.texi: Likewise.
16326         * doc/glibc-functions/*.texi: Likewise.
16327
16328 2011-07-31  Bruno Haible  <bruno@clisp.org>
16329
16330         snippet/warn-on-use: Fix indentation.
16331         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
16332
16333 2011-07-25  Jim Meyering  <meyering@redhat.com>
16334
16335         tests: test-update-copyright.sh: remove unnecessary "rm" commands
16336         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
16337         commands.
16338
16339 2011-07-27  Jim Meyering  <meyering@redhat.com>
16340
16341         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
16342         * top/maint.mk (gl_extract_significant_defines_): Now that
16343         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
16344         gnulib/lib/signal.in.h, and now that we recommend to
16345         define-if-undefined those two symbols in application code,
16346         we must filter them out of the "significant" list.
16347         This avoids a "make syntax-check" failure in coreutils.
16348
16349 2011-07-26  Eric Blake  <eblake@redhat.com>
16350
16351         warnings: add comments about previous patch
16352         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
16353         * m4/include_next.m4: Likewise.
16354         * m4/warn-on-use.m4: Likewise.
16355         * m4/warnings.m4: Likewise, and simplify use.
16356         Suggested by Stefano Lattarini.
16357
16358         include-next, warnings: support older autoconf
16359         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
16360         AS_VAR_PUSHDEF in a way that works with older autoconf.
16361         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
16362         Reported by Daniel P. Berrange.
16363
16364 2011-07-25  Bruno Haible  <bruno@clisp.org>
16365
16366         fseek, ftell: Fix doc.
16367         * doc/posix-functions/fseek.texi: Reword statement about
16368         AC_SYS_LARGEFILE.
16369         * doc/posix-functions/ftell.texi: Likewise.
16370
16371 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16372             Bruno Haible  <bruno@clisp.org>
16373
16374         Add dependencies to the 'largefile' module.
16375         * modules/fopen (Depends-on): Add 'largefile'.
16376         * modules/freopen (Depends-on): Likewise.
16377         * modules/fseeko (Depends-on): Likewise.
16378         * modules/ftello (Depends-on): Likewise.
16379         * modules/glob (Depends-on): Likewise.
16380         * modules/lseek (Depends-on): Likewise.
16381         * modules/lstat (Depends-on): Likewise.
16382         * modules/mkostemp (Depends-on): Likewise.
16383         * modules/mkostemps (Depends-on): Likewise.
16384         * modules/mkstemp (Depends-on): Likewise.
16385         * modules/mkstemps (Depends-on): Likewise.
16386         * modules/open (Depends-on): Likewise.
16387         * modules/openat (Depends-on): Likewise.
16388         * modules/pread (Depends-on): Likewise.
16389         * modules/pwrite (Depends-on): Likewise.
16390         * modules/scandir (Depends-on): Likewise.
16391         * modules/stat (Depends-on): Likewise.
16392         * modules/tmpfile (Depends-on): Likewise.
16393         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
16394         since the containing module now depends on the largefile module.
16395         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
16396         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
16397         off_t is fixed by gnulib.
16398         * doc/posix-functions/freopen.texi: Likewise.
16399         * doc/posix-functions/fseeko.texi: Likewise.
16400         * doc/posix-functions/fstatat.texi: Likewise.
16401         * doc/posix-functions/ftello.texi: Likewise.
16402         * doc/posix-functions/glob.texi: Likewise.
16403         * doc/posix-functions/lseek.texi: Likewise.
16404         * doc/posix-functions/lstat.texi: Likewise.
16405         * doc/posix-functions/mkstemp.texi: Likewise.
16406         * doc/posix-functions/open.texi: Likewise.
16407         * doc/posix-functions/openat.texi: Likewise.
16408         * doc/posix-functions/pread.texi: Likewise.
16409         * doc/posix-functions/pwrite.texi: Likewise.
16410         * doc/posix-functions/scandir.texi: Likewise.
16411         * doc/posix-functions/stat.texi: Likewise.
16412         * doc/posix-functions/tmpfile.texi: Likewise.
16413         * doc/glibc-functions/mkostemp.texi: Likewise.
16414         * doc/glibc-functions/mkostemps.texi: Likewise.
16415         * doc/glibc-functions/mkstemps.texi: Likewise.
16416
16417 2011-07-25  Bruno Haible  <bruno@clisp.org>
16418
16419         fcntl: Move AC_LIBOBJ invocation to module description.
16420         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
16421         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
16422
16423         fcntl: Remove call-in from fchdir.m4.
16424         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
16425         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
16426
16427         dup3: Remove potential call-in from fchdir.m4.
16428         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
16429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
16430
16431         dup2: Move AC_LIBOBJ invocation to module description.
16432         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
16433         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
16434         Don't invoke AC_LIBOBJ.
16435         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
16436
16437         dup2: Remove call-in from fchdir.m4.
16438         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
16439         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
16440
16441         fclose: Move AC_LIBOBJ invocation to module description.
16442         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
16443         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
16444         to 1.
16445         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
16446
16447         fclose: Remove call-in from close.m4.
16448         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
16449         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
16450
16451         close: Move AC_LIBOBJ invocation to module description.
16452         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
16453         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
16454         1.
16455         * modules/close (configure.ac): Invoke AC_LIBOBJ.
16456
16457         close: Remove call-in from fchdir.m4.
16458         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
16459         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
16460
16461         open: Move AC_LIBOBJ invocation to module description.
16462         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
16463         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16464         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
16465
16466         open: Remove call-in from fchdir.m4.
16467         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
16468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
16469
16470         fchdir: Start to remove gl_REPLACE_* idiom.
16471         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
16472         (gl_FUNC_FCHDIR): Invoke it.
16473
16474 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16475
16476         * lib/ftell.c (ftell): Comment out cast.
16477
16478         close: use gl_REPLACE_FCLOSE only if defined
16479         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
16480         is defined.  The close module doesn't depend on the fclose module
16481         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
16482         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
16483         I reproduced the problem with "./gnulib-tool --test close sys_socket".
16484
16485 2011-07-24  Jim Meyering  <meyering@redhat.com>
16486
16487         test-select.h: avoid warning when using gcc's -Wmissing-declarations
16488         * tests/test-select.h (test_function): Declare as "static".
16489
16490 2011-07-24  Bruno Haible  <bruno@clisp.org>
16491
16492         doc: Mention the effects of AC_SYS_LARGEFILE.
16493         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
16494         on this function.
16495         * doc/posix-functions/aio_error.texi: Likewise.
16496         * doc/posix-functions/aio_fsync.texi: Likewise.
16497         * doc/posix-functions/aio_read.texi: Likewise.
16498         * doc/posix-functions/aio_return.texi: Likewise.
16499         * doc/posix-functions/aio_suspend.texi: Likewise.
16500         * doc/posix-functions/aio_write.texi: Likewise.
16501         * doc/posix-functions/fgetpos.texi: Likewise.
16502         * doc/posix-functions/fopen.texi: Likewise.
16503         * doc/posix-functions/freopen.texi: Likewise.
16504         * doc/posix-functions/fsetpos.texi: Likewise.
16505         * doc/posix-functions/fstatvfs.texi: Likewise.
16506         * doc/posix-functions/ftruncate.texi: Likewise.
16507         * doc/posix-functions/ftw.texi: Likewise.
16508         * doc/posix-functions/getrlimit.texi: Likewise.
16509         * doc/posix-functions/glob.texi: Likewise.
16510         * doc/posix-functions/lio_listio.texi: Likewise.
16511         * doc/posix-functions/lockf.texi: Likewise.
16512         * doc/posix-functions/mkstemp.texi: Likewise.
16513         * doc/posix-functions/mmap.texi: Likewise.
16514         * doc/posix-functions/nftw.texi: Likewise.
16515         * doc/posix-functions/openat.texi: Likewise.
16516         * doc/posix-functions/opendir.texi: Likewise.
16517         * doc/posix-functions/posix_fadvise.texi: Likewise.
16518         * doc/posix-functions/posix_fallocate.texi: Likewise.
16519         * doc/posix-functions/pread.texi: Likewise.
16520         * doc/posix-functions/pwrite.texi: Likewise.
16521         * doc/posix-functions/readdir.texi: Likewise.
16522         * doc/posix-functions/readdir_r.texi: Likewise.
16523         * doc/posix-functions/rewinddir.texi: Likewise.
16524         * doc/posix-functions/scandir.texi: Likewise.
16525         * doc/posix-functions/seekdir.texi: Likewise.
16526         * doc/posix-functions/setrlimit.texi: Likewise.
16527         * doc/posix-functions/statvfs.texi: Likewise.
16528         * doc/posix-functions/telldir.texi: Likewise.
16529         * doc/posix-functions/tmpfile.texi: Likewise.
16530         * doc/posix-functions/truncate.texi: Likewise.
16531         * doc/glibc-functions/fallocate.texi: Likewise.
16532         * doc/glibc-functions/fstatfs.texi: Likewise.
16533         * doc/glibc-functions/fts_children.texi: Likewise.
16534         * doc/glibc-functions/fts_read.texi: Likewise.
16535         * doc/glibc-functions/getdirentries.texi: Likewise.
16536         * doc/glibc-functions/mkostemp.texi: Likewise.
16537         * doc/glibc-functions/mkostemps.texi: Likewise.
16538         * doc/glibc-functions/mkstemps.texi: Likewise.
16539         * doc/glibc-functions/preadv.texi: Likewise.
16540         * doc/glibc-functions/pwritev.texi: Likewise.
16541         * doc/glibc-functions/sendfile.texi: Likewise.
16542         * doc/glibc-functions/statfs.texi: Likewise.
16543
16544 2011-07-24  Bruno Haible  <bruno@clisp.org>
16545
16546         doc: Fix typo.
16547         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16548
16549 2011-07-24  Bruno Haible  <bruno@clisp.org>
16550
16551         doc: Mention fsusage.
16552         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16553
16554 2011-07-24  Bruno Haible  <bruno@clisp.org>
16555
16556         doc: Mention new glibc headers and functions.
16557         * doc/glibc-headers/gshadow.texi: New file.
16558         * doc/glibc-functions/endsgent.texi: New file.
16559         * doc/glibc-functions/fgetsgent.texi: New file.
16560         * doc/glibc-functions/fgetsgent_r.texi: New file.
16561         * doc/glibc-functions/getsgent.texi: New file.
16562         * doc/glibc-functions/getsgent_r.texi: New file.
16563         * doc/glibc-functions/getsgnam.texi: New file.
16564         * doc/glibc-functions/getsgnam_r.texi: New file.
16565         * doc/glibc-functions/putsgent.texi: New file.
16566         * doc/glibc-functions/setsgent.texi: New file.
16567         * doc/glibc-functions/sgetsgent.texi: New file.
16568         * doc/glibc-functions/sgetsgent_r.texi: New file.
16569         * doc/glibc-functions/malloc_info.texi: New file.
16570         * doc/glibc-functions/preadv.texi: New file.
16571         * doc/glibc-functions/pwritev.texi: New file.
16572         * doc/glibc-functions/register_printf_modifier.texi: New file.
16573         * doc/glibc-functions/register_printf_specifier.texi: New file.
16574         * doc/glibc-functions/register_printf_type.texi: New file.
16575         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16576         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16577         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16578         * doc/glibc-functions/pthread_getname_np.texi: New file.
16579         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16580         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16581         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16582         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16583         * doc/glibc-functions/pthread_setname_np.texi: New file.
16584         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16585         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16586         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16587         * doc/glibc-functions/qsort_r.texi: New file.
16588         * doc/glibc-functions/quick_exit.texi: New file.
16589         * doc/glibc-functions/syncfs.texi: New file.
16590         * doc/gnulib.texi: Include them.
16591         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16592         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16593         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16594         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16595         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16596         * doc/glibc-functions/execvpe.texi: Likewise.
16597
16598 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16599
16600         ftell: don't include <unistd.h>
16601         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16602         guaranteed to define off_t, and the ftell module depends on the
16603         stdio module.
16604
16605         ftell: do not assume wraparound signed arithmetic
16606         * lib/ftell.c: Include <limits.h>.
16607         (ftell): Don't assume wraparound signed arithmetic.
16608
16609 2011-07-24  Bruno Haible  <bruno@clisp.org>
16610
16611         close: No longer depend on module 'fclose'.
16612         * modules/close (Depends-on): Remove fclose.
16613         * NEWS: Mention the change.
16614         Suggested by Sam Steingold <sds@gnu.org>.
16615
16616 2011-07-24  Bruno Haible  <bruno@clisp.org>
16617
16618         fsusage: Enable large volume support on AIX >= 5.2.
16619         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16620         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16621         instead of STAT_STATVFS.
16622         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16623
16624         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16625         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16626         f_blocks field only on MacOS X.
16627
16628         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16629         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16630         * modules/fsusage (Depends-on): Add largefile.
16631
16632 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16633
16634         * README: Modernize discussion of signed integers.
16635         Assuming overflow wraparound is no longer safe.
16636         Mention ones' complement and signed magnitude.
16637
16638 2011-07-22  Bruno Haible  <bruno@clisp.org>
16639
16640         select tests, pselect tests: Refactor.
16641         * tests/test-select.h: New file, extracted from tests/test-select.c.
16642         (select_fn): New type.
16643         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16644         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16645         test_pipe): Add my_select argument.
16646         (test_function): Renamed from main. Add my_select argument.
16647         * tests/test-select.c: Move most code to tests/test-select.h. Include
16648         test-select.h.
16649         * modules/select-tests (Files): Add tests/test-select.h.
16650         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16651         (my_select, main): New functions.
16652         * modules/pselect-tests (Files): Add tests/test-select.h,
16653         tests/macros.h, tests/signature.h.
16654         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16655         (configure.ac): Check for <sys/wait.h>.
16656
16657 2011-07-22  Bruno Haible  <bruno@clisp.org>
16658
16659         sys_select tests: Check the signature of FD_*.
16660         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16661         signature tests from here...
16662         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16663         here.
16664         * modules/sys_select-tests (Files): Add tests/signature.h.
16665
16666 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16667
16668         largefile: new module, replacing large-inode
16669         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16670         * MODULES.html.sh: Add largefile, remove large-inode.
16671         * modules/largefile, m4/largefile.m4: New files.
16672         * modules/large-inode, m4/large-inode.m4: Remove.
16673
16674         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16675         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16676         implementations that use only 32 bits to count blocks.
16677         On typical hosts with 1024-byte blocks, this fails with file
16678         systems as small as 4 TiB.  Problem reported by Herb Wartens
16679         <http://debbugs.gnu.org/9140> and this should also fix a similar
16680         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16681
16682         large-inode: New module
16683         * MODULES.html.sh: Add it.
16684         * modules/large-inode, m4/large-inode.m4: New files.
16685
16686         extensions: Enable extensions on MacOS X 10.5 and later.
16687         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16688
16689 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16690
16691         file-has-acl: use acl_extended_file_nofollow if available
16692         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16693         (acl_extended_file): New macro.
16694         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16695         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16696
16697 2011-07-21  Bruno Haible  <bruno@clisp.org>
16698
16699         Declare system functions in a way that works with C++.
16700         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16701         declare fdopendir as extern "C".
16702         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16703         declare frexpl as extern "C".
16704         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16705         declare gai_strerror as extern "C".
16706         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16707         programs, declare gai_strerror as extern "C".
16708         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16709         declare getlogin_r as extern "C".
16710         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16711         as extern "C".
16712         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16713         declare ldexpl as extern "C".
16714         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16715         as extern "C".
16716         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16717         program, declare getmntinfo as extern "C".
16718         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16719         stpncpy as extern "C".
16720         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16721         program, declare __xpg_strerror_r as extern "C".
16722         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16723         strndup as extern "C".
16724         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16725         declare memset and bzero as extern "C".
16726         Reported by Sam Steingold <sds@gnu.org>.
16727
16728 2011-07-12  Jim Meyering  <meyering@redhat.com>
16729
16730         maint.mk: prohibit inclusion of "verify.h" without use
16731         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16732
16733 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16734
16735         timer-time: A new module to check for timer_settime()
16736         * m4/timer_time.m4: Check for the posix function.
16737         * modules/timer-time: Add the new module.
16738         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16739         Mention it.
16740
16741 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16742             Bruno Haible  <bruno@clisp.org>
16743
16744         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16745         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16746         not defined, assume POSIX threads and look for pthread_sigmask in
16747         $LIBS, without changing $CPPFLAGS.
16748
16749 2011-07-19  Bruno Haible  <bruno@clisp.org>
16750
16751         strstr: Update cross-compilation guess.
16752         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16753         CPUs, guess no, in view of glibc
16754         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16755         Suggested by Eric Blake. Reported by Reuben Thomas.
16756
16757 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16758
16759         getopt-gnu: suppress core dumps from detection code
16760         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16761         to suppress core dumps that may well occur on glibc systems.
16762         * modules/getopt-gnu: Depend on nocrash.
16763
16764 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16765
16766         pthread_sigmask: ensure usleep is declared
16767         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16768         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16769
16770 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16771
16772         doc: Document NonStop portability issues.
16773         * doc/posix-functions/sigaction.texi (sigaction):
16774         * doc/posix-headers/signal.texi (signal.h):
16775         Document NonStop.  See Joachim Schmitz in
16776         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16777
16778 2011-07-15  Bruno Haible  <bruno@clisp.org>
16779
16780         ffsl, ffsll: Avoid unportable behaviour.
16781         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16782
16783 2011-07-15  Bruno Haible  <bruno@clisp.org>
16784
16785         ffs: More tests.
16786         * tests/test-ffs.c (NBITS): New macro.
16787         (main): Add more tests.
16788         * tests/test-ffsl.c (NBITS): New macro.
16789         (main): Add more tests.
16790         * tests/test-ffsll.c (NBITS): New macro.
16791         (main): Add more tests.
16792
16793 2011-07-15  Eric Blake  <eblake@redhat.com>
16794
16795         ffsl, ffsll: new modules
16796         * modules/ffsl: New file.
16797         * modules/ffsll: Likewise.
16798         * m4/ffsl.m4: Likewise.
16799         * m4/ffsll.m4: Likewise.
16800         * lib/ffsl.c: Likewise.
16801         * lib/ffsl.h: Likewise.
16802         * lib/ffsll.c: Likewise.
16803         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16804         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16805         * modules/string (Makefile.am): Substitute witnesses.
16806         * lib/strings.in.h (ffsl, ffsll): Declare.
16807         * modules/ffsl-tests: New test file.
16808         * modules/ffsll-tests: Likewise.
16809         * tests/test-ffsl.c: Likewise.
16810         * tests/test-ffsll.c: Likewise.
16811         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16812         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16813         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16814
16815         ffs: fix m4 prerequisite
16816         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16817
16818         ffs: avoid undefined behavior
16819         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16820         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16821         Reported by Bruno Haible.
16822
16823 2011-07-12  Bruno Haible  <bruno@clisp.org>
16824
16825         pthread_sigmask: Rely on module 'threadlib'.
16826         * modules/pthread_sigmask (Depends-on): Add threadlib.
16827         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16828         is defined.
16829
16830 2011-07-12  Bruno Haible  <bruno@clisp.org>
16831
16832         regex: Depend on module 'strcase'.
16833         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16834
16835 2011-07-12  Jim Meyering  <meyering@redhat.com>
16836
16837         warn-on-use: fix typo in file name
16838         * modules/snippet/warn-on-use (Files): Correct file name:
16839         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16840
16841 2011-07-12  Bruno Haible  <bruno@clisp.org>
16842
16843         strings: Document module.
16844         * doc/posix-headers/strings.texi: Mention module 'strings'.
16845
16846 2011-07-12  Bruno Haible  <bruno@clisp.org>
16847
16848         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16849         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16850         (Files, Makefile.am): Update.
16851         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16852         * modules/stdlib (Depends-on): Update.
16853
16854 2011-07-12  Bruno Haible  <bruno@clisp.org>
16855
16856         * NEWS: Mention the changes.
16857
16858         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16859         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16860         (Files, Makefile.am): Update.
16861         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16862         * modules/arpa_inet (Depends-on): Update.
16863         * modules/ctype (Depends-on): Update.
16864         * modules/dirent (Depends-on): Update.
16865         * modules/fcntl-h (Depends-on): Update.
16866         * modules/glob (Depends-on): Update.
16867         * modules/iconv-h (Depends-on): Update.
16868         * modules/inttypes-incomplete (Depends-on): Update.
16869         * modules/langinfo (Depends-on): Update.
16870         * modules/locale (Depends-on): Update.
16871         * modules/math (Depends-on): Update.
16872         * modules/netdb (Depends-on): Update.
16873         * modules/poll-h (Depends-on): Update.
16874         * modules/pty (Depends-on): Update.
16875         * modules/search (Depends-on): Update.
16876         * modules/signal (Depends-on): Update.
16877         * modules/spawn (Depends-on): Update.
16878         * modules/stdio (Depends-on): Update.
16879         * modules/stdlib (Depends-on): Update.
16880         * modules/string (Depends-on): Update.
16881         * modules/strings (Depends-on): Update.
16882         * modules/sys_file (Depends-on): Update.
16883         * modules/sys_ioctl (Depends-on): Update.
16884         * modules/sys_select (Depends-on): Update.
16885         * modules/sys_socket (Depends-on): Update.
16886         * modules/sys_stat (Depends-on): Update.
16887         * modules/sys_time (Depends-on): Update.
16888         * modules/sys_times (Depends-on): Update.
16889         * modules/sys_utsname (Depends-on): Update.
16890         * modules/sys_wait (Depends-on): Update.
16891         * modules/termios (Depends-on): Update.
16892         * modules/time (Depends-on): Update.
16893         * modules/unistd (Depends-on): Update.
16894         * modules/wchar (Depends-on): Update.
16895         * modules/wctype-h (Depends-on): Update.
16896         * MODULES.html.sh (Support for building libraries and executables):
16897         Update.
16898
16899         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16900         * modules/snippet/unused-parameter: Renamed from
16901         modules/unused-parameter.
16902         (Files, Makefile.am): Update.
16903         * build-aux/snippet/unused-parameter.h: Renamed from
16904         build-aux/unused-parameter.h.
16905         * modules/selinux-h (Depends-on): Update.
16906         * modules/unistr/base (Depends-on): Update.
16907         * MODULES.html.sh (Core language properties): Update.
16908
16909         Rename module 'link-warning' to 'snippet/link-warning'.
16910         * modules/snippet/link-warning: Renamed from modules/link-warning.
16911         (Files, Makefile.am): Update.
16912         * build-aux/snippet/link-warning.h: Renamed from
16913         build-aux/link-warning.h.
16914         * MODULES.html.sh (Support for building libraries and executables):
16915         Update.
16916
16917         Rename module 'c++defs' to 'snippet/c++defs'.
16918         * modules/snippet/c++defs: Renamed from modules/c++defs.
16919         (Files, Makefile.am): Update.
16920         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16921         * modules/arpa_inet (Depends-on): Update.
16922         * modules/ctype (Depends-on): Update.
16923         * modules/dirent (Depends-on): Update.
16924         * modules/fcntl-h (Depends-on): Update.
16925         * modules/glob (Depends-on): Update.
16926         * modules/iconv-h (Depends-on): Update.
16927         * modules/langinfo (Depends-on): Update.
16928         * modules/locale (Depends-on): Update.
16929         * modules/math (Depends-on): Update.
16930         * modules/netdb (Depends-on): Update.
16931         * modules/poll-h (Depends-on): Update.
16932         * modules/pty (Depends-on): Update.
16933         * modules/search (Depends-on): Update.
16934         * modules/signal (Depends-on): Update.
16935         * modules/spawn (Depends-on): Update.
16936         * modules/stdio (Depends-on): Update.
16937         * modules/stdlib (Depends-on): Update.
16938         * modules/string (Depends-on): Update.
16939         * modules/strings (Depends-on): Update.
16940         * modules/sys_ioctl (Depends-on): Update.
16941         * modules/sys_select (Depends-on): Update.
16942         * modules/sys_socket (Depends-on): Update.
16943         * modules/sys_stat (Depends-on): Update.
16944         * modules/sys_time (Depends-on): Update.
16945         * modules/sys_wait (Depends-on): Update.
16946         * modules/termios (Depends-on): Update.
16947         * modules/time (Depends-on): Update.
16948         * modules/unistd (Depends-on): Update.
16949         * modules/wchar (Depends-on): Update.
16950         * modules/wctype-h (Depends-on): Update.
16951
16952         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16953         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16954         (Files, Makefile.am): Update.
16955         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16956         * modules/argv-iter (Depends-on): Update.
16957         * modules/arpa_inet (Depends-on): Update.
16958         * modules/dirent (Depends-on): Update.
16959         * modules/fcntl-h (Depends-on): Update.
16960         * modules/fnmatch (Depends-on): Update.
16961         * modules/getopt-posix (Depends-on): Update.
16962         * modules/glob (Depends-on): Update.
16963         * modules/iconv-h (Depends-on): Update.
16964         * modules/inttypes-incomplete (Depends-on): Update.
16965         * modules/locale (Depends-on): Update.
16966         * modules/math (Depends-on): Update.
16967         * modules/netdb (Depends-on): Update.
16968         * modules/search (Depends-on): Update.
16969         * modules/signal (Depends-on): Update.
16970         * modules/spawn (Depends-on): Update.
16971         * modules/stdio (Depends-on): Update.
16972         * modules/stdlib (Depends-on): Update.
16973         * modules/string (Depends-on): Update.
16974         * modules/strings (Depends-on): Update.
16975         * modules/sys_socket (Depends-on): Update.
16976         * modules/sys_stat (Depends-on): Update.
16977         * modules/sys_time (Depends-on): Update.
16978         * modules/sys_times (Depends-on): Update.
16979         * modules/sys_utsname (Depends-on): Update.
16980         * modules/time (Depends-on): Update.
16981         * modules/unistd (Depends-on): Update.
16982         * modules/wchar (Depends-on): Update.
16983         * MODULES.html.sh (Support for building libraries and executables):
16984         Update.
16985
16986 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16987
16988         Improvements on _Noreturn and related modules.
16989
16990         modules/_Exit-tests: test _Noreturn too
16991         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16992         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16993         (main): Use them.
16994
16995         stdnoreturn, stdnoreturn-tests: remove modules
16996         They're not needed here and a bit premature for use elsewhere.  See
16997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16998         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16999         * tests/test-stdnoreturn.c: Remove files.
17000         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
17001         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
17002         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
17003         and using noreturn.
17004         * modules/openat, modules/sigpipe-die, modules/xalloc:
17005         * modules/xmemdup0, modules/xstrtol:
17006         Remove dependency on stdnoreturn.
17007
17008         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
17009         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
17010         Reparenthesize to avoid GCC warning.
17011         Support Microsoft's syntax.
17012         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
17013
17014         _Noreturn-tests: remove module
17015         * modules/_Noreturn-tests: Remove.
17016         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
17017         * tests/test-_Noreturn.c: Remove.
17018         * tests/test-stdnoreturn.c: Merge from the old
17019         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
17020
17021 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
17022
17023         _Noreturn, stdnoreturn, and related modules.
17024
17025         * top/maint.mk: Adjust to new noreturn support.
17026         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
17027         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
17028
17029         xalloc: use stdnoreturn.h
17030         * lib/xalloc.h: Include <stdnoreturn.h>.
17031         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17032         * modules/xalloc (Depends-on): Add stdnoreturn.
17033
17034         xstrtol: use stdnoreturn.h
17035         * lib/xstrtol.h: Include <stdnoreturn.h>.
17036         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17037         * modules/xstrtol (Depends-on): Add stdnoreturn.
17038
17039         xmemdup0: use stdnoreturn.h
17040         * lib/xmemdup0.h: Include <stdnoreturn.h>.
17041         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17042         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
17043
17044         sigpipe-die: use stdnoreturn.h
17045         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
17046         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17047         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
17048
17049         openat: use stdnoreturn.h
17050         * lib/openat.h: Include <stdnoreturn.h>.
17051         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17052         * modules/openat (Depends-on): Add stdnoreturn.
17053
17054         * lib/openat-die.c (openat_save_fail): Modernize comment.
17055
17056         * lib/xalloc-die.c (xalloc_die): Modernize comment.
17057
17058         * lib/glthread/thread.h: Modernize comment.
17059
17060         obstack: use _Noreturn
17061         * lib/obstack.c (__attribute__): Remove macro.
17062         (print_and_abort): Use _Noreturn.
17063
17064         c-stack: use _Noreturn
17065         * lib/c-stack.c (die, overflow_handler, segv_handler):
17066         Use _Noreturn rather than __attribute__((noreturn)).
17067
17068         argmatch-tests, exclude_tests: use _Noreturn
17069         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
17070         Remove.
17071         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
17072
17073         stdlib: use _Noreturn
17074         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
17075         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
17076         * modules/stdlib (Depends-on): Add _Noreturn.
17077         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
17078
17079         stdnoreturn-tests: new module
17080         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
17081
17082         stdnoreturn: new module
17083         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
17084         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
17085
17086         _Noreturn-tests: new module
17087         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
17088
17089         _Noreturn: new module
17090         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
17091         New section, mentioning it.
17092         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
17093
17094         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
17095
17096 2011-07-11  Eric Blake  <eblake@redhat.com>
17097
17098         ffs: new module
17099         * modules/ffs: New file.
17100         * m4/ffs.m4: Likewise.
17101         * lib/ffs.c: Likewise.
17102         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
17103         * modules/strings (Makefile.am): Substitute witness.
17104         (Depends-on): Add c++defs.
17105         * lib/strings.in.h (ffs): Declare.
17106         * modules/ffs-tests: New test file.
17107         * tests/test-ffs.c: Test new module.
17108         * MODULES.html.sh (Integer arithmetic functions): Mention it.
17109         * doc/posix-functions/ffs.texi (ffs): Likewise.
17110
17111         regex: avoid compiler warning
17112         * lib/regex.c (includes): Include <strings.h>, for use of
17113         strcasecmp in regcomp.c.
17114         Reported by Joachim Schmitz.
17115
17116 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17117
17118         stdint: respect system's intmax_t if INTMAX_MAX
17119         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
17120         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
17121         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
17122         long but int64_t is long long, and where we will clash with the
17123         system intmax_t if we override it.  See
17124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
17125         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
17126         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
17127         similarly for UINTMAX_C.
17128
17129 2011-07-08  Bruno Haible  <bruno@clisp.org>
17130
17131         pthread_sigmask tests: Avoid a compiler warning.
17132         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
17133         non-zero.
17134
17135         sigprocmask tests: A better way to avoid a compiler warning.
17136         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
17137         (main): Complain if system() returns non-zero.
17138         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
17139
17140 2011-07-08  Bruno Haible  <bruno@clisp.org>
17141
17142         pthread_sigmask: Work around IRIX bug.
17143         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
17144         bug.
17145         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
17146         there may be unblocked pending signals.
17147         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
17148
17149 2011-07-08  Bruno Haible  <bruno@clisp.org>
17150
17151         pthread_sigmask: Work around Cygwin bug.
17152         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
17153         bug.
17154         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
17155         the system's pthread_sigmask function.
17156         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
17157
17158 2011-07-08  Bruno Haible  <bruno@clisp.org>
17159
17160         pthread_sigmask: Work around bug in single-threaded implementation.
17161         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
17162         FreeBSD, HP-UX, Solaris bug.
17163         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
17164         * lib/pthread_sigmask.c: Include <stddef.h>.
17165         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
17166         the system's pthread_sigmask function.
17167         * modules/pthread_sigmask (configure.ac): Invoke
17168         gl_PREREQ_PTHREAD_SIGMASK.
17169         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
17170         HP-UX, Solaris.
17171
17172 2011-07-08  Eric Blake  <eblake@redhat.com>
17173
17174         test-sigprocmask: avoid compiler warning
17175         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
17176         * tests/test-sigprocmask.c (main): Use it to silence warning.
17177         Reported by Jim Meyering.
17178
17179         test-snprintf: avoid compiler warning
17180         * tests/test-snprintf.c (main): Avoid shadowed declaration.
17181         * tests/test-vsnprintf.c (main): Likewise.
17182         Reported by Jim Meyering.
17183
17184 2011-07-08  Bruno Haible  <bruno@clisp.org>
17185
17186         Tests for module 'pthread_sigmask'.
17187         * modules/pthread_sigmask-tests: New file.
17188         * tests/test-pthread_sigmask1.c: New file, based on
17189         tests/test-sigprocmask.c.
17190         * tests/test-pthread_sigmask2.c: New file.
17191
17192 2011-07-08  Jim Meyering  <meyering@redhat.com>
17193
17194         test-getopt.h: avoid warning about an unused variable
17195         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
17196
17197 2011-07-07  Jim Meyering  <meyering@redhat.com>
17198
17199         maint: reduce list of files exempt from sc_prohibit_leading_TABs
17200         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
17201         now that it no longer contains leading TABs.
17202         Remove unused "url=FIXME" statement.
17203
17204 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17205
17206         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
17207         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17208         When gl_THREADLIB is not in use, assume that the POSIX sematics
17209         are desired.  This is better for Emacs, which uses POSIX semantics
17210         on GNUish and/or POSIXish platforms, and does not use threads at
17211         all otherwise.
17212
17213         pthread_sigmask: fix typo when testing for libraries
17214         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17215         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
17216
17217 2011-07-08  Eric Blake  <eblake@redhat.com>
17218
17219         fts: introduce FTS_NOATIME
17220         * lib/fts_.h (FTS_NOATIME): New bit flag.
17221         (FTS_OPTIONMASK): Adjust.
17222         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
17223         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
17224
17225 2011-07-08  Bruno Haible  <bruno@clisp.org>
17226
17227         Tests for module 'thread'.
17228         * modules/thread-tests: New file.
17229         * tests/test-thread_self.c: New file.
17230         * tests/test-thread_create.cc: New file.
17231
17232 2011-07-08  Bruno Haible  <bruno@clisp.org>
17233
17234         thread: Avoid gcc warnings when using gl_thread_self().
17235         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
17236         'void *'.
17237         (gl_thread_self_pointer): Update.
17238
17239 2011-07-07  Bruno Haible  <bruno@clisp.org>
17240
17241         signal-c++-tests: Check declaration of pthread_sigmask.
17242         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
17243         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
17244         $(LIB_PTHREAD_SIGMASK).
17245
17246 2011-07-07  Bruno Haible  <bruno@clisp.org>
17247
17248         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
17249         * lib/signal.in.h (pthread_sigmask): Override if
17250         REPLACE_PTHREAD_SIGMASK is 1.
17251         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17252         REPLACE_PTHREAD_SIGMASK.
17253         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
17254         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
17255         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
17256         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17257         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
17258
17259 2011-07-07  Bruno Haible  <bruno@clisp.org>
17260
17261         pthread_sigmask: Ensure declaration in <signal.h>.
17262         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
17263         include <pthread.h>.
17264         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
17265         problem.
17266
17267 2011-07-07  Bruno Haible  <bruno@clisp.org>
17268
17269         pthread_sigmask: Document the module.
17270         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
17271
17272 2011-07-07  Bruno Haible  <bruno@clisp.org>
17273
17274         pthread_sigmask: Follow gnulib conventions.
17275         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
17276         gl_PTHREAD_SIGMASK.
17277         * modules/pthread_sigmask (configure.ac): Update.
17278
17279 2011-07-07  Bruno Haible  <bruno@clisp.org>
17280
17281         pthread_sigmask: Make declaration C++ safe.
17282         * lib/signal.in.h: In two special conditions, just do an #include_next.
17283         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17284         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
17285         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17286         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17287         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
17288         not REPLACE_PTHREAD_MASK.
17289         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
17290         not REPLACE_PTHREAD_MASK.
17291         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17292
17293 2011-07-07  Bruno Haible  <bruno@clisp.org>
17294
17295         pthread_sigmask: Fix return value.
17296         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
17297         * lib/pthread_sigmask.c: New file.
17298         * modules/pthread_sigmask (Files): Add it.
17299         (configure.ac): Invoke AC_LIBOBJ.
17300
17301 2011-07-07  Eric Blake  <eblake@redhat.com>
17302
17303         getopt: more portable argv creation
17304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
17305         const, use char arrays rather than strings.
17306         Suggested by Paul Eggert.
17307
17308 2011-07-07  Bruno Haible  <bruno@clisp.org>
17309
17310         Tests for module 'sigprocmask'.
17311         * modules/sigprocmask-tests: New file.
17312         * tests/test-sigprocmask.c: New file.
17313
17314 2011-07-07  Bruno Haible  <bruno@clisp.org>
17315
17316         float tests: Tweak.
17317         * tests/test-float.c (main): Tweak skip message.
17318
17319 2011-07-07  Eric Blake  <eblake@redhat.com>
17320
17321         getopt: avoid compiler warning during configure
17322         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
17323         assigning string literals to non-const pointer.
17324
17325         getopt-gnu: avoid crash in glibc getopt
17326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
17327         * tests/test-getopt.h (test_getopt): Enhance test.
17328         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17329         * doc/posix-functions/getopt.texi (getopt): Document it.
17330         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17331         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17332         Likewise.
17333
17334 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17335
17336         getopt: handle W; without long options in getopt [BZ #12922]
17337         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
17338         but no long options are defined, just return 'W'.
17339
17340 2011-07-07  Bruno Haible  <bruno@clisp.org>
17341
17342         Avoid literal tabs.
17343         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
17344         variable containing a tab instead of a literal tab.
17345         Reported by Jim Meyering.
17346
17347 2011-07-07  Bruno Haible  <bruno@clisp.org>
17348
17349         Comments.
17350         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
17351
17352 2011-07-06  Bruno Haible  <bruno@clisp.org>
17353
17354         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
17355         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
17356         <winsock2.h>.
17357         (rpl_fd_isset, FD_ISSET): New definitions, copied from
17358         lib/sys_socket.in.h.
17359         (close, gethostname): Hide declarations from <winsock2.h>.
17360         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17361         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
17362         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
17363         (select): Don't override if gnulib's <sys/select.h> was already
17364         included.
17365         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17366         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17367         setsockopt, shutdown, select): Tweak indentation.
17368
17369 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17370
17371         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
17372         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
17373         in an application that does not use the sys_select module.
17374
17375 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
17376
17377         poll: do not return 0 on timeout=-1
17378         * lib/poll.c: Loop with yield if no events occurred.
17379
17380 2011-07-06  Eric Blake  <eblake@redhat.com>
17381
17382         pthread_sigmask: always replace when not using pthread
17383         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
17384         replacement when using some threading other than pthread.  Fix
17385         logic bug.
17386
17387 2011-07-06  Bruno Haible  <bruno@clisp.org>
17388
17389         Comments.
17390         * m4/printf.m4: Update comments about mingw.
17391
17392 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17393
17394         sys_select: define sigset_t more portably
17395         * lib/sys_select.in.h: Always include <sys/types.h>, since
17396         we now need sigset_t and mingw defines it there.
17397         Include <signal.h> before split inclusion guard, to avoid
17398         mishaps on Solaris, whose <signal.h> eventually includes us.
17399         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
17400         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
17401         which come from ...
17402         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
17403         gl_CHECK_TYPE_SIGSET_T.
17404         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
17405         does the real work.
17406         * modules/sys_select (Depends-on): Add 'signal'.
17407
17408         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
17409         Suggested by Bruno Haible.
17410
17411         pselect: Use pthread_sigmask, not sigprocmask.
17412         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
17413         multithreaded apps better than sigprocmask does.
17414         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
17415         sigprocmask directly.
17416
17417 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17418
17419         * lib/pselect.c (pselect): Use plain name, without "rpl_".
17420         Don't #undef,  since we don't need any underlying pselect.
17421         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
17422         (Depends-on): Add select.
17423         (Link): Add $(LIBSOCKET).
17424         These changes suggested by Bruno Haible.
17425
17426         pselect: document better
17427         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17428         * doc/posix-functions/pselect.texi (pselect): Document new module.
17429
17430         pthread_sigmask: new module
17431         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17432         * doc/posix-functions/pthread_sigmask.texi: Document new module.
17433         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
17434         This is done only as a macro; I don't know how well that'll
17435         work for C++.  Move <sys/types.h> include before the include_next,
17436         to avoid mishap on Solaris.
17437         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
17438         * modules/signal (Makefile.am): Substitute the check's results.
17439         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
17440
17441         test-pselect: new module
17442         * modules/pselect-tests, tests/test-pselect.c: New files.
17443         * tests/test-select.c, tests/test-sys_select-c++.cc:
17444         If TEST_PSELECT is defined, test pselect instead of testing select.
17445
17446         * tests/test-sys_select.c (sigset_t): Test for it, too.
17447         Suggested by Bruno Haible.
17448
17449 2011-07-05  Eric Blake  <eblake@redhat.com>
17450
17451         snprintf: guarantee %1$d, for libintl
17452         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
17453         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
17454         * doc/posix-functions/snprintf.texi (snprintf): Update.
17455         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17456         * tests/test-snprintf.c (main): Enhance test.
17457         * tests/test-vsnprintf.c (main): Likewise.
17458
17459 2011-07-05  Jim Meyering  <meyering@redhat.com>
17460
17461         maint: exempt stdio-read.c and stdio-write.c from the cppi check
17462         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
17463         per Bruno's request, to accommodate this idiom (no space after "#")
17464         even when the function is inside an #if block:
17465         char *
17466         gets (char *s)
17467         #undef gets
17468         {
17469           ...
17470         }
17471
17472 2011-07-04  Jim Meyering  <meyering@redhat.com>
17473
17474         maint: indent with spaces, not TABs, and add a rule to check this
17475         * tests/test-userspec.c: Indent with spaces, not TABs.
17476         * tests/test-argp.c: Likewise.
17477         * tests/test-c-stack2.sh: Likewise.
17478         * tests/test-parse-duration.sh: Likewise
17479         * m4/strtod.m4: Likewise.
17480         * m4/alloca.m4: Likewise.
17481         * m4/pselect.m4: Likewise.
17482         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
17483
17484 2011-07-03  Jim Meyering  <meyering@redhat.com>
17485
17486         maint.mk: correct omissions in prohibit_argmatch_without_use check
17487         This rule would mistakenly report that argmatch.h is included without
17488         use even when both the argmatch and invalid_arg macro were used.
17489         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
17490         of argmatch and invalid_arg.
17491
17492 2011-07-03  Bruno Haible  <bruno@clisp.org>
17493
17494         Comments about EINTR.
17495         * lib/safe-read.h: Explain the purpose of this module.
17496         * lib/safe-write.h: Likewise.
17497         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
17498         module.
17499         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
17500         module.
17501         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17502
17503 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17504
17505         xnanosleep: Rewrite to use new dtotimespec module.
17506         It has the conversion code that used to be in xnanosleep.
17507         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17508         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17509         (TIME_T_MAX): Remove.
17510         (xnanosleep): Rewrite in terms of dtotimespec.
17511         * modules/xnanosleep (Depends-on): Add dtotimespec.
17512         Remove intprops, stdbool.
17513
17514         timespec-add, timespec-sub: new modules
17515         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17516         * lib/timespec-add.c, lib/timespec-sub.c:
17517         * modules/timespec-add, modules/timespec-sub: New files.
17518
17519         dtotimespec: new module
17520         * lib/timespec.h (dtotimespec): New decl.
17521         * lib/dtotimespec.c, modules/dtotimespec: New files.
17522
17523         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17524
17525         pselect: new module
17526         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17527         (pselect): New decls.
17528         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17529         since the standard pselect decl uses 'restrict'.
17530         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17531         HAVE_PSELECT, REPLACE_PSELECT.
17532         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17533         HAVE_PSELECT, REPLACE_PSELECT.
17534         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17535
17536         sys_select: don't depend on sys_socket
17537         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17539         This fix works on GNU and GNU-like platforms, but has not been tested
17540         on native Windows.
17541         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17542         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17543         gl_HEADER_SYS_SOCKET.
17544         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17545         gl_PREREQ_SYS_H_WINSOCK2.
17546
17547 2011-06-29  Eric Blake  <eblake@redhat.com>
17548
17549         pipe2: fix C89 compile problem
17550         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17551         Reported by Bruno Haible.
17552
17553         pipe, pipe2: don't corrupt fd on error
17554         * lib/pipe.c (pipe): Leave fd unchanged on error.
17555         * lib/pipe2.c (pipe2): Likewise.
17556         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17557         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17558
17559 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17560
17561         mmap-anon: do not use regular expressions inadvertently
17562         * m4/mmap-anon.m4: Remove trailing period from strings sought
17563         in the output.
17564
17565 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17566
17567         nanosleep: fix integer overflow problem
17568         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17569         arithmetic wraps around on overflow.
17570
17571         nanosleep: simplify carrying
17572         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17573         first call to the underyling nanosleep, not for the last one.
17574         This doesn't fix any bugs, but it simplifies the computation of
17575         the remaining delay.  Found while auditing integer overflow issues.
17576
17577         dup2: remove test for existence of fcntl
17578         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17579         "#if HAVE_FCNTL", in the configure-time test program.
17580         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17581         and therefore speeds up "configure" a bit.  Found while
17582         adding the dup2 module to Emacs.
17583
17584 2011-06-24  Eric Blake  <eblake@redhat.com>
17585
17586         maint.mk: enhance useless header checks
17587         * top/maint.mk (_sc_header_without_use): Check both include
17588         styles.
17589         (sc_prohibit_assert_without_use)
17590         (sc_prohibit_close_stream_without_use)
17591         (sc_prohibit_getopt_without_use)
17592         (sc_prohibit_quotearg_without_use)
17593         (sc_prohibit_quote_without_use)
17594         (sc_prohibit_long_options_without_use)
17595         (sc_prohibit_inttostr_without_use)
17596         (sc_prohibit_ignore_value_without_use)
17597         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17598         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17599         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17600         (sc_prohibit_hash_pjw_without_use)
17601         (sc_prohibit_safe_read_without_use)
17602         (sc_prohibit_argmatch_without_use)
17603         (sc_prohibit_canonicalize_without_use)
17604         (sc_prohibit_root_dev_ino_without_use)
17605         (sc_prohibit_openat_without_use)
17606         (sc_prohibit_c_ctype_without_use)
17607         (sc_prohibit_signal_without_use)
17608         (sc_prohibit_stdio--_without_use)
17609         (sc_prohibit_stdio-safer_without_use)
17610         (sc_prohibit_strings_without_use)
17611         (sc_prohibit_intprops_without_use)
17612         (sc_prohibit_stddef_without_use)
17613         (sc_prohibit_xfreopen_without_use): Update clients.
17614
17615 2011-06-24  Jim Meyering  <meyering@redhat.com>
17616
17617         syntax-check: keep one maint.mk rule in sync with its header
17618         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17619         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17620         I prefer to avoid temporary files here, so use <(...), but that
17621         is not supported by /bin/sh, so...
17622         (SHELL): Define to /bin/bash.
17623
17624 2011-06-24  Eric Blake  <eblake@redhat.com>
17625
17626         maint.mk: update sc_prohibit_intprops_without_use
17627         * top/maint.mk (_intprops_names): Match recent changes.
17628
17629 2011-06-24  Bruno Haible  <bruno@clisp.org>
17630
17631         strerror-override: No-op tweak.
17632         * lib/strerror-override.h (strerror_override): Reorder conditions,
17633         for consistency with lib/strerror-override.c.
17634
17635 2011-06-23  Eric Blake  <eblake@redhat.com>
17636
17637         maint.mk: test further PATH_MAX issues
17638         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17639         (sc_prohibit_path_max_allocation): ...and also test alloca.
17640         Suggested by Jim Meyering.
17641
17642 2011-06-22  Eric Blake  <eblake@redhat.com>
17643
17644         maint.mk: add syntax-check to avoid char[PATH_MAX]
17645         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17646
17647         stat: be robust to PATH_MAX definition
17648         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17649         * modules/stat (Depends-on): Add verify.
17650
17651         link: work around IRIX bug
17652         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17653         * lib/link.c (rpl_link): Work around it.
17654         * tests/test-link.h (test_link): Enhance test.
17655         * doc/posix-functions/link.texi (link): Document the bug.
17656
17657         getopt: silence clang warning
17658         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17659         dereference.
17660         Reported by Gustavo Martin Domato.
17661
17662 2011-06-22  Jim Meyering  <meyering@redhat.com>
17663
17664         bootstrap: do not insert a blank line into each .gitignore file
17665         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17666
17667 2011-06-21  Eric Blake  <eblake@redhat.com>
17668
17669         perror: test for output mismatch
17670         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17671         perror on IRIX.
17672
17673         strerror_r: fix OpenBSD behavior on out-of-range
17674         * lib/strerror_r.c (strerror_r): Always use maximal string.
17675         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17676
17677         strerror_r: fix OpenBSD behavior on 0
17678         * lib/strerror-override.c (strerror_override): Also override 0
17679         when needed.
17680         * lib/strerror-override.h (strerror_override): Likewise.
17681         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17682         earlier.
17683         * lib/strerror_r.c (strerror_r): Likewise.
17684         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17685         behavior...
17686         (gl_FUNC_STRERROR_0): ...into new macro.
17687         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17688         is overridden.
17689         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17690         * modules/strerror-override (Files): Add strerror.m4.
17691         (configure.ac): Also provide override for 0 when needed.
17692         * doc/posix-functions/strerror.texi (strerror): Document this.
17693         * doc/posix-functions/perror.texi (perror): Likewise.
17694
17695         perror: adjust array size
17696         * modules/perror (Depends-on): Add strerror-override.
17697         * lib/perror.c (perror): Use it to avoid magic number.
17698
17699         strerror-override: reduce size
17700         * lib/strerror-override.c (strerror_override): Use fewer lines.
17701
17702 2011-06-20  Bruno Haible  <bruno@clisp.org>
17703
17704         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17705         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17706
17707 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17708
17709         alloca: port to compilers that can optimize like GCC 4.6.0
17710         * lib/alloca.c (find_stack_direction): New signature, taken from
17711         Autoconf git.  This works with GCC 4.6.0.  This code should never
17712         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17713         be used with other compilers that optimize as well as GCC 4.6.0 does.
17714         (alloca): Adjust to new signature.
17715         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17716         New macro, which patches Autoconf in a similar way.
17717
17718         c-stack: stop worrying about stack direction
17719         * lib/c-stack.c (find_stack_direction): Remove.
17720         (segv_handler): Don't worry about stack direction growth, as it's
17721         too much of a pain to configure this correctly, given how compilers
17722         are optimizing-away our stack-growth detection code.  Instead, assume
17723         that any access to just before or just after the stack is OK.
17724         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17725         Don't require AC_FUNC_ALLOCA; no longer needed.
17726
17727 2011-06-20  Eric Blake  <eblake@redhat.com>
17728
17729         test-stat: don't allocate PATH_MAX bytes
17730         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17731         PATH_MAX-sized buffer.
17732         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17733         * modules/stat-tests (Depends-on): Likewise.
17734         * tests/test-fstatat.c (includes): Drop pathmax.h.
17735         * tests/test-stat.c (includes): Likewise.
17736         Reported by Bruno Haible.
17737
17738 2011-06-20  Bruno Haible  <bruno@clisp.org>
17739
17740         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17741         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17742         * lib/float.c: New file.
17743         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17744         REPLACE_FLOAT_LDBL.
17745         * modules/float (Files): Add lib/float.c.
17746         (configure.ac): Invoke AC_LIBOBJ.
17747         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17748
17749 2011-06-20  Bruno Haible  <bruno@clisp.org>
17750
17751         Tests for module 'float'.
17752         * modules/float-tests: New file.
17753         * tests/test-float.c: New file.
17754
17755 2011-06-19  Bruno Haible  <bruno@clisp.org>
17756
17757         isinf: Coding style.
17758         * lib/isinf.c: Use GNU coding style.
17759
17760 2011-06-19  Bruno Haible  <bruno@clisp.org>
17761
17762         linkat test: Avoid test failure on AIX 7.1.
17763         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17764         * tests/test-link.h (test_link): Likewise.
17765
17766 2011-06-19  Bruno Haible  <bruno@clisp.org>
17767
17768         pread test: Avoid test failure on OpenBSD 4.9.
17769         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17770
17771 2011-06-19  Bruno Haible  <bruno@clisp.org>
17772
17773         sprintf-posix: Fix test failure on AIX 7.1.
17774         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17775         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17776         on AIX.
17777         * doc/posix-functions/fprintf.texi: Likewise.
17778         * doc/posix-functions/printf.texi: Likewise.
17779         * doc/posix-functions/snprintf.texi: Likewise.
17780         * doc/posix-functions/sprintf.texi: Likewise.
17781         * doc/posix-functions/vdprintf.texi: Likewise.
17782         * doc/posix-functions/vfprintf.texi: Likewise.
17783         * doc/posix-functions/vprintf.texi: Likewise.
17784         * doc/posix-functions/vsnprintf.texi: Likewise.
17785         * doc/posix-functions/vsprintf.texi: Likewise.
17786
17787 2011-06-19  Bruno Haible  <bruno@clisp.org>
17788
17789         roundl-ieee: Fix test failure on AIX 7.1.
17790         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17791         * doc/posix-functions/roundl.texi: Mention problem with negative
17792         arguments.
17793
17794 2011-06-19  Bruno Haible  <bruno@clisp.org>
17795
17796         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17797         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17798         * doc/posix-functions/round.texi: Mention problem with negative
17799         arguments.
17800         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17801
17802 2011-06-19  Bruno Haible  <bruno@clisp.org>
17803
17804         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17805         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17806         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17807         * doc/posix-functions/roundf.texi: Mention problem with negative
17808         arguments.
17809         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17810
17811 2011-06-19  Bruno Haible  <bruno@clisp.org>
17812
17813         ceilf-ieee: Work around bug on MacOS X 10.5.
17814         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17815
17816         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17817         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17818         IEEE compliant, avoid compiler optimizations.
17819         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17820         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17821         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17822         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17823         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17824         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17825         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17826         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17827         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17828         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17829
17830 2011-06-19  Bruno Haible  <bruno@clisp.org>
17831
17832         ceilf-ieee: Work around bug on AIX 7.1.
17833         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17834         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17835
17836 2011-06-19  Bruno Haible  <bruno@clisp.org>
17837
17838         ceil-ieee: Work around bug on AIX 7.1.
17839         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17840         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17841
17842 2011-06-18  Bruno Haible  <bruno@clisp.org>
17843
17844         fsync test: Avoid test failure on MacOS X and AIX.
17845         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17846         EINVAL.
17847
17848 2011-06-18  Bruno Haible  <bruno@clisp.org>
17849
17850         openat, fdopendir tests: Fix link errors.
17851         * modules/openat-tests (Depends-on): Add progname.
17852         * modules/fdopendir-tests (Depends-on): Likewise.
17853         * tests/test-fchownat.c: Include progname.h.
17854         (main): Call set_program_name.
17855         * tests/test-fstatat.c: Include progname.h.
17856         (main): Call set_program_name.
17857         * tests/test-mkdirat.c: Include progname.h.
17858         (main): Call set_program_name.
17859         * tests/test-openat.c: Include progname.h.
17860         (main): Call set_program_name.
17861         * tests/test-unlinkat.c: Include progname.h.
17862         (main): Call set_program_name.
17863         * tests/test-fdopendir.c: Include progname.h.
17864         (main): Call set_program_name.
17865
17866 2011-06-18  Bruno Haible  <bruno@clisp.org>
17867
17868         Doc update.
17869         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17870         HP-UX.
17871         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17872
17873 2011-06-18  Bruno Haible  <bruno@clisp.org>
17874
17875         getcwd tests: Avoid compilation error on HP-UX 11.31.
17876         * modules/getcwd-tests (Depends-on): Add pathmax.
17877         * tests/test-getcwd.c: Include pathmax.h.
17878
17879 2011-06-18  Bruno Haible  <bruno@clisp.org>
17880
17881         isfinite, isinf: Fix link error on AIX 6 and 7.
17882         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17883         needed, also test the macro with a 'float' argument.
17884         * m4/isinf.m4 (gl_ISINF): Likewise.
17885
17886 2011-06-18  Bruno Haible  <bruno@clisp.org>
17887
17888         getloadavg: Don't clobber LIBS. Regression from previous commit.
17889         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17890         AC_CHECK_LIB from here...
17891         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17892         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17893         gl_func_getloadavg_done.
17894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17895
17896 2011-06-18  Bruno Haible  <bruno@clisp.org>
17897
17898         clean-temp: Improve documentation.
17899         * lib/clean-temp.h: Explain better how to use this module.
17900         Reported by John Darrington <john@darrington.wattle.id.au>.
17901
17902 2011-06-17  Bruno Haible  <bruno@clisp.org>
17903
17904         pread, pwrite: Avoid cc warning on AIX.
17905         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17906         (pwrite): Likewise.
17907
17908 2011-06-17  Bruno Haible  <bruno@clisp.org>
17909
17910         spawn-pipe tests: Fix link error.
17911         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17912         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17913
17914 2011-06-17  Bruno Haible  <bruno@clisp.org>
17915
17916         Tests: Remove unnecessary dependency.
17917         * modules/canonicalize-tests (Depends-on): Remove progname.
17918         * modules/chown-tests (Depends-on): Likewise.
17919         * modules/dirname-tests (Depends-on): Likewise.
17920         * modules/fdopendir-tests (Depends-on): Likewise.
17921         * modules/fdutimensat-tests (Depends-on): Likewise.
17922         * modules/hash-tests (Depends-on): Likewise.
17923         * modules/lchown-tests (Depends-on): Likewise.
17924         * modules/linkat-tests (Depends-on): Likewise.
17925         * modules/renameat-tests (Depends-on): Likewise.
17926         * modules/spawn-pipe-tests (Depends-on): Likewise.
17927         * modules/utimensat-tests (Depends-on): Likewise.
17928
17929 2011-06-17  Bruno Haible  <bruno@clisp.org>
17930
17931         spawn-pipe tests: Fix link error.
17932         * tests/test-spawn-pipe-child.c: Undefine fflush.
17933
17934 2011-06-17  Bruno Haible  <bruno@clisp.org>
17935
17936         Fix tests link errors.
17937         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17938         * modules/chown-tests (Makefile.am): Don't link test-chown with
17939         LIBINTL.
17940         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17941         LIBINTL.
17942         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17943         LIBINTL.
17944         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17945         LIBINTL.
17946
17947 2011-06-16  Bruno Haible  <bruno@clisp.org>
17948
17949         crypto/gc-sha1: Fix recent regression.
17950         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17951         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17952
17953         crypto/gc-md5: Fix recent regression.
17954         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17955
17956         crypto/gc-md4: Fix recent regression.
17957         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17958         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17959
17960         crypto/gc-arctwo: Fix recent regression.
17961         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17962         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17963
17964         crypto/gc-rijndael: Fix recent regression.
17965         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17966         (configure.ac): Invoke AC_LIBOBJ here.
17967         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17969
17970         crypto/gc-hmac-sha1: Fix recent regression.
17971         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17972         (configure.ac): Invoke AC_LIBOBJ here.
17973         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17974         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17975
17976         crypto/gc-hmac-md5: Fix recent regression.
17977         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17978         (configure.ac): Invoke AC_LIBOBJ here.
17979         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17980         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17981
17982         crypto/gc-des: Fix recent regression.
17983         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17984         (configure.ac): Invoke AC_LIBOBJ here.
17985         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17986         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17987
17988         crypto/gc-arcfour: Fix recent regression.
17989         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17990         (configure.ac): Invoke AC_LIBOBJ here.
17991         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17992         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17993
17994 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17995
17996         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17997         After the 2011-05-21 change, this macro requires
17998         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17999         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18000
18001 2011-06-16  Bruno Haible  <bruno@clisp.org>
18002
18003         fprintftime: Move AC_LIBOBJ invocations to module description.
18004         * m4/fprintftime.m4: Remove file.
18005         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
18006         (configure.ac): Remove gl_FPRINTFTIME call.
18007         (Makefile.am): Augment lib_SOURCES.
18008         Reported by Jim Meyering.
18009
18010 2011-06-16  Bruno Haible  <bruno@clisp.org>
18011
18012         tmpfile-safer: Finish 2011-05-23 commit.
18013         * m4/stdio-safer.m4: Really remove file.
18014         Reported by Jim Meyering.
18015
18016 2011-06-16  Bruno Haible  <bruno@clisp.org>
18017
18018         syntax-check: Fix typo.
18019         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
18020         printf-posix.m4.
18021         Reported by Jim Meyering.
18022
18023 2011-06-13  Jim Meyering  <meyering@redhat.com>
18024
18025         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
18026         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
18027
18028 2011-05-23  Bruno Haible  <bruno@clisp.org>
18029
18030         yesno: Move AC_LIBOBJ invocations to module description.
18031         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
18032         * modules/yesno (Makefile.am): Augment lib_SOURCES.
18033
18034 2011-05-23  Bruno Haible  <bruno@clisp.org>
18035
18036         xstrtol: Move AC_LIBOBJ invocations to module description.
18037         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
18038         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
18039
18040 2011-05-23  Bruno Haible  <bruno@clisp.org>
18041
18042         xstrtold: Move AC_LIBOBJ invocations to module description.
18043         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
18044         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
18045
18046 2011-05-23  Bruno Haible  <bruno@clisp.org>
18047
18048         xstrtod: Move AC_LIBOBJ invocations to module description.
18049         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
18050         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
18051
18052 2011-05-23  Bruno Haible  <bruno@clisp.org>
18053
18054         xnanosleep: Move AC_LIBOBJ invocations to module description.
18055         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
18056         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
18057
18058 2011-05-23  Bruno Haible  <bruno@clisp.org>
18059
18060         xgetcwd: Move AC_LIBOBJ invocations to module description.
18061         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
18062         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
18063
18064 2011-05-23  Bruno Haible  <bruno@clisp.org>
18065
18066         xalloc: Move AC_LIBOBJ invocations to module description.
18067         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
18068         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
18069
18070 2011-05-23  Bruno Haible  <bruno@clisp.org>
18071
18072         write-any-file: Move AC_LIBOBJ invocations to module description.
18073         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
18074         invocation.
18075         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
18076
18077 2011-05-23  Bruno Haible  <bruno@clisp.org>
18078
18079         utimens: Move AC_LIBOBJ invocations to module description.
18080         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
18081         * modules/utimens (Makefile.am): Augment lib_SOURCES.
18082
18083 2011-05-23  Bruno Haible  <bruno@clisp.org>
18084
18085         utimecmp: Move AC_LIBOBJ invocations to module description.
18086         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
18087         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
18088
18089 2011-05-23  Bruno Haible  <bruno@clisp.org>
18090
18091         userspec: Move AC_LIBOBJ invocations to module description.
18092         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
18093         * modules/userspec (Makefile.am): Augment lib_SOURCES.
18094
18095 2011-05-23  Bruno Haible  <bruno@clisp.org>
18096
18097         unlinkdir: Move AC_LIBOBJ invocations to module description.
18098         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
18099         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
18100
18101 2011-05-23  Bruno Haible  <bruno@clisp.org>
18102
18103         unistd-safer: Move AC_LIBOBJ invocations to module description.
18104         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
18105         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
18106
18107 2011-05-23  Bruno Haible  <bruno@clisp.org>
18108
18109         tempname: Move AC_LIBOBJ invocations to module description.
18110         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
18111         * modules/tempname (Makefile.am): Augment lib_SOURCES.
18112
18113 2011-05-23  Bruno Haible  <bruno@clisp.org>
18114
18115         strftime: Move AC_LIBOBJ invocations to module description.
18116         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
18117         * modules/strftime (Makefile.am): Augment lib_SOURCES.
18118
18119 2011-05-23  Bruno Haible  <bruno@clisp.org>
18120
18121         stdlib-safer: Move AC_LIBOBJ invocations to module description.
18122         * m4/stdlib-safer.m4: Remove file.
18123         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
18124         (configure.ac): Remove gl_STDLIB_SAFER call.
18125         (Makefile.am): Augment lib_SOURCES.
18126
18127 2011-05-23  Bruno Haible  <bruno@clisp.org>
18128
18129         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
18130         * m4/stdio-safer.m4: Remove file.
18131         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
18132         (configure.ac): Remove gl_TMPFILE_SAFER call.
18133         (Makefile.am): Augment lib_SOURCES.
18134
18135 2011-05-23  Bruno Haible  <bruno@clisp.org>
18136
18137         popen-safer: Move AC_LIBOBJ invocations to module description.
18138         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
18139         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
18140         (configure.ac): Remove gl_POPEN_SAFER call.
18141         (Makefile.am): Augment lib_SOURCES.
18142
18143 2011-05-23  Bruno Haible  <bruno@clisp.org>
18144
18145         freopen-safer: Move AC_LIBOBJ invocations to module description.
18146         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
18147         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
18148         (configure.ac): Remove gl_FREOPEN_SAFER call.
18149         (Makefile.am): Augment lib_SOURCES.
18150
18151 2011-05-23  Bruno Haible  <bruno@clisp.org>
18152
18153         fopen-safer: Move AC_LIBOBJ invocations to module description.
18154         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
18155         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
18156         (configure.ac): Remove gl_FOPEN_SAFER call.
18157         (Makefile.am): Augment lib_SOURCES.
18158
18159 2011-05-23  Bruno Haible  <bruno@clisp.org>
18160
18161         crypto/sha512: Move AC_LIBOBJ invocations to module description.
18162         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
18163         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
18164
18165 2011-05-23  Bruno Haible  <bruno@clisp.org>
18166
18167         crypto/sha256: Move AC_LIBOBJ invocations to module description.
18168         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
18169         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
18170
18171 2011-05-23  Bruno Haible  <bruno@clisp.org>
18172
18173         crypto/sha1: Move AC_LIBOBJ invocations to module description.
18174         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
18175         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
18176
18177 2011-05-23  Bruno Haible  <bruno@clisp.org>
18178
18179         settime: Move AC_LIBOBJ invocations to module description.
18180         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
18181         * modules/settime (Makefile.am): Augment lib_SOURCES.
18182
18183 2011-05-23  Bruno Haible  <bruno@clisp.org>
18184
18185         savedir: Move AC_LIBOBJ invocations to module description.
18186         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
18187         * modules/savedir (Makefile.am): Augment lib_SOURCES.
18188
18189 2011-05-23  Bruno Haible  <bruno@clisp.org>
18190
18191         save-cwd: Move AC_LIBOBJ invocations to module description.
18192         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
18193         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
18194
18195 2011-05-23  Bruno Haible  <bruno@clisp.org>
18196
18197         same: Move AC_LIBOBJ invocations to module description.
18198         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
18199         * modules/same (Makefile.am): Augment lib_SOURCES.
18200
18201 2011-05-23  Bruno Haible  <bruno@clisp.org>
18202
18203         safe-write: Move AC_LIBOBJ invocations to module description.
18204         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
18205         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
18206         instead of gl_SAFE_WRITE.
18207         (Makefile.am): Augment lib_SOURCES.
18208
18209 2011-05-23  Bruno Haible  <bruno@clisp.org>
18210
18211         safe-read: Move AC_LIBOBJ invocations to module description.
18212         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
18213         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
18214         of gl_SAFE_READ.
18215         (Makefile.am): Augment lib_SOURCES.
18216
18217 2011-05-23  Bruno Haible  <bruno@clisp.org>
18218
18219         safe-alloc: Move AC_LIBOBJ invocations to module description.
18220         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
18221         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
18222
18223 2011-05-23  Bruno Haible  <bruno@clisp.org>
18224
18225         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
18226         * m4/rijndael.m4: Remove file.
18227         * modules/crypto/rijndael (Files): Remove it.
18228         (configure.ac): Remove gl_RIJNDAEL call.
18229         (Makefile.am): Augment lib_SOURCES.
18230
18231 2011-05-23  Bruno Haible  <bruno@clisp.org>
18232
18233         readtokens: Move AC_LIBOBJ invocations to module description.
18234         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
18235         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
18236
18237 2011-05-23  Bruno Haible  <bruno@clisp.org>
18238
18239         read-file: Move AC_LIBOBJ invocations to module description.
18240         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
18241         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
18242         of gl_FUNC_READ_FILE.
18243         (Makefile.am): Augment lib_SOURCES.
18244
18245 2011-05-23  Bruno Haible  <bruno@clisp.org>
18246
18247         quotearg: Move AC_LIBOBJ invocations to module description.
18248         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
18249         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
18250
18251 2011-05-23  Bruno Haible  <bruno@clisp.org>
18252
18253         quote: Move AC_LIBOBJ invocations to module description.
18254         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
18255         * modules/quote (Makefile.am): Augment lib_SOURCES.
18256
18257 2011-05-23  Bruno Haible  <bruno@clisp.org>
18258
18259         posixver: Move AC_LIBOBJ invocations to module description.
18260         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
18261         * modules/posixver (Makefile.am): Augment lib_SOURCES.
18262
18263 2011-05-23  Bruno Haible  <bruno@clisp.org>
18264
18265         posixtm: Move AC_LIBOBJ invocations to module description.
18266         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
18267         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
18268
18269 2011-05-23  Bruno Haible  <bruno@clisp.org>
18270
18271         physmem: Move AC_LIBOBJ invocations to module description.
18272         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
18273         * modules/physmem (Makefile.am): Augment lib_SOURCES.
18274
18275 2011-05-23  Bruno Haible  <bruno@clisp.org>
18276
18277         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
18278         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
18279         invocation.
18280         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
18281
18282 2011-05-23  Bruno Haible  <bruno@clisp.org>
18283
18284         mpsort: Move AC_LIBOBJ invocations to module description.
18285         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
18286         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
18287
18288 2011-05-23  Bruno Haible  <bruno@clisp.org>
18289
18290         modechange: Move AC_LIBOBJ invocations to module description.
18291         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
18292         * modules/modechange (Makefile.am): Augment lib_SOURCES.
18293
18294 2011-05-23  Bruno Haible  <bruno@clisp.org>
18295
18296         mkdir-p: Move AC_LIBOBJ invocations to module description.
18297         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
18298         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
18299
18300 2011-05-23  Bruno Haible  <bruno@clisp.org>
18301
18302         mkancesdirs: Move AC_LIBOBJ invocations to module description.
18303         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
18304         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
18305
18306 2011-05-23  Bruno Haible  <bruno@clisp.org>
18307
18308         mgetgroups: Move AC_LIBOBJ invocations to module description.
18309         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
18310         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
18311
18312 2011-05-23  Bruno Haible  <bruno@clisp.org>
18313
18314         memxor: Move AC_LIBOBJ invocations to module description.
18315         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
18316         * modules/memxor (Makefile.am): Augment lib_SOURCES.
18317
18318 2011-05-23  Bruno Haible  <bruno@clisp.org>
18319
18320         memcoll: Move AC_LIBOBJ invocations to module description.
18321         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
18322         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
18323
18324 2011-05-23  Bruno Haible  <bruno@clisp.org>
18325
18326         memcasecmp: Move AC_LIBOBJ invocations to module description.
18327         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
18328         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
18329
18330 2011-05-23  Bruno Haible  <bruno@clisp.org>
18331
18332         crypto/md5: Move AC_LIBOBJ invocations to module description.
18333         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
18334         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
18335
18336 2011-05-23  Bruno Haible  <bruno@clisp.org>
18337
18338         crypto/md4: Move AC_LIBOBJ invocations to module description.
18339         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
18340         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
18341
18342 2011-05-23  Bruno Haible  <bruno@clisp.org>
18343
18344         crypto/md2: Move AC_LIBOBJ invocations to module description.
18345         * m4/md2.m4: Remove file.
18346         * modules/crypto/md2 (Files): Remove it.
18347         (configure.ac): Remove gl_MD2 call.
18348         (Makefile.am): Augment lib_SOURCES.
18349
18350 2011-05-23  Bruno Haible  <bruno@clisp.org>
18351
18352         long-options: Move AC_LIBOBJ invocations to module description.
18353         * m4/long-options.m4: Remove file.
18354         * modules/long-options (Files): Remove it.
18355         (configure.ac): Remove gl_LONG_OPTIONS call.
18356         (Makefile.am): Augment lib_SOURCES.
18357
18358 2011-05-23  Bruno Haible  <bruno@clisp.org>
18359
18360         i-ring: Move AC_LIBOBJ invocations to module description.
18361         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
18362         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
18363
18364 2011-05-23  Bruno Haible  <bruno@clisp.org>
18365
18366         idcache: Move AC_LIBOBJ invocations to module description.
18367         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
18368         * modules/idcache (Makefile.am): Augment lib_SOURCES.
18369
18370 2011-05-23  Bruno Haible  <bruno@clisp.org>
18371
18372         human: Move AC_LIBOBJ invocations to module description.
18373         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
18374         * modules/human (Makefile.am): Augment lib_SOURCES.
18375
18376 2011-05-23  Bruno Haible  <bruno@clisp.org>
18377
18378         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
18379         * m4/hmac-sha1.m4: Remove file.
18380         * modules/crypto/hmac-sha1 (Files): Remove it.
18381         (configure.ac): Remove gl_HMAC_SHA1 call.
18382         (Makefile.am): Augment lib_SOURCES.
18383
18384 2011-05-23  Bruno Haible  <bruno@clisp.org>
18385
18386         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
18387         * m4/hmac-md5.m4: Remove file.
18388         * modules/crypto/hmac-md5 (Files): Remove it.
18389         (configure.ac): Remove gl_HMAC_MD5 call.
18390         (Makefile.am): Augment lib_SOURCES.
18391
18392 2011-05-23  Bruno Haible  <bruno@clisp.org>
18393
18394         hash: Move AC_LIBOBJ invocations to module description.
18395         * m4/hash.m4: Remove file.
18396         * modules/hash (Files): Remove it.
18397         (configure.ac): Remove gl_HASH call.
18398         (Makefile.am): Augment lib_SOURCES.
18399
18400 2011-05-23  Bruno Haible  <bruno@clisp.org>
18401
18402         hard-locale: Move AC_LIBOBJ invocations to module description.
18403         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
18404         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
18405
18406 2011-05-23  Bruno Haible  <bruno@clisp.org>
18407
18408         getugroups: Move AC_LIBOBJ invocations to module description.
18409         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
18410         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
18411
18412 2011-05-23  Bruno Haible  <bruno@clisp.org>
18413
18414         gettime: Move AC_LIBOBJ invocations to module description.
18415         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
18416         * modules/gettime (Makefile.am): Augment lib_SOURCES.
18417
18418 2011-05-23  Bruno Haible  <bruno@clisp.org>
18419
18420         getndelim2: Move AC_LIBOBJ invocations to module description.
18421         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
18422         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
18423
18424 2011-05-23  Bruno Haible  <bruno@clisp.org>
18425
18426         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
18427         * m4/gc-pbkdf2-sha1.m4: Remove file.
18428         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
18429         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
18430         (Makefile.am): Augment lib_SOURCES.
18431
18432 2011-05-23  Bruno Haible  <bruno@clisp.org>
18433
18434         fts: Move AC_LIBOBJ invocations to module description.
18435         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
18436         * modules/fts (configure.ac): ... to here.
18437
18438 2011-05-23  Bruno Haible  <bruno@clisp.org>
18439
18440         file-type: Move AC_LIBOBJ invocations to module description.
18441         * m4/file-type.m4: Remove file.
18442         * modules/file-type (Files): Remove it.
18443         (configure.ac): Remove gl_FILE_TYPE call.
18444         (Makefile.am): Augment lib_SOURCES.
18445
18446 2011-05-23  Bruno Haible  <bruno@clisp.org>
18447
18448         filenamecat*: Respect rules for use of AC_LIBOBJ.
18449         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
18450         Remove AC_LIBOBJ invocation.
18451         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
18452         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
18453
18454 2011-05-23  Bruno Haible  <bruno@clisp.org>
18455
18456         filemode: Move AC_LIBOBJ invocations to module description.
18457         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
18458         * modules/filemode (Makefile.am): Augment lib_SOURCES.
18459
18460 2011-05-23  Bruno Haible  <bruno@clisp.org>
18461
18462         openat-safer: Move AC_LIBOBJ invocations to module description.
18463         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
18464         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
18465
18466 2011-05-23  Bruno Haible  <bruno@clisp.org>
18467
18468         fcntl-safer: Move AC_LIBOBJ invocations to module description.
18469         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
18470         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
18471
18472 2011-05-23  Bruno Haible  <bruno@clisp.org>
18473
18474         exclude: Move AC_LIBOBJ invocations to module description.
18475         * m4/exclude.m4: Remove file.
18476         * modules/exclude (Files): Remove it.
18477         (configure.ac): Remove gl_EXCLUDE call.
18478         (Makefile.am): Augment lib_SOURCES.
18479
18480 2011-05-23  Bruno Haible  <bruno@clisp.org>
18481
18482         dirname*: Respect rules for use of AC_LIBOBJ.
18483         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
18484         invocations.
18485         * modules/dirname (Makefile.am): Augment lib_SOURCES.
18486         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
18487
18488 2011-05-23  Bruno Haible  <bruno@clisp.org>
18489
18490         dirent-safer: Move AC_LIBOBJ invocations to module description.
18491         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
18492         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
18493
18494 2011-05-23  Bruno Haible  <bruno@clisp.org>
18495
18496         crypto/des: Move AC_LIBOBJ invocations to module description.
18497         * m4/des.m4: Remove file.
18498         * modules/crypto/des (Files): Remove it.
18499         (configure.ac): Remove gl_DES call.
18500         (Makefile.am): Augment lib_SOURCES.
18501
18502 2011-05-23  Bruno Haible  <bruno@clisp.org>
18503
18504         cycle-check: Move AC_LIBOBJ invocations to module description.
18505         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18506         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18507
18508 2011-05-23  Bruno Haible  <bruno@clisp.org>
18509
18510         c-strtold: Move AC_LIBOBJ invocations to module description.
18511         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18512         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18513
18514 2011-05-23  Bruno Haible  <bruno@clisp.org>
18515
18516         c-strtod: Move AC_LIBOBJ invocations to module description.
18517         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18518         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18519
18520 2011-05-23  Bruno Haible  <bruno@clisp.org>
18521
18522         crc: Move AC_LIBOBJ invocations to module description.
18523         * m4/crc.m4: Remove file.
18524         * modules/crc (Files): Remove it.
18525         (configure.ac): Remove gl_CRC call.
18526         (Makefile.am): Augment lib_SOURCES.
18527
18528 2011-05-23  Bruno Haible  <bruno@clisp.org>
18529
18530         close-stream: Move AC_LIBOBJ invocations to module description.
18531         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18532         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18533
18534 2011-05-23  Bruno Haible  <bruno@clisp.org>
18535
18536         closeout: Move AC_LIBOBJ invocations to module description.
18537         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18538         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18539
18540 2011-05-23  Bruno Haible  <bruno@clisp.org>
18541
18542         closein: Move AC_LIBOBJ invocations to module description.
18543         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18544         * modules/closein (Makefile.am): Augment lib_SOURCES.
18545
18546 2011-05-23  Bruno Haible  <bruno@clisp.org>
18547
18548         cloexec: Move AC_LIBOBJ invocations to module description.
18549         * m4/cloexec.m4: Remove file.
18550         * modules/cloexec (Files): Remove it.
18551         (configure.ac): Remove gl_CLOEXEC call.
18552         (Makefile.am): Augment lib_SOURCES.
18553
18554 2011-05-23  Bruno Haible  <bruno@clisp.org>
18555
18556         check-version: Move AC_LIBOBJ invocations to module description.
18557         * m4/check-version.m4: Remove file.
18558         * modules/check-version (Files): Remove it.
18559         (configure.ac): Remove gl_CHECK_VERSION call.
18560         (Makefile.am): Augment lib_SOURCES.
18561
18562 2011-05-23  Bruno Haible  <bruno@clisp.org>
18563
18564         chdir-safer: Move AC_LIBOBJ invocations to module description.
18565         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18566         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18567
18568 2011-05-23  Bruno Haible  <bruno@clisp.org>
18569
18570         canonicalize: Move AC_LIBOBJ invocations to module description.
18571         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18572         AC_LIBOBJ invocation.
18573         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18574
18575 2011-05-23  Bruno Haible  <bruno@clisp.org>
18576
18577         canon-host: Move AC_LIBOBJ invocations to module description.
18578         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18579         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18580         instead of gl_CANON_HOST.
18581         (Makefile.am): Augment lib_SOURCES.
18582
18583 2011-05-23  Bruno Haible  <bruno@clisp.org>
18584
18585         backupfile: Move AC_LIBOBJ invocations to module description.
18586         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18587         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18588
18589 2011-05-23  Bruno Haible  <bruno@clisp.org>
18590
18591         argmatch: Move AC_LIBOBJ invocations to module description.
18592         * m4/argmatch.m4: Remove file.
18593         * modules/argmatch (Files): Remove it.
18594         (configure.ac): Remove gl_ARGMATCH call.
18595         (Makefile.am): Augment lib_SOURCES.
18596
18597 2011-05-23  Bruno Haible  <bruno@clisp.org>
18598
18599         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18600         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18601         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18602
18603 2011-05-23  Bruno Haible  <bruno@clisp.org>
18604
18605         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18606         * m4/arcfour.m4: Remove file.
18607         * modules/crypto/arcfour (Files): Remove it.
18608         (configure.ac): Remove gl_ARCFOUR call.
18609         (Makefile.am): Augment lib_SOURCES.
18610
18611 2011-05-22  Bruno Haible  <bruno@clisp.org>
18612
18613         write: Move AC_LIBOBJ invocations to module description.
18614         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18615         * modules/write (configure.ac): ... to here.
18616
18617 2011-05-22  Bruno Haible  <bruno@clisp.org>
18618
18619         wmemset: Move AC_LIBOBJ invocations to module description.
18620         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18621         here...
18622         * modules/wmemset (configure.ac): ... to here.
18623
18624 2011-05-22  Bruno Haible  <bruno@clisp.org>
18625
18626         wmemmove: Move AC_LIBOBJ invocations to module description.
18627         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18628         here...
18629         * modules/wmemmove (configure.ac): ... to here.
18630
18631 2011-05-22  Bruno Haible  <bruno@clisp.org>
18632
18633         wmemcpy: Move AC_LIBOBJ invocations to module description.
18634         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18635         here...
18636         * modules/wmemcpy (configure.ac): ... to here.
18637
18638 2011-05-22  Bruno Haible  <bruno@clisp.org>
18639
18640         wmemcmp: Move AC_LIBOBJ invocations to module description.
18641         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18642         here...
18643         * modules/wmemcmp (configure.ac): ... to here.
18644
18645 2011-05-22  Bruno Haible  <bruno@clisp.org>
18646
18647         wmemchr: Move AC_LIBOBJ invocations to module description.
18648         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18649         here...
18650         * modules/wmemchr (configure.ac): ... to here.
18651
18652 2011-05-22  Bruno Haible  <bruno@clisp.org>
18653
18654         wcswidth: Move AC_LIBOBJ invocations to module description.
18655         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18656         here...
18657         * modules/wcswidth (configure.ac): ... to here.
18658
18659 2011-05-22  Bruno Haible  <bruno@clisp.org>
18660
18661         wcwidth: Respect rules for use of AC_LIBOBJ.
18662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18663         invocation from here...
18664         * modules/wcwidth (configure.ac): ... to here.
18665         (Depends-on): Update conditions.
18666
18667 2011-05-22  Bruno Haible  <bruno@clisp.org>
18668
18669         wctype: Move AC_LIBOBJ invocations to module description.
18670         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18671         invocation from here...
18672         * modules/wctype (configure.ac): ... to here.
18673         (Depends-on): Update conditions.
18674
18675 2011-05-22  Bruno Haible  <bruno@clisp.org>
18676
18677         wctrans: Move AC_LIBOBJ invocations to module description.
18678         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18679         invocation from here...
18680         * modules/wctrans (configure.ac): ... to here.
18681
18682 2011-05-22  Bruno Haible  <bruno@clisp.org>
18683
18684         wctomb: Move AC_LIBOBJ invocations to module description.
18685         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18686         invocations from here...
18687         * modules/wctomb (configure.ac): ... to here.
18688
18689 2011-05-22  Bruno Haible  <bruno@clisp.org>
18690
18691         wctob: Move AC_LIBOBJ invocations to module description.
18692         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18693         gl_PREREQ_WCTOB invocations from here...
18694         * modules/wctob (configure.ac): ... to here.
18695         (Depends-on): Update conditions.
18696
18697 2011-05-22  Bruno Haible  <bruno@clisp.org>
18698
18699         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18700         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18701         here...
18702         * modules/wcsxfrm (configure.ac): ... to here.
18703
18704 2011-05-22  Bruno Haible  <bruno@clisp.org>
18705
18706         wcstok: Move AC_LIBOBJ invocations to module description.
18707         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18708         * modules/wcstok (configure.ac): ... to here.
18709
18710 2011-05-22  Bruno Haible  <bruno@clisp.org>
18711
18712         wcsstr: Move AC_LIBOBJ invocations to module description.
18713         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18714         * modules/wcsstr (configure.ac): ... to here.
18715
18716 2011-05-22  Bruno Haible  <bruno@clisp.org>
18717
18718         wcsspn: Move AC_LIBOBJ invocations to module description.
18719         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18720         * modules/wcsspn (configure.ac): ... to here.
18721
18722 2011-05-22  Bruno Haible  <bruno@clisp.org>
18723
18724         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18725         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18726         gl_PREREQ_WCSRTOMBS invocations from here...
18727         * modules/wcsrtombs (configure.ac): ... to here.
18728
18729 2011-05-22  Bruno Haible  <bruno@clisp.org>
18730
18731         wcsrchr: Move AC_LIBOBJ invocations to module description.
18732         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18733         here...
18734         * modules/wcsrchr (configure.ac): ... to here.
18735
18736 2011-05-22  Bruno Haible  <bruno@clisp.org>
18737
18738         wcspbrk: Move AC_LIBOBJ invocations to module description.
18739         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18740         here...
18741         * modules/wcspbrk (configure.ac): ... to here.
18742
18743 2011-05-22  Bruno Haible  <bruno@clisp.org>
18744
18745         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18746         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18747         gl_PREREQ_WCSNRTOMBS invocations from here...
18748         * modules/wcsnrtombs (configure.ac): ... to here.
18749
18750 2011-05-22  Bruno Haible  <bruno@clisp.org>
18751
18752         wcsnlen: Move AC_LIBOBJ invocations to module description.
18753         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18754         here...
18755         * modules/wcsnlen (configure.ac): ... to here.
18756
18757 2011-05-22  Bruno Haible  <bruno@clisp.org>
18758
18759         wcsncpy: Move AC_LIBOBJ invocations to module description.
18760         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18761         here...
18762         * modules/wcsncpy (configure.ac): ... to here.
18763
18764 2011-05-22  Bruno Haible  <bruno@clisp.org>
18765
18766         wcsncmp: Move AC_LIBOBJ invocations to module description.
18767         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18768         here...
18769         * modules/wcsncmp (configure.ac): ... to here.
18770
18771 2011-05-22  Bruno Haible  <bruno@clisp.org>
18772
18773         wcsncat: Move AC_LIBOBJ invocations to module description.
18774         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18775         here...
18776         * modules/wcsncat (configure.ac): ... to here.
18777
18778 2011-05-22  Bruno Haible  <bruno@clisp.org>
18779
18780         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18781         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18782         from here...
18783         * modules/wcsncasecmp (configure.ac): ... to here.
18784
18785 2011-05-22  Bruno Haible  <bruno@clisp.org>
18786
18787         wcslen: Move AC_LIBOBJ invocations to module description.
18788         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18789         * modules/wcslen (configure.ac): ... to here.
18790
18791 2011-05-22  Bruno Haible  <bruno@clisp.org>
18792
18793         wcsdup: Move AC_LIBOBJ invocations to module description.
18794         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18795         * modules/wcsdup (configure.ac): ... to here.
18796
18797 2011-05-22  Bruno Haible  <bruno@clisp.org>
18798
18799         wcscspn: Move AC_LIBOBJ invocations to module description.
18800         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18801         here...
18802         * modules/wcscspn (configure.ac): ... to here.
18803
18804 2011-05-22  Bruno Haible  <bruno@clisp.org>
18805
18806         wcscpy: Move AC_LIBOBJ invocations to module description.
18807         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18808         * modules/wcscpy (configure.ac): ... to here.
18809
18810 2011-05-22  Bruno Haible  <bruno@clisp.org>
18811
18812         wcscoll: Move AC_LIBOBJ invocations to module description.
18813         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18814         here...
18815         * modules/wcscoll (configure.ac): ... to here.
18816
18817 2011-05-22  Bruno Haible  <bruno@clisp.org>
18818
18819         wcscmp: Move AC_LIBOBJ invocations to module description.
18820         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18821         * modules/wcscmp (configure.ac): ... to here.
18822
18823 2011-05-22  Bruno Haible  <bruno@clisp.org>
18824
18825         wcschr: Move AC_LIBOBJ invocations to module description.
18826         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18827         * modules/wcschr (configure.ac): ... to here.
18828
18829 2011-05-22  Bruno Haible  <bruno@clisp.org>
18830
18831         wcscat: Move AC_LIBOBJ invocations to module description.
18832         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18833         * modules/wcscat (configure.ac): ... to here.
18834
18835 2011-05-22  Bruno Haible  <bruno@clisp.org>
18836
18837         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18838         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18839         here...
18840         * modules/wcscasecmp (configure.ac): ... to here.
18841
18842 2011-05-22  Bruno Haible  <bruno@clisp.org>
18843
18844         wcrtomb: Move AC_LIBOBJ invocations to module description.
18845         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18846         invocations from here...
18847         * modules/wcrtomb (configure.ac): ... to here.
18848
18849 2011-05-22  Bruno Haible  <bruno@clisp.org>
18850
18851         wcpncpy: Move AC_LIBOBJ invocations to module description.
18852         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18853         here...
18854         * modules/wcpncpy (configure.ac): ... to here.
18855
18856 2011-05-22  Bruno Haible  <bruno@clisp.org>
18857
18858         wcpcpy: Move AC_LIBOBJ invocations to module description.
18859         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18860         * modules/wcpcpy (configure.ac): ... to here.
18861
18862 2011-05-22  Bruno Haible  <bruno@clisp.org>
18863
18864         waitpid: Move AC_LIBOBJ invocations to module description.
18865         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18866         invocation from here...
18867         * modules/waitpid (configure.ac): ... to here.
18868
18869 2011-05-22  Bruno Haible  <bruno@clisp.org>
18870
18871         utimensat: Move AC_LIBOBJ invocations to module description.
18872         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18873         here...
18874         * modules/utimensat (configure.ac): ... to here.
18875
18876 2011-05-22  Bruno Haible  <bruno@clisp.org>
18877
18878         usleep: Move AC_LIBOBJ invocations to module description.
18879         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18880         here...
18881         * modules/usleep (configure.ac): ... to here.
18882
18883 2011-05-22  Bruno Haible  <bruno@clisp.org>
18884
18885         unlockpt: Move AC_LIBOBJ invocations to module description.
18886         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18887         gl_PREREQ_UNLOCKPT invocations from here...
18888         * modules/unlockpt (configure.ac): ... to here.
18889
18890 2011-05-22  Bruno Haible  <bruno@clisp.org>
18891
18892         unlink: Respect rules for use of AC_LIBOBJ.
18893         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18894         * modules/unlink (configure.ac): ... to here.
18895
18896 2011-05-22  Bruno Haible  <bruno@clisp.org>
18897
18898         uname: Move AC_LIBOBJ invocations to module description.
18899         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18900         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18901         here...
18902         * modules/uname (configure.ac): ... to here.
18903
18904 2011-05-22  Bruno Haible  <bruno@clisp.org>
18905
18906         ttyname_r: Move AC_LIBOBJ invocations to module description.
18907         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18908         gl_PREREQ_TTYNAME_R invocations from here...
18909         * modules/ttyname_r (configure.ac): ... to here.
18910
18911 2011-05-22  Bruno Haible  <bruno@clisp.org>
18912
18913         tsearch: Move AC_LIBOBJ invocations to module description.
18914         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18915         invocations from here...
18916         * modules/tsearch (configure.ac): ... to here.
18917
18918 2011-05-22  Bruno Haible  <bruno@clisp.org>
18919
18920         towctrans: Move AC_LIBOBJ invocations to module description.
18921         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18922         AC_LIBOBJ invocation from here...
18923         * modules/towctrans (configure.ac): ... to here.
18924
18925 2011-05-22  Bruno Haible  <bruno@clisp.org>
18926
18927         tmpfile: Move AC_LIBOBJ invocations to module description.
18928         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18929         invocations from here...
18930         * modules/tmpfile (configure.ac): ... to here.
18931
18932 2011-05-22  Bruno Haible  <bruno@clisp.org>
18933
18934         times: Move AC_LIBOBJ invocations to module description.
18935         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18936         * modules/times (configure.ac): ... to here.
18937
18938 2011-05-22  Bruno Haible  <bruno@clisp.org>
18939
18940         time_r: Move AC_LIBOBJ invocations to module description.
18941         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18942         invocations from here...
18943         * modules/time_r (configure.ac): ... to here.
18944
18945 2011-05-22  Bruno Haible  <bruno@clisp.org>
18946
18947         timegm: Move AC_LIBOBJ invocations to module description.
18948         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18949         invocations from here...
18950         * modules/timegm (configure.ac): ... to here.
18951
18952 2011-05-22  Bruno Haible  <bruno@clisp.org>
18953
18954         tcgetsid: Move AC_LIBOBJ invocations to module description.
18955         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18956         and gl_PREREQ_TCGETSID invocations from here...
18957         * modules/tcgetsid (configure.ac): ... to here.
18958         (Depends-on): Update conditions.
18959
18960 2011-05-22  Bruno Haible  <bruno@clisp.org>
18961
18962         symlinkat: Move AC_LIBOBJ invocations to module description.
18963         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18964         here...
18965         * modules/symlinkat (configure.ac): ... to here.
18966
18967 2011-05-22  Bruno Haible  <bruno@clisp.org>
18968
18969         symlink: Move AC_LIBOBJ invocations to module description.
18970         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18971         here...
18972         * modules/symlink (configure.ac): ... to here.
18973
18974 2011-05-22  Bruno Haible  <bruno@clisp.org>
18975
18976         strverscmp: Move AC_LIBOBJ invocations to module description.
18977         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18978         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18979         from here...
18980         * modules/strverscmp (configure.ac): ... to here.
18981
18982 2011-05-22  Bruno Haible  <bruno@clisp.org>
18983
18984         strtok_r: Move AC_LIBOBJ invocations to module description.
18985         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18986         and gl_PREREQ_STRTOK_R invocations from here...
18987         * modules/strtok_r (configure.ac): ... to here.
18988         (Depends-on): Update conditions.
18989
18990 2011-05-22  Bruno Haible  <bruno@clisp.org>
18991
18992         strtoumax: Move AC_LIBOBJ invocations to module description.
18993         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18994         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18995         from here...
18996         * modules/strtoumax (configure.ac): ... to here.
18997
18998 2011-05-22  Bruno Haible  <bruno@clisp.org>
18999
19000         strtoimax: Move AC_LIBOBJ invocations to module description.
19001         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
19002         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
19003         from here...
19004         * modules/strtoimax (configure.ac): ... to here.
19005
19006 2011-05-22  Bruno Haible  <bruno@clisp.org>
19007
19008         strtoull: Move AC_LIBOBJ invocations to module description.
19009         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
19010         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
19011         from here...
19012         * modules/strtoull (configure.ac): ... to here.
19013
19014 2011-05-22  Bruno Haible  <bruno@clisp.org>
19015
19016         strtoll: Move AC_LIBOBJ invocations to module description.
19017         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
19018         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
19019         here...
19020         * modules/strtoll (configure.ac): ... to here.
19021
19022 2011-05-22  Bruno Haible  <bruno@clisp.org>
19023
19024         strtoul: Move AC_LIBOBJ invocations to module description.
19025         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
19026         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
19027         * modules/strtoul (configure.ac): ... to here.
19028
19029 2011-05-22  Bruno Haible  <bruno@clisp.org>
19030
19031         strtol: Move AC_LIBOBJ invocations to module description.
19032         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
19033         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
19034         * modules/strtol (configure.ac): ... to here.
19035
19036 2011-05-22  Bruno Haible  <bruno@clisp.org>
19037
19038         strtod: Move AC_LIBOBJ invocations to module description.
19039         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
19040         invocations from here...
19041         * modules/strtod (configure.ac): ... to here.
19042
19043 2011-05-22  Bruno Haible  <bruno@clisp.org>
19044
19045         strstr*: Move AC_LIBOBJ invocations to module description.
19046         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
19047         invocations from here...
19048         * modules/strstr-simple (configure.ac): ... to here.
19049         * modules/strstr (configure.ac): ... and here.
19050
19051 2011-05-22  Bruno Haible  <bruno@clisp.org>
19052
19053         strsignal: Move AC_LIBOBJ invocations to module description.
19054         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
19055         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
19056         * modules/strsignal (configure.ac): ... to here.
19057         (Depends-on): Update conditions.
19058
19059 2011-05-22  Bruno Haible  <bruno@clisp.org>
19060
19061         strsep: Move AC_LIBOBJ invocations to module description.
19062         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
19063         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
19064         here...
19065         * modules/strsep (configure.ac): ... to here.
19066
19067 2011-05-22  Bruno Haible  <bruno@clisp.org>
19068
19069         strptime: Move AC_LIBOBJ invocations to module description.
19070         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
19071         gl_PREREQ_STRPTIME invocations from here...
19072         * modules/strptime (configure.ac): ... to here.
19073
19074 2011-05-22  Bruno Haible  <bruno@clisp.org>
19075
19076         strpbrk: Move AC_LIBOBJ invocations to module description.
19077         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
19078         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
19079         here...
19080         * modules/strpbrk (configure.ac): ... to here.
19081
19082 2011-05-22  Bruno Haible  <bruno@clisp.org>
19083
19084         strnlen: Move AC_LIBOBJ invocations to module description.
19085         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
19086         invocations from here...
19087         * modules/strnlen (configure.ac): ... to here.
19088
19089 2011-05-22  Bruno Haible  <bruno@clisp.org>
19090
19091         strndup: Move AC_LIBOBJ invocations to module description.
19092         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
19093         invocations from here...
19094         * modules/strndup (configure.ac): ... to here.
19095         (Depends-on): Update conditions.
19096
19097 2011-05-22  Bruno Haible  <bruno@clisp.org>
19098
19099         strncat: Move AC_LIBOBJ invocations to module description.
19100         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
19101         invocations from here...
19102         * modules/strncat (configure.ac): ... to here.
19103
19104 2011-05-22  Bruno Haible  <bruno@clisp.org>
19105
19106         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
19107         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
19108         invocations from here...
19109         * modules/strdup (configure.ac): ... to here.
19110         * modules/strdup-posix (configure.ac): ... and here.
19111
19112 2011-05-22  Bruno Haible  <bruno@clisp.org>
19113
19114         strcspn: Move AC_LIBOBJ invocations to module description.
19115         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
19116         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
19117         here...
19118         * modules/strcspn (configure.ac): ... to here.
19119
19120 2011-05-22  Bruno Haible  <bruno@clisp.org>
19121
19122         strchrnul: Move AC_LIBOBJ invocations to module description.
19123         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
19124         gl_PREREQ_STRCHRNUL invocations from here...
19125         * modules/strchrnul (configure.ac): ... to here.
19126
19127 2011-05-22  Bruno Haible  <bruno@clisp.org>
19128
19129         strcasestr*: Move AC_LIBOBJ invocations to module description.
19130         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19131         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
19132         * modules/strcasestr-simple (configure.ac): ... to here.
19133         * modules/strcasestr (configure.ac): ... and here.
19134
19135 2011-05-22  Bruno Haible  <bruno@clisp.org>
19136
19137         strcase: Move AC_LIBOBJ invocations to module description.
19138         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
19139         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
19140         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
19141         gl_PREREQ_STRNCASECMP invocations from here...
19142         * modules/strcase (configure.ac): ... to here.
19143
19144 2011-05-22  Bruno Haible  <bruno@clisp.org>
19145
19146         stpncpy: Move AC_LIBOBJ invocations to module description.
19147         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
19148         here...
19149         * modules/stpncpy (configure.ac): ... to here.
19150
19151 2011-05-22  Bruno Haible  <bruno@clisp.org>
19152
19153         stpcpy: Move AC_LIBOBJ invocations to module description.
19154         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
19155         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
19156         here...
19157         * modules/stpcpy (configure.ac): ... to here.
19158
19159 2011-05-21  Bruno Haible  <bruno@clisp.org>
19160
19161         stat: Move AC_LIBOBJ invocations to module description.
19162         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
19163         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
19164         here...
19165         * modules/stat (configure.ac): ... to here.
19166
19167 2011-05-21  Bruno Haible  <bruno@clisp.org>
19168
19169         sleep: Move AC_LIBOBJ invocations to module description.
19170         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
19171         * modules/sleep (configure.ac): ... to here.
19172
19173 2011-05-21  Bruno Haible  <bruno@clisp.org>
19174
19175         signbit: Move AC_LIBOBJ invocations to module description.
19176         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
19177         * modules/signbit (configure.ac): ... to here.
19178
19179 2011-05-21  Bruno Haible  <bruno@clisp.org>
19180
19181         sigprocmask: Move AC_LIBOBJ invocations to module description.
19182         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
19183         gl_PREREQ_SIGPROMASK invocations from here...
19184         * modules/sigprocmask (configure.ac): ... to here.
19185
19186 2011-05-21  Bruno Haible  <bruno@clisp.org>
19187
19188         sigaction: Move AC_LIBOBJ invocations to module description.
19189         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
19190         gl_PREREQ_SIGACTION invocations from here...
19191         * modules/sigaction (configure.ac): ... to here.
19192
19193 2011-05-21  Bruno Haible  <bruno@clisp.org>
19194
19195         sig2str: Move AC_LIBOBJ invocations to module description.
19196         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
19197         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
19198         here...
19199         * modules/sig2str (configure.ac): ... to here.
19200
19201 2011-05-21  Bruno Haible  <bruno@clisp.org>
19202
19203         setlocale: Move AC_LIBOBJ invocations to module description.
19204         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
19205         gl_PREREQ_SETLOCALE invocations from here...
19206         * modules/setlocale (configure.ac): ... to here.
19207
19208 2011-05-21  Bruno Haible  <bruno@clisp.org>
19209
19210         unsetenv: Move AC_LIBOBJ invocations to module description.
19211         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
19212         and gl_PREREQ_UNSETENV invocations from here...
19213         * modules/unsetenv (configure.ac): ... to here.
19214         (Depends-on): Update.
19215
19216 2011-05-21  Bruno Haible  <bruno@clisp.org>
19217
19218         setenv: Move AC_LIBOBJ invocations to module description.
19219         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
19220         here...
19221         * modules/setenv (configure.ac): ... to here.
19222
19223 2011-05-21  Bruno Haible  <bruno@clisp.org>
19224
19225         selinux-h: Move AC_LIBOBJ invocations to module description.
19226         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
19227         AC_LIBOBJ invocation from here...
19228         * modules/selinux-h (configure.ac): ... to here.
19229
19230 2011-05-21  Bruno Haible  <bruno@clisp.org>
19231
19232         select: Respect rules for use of AC_LIBOBJ.
19233         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
19234         here...
19235         * modules/select (configure.ac): ... to here.
19236
19237 2011-05-21  Bruno Haible  <bruno@clisp.org>
19238
19239         scandir: Move AC_LIBOBJ invocations to module description.
19240         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
19241         invocations from here...
19242         * modules/scandir (configure.ac): ... to here.
19243
19244 2011-05-21  Bruno Haible  <bruno@clisp.org>
19245
19246         rpmatch: Move AC_LIBOBJ invocations to module description.
19247         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
19248         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
19249         here...
19250         * modules/rpmatch (configure.ac): ... to here.
19251
19252 2011-05-21  Bruno Haible  <bruno@clisp.org>
19253
19254         rmdir: Respect rules for use of AC_LIBOBJ.
19255         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
19256         * modules/rmdir (configure.ac): ... to here.
19257
19258 2011-05-21  Bruno Haible  <bruno@clisp.org>
19259
19260         renameat: Move AC_LIBOBJ invocations to module description.
19261         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
19262         here...
19263         * modules/renameat (configure.ac): ... to here.
19264
19265 2011-05-21  Bruno Haible  <bruno@clisp.org>
19266
19267         rename: Respect rules for use of AC_LIBOBJ.
19268         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
19269         here...
19270         * modules/rename (configure.ac): ... to here.
19271
19272 2011-05-21  Bruno Haible  <bruno@clisp.org>
19273
19274         remove: Move AC_LIBOBJ invocations to module description.
19275         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
19276         here...
19277         * modules/remove (configure.ac): ... to here.
19278
19279 2011-05-21  Bruno Haible  <bruno@clisp.org>
19280
19281         relocatable-lib: Move AC_LIBOBJ invocations to module description.
19282         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
19283         macro.
19284         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
19285         * modules/relocatable-lib (configure.ac): ... to here.
19286         * modules/relocatable-prog-wrapper (configure.ac): Invoke
19287         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
19288
19289 2011-05-21  Bruno Haible  <bruno@clisp.org>
19290
19291         relocatable-prog: Move AC_LIBOBJ invocations to module description.
19292         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
19293         here...
19294         * modules/relocatable-prog (configure.ac): ... to here.
19295
19296 2011-05-21  Bruno Haible  <bruno@clisp.org>
19297
19298         regex: Move AC_LIBOBJ invocations to module description.
19299         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
19300         invocations from here...
19301         * modules/regex (configure.ac): ... to here.
19302
19303 2011-05-21  Bruno Haible  <bruno@clisp.org>
19304
19305         realloc-*: Move AC_LIBOBJ invocations to module description.
19306         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
19307         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
19308         AC_LIBOBJ invocations from here...
19309         * modules/realloc-gnu (configure.ac): ... to here.
19310         * modules/realloc-posix (configure.ac): ... and here.
19311
19312 2011-05-21  Bruno Haible  <bruno@clisp.org>
19313
19314         readutmp: Move AC_LIBOBJ invocations to module description.
19315         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
19316         * modules/readutmp (configure.ac): ... to here.
19317
19318 2011-05-21  Bruno Haible  <bruno@clisp.org>
19319
19320         readlinkat: Move AC_LIBOBJ invocations to module description.
19321         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
19322         here...
19323         * modules/readlinkat (configure.ac): ... to here.
19324
19325 2011-05-21  Bruno Haible  <bruno@clisp.org>
19326
19327         readlink: Move AC_LIBOBJ invocations to module description.
19328         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
19329         gl_PREREQ_READLINK invocations from here...
19330         * modules/readlink (configure.ac): ... to here.
19331
19332 2011-05-21  Bruno Haible  <bruno@clisp.org>
19333
19334         readline: Move AC_LIBOBJ invocations to module description.
19335         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
19336         gl_PREREQ_READLINE invocations from here...
19337         * modules/readline (configure.ac): ... to here.
19338
19339 2011-05-21  Bruno Haible  <bruno@clisp.org>
19340
19341         read: Move AC_LIBOBJ invocations to module description.
19342         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
19343         * modules/read (configure.ac): ... to here.
19344
19345 2011-05-21  Bruno Haible  <bruno@clisp.org>
19346
19347         rawmemchr: Move AC_LIBOBJ invocations to module description.
19348         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
19349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
19350         from here...
19351         * modules/rawmemchr (configure.ac): ... to here.
19352
19353 2011-05-21  Bruno Haible  <bruno@clisp.org>
19354
19355         random_r: Move AC_LIBOBJ invocations to module description.
19356         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
19357         gl_PREREQ_RANDOM_R invocations from here...
19358         * modules/random_r (configure.ac): ... to here.
19359
19360 2011-05-21  Bruno Haible  <bruno@clisp.org>
19361
19362         pwrite: Move AC_LIBOBJ invocations to module description.
19363         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
19364         * modules/pwrite (configure.ac): ... to here.
19365
19366 2011-05-21  Bruno Haible  <bruno@clisp.org>
19367
19368         putenv: Move AC_LIBOBJ invocations to module description.
19369         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
19370         * modules/putenv (configure.ac): ... to here.
19371
19372 2011-05-21  Bruno Haible  <bruno@clisp.org>
19373
19374         login_tty: Move AC_LIBOBJ invocations to module description.
19375         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
19376         * modules/login_tty (configure.ac): ... to here.
19377
19378 2011-05-21  Bruno Haible  <bruno@clisp.org>
19379
19380         openpty: Move AC_LIBOBJ invocations to module description.
19381         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
19382         * modules/openpty (configure.ac): ... to here.
19383
19384 2011-05-21  Bruno Haible  <bruno@clisp.org>
19385
19386         forkpty: Move AC_LIBOBJ invocations to module description.
19387         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
19388         * modules/forkpty (configure.ac): ... to here.
19389
19390 2011-05-21  Bruno Haible  <bruno@clisp.org>
19391
19392         ptsname: Move AC_LIBOBJ invocations to module description.
19393         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
19394         invocations from here...
19395         * modules/ptsname (configure.ac): ... to here.
19396
19397 2011-05-21  Bruno Haible  <bruno@clisp.org>
19398
19399         pread: Move AC_LIBOBJ invocations to module description.
19400         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
19401         * modules/pread (configure.ac): ... to here.
19402
19403 2011-05-21  Bruno Haible  <bruno@clisp.org>
19404
19405         posix_spawn*: Move AC_LIBOBJ invocations to module description.
19406         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
19407         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
19408         * modules/posix_spawn (configure.ac): ... to here.
19409         * modules/posix_spawnp (configure.ac): ... and here.
19410
19411 2011-05-21  Bruno Haible  <bruno@clisp.org>
19412
19413         popen: Move AC_LIBOBJ invocations to module description.
19414         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
19415         invocations from here...
19416         * modules/popen (configure.ac): ... to here.
19417
19418 2011-05-21  Bruno Haible  <bruno@clisp.org>
19419
19420         poll: Move AC_LIBOBJ invocations to module description.
19421         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
19422         invocations from here...
19423         * modules/poll (configure.ac): ... to here.
19424
19425 2011-05-21  Bruno Haible  <bruno@clisp.org>
19426
19427         pipe-posix: Move AC_LIBOBJ invocations to module description.
19428         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
19429         * modules/pipe-posix (configure.ac): ... to here.
19430
19431 2011-05-21  Bruno Haible  <bruno@clisp.org>
19432
19433         openat: Respect rules for use of AC_LIBOBJ.
19434         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
19435         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19436         * modules/openat (configure.ac): ... to here.
19437
19438 2011-05-21  Bruno Haible  <bruno@clisp.org>
19439
19440         obstack-printf*: Move AC_LIBOBJ invocations to module description.
19441         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
19442         invocation from here...
19443         * modules/obstack-printf (configure.ac): ... to here.
19444         * modules/obstack-printf-posix (configure.ac): ... and here.
19445
19446 2011-05-21  Bruno Haible  <bruno@clisp.org>
19447
19448         nl_langinfo: Move AC_LIBOBJ invocations to module description.
19449         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
19450         from here...
19451         * modules/nl_langinfo (configure.ac): ... to here.
19452
19453 2011-05-21  Bruno Haible  <bruno@clisp.org>
19454
19455         nanosleep: Move AC_LIBOBJ invocations to module description.
19456         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
19457         gl_PREREQ_NANOSLEEP invocations from here...
19458         * modules/nanosleep (configure.ac): ... to here.
19459
19460 2011-05-21  Bruno Haible  <bruno@clisp.org>
19461
19462         mountlist: Move AC_LIBOBJ invocations to module description.
19463         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
19464         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
19465         * modules/mountlist (configure.ac): ... to here.
19466
19467 2011-05-21  Bruno Haible  <bruno@clisp.org>
19468
19469         mktime: Respect rules for use of AC_LIBOBJ.
19470         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
19471         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
19472         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
19473         (gl_FUNC_MKTIME_INTERNAL): ... and here...
19474         * modules/mktime (configure.ac): ... to here.
19475         * modules/mktime-internal (configure.ac): ... and here.
19476         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
19477
19478 2011-05-21  Bruno Haible  <bruno@clisp.org>
19479
19480         mkstemps: Move AC_LIBOBJ invocations to module description.
19481         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
19482         here...
19483         * modules/mkstemps (configure.ac): ... to here.
19484
19485 2011-05-21  Bruno Haible  <bruno@clisp.org>
19486
19487         mkstemp: Move AC_LIBOBJ invocations to module description.
19488         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
19489         gl_PREREQ_MKSTEMP invocations from here...
19490         * modules/mkstemp (configure.ac): ... to here.
19491
19492 2011-05-21  Bruno Haible  <bruno@clisp.org>
19493
19494         mkostemps: Move AC_LIBOBJ invocations to module description.
19495         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
19496         here...
19497         * modules/mkostemps (configure.ac): ... to here.
19498
19499 2011-05-21  Bruno Haible  <bruno@clisp.org>
19500
19501         mkostemp: Move AC_LIBOBJ invocations to module description.
19502         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
19503         gl_PREREQ_MKOSTEMP invocations from here...
19504         * modules/mkostemp (configure.ac): ... to here.
19505
19506 2011-05-21  Bruno Haible  <bruno@clisp.org>
19507
19508         mknod: Move AC_LIBOBJ invocations to module description.
19509         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19510         * modules/mknod (configure.ac): ... to here.
19511
19512 2011-05-21  Bruno Haible  <bruno@clisp.org>
19513
19514         mkfifoat: Move AC_LIBOBJ invocations to module description.
19515         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19516         here...
19517         * modules/mkfifoat (configure.ac): ... to here.
19518
19519 2011-05-21  Bruno Haible  <bruno@clisp.org>
19520
19521         mkfifo: Respect rules for use of AC_LIBOBJ.
19522         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19523         here...
19524         * modules/mkfifo (configure.ac): ... to here.
19525
19526 2011-05-21  Bruno Haible  <bruno@clisp.org>
19527
19528         mkdtemp: Move AC_LIBOBJ invocations to module description.
19529         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19530         invocations from here...
19531         * modules/mkdtemp (configure.ac): ... to here.
19532
19533 2011-05-21  Bruno Haible  <bruno@clisp.org>
19534
19535         mkdir: Move AC_LIBOBJ invocations to module description.
19536         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19537         * modules/mkdir (configure.ac): ... to here.
19538
19539 2011-05-21  Bruno Haible  <bruno@clisp.org>
19540
19541         memset: Move AC_LIBOBJ invocations to module description.
19542         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19543         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19544         here...
19545         * modules/memset (configure.ac): ... to here.
19546
19547 2011-05-21  Bruno Haible  <bruno@clisp.org>
19548
19549         memrchr: Move AC_LIBOBJ invocations to module description.
19550         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19551         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19552         here...
19553         * modules/memrchr (configure.ac): ... to here.
19554
19555 2011-05-21  Bruno Haible  <bruno@clisp.org>
19556
19557         mempcpy: Move AC_LIBOBJ invocations to module description.
19558         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19559         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19560         here...
19561         * modules/mempcpy (configure.ac): ... to here.
19562
19563 2011-05-21  Bruno Haible  <bruno@clisp.org>
19564
19565         memmove: Move AC_LIBOBJ invocations to module description.
19566         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19567         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19568         here...
19569         * modules/memmove (configure.ac): ... to here.
19570
19571 2011-05-21  Bruno Haible  <bruno@clisp.org>
19572
19573         memmem*: Move AC_LIBOBJ invocations to module description.
19574         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19575         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19576         here...
19577         (gl_FUNC_MEMMEM): ... and here...
19578         * modules/memmem-simple (configure.ac): ... to here.
19579         * modules/memmem (configure.ac): ... and here.
19580
19581 2011-05-21  Bruno Haible  <bruno@clisp.org>
19582
19583         memcpy: Move AC_LIBOBJ invocations to module description.
19584         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19585         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19586         here...
19587         * modules/memcpy (configure.ac): ... to here.
19588
19589 2011-05-21  Bruno Haible  <bruno@clisp.org>
19590
19591         memcmp: Simplify autoconf macro.
19592         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19593         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19594         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19595
19596 2011-05-21  Bruno Haible  <bruno@clisp.org>
19597
19598         memcmp: Move AC_LIBOBJ invocations to module description.
19599         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19600         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19601         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19602         * modules/memcmp (configure.ac): ... to here.
19603         (Depends-on): Update conditions.
19604
19605 2011-05-21  Bruno Haible  <bruno@clisp.org>
19606
19607         memchr: Respect rules for use of AC_LIBOBJ.
19608         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19609         invocations from here...
19610         * modules/memchr (configure.ac): ... to here.
19611
19612 2011-05-21  Bruno Haible  <bruno@clisp.org>
19613
19614         mbtowc: Move AC_LIBOBJ invocations to module description.
19615         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19616         invocations from here...
19617         * modules/mbtowc (configure.ac): ... to here.
19618
19619 2011-05-21  Bruno Haible  <bruno@clisp.org>
19620
19621         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19622         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19623         gl_PREREQ_MBSRTOWCS invocations from here...
19624         * modules/mbsrtowcs (configure.ac): ... to here.
19625
19626 2011-05-21  Bruno Haible  <bruno@clisp.org>
19627
19628         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19629         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19630         gl_PREREQ_MBSNRTOWCS invocations from here...
19631         * modules/mbsnrtowcs (configure.ac): ... to here.
19632
19633 2011-05-21  Bruno Haible  <bruno@clisp.org>
19634
19635         mbsinit: Move AC_LIBOBJ invocations to module description.
19636         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19637         invocations from here...
19638         * modules/mbsinit (configure.ac): ... to here.
19639
19640 2011-05-21  Bruno Haible  <bruno@clisp.org>
19641
19642         mbrlen: Move AC_LIBOBJ invocations to module description.
19643         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19644         invocations from here...
19645         * modules/mbrlen (configure.ac): ... to here.
19646
19647 2011-05-21  Bruno Haible  <bruno@clisp.org>
19648
19649         mbrtowc: Respect rules for use of AC_LIBOBJ.
19650         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19651         invocations from here...
19652         * modules/mbrtowc (configure.ac): ... to here.
19653
19654 2011-05-21  Bruno Haible  <bruno@clisp.org>
19655
19656         malloc-*: Move AC_LIBOBJ invocations to module description.
19657         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19658         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19659         AC_LIBOBJ invocations from here...
19660         * modules/malloc-gnu (configure.ac): ... to here.
19661         * modules/malloc-posix (configure.ac): ... and here.
19662
19663 2011-05-21  Bruno Haible  <bruno@clisp.org>
19664
19665         lstat, openat: Respect rules for use of AC_LIBOBJ.
19666         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19667         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19668         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19669         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19670         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19671         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19672         here.
19673         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19674
19675 2011-05-21  Bruno Haible  <bruno@clisp.org>
19676
19677         lseek: Move AC_LIBOBJ invocations to module description.
19678         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19679         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19680         * modules/lseek (configure.ac): ... to here.
19681
19682 2011-05-21  Bruno Haible  <bruno@clisp.org>
19683
19684         linkat: Move AC_LIBOBJ invocations to module description.
19685         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19686         here...
19687         * modules/linkat (configure.ac): ... to here.
19688
19689 2011-05-21  Bruno Haible  <bruno@clisp.org>
19690
19691         link: Respect rules for use of AC_LIBOBJ.
19692         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19693         * modules/link (configure.ac): ... to here.
19694
19695 2011-05-21  Bruno Haible  <bruno@clisp.org>
19696
19697         lchown: Move AC_LIBOBJ invocations to module description.
19698         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19699         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19700         * modules/lchown (configure.ac): ... to here.
19701
19702 2011-05-21  Bruno Haible  <bruno@clisp.org>
19703
19704         iswctype: Move AC_LIBOBJ invocations to module description.
19705         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19706         here...
19707         * modules/iswctype (configure.ac): ... to here.
19708
19709 2011-05-21  Bruno Haible  <bruno@clisp.org>
19710
19711         iswblank: Move AC_LIBOBJ invocations to module description.
19712         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19713         here...
19714         * modules/iswblank (configure.ac): ... to here.
19715
19716 2011-05-21  Bruno Haible  <bruno@clisp.org>
19717
19718         atanl: Move AC_LIBOBJ invocations to module description.
19719         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19720         * modules/atanl (configure.ac): ... to here.
19721
19722 2011-05-21  Bruno Haible  <bruno@clisp.org>
19723
19724         acosl: Move AC_LIBOBJ invocations to module description.
19725         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19726         * modules/acosl (configure.ac): ... to here.
19727
19728 2011-05-21  Bruno Haible  <bruno@clisp.org>
19729
19730         asinl: Respect rules for use of AC_LIBOBJ.
19731         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19732         * modules/asinl (configure.ac): ... to here.
19733
19734 2011-05-21  Bruno Haible  <bruno@clisp.org>
19735
19736         tanl: Move AC_LIBOBJ invocations to module description.
19737         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19738         * modules/tanl (configure.ac): ... to here.
19739
19740 2011-05-21  Bruno Haible  <bruno@clisp.org>
19741
19742         cosl: Move AC_LIBOBJ invocations to module description.
19743         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19744         * modules/cosl (configure.ac): ... to here.
19745
19746 2011-05-21  Bruno Haible  <bruno@clisp.org>
19747
19748         sinl: Move AC_LIBOBJ invocations to module description.
19749         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19750         * modules/sinl (configure.ac): ... to here.
19751
19752 2011-05-21  Bruno Haible  <bruno@clisp.org>
19753
19754         logl: Move AC_LIBOBJ invocations to module description.
19755         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19756         * modules/logl (configure.ac): ... to here.
19757
19758 2011-05-21  Bruno Haible  <bruno@clisp.org>
19759
19760         expl: Move AC_LIBOBJ invocations to module description.
19761         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19762         * modules/expl (configure.ac): ... to here.
19763
19764 2011-05-21  Bruno Haible  <bruno@clisp.org>
19765
19766         roundl: Move AC_LIBOBJ invocations to module description.
19767         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19768         * modules/roundl (configure.ac): ... to here.
19769
19770 2011-05-21  Bruno Haible  <bruno@clisp.org>
19771
19772         round: Move AC_LIBOBJ invocations to module description.
19773         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19774         * modules/round (configure.ac): ... to here.
19775
19776 2011-05-21  Bruno Haible  <bruno@clisp.org>
19777
19778         roundf: Move AC_LIBOBJ invocations to module description.
19779         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19780         * modules/roundf (configure.ac): ... to here.
19781
19782 2011-05-21  Bruno Haible  <bruno@clisp.org>
19783
19784         truncl: Move AC_LIBOBJ invocations to module description.
19785         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19786         * modules/truncl (configure.ac): ... to here.
19787
19788 2011-05-21  Bruno Haible  <bruno@clisp.org>
19789
19790         trunc: Move AC_LIBOBJ invocations to module description.
19791         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19792         * modules/trunc (configure.ac): ... to here.
19793
19794 2011-05-21  Bruno Haible  <bruno@clisp.org>
19795
19796         truncf: Move AC_LIBOBJ invocations to module description.
19797         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19798         * modules/truncf (configure.ac): ... to here.
19799
19800 2011-05-21  Bruno Haible  <bruno@clisp.org>
19801
19802         ceill: Move AC_LIBOBJ invocations to module description.
19803         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19804         * modules/ceill (configure.ac): ... to here.
19805
19806 2011-05-21  Bruno Haible  <bruno@clisp.org>
19807
19808         ceil: Move AC_LIBOBJ invocations to module description.
19809         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19810         * modules/ceil (configure.ac): ... to here.
19811
19812 2011-05-21  Bruno Haible  <bruno@clisp.org>
19813
19814         ceilf: Move AC_LIBOBJ invocations to module description.
19815         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19816         * modules/ceilf (configure.ac): ... to here.
19817
19818 2011-05-21  Bruno Haible  <bruno@clisp.org>
19819
19820         floorl: Respect rules for use of AC_LIBOBJ.
19821         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19822         * modules/floorl (configure.ac): ... to here.
19823
19824 2011-05-21  Bruno Haible  <bruno@clisp.org>
19825
19826         floor: Respect rules for use of AC_LIBOBJ.
19827         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19828         * modules/floor (configure.ac): ... to here.
19829
19830 2011-05-21  Bruno Haible  <bruno@clisp.org>
19831
19832         floorf: Move AC_LIBOBJ invocations to module description.
19833         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19834         * modules/floorf (configure.ac): ... to here.
19835
19836 2011-05-20  Bruno Haible  <bruno@clisp.org>
19837
19838         sqrtl: Respect rules for use of AC_LIBOBJ.
19839         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19840         * modules/sqrtl (configure.ac): ... to here.
19841
19842 2011-05-20  Bruno Haible  <bruno@clisp.org>
19843
19844         ldexpl: Respect rules for use of AC_LIBOBJ.
19845         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19846         * modules/ldexpl (configure.ac): ... to here.
19847
19848 2011-05-20  Bruno Haible  <bruno@clisp.org>
19849
19850         frexpl*: Respect rules for use of AC_LIBOBJ.
19851         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19852         invocation from here...
19853         * modules/frexpl (configure.ac): ... to here.
19854         * modules/frexpl-nolibm (configure.ac): ... and here.
19855
19856 2011-05-20  Bruno Haible  <bruno@clisp.org>
19857
19858         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19859         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19860         invocation from here...
19861         * modules/frexp (configure.ac): ... to here.
19862         * modules/frexp-nolibm (configure.ac): ... and here.
19863
19864 2011-05-20  Bruno Haible  <bruno@clisp.org>
19865
19866         isnan: Respect rules for use of AC_LIBOBJ.
19867         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19868         invocations here.
19869         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19870         REPLACE_ISNAN.
19871         * modules/isnand (configure.ac): Likewise.
19872         * modules/isnanl (configure.ac): Likewise.
19873
19874 2011-05-20  Bruno Haible  <bruno@clisp.org>
19875
19876         isnanl*: Respect rules for use of AC_LIBOBJ.
19877         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19878         invocation from here...
19879         * modules/isnanl (configure.ac): ... to here.
19880         * modules/isnanl-nolibm (configure.ac): ... and here.
19881
19882 2011-05-20  Bruno Haible  <bruno@clisp.org>
19883
19884         isnand*: Move AC_LIBOBJ invocations to module description.
19885         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19886         invocation from here...
19887         * modules/isnand (configure.ac): ... to here.
19888         * modules/isnand-nolibm (configure.ac): ... and here.
19889
19890 2011-05-20  Bruno Haible  <bruno@clisp.org>
19891
19892         isnanf*: Move AC_LIBOBJ invocations to module description.
19893         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19894         invocation from here...
19895         * modules/isnanf (configure.ac): ... to here.
19896         * modules/isnanf-nolibm (configure.ac): ... and here.
19897
19898 2011-05-20  Bruno Haible  <bruno@clisp.org>
19899
19900         isnan*: Separate the AC_LIBOBJ invocations.
19901         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19902         AC_LIBOBJ invocation.
19903         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19904         here.
19905         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19906         AC_LIBOBJ invocation.
19907         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19908         here.
19909         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19910         AC_LIBOBJ invocation.
19911         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19912         here.
19913         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19914
19915 2011-05-08  Bruno Haible  <bruno@clisp.org>
19916
19917         isinf: Move AC_LIBOBJ invocations to module description.
19918         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19919         * modules/isinf (configure.ac): ... to here.
19920
19921 2011-05-08  Bruno Haible  <bruno@clisp.org>
19922
19923         isfinite: Move AC_LIBOBJ invocations to module description.
19924         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19925         * modules/isfinite (configure.ac): ... to here.
19926
19927 2011-05-08  Bruno Haible  <bruno@clisp.org>
19928
19929         isblank: Move AC_LIBOBJ invocations to module description.
19930         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19931         here...
19932         * modules/isblank (configure.ac): ... to here.
19933
19934 2011-05-08  Bruno Haible  <bruno@clisp.org>
19935
19936         isapipe: Move AC_LIBOBJ invocations to module description.
19937         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19938         gl_PREREQ_ISAPIPE invocations from here...
19939         * modules/isapipe (configure.ac): ... to here.
19940         (Depends-on): Update condition.
19941
19942 2011-05-08  Bruno Haible  <bruno@clisp.org>
19943
19944         ioctl: Move AC_LIBOBJ invocations to module description.
19945         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19946         invocations from here...
19947         * modules/ioctl (configure.ac): ... to here.
19948         (Depends-on): Update condition.
19949
19950 2011-05-08  Bruno Haible  <bruno@clisp.org>
19951
19952         imaxdiv: Move AC_LIBOBJ invocations to module description.
19953         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19954         invocations from here...
19955         * modules/imaxdiv (configure.ac): ... to here.
19956
19957 2011-05-08  Bruno Haible  <bruno@clisp.org>
19958
19959         imaxabs: Move AC_LIBOBJ invocations to module description.
19960         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19961         invocations from here...
19962         * modules/imaxabs (configure.ac): ... to here.
19963
19964 2011-05-08  Bruno Haible  <bruno@clisp.org>
19965
19966         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19968         AC_LIBOBJ invocations from here...
19969         * modules/getaddrinfo (configure.ac): ... to here.
19970         (Depends-on): Add conditions.
19971
19972 2011-05-08  Bruno Haible  <bruno@clisp.org>
19973
19974         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19975         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19976         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19977         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19978         (gl_PREREQ_INET_PTON): ... from here.
19979         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19980         gl_PREREQ_INET_PTON here.
19981         (Depends-on): Update condition.
19982
19983 2011-05-08  Bruno Haible  <bruno@clisp.org>
19984
19985         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19986         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19987         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19988         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19989         (gl_PREREQ_INET_NTOP): ... from here.
19990         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19991         gl_PREREQ_INET_NTOP here.
19992         (Depends-on): Update condition.
19993
19994 2011-05-08  Bruno Haible  <bruno@clisp.org>
19995
19996         iconv_open: Move AC_LIBOBJ invocations to module description.
19997         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19998         AC_LIBOBJ invocations from here...
19999         * modules/iconv_open (configure.ac): ... to here.
20000
20001 2011-05-08  Bruno Haible  <bruno@clisp.org>
20002
20003         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
20004         If module 'iconv_open' is among the main modules and module
20005         'iconv_open-utf' is among the tests dependencies, then
20006         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
20007         return the special iconv_t values. Therefore iconv() and iconv_close()
20008         must support these special iconv_t values, already in lib, not only in
20009         tests.
20010         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
20011         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
20012         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
20013         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
20014         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
20015         (Depends-on): Add the dependencies of iconv_open-utf.
20016         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
20017         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
20018         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
20019
20020 2011-05-08  Bruno Haible  <bruno@clisp.org>
20021
20022         group-member: Move AC_LIBOBJ invocations to module description.
20023         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
20024         gl_PREREQ_GROUP_MEMBER invocations from here...
20025         * modules/group-member (configure.ac): ... to here.
20026
20027 2011-05-08  Bruno Haible  <bruno@clisp.org>
20028
20029         grantpt: Move AC_LIBOBJ invocations to module description.
20030         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
20031         invocations from here...
20032         * modules/grantpt (configure.ac): ... to here.
20033
20034 2011-05-08  Bruno Haible  <bruno@clisp.org>
20035
20036         glob: Move AC_LIBOBJ invocations to module description.
20037         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
20038         from here...
20039         * modules/glob (configure.ac): ... to here.
20040
20041 2011-05-08  Bruno Haible  <bruno@clisp.org>
20042
20043         getusershell: Move AC_LIBOBJ invocations to module description.
20044         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
20045         Move AC_LIBOBJ invocation from here...
20046         * modules/getusershell (configure.ac): ... to here.
20047         (Depends-on): Update condition.
20048
20049 2011-05-08  Bruno Haible  <bruno@clisp.org>
20050
20051         gettimeofday: Move AC_LIBOBJ invocations to module description.
20052         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
20053         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
20054         gl_PREREQ_GETTIMEOFDAY invocations from here...
20055         * modules/gettimeofday (configure.ac): ... to here.
20056
20057 2011-05-08  Bruno Haible  <bruno@clisp.org>
20058
20059         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
20060         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
20061         just gl_FUNC_TZSET.
20062         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
20063         (gl_FUNC_TZSET_CLOBBER): Remove actions.
20064         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
20065         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
20066
20067 2011-05-08  Bruno Haible  <bruno@clisp.org>
20068
20069         getsubopt: Move AC_LIBOBJ invocations to module description.
20070         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
20071         gl_PREREQ_GETSUBOPT invocations from here...
20072         * modules/getsubopt (configure.ac): ... to here.
20073
20074 2011-05-08  Bruno Haible  <bruno@clisp.org>
20075
20076         getpass-gnu: Move AC_LIBOBJ invocations to module description.
20077         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
20078         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
20079         * modules/getpass-gnu (configure.ac): ... to here.
20080
20081 2011-05-08  Bruno Haible  <bruno@clisp.org>
20082
20083         getpass: Move AC_LIBOBJ invocations to module description.
20084         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
20085         gl_PREREQ_GETPASS invocations from here...
20086         * modules/getpass (configure.ac): ... to here.
20087
20088 2011-05-08  Bruno Haible  <bruno@clisp.org>
20089
20090         getpagesize: Move AC_LIBOBJ invocations to module description.
20091         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
20092         from here...
20093         * modules/getpagesize (configure.ac): ... to here.
20094
20095 2011-05-08  Bruno Haible  <bruno@clisp.org>
20096
20097         getopt: Move AC_LIBOBJ invocations to module description.
20098         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
20099         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
20100         invocations from here...
20101         * modules/getopt-gnu (configure.ac): ... to here.
20102         * modules/getopt-posix (configure.ac): ... and here.
20103         (Depends-on): Update condition.
20104
20105 2011-05-08  Bruno Haible  <bruno@clisp.org>
20106
20107         getopt, argp: Respect rules for use of AC_LIBOBJ.
20108         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
20109         (gl_REPLACE_GETOPT_ALWAYS): New macro.
20110         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
20111         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
20112
20113 2011-05-08  Bruno Haible  <bruno@clisp.org>
20114
20115         getlogin_r: Move AC_LIBOBJ invocations to module description.
20116         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
20117         gl_PREREQ_GETLOGIN_R invocations from here...
20118         * modules/getlogin_r (configure.ac): ... to here.
20119
20120 2011-05-08  Bruno Haible  <bruno@clisp.org>
20121
20122         getlogin: Move AC_LIBOBJ invocations to module description.
20123         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
20124         here...
20125         * modules/getlogin (configure.ac): ... to here.
20126
20127 2011-05-08  Bruno Haible  <bruno@clisp.org>
20128
20129         getloadavg: Move AC_LIBOBJ invocations to module description.
20130         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
20131         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
20132         * modules/getloadavg (configure.ac): ... to here.
20133
20134 2011-05-08  Bruno Haible  <bruno@clisp.org>
20135
20136         gethrxtime: Move AC_LIBOBJ invocations to module description.
20137         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
20138         LIB_GETHRXTIME from here...
20139         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
20140         invocations from here...
20141         * modules/gethrxtime (configure.ac): ... to here.
20142
20143 2011-05-08  Bruno Haible  <bruno@clisp.org>
20144
20145         gethostname: Move AC_LIBOBJ invocations to module description.
20146         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
20147         gl_PREREQ_GETHOSTNAME invocations from here...
20148         * modules/gethostname (configure.ac): ... to here.
20149
20150 2011-05-08  Bruno Haible  <bruno@clisp.org>
20151
20152         getgroups: Move AC_LIBOBJ invocations to module description.
20153         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
20154         here...
20155         * modules/getgroups (configure.ac): ... to here.
20156
20157 2011-05-08  Bruno Haible  <bruno@clisp.org>
20158
20159         getdtablesize: Move AC_LIBOBJ invocations to module description.
20160         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
20161         invocation from here...
20162         * modules/getdtablesize (configure.ac): ... to here.
20163
20164 2011-05-08  Bruno Haible  <bruno@clisp.org>
20165
20166         getdomainname: Move AC_LIBOBJ invocations to module description.
20167         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
20168         gl_PREREQ_GETDOMAINNAME invocations from here...
20169         * modules/getdomainname (configure.ac): ... to here.
20170
20171 2011-05-08  Bruno Haible  <bruno@clisp.org>
20172
20173         getline: Move AC_LIBOBJ invocations to module description.
20174         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
20175         invocations from here...
20176         * modules/getline (configure.ac): ... to here.
20177
20178 2011-05-08  Bruno Haible  <bruno@clisp.org>
20179
20180         getline: Simplify.
20181         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
20182         It's already handled through the module dependency.
20183
20184 2011-05-08  Bruno Haible  <bruno@clisp.org>
20185
20186         getdelim: Move AC_LIBOBJ invocations to module description.
20187         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
20188         and gl_PREREQ_GETDELIM invocations from here...
20189         * modules/getdelim (configure.ac): ... to here.
20190         (Depends-on): Fix condition.
20191
20192 2011-05-08  Bruno Haible  <bruno@clisp.org>
20193
20194         getcwd: Move AC_LIBOBJ invocations to module description.
20195         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
20196         invocations from here...
20197         * modules/getcwd (configure.ac): ... to here.
20198
20199 2011-05-08  Bruno Haible  <bruno@clisp.org>
20200
20201         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
20202         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
20203         here...
20204         * modules/getcwd-lgpl (configure.ac): ... to here.
20205
20206 2011-05-07  Bruno Haible  <bruno@clisp.org>
20207
20208         crypto/gc: Move AC_LIBOBJ invocations to module description.
20209         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
20210         * modules/crypto/gc (configure.ac): ... to here.
20211
20212 2011-05-07  Bruno Haible  <bruno@clisp.org>
20213
20214         fwriting: Move AC_LIBOBJ invocations to module description.
20215         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
20216         here...
20217         * modules/fwriting (configure.ac): ... to here.
20218
20219 2011-05-07  Bruno Haible  <bruno@clisp.org>
20220
20221         fwritable: Move AC_LIBOBJ invocations to module description.
20222         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
20223         here...
20224         * modules/fwritable (configure.ac): ... to here.
20225
20226 2011-05-07  Bruno Haible  <bruno@clisp.org>
20227
20228         futimens: Move AC_LIBOBJ invocations to module description.
20229         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
20230         here...
20231         * modules/futimens (configure.ac): ... to here.
20232
20233 2011-05-07  Bruno Haible  <bruno@clisp.org>
20234
20235         ftruncate: Move AC_LIBOBJ invocations to module description.
20236         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
20237         gl_PREREQ_FTRUNCATE invocations from here...
20238         * modules/ftruncate (configure.ac): ... to here.
20239
20240 2011-05-07  Bruno Haible  <bruno@clisp.org>
20241
20242         fsync: Move AC_LIBOBJ invocations to module description.
20243         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
20244         invocations from here...
20245         * modules/fsync (configure.ac): ... to here.
20246
20247 2011-05-07  Bruno Haible  <bruno@clisp.org>
20248
20249         fsusage: Move AC_LIBOBJ invocations to module description.
20250         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
20251         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
20252         * modules/fsusage (configure.ac): ... to here.
20253
20254 2011-05-07  Bruno Haible  <bruno@clisp.org>
20255
20256         freopen: Move AC_LIBOBJ invocations to module description.
20257         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
20258         invocations from here...
20259         * modules/freopen (configure.ac): ... to here.
20260
20261 2011-05-07  Bruno Haible  <bruno@clisp.org>
20262
20263         free: Move AC_LIBOBJ invocations to module description.
20264         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
20265         invocations from here...
20266         * modules/free (configure.ac): ... to here.
20267
20268 2011-05-07  Bruno Haible  <bruno@clisp.org>
20269
20270         freadable: Move AC_LIBOBJ invocations to module description.
20271         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
20272         here...
20273         * modules/freadable (configure.ac): ... to here.
20274
20275 2011-05-07  Bruno Haible  <bruno@clisp.org>
20276
20277         fpurge: Move AC_LIBOBJ invocations to module description.
20278         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
20279         invocations from here...
20280         * modules/fpurge (configure.ac): ... to here.
20281
20282 2011-05-07  Bruno Haible  <bruno@clisp.org>
20283
20284         fpending: Move AC_LIBOBJ invocations to module description.
20285         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
20286         gl_FUNC_FPENDING.
20287         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
20288         invocations from here...
20289         * modules/fpending (configure.ac): ... to here.
20290
20291 2011-05-07  Bruno Haible  <bruno@clisp.org>
20292
20293         fopen: Move AC_LIBOBJ invocations to module description.
20294         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
20295         invocations from here...
20296         * modules/fopen (configure.ac): ... to here.
20297
20298 2011-05-07  Bruno Haible  <bruno@clisp.org>
20299
20300         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
20301         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
20302         gl_FUNC_FNMATCH_POSIX.
20303         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
20304         invocations from here...
20305         * modules/fnmatch (configure.ac): ... to here.
20306         * modules/fnmatch-gnu (configure.ac): ... and here.
20307
20308 2011-05-07  Bruno Haible  <bruno@clisp.org>
20309
20310         flock: Move AC_LIBOBJ invocations to module description.
20311         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
20312         invocations from here...
20313         * modules/flock (configure.ac): ... to here.
20314
20315 2011-05-07  Bruno Haible  <bruno@clisp.org>
20316
20317         fileblocks: Move AC_LIBOBJ invocations to module description.
20318         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
20319         gl_PREREQ_FILEBLOCKS invocations from here...
20320         * modules/fileblocks (configure.ac): ... to here.
20321
20322 2011-05-06  Bruno Haible  <bruno@clisp.org>
20323
20324         fflush: Move AC_LIBOBJ invocations to module description.
20325         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
20326         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
20327         invocations from here...
20328         * modules/fflush (configure.ac): ... to here.
20329
20330 2011-05-06  Bruno Haible  <bruno@clisp.org>
20331
20332         fdopendir: Move AC_LIBOBJ invocations to module description.
20333         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
20334         here...
20335         * modules/fdopendir (configure.ac): ... to here.
20336         (Depends-on): Improve conditions.
20337
20338 2011-05-06  Bruno Haible  <bruno@clisp.org>
20339
20340         _Exit: Move AC_LIBOBJ invocations to module description.
20341         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
20342         invocations from here...
20343         * modules/_Exit (configure.ac): ... to here.
20344
20345 2011-05-21  Bruno Haible  <bruno@clisp.org>
20346
20347         euidaccess: Respect rules for use of AC_LIBOBJ.
20348         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
20349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
20350         from here...
20351         * modules/euidaccess (configure.ac): ... to here.
20352
20353 2011-05-06  Bruno Haible  <bruno@clisp.org>
20354
20355         error: Move AC_LIBOBJ invocations to module description.
20356         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
20357         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
20358         invocations from here...
20359         * modules/error (configure.ac): ... to here.
20360
20361 2011-05-06  Bruno Haible  <bruno@clisp.org>
20362
20363         duplocale: Move AC_LIBOBJ invocations to module description.
20364         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
20365         gl_PREREQ_DUPLOCALE invocations from here...
20366         * modules/duplocale (configure.ac): ... to here.
20367
20368 2011-05-05  Bruno Haible  <bruno@clisp.org>
20369
20370         dirfd: Move AC_LIBOBJ invocations to module description.
20371         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
20372         gl_FUNC_DIRFD.
20373         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
20374         here...
20375         * modules/dirfd (configure.ac): ... to here.
20376         (Depends-on): Fix condition.
20377
20378 2011-05-05  Bruno Haible  <bruno@clisp.org>
20379
20380         chown: Respect rules for use of AC_LIBOBJ.
20381         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
20382         * modules/chown (configure.ac): ... to here.
20383
20384 2011-05-05  Bruno Haible  <bruno@clisp.org>
20385
20386         chdir-long: Move AC_LIBOBJ invocations to module description.
20387         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
20388         gl_PREREQ_CHDIR_LONG invocations from here...
20389         * modules/chdir-long (configure.ac): ... to here.
20390
20391 2011-05-05  Bruno Haible  <bruno@clisp.org>
20392
20393         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
20394         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
20395         from here...
20396         * modules/canonicalize-lgpl (configure.ac): ... to here.
20397
20398 2011-05-05  Bruno Haible  <bruno@clisp.org>
20399
20400         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
20401         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
20402         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
20403         REPLACE_CALLOC.
20404         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
20405         * modules/calloc-gnu (configure.ac): Likewise.
20406
20407 2011-05-05  Bruno Haible  <bruno@clisp.org>
20408
20409         btowc: Move AC_LIBOBJ invocations to module description.
20410         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
20411         invocations from here...
20412         * modules/btowc (configure.ac): ... to here.
20413
20414 2011-05-21  Bruno Haible  <bruno@clisp.org>
20415
20416         atexit: Move AC_LIBOBJ invocations to module description.
20417         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
20418         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
20419         here...
20420         * modules/atexit (configure.ac): ... to here.
20421
20422 2011-05-05  Bruno Haible  <bruno@clisp.org>
20423
20424         atoll: Move AC_LIBOBJ invocations to module description.
20425         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
20426         invocations from here...
20427         * modules/atoll (configure.ac): ... to here.
20428
20429 2011-05-05  Bruno Haible  <bruno@clisp.org>
20430
20431         argz: Move AC_LIBOBJ invocations to module description.
20432         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
20433         * modules/argz (configure.ac): ... to here.
20434
20435 2011-05-05  Bruno Haible  <bruno@clisp.org>
20436
20437         alphasort: Move AC_LIBOBJ invocations to module description.
20438         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
20439         gl_PREREQ_ALPHASORT invocations from here...
20440         * modules/alphasort (configure.ac): ... to here.
20441
20442 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20443
20444         verify: new macro verify_expr; verify_true deprecated
20445         * NEWS: Mention this.
20446         * doc/verify.texi (Compile-time Assertions): Document this.
20447         * lib/verify.h (verify_true): Deprecate.
20448         (verify_expr): New macro.
20449         * tests/test-verify.c (function): Test verify_expr.
20450
20451 2011-06-14  Jim Meyering  <meyering@redhat.com>
20452
20453         init.sh: give more portable redirection-related advice in a comment
20454         * tests/init.sh (stderr_fileno_): Update the advice in comments.
20455         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
20456         for lots of discussion.  Stefano Lattarini suggested the solution
20457         of putting "9>&2" after the command.  Reported by Bruno Haible.
20458
20459 2011-06-13  Bruno Haible  <bruno@clisp.org>
20460
20461         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
20462         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
20463         'none'.
20464
20465 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20466
20467         ftoastr: use strtof only if HAVE_STRTOF
20468         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
20469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
20470         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
20471         * modules/ftoastr (configure.ac): Check for strtof.
20472
20473 2011-06-13  Bruno Haible  <bruno@clisp.org>
20474
20475         gnulib-tool: Addendum to 2011-06-08 commit.
20476         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
20477         and --witness-c-macro have been given, augment AM_CPPFLAGS.
20478
20479 2011-06-13  Bruno Haible  <bruno@clisp.org>
20480
20481         fseeko: Provide a non-inline replacement of fseek().
20482         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
20483         * modules/fseeko (Depends-on): Add fseek.
20484         * modules/fseek (License): Change to LGPLv2+.
20485
20486 2011-06-13  Bruno Haible  <bruno@clisp.org>
20487
20488         ftello: Provide a non-inline replacement of ftell().
20489         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
20490         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
20491         not have ftello() (such as on mingw).
20492         * modules/ftello (Depends-on): Add ftell.
20493         * modules/ftell (License): Change to LGPLv2+.
20494
20495 2011-05-07  Bruno Haible  <bruno@clisp.org>
20496
20497         ftell: Move AC_LIBOBJ invocations to module description.
20498         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
20499         * modules/ftell (configure.ac): ... to here.
20500
20501 2011-05-07  Bruno Haible  <bruno@clisp.org>
20502
20503         ftello: Respect rules for use of AC_LIBOBJ.
20504         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
20505         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20506         here...
20507         * modules/ftello (configure.ac): ... to here.
20508
20509 2011-05-07  Bruno Haible  <bruno@clisp.org>
20510
20511         fseeko: Simplify.
20512         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20513         (gl_FUNC_FSEEKO): Inline it here.
20514
20515 2011-05-07  Bruno Haible  <bruno@clisp.org>
20516
20517         fseek: Move AC_LIBOBJ invocations to module description.
20518         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20519         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20520         * modules/fseek (configure.ac): ... to here.
20521
20522 2011-05-07  Bruno Haible  <bruno@clisp.org>
20523
20524         fseek: Respect rules for use of AC_LIBOBJ.
20525         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20526         here...
20527         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20528
20529 2011-05-07  Bruno Haible  <bruno@clisp.org>
20530
20531         fseeko: Respect rules for use of AC_LIBOBJ.
20532         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20533         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20534         here...
20535         * modules/fseeko (configure.ac): ... to here.
20536
20537 2011-06-13  Bruno Haible  <bruno@clisp.org>
20538
20539         gnulib-tool: Allow comments in the 'Depends-on' section.
20540         * doc/gnulib.texi (Module description): Mention comment syntax in the
20541         Depends-on section.
20542         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20543
20544 2011-06-13  Bruno Haible  <bruno@clisp.org>
20545
20546         file-set.h: guard __attibute__ use, now that it's not always defined
20547         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20548         versions that support it.  This fixes a coreutils build failure with
20549         the vendor cc on HP-UX 11.31.
20550
20551 2011-06-12  Bruno Haible  <bruno@clisp.org>
20552
20553         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20554         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20555         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20556         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20557         (acl, aclsort): New declarations.
20558         (aclv_nontrivial): New declaration.
20559         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20560         (file_has_acl): Read also the second kind of HP-UX ACLs.
20561         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20562         kind of HP-UX ACLs if the first kind fails.
20563         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20564         second kind of HP-UX ACLs.
20565         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20566         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20567         agree.
20568         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20569         hpuxjfs.
20570         Handle hpuxjfs.
20571         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20572         hpuxjfs.
20573         Handle hpuxjfs.
20574         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20575         (func_test_same_acls): Use both lsacl and getacl.
20576         Handle hpuxjfs.
20577         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20578         (func_test_same_acls): Use both lsacl and getacl.
20579         Handle hpuxjfs.
20580
20581 2011-06-12  Bruno Haible  <bruno@clisp.org>
20582
20583         acl: Complete the 2010-08-10 fix.
20584         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20585         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20586         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20587         explicitly.
20588         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20589         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20590
20591 2011-06-12  Bruno Haible  <bruno@clisp.org>
20592
20593         spawn-pipe tests: Comments.
20594         * tests/test-spawn-pipe-child.c (main): Update comment.
20595         Reported by James Youngman <jay@gnu.org>.
20596
20597 2011-06-11  James Youngman  <jay@gnu.org>
20598
20599         New module 'stat-size'.
20600         * modules/stat-size: New module.  Provides macros for accessing
20601         file size information in instances of struct stat.  Depends on the
20602         fileblocks module because it calls st_blocks.
20603         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20604         * doc/gnulib.texi: Include stat-size.texi.
20605         * doc/stat-size.texi: Documentation for this module.
20606         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20607         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20608         AC_STRUCT_ST_BLOCKS.
20609
20610 2011-06-09  Bruno Haible  <bruno@clisp.org>
20611
20612         thread: Support pthreads-win32.
20613         * lib/glthread/thread.h (gl_thread_self): Define differently on
20614         pthreads-win32.
20615         (gl_null_thread): New declaration.
20616         (gl_thread_self_pointer): New macro.
20617         * lib/glthread/thread.c (gl_null_thread): New constant.
20618         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20619         gl_thread_self.
20620         * tests/test-tls.c: Likewise.
20621         Suggested by Paul Eggert. Reported by Eric Blake.
20622
20623 2011-06-09  Bruno Haible  <bruno@clisp.org>
20624
20625         thread: Fix confusion between NULL and 0.
20626         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20627         Reported by Paul Eggert.
20628
20629 2011-06-09  Bruno Haible  <bruno@clisp.org>
20630
20631         spawn-pipe tests: Avoid test failure on HP-UX 11.
20632         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20633         is closed.
20634
20635 2011-06-09  Bruno Haible  <bruno@clisp.org>
20636
20637         acl tests: Fix compilation error on HP-UX 11.
20638         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20639
20640 2011-06-09  Bruno Haible  <bruno@clisp.org>
20641
20642         rmdir: Avoid test failure on HP-UX 10.20.
20643         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20644         EEXIST.
20645
20646 2011-06-08  Eric Blake  <eblake@redhat.com>
20647
20648         perror: fix test on mingw
20649         * modules/perror-tests (Depends-on): Add dup2.
20650
20651         strerror_r-posix: fix on MacOS
20652         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20653         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20654         logic bug.
20655         * lib/strerror_r.c (strerror_r): Fix the bug.
20656         * lib/strerror.c (strerror): Likewise.
20657         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20658         problem.
20659         * doc/posix-functions/strerror.texi (strerror): Likewise.
20660         * doc/posix-functions/perror.texi (perror): Likewise.
20661         * tests/test-strerror.c (main): Enhance test.
20662         * tests/test-strerror_r.c (main): Likewise.
20663
20664 2011-06-08  Bruno Haible  <bruno@clisp.org>
20665
20666         gnulib-tool: Better isolation between different gnulib-tool invocations.
20667         * gnulib-tool: New option --witness-c-macro.
20668         (witness_c_macro): New variable.
20669         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20670         AM_CPPFLAGS define it as a C macro.
20671         (func_emit_tests_Makefile_am): Likewise.
20672         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20673         read it from there.
20674         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20675         m4_define, not AC_DEFUN.
20676         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20677         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20678         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20679         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20680         s|...|...|, to substitute the values of the GNULIB_* module indicator
20681         variables.
20682         * modules/dirent (Makefile.am): Likewise.
20683         * modules/fcntl-h (Makefile.am): Likewise.
20684         * modules/iconv-h (Makefile.am): Likewise.
20685         * modules/langinfo (Makefile.am): Likewise.
20686         * modules/locale (Makefile.am): Likewise.
20687         * modules/math (Makefile.am): Likewise.
20688         * modules/netdb (Makefile.am): Likewise.
20689         * modules/poll-h (Makefile.am): Likewise.
20690         * modules/pty (Makefile.am): Likewise.
20691         * modules/search (Makefile.am): Likewise.
20692         * modules/signal (Makefile.am): Likewise.
20693         * modules/spawn (Makefile.am): Likewise.
20694         * modules/stdio (Makefile.am): Likewise.
20695         * modules/stdlib (Makefile.am): Likewise.
20696         * modules/string (Makefile.am): Likewise.
20697         * modules/sys_ioctl (Makefile.am): Likewise.
20698         * modules/sys_select (Makefile.am): Likewise.
20699         * modules/sys_socket (Makefile.am): Likewise.
20700         * modules/sys_stat (Makefile.am): Likewise.
20701         * modules/sys_times (Makefile.am): Likewise.
20702         * modules/sys_utsname (Makefile.am): Likewise.
20703         * modules/sys_wait (Makefile.am): Likewise.
20704         * modules/termios (Makefile.am): Likewise.
20705         * modules/time (Makefile.am): Likewise.
20706         * modules/unistd (Makefile.am): Likewise.
20707         * modules/wchar (Makefile.am): Likewise.
20708
20709 2011-06-08  Eric Blake  <eblake@redhat.com>
20710
20711         strerror: simplify replacement
20712         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20713         * modules/strerror (configure.ac): No prereqs needed here...
20714         * modules/strerror-override (configure.ac): ...but this needs it.
20715         (Files): Add file for needed prereq macro.
20716
20717 2011-06-08  Bruno Haible  <bruno@clisp.org>
20718
20719         strerror_r-posix: Tweaks.
20720         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20721         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20722         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20723         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20724         (gl_FUNC_STRERROR_R): ... to here.
20725         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20726
20727 2011-06-07  Eric Blake  <eblake@redhat.com>
20728
20729         perror: document fixed bugs
20730         * doc/posix-functions/perror.texi (perror): Document recent
20731         patches.
20732
20733 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20734
20735         stat-time: get_stat_birthtime failure is better-defined
20736         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20737         return a timestamp whose tv_sec and tv_nsec values are both -1.
20738         Previously, the spec said only that the tv_nsec value was negative.
20739         This upward-compatible change simplifies GNU tar a bit.
20740
20741 2011-06-07  Eric Blake  <eblake@redhat.com>
20742
20743         strerror_r-posix: work around cygwin 1.7.9
20744         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20745         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20746         bug without replacing strerror_r.
20747         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20748         strerror_r is buggy, but without requiring strerror_r compilation.
20749         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20750
20751         test-perror: relax test to ignore cygwin bug
20752         * tests/test-perror2.c (main): Relax test on requiring detection
20753         of stream errors, and use unbuffered stream.
20754         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20755         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20756         * doc/posix-functions/fputc.texi (fputc): Likewise.
20757         * doc/posix-functions/fputs.texi (fputs): Likewise.
20758         * doc/posix-functions/fputws.texi (fputws): Likewise.
20759         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20760         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20761         * doc/posix-functions/getopt.texi (getopt): Likewise.
20762         * doc/posix-functions/perror.texi (perror): Likewise.
20763         * doc/posix-functions/printf.texi (printf): Likewise.
20764         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20765         * doc/posix-functions/psignal.texi (psignal): Likewise.
20766         * doc/posix-functions/putc.texi (putc): Likewise.
20767         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20768         Likewise.
20769         * doc/posix-functions/putchar.texi (putchar): Likewise.
20770         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20771         Likewise.
20772         * doc/posix-functions/puts.texi (puts): Likewise.
20773         * doc/posix-functions/putwc.texi (putwc): Likewise.
20774         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20775         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20776         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20777         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20778         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20779         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20780         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20781         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20782
20783 2011-05-22  Bruno Haible  <bruno@clisp.org>
20784
20785         strerror: Move AC_LIBOBJ invocations to module description.
20786         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20787         gl_PREREQ_STRERROR invocations from here...
20788         * modules/strerror (configure.ac): ... to here.
20789
20790 2011-05-21  Bruno Haible  <bruno@clisp.org>
20791
20792         perror: Use common idiom.
20793         * modules/perror (configure.ac): Reorder statements.
20794
20795 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20796
20797         tests: fix usage message in 'mktempd_'
20798         * tests/init.sh (mktempd_): In the usage message, use literal
20799         'mktempd_', not '$ME' (which is even undefined), as the name of
20800         the subroutine.
20801
20802 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20803
20804         tests init: new function 'fatal_', for hard errors
20805         Before this patch, the only way offered by tests/init.sh to
20806         properly signal a hard error was the `framework_failure_'
20807         function.  But the error message issued by that function,
20808         as its name would suggest, refers to a set-up failure in the
20809         testsuite, while hard errors can obviously also be due to
20810         other reasons.  The best way to fix this inconsistency is to
20811         introduce a new function with a more general error message.
20812         * tests/init.sh (fatal_): New function.
20813
20814 2011-06-06  Eric Blake  <eblake@redhat.com>
20815
20816         canonicalize-lgpl: use common idiom
20817         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20818         over newer POSIX -Rf.
20819         Reported by Bruno Haible.
20820
20821         canonicalize-lgpl: work around AIX realpath bug
20822         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20823         * doc/posix-functions/realpath.texi (realpath): Document it.
20824         Reported by Bruno Haible.
20825
20826         strerror: work around FreeBSD bug
20827         * lib/strerror.c (strerror): Special case 0.
20828         Reported by Bruno Haible.
20829
20830         strerror-override: avoid bloating errno module
20831         * modules/errno (Files, configure.ac): Move replacement strings...
20832         * modules/strerror-override: ...to new module.
20833         * modules/strerror (Depends-on): Add strerror-override.
20834         * modules/strerror_r-posix (Depends-on): Likewise.
20835         * MODULES.html.sh: Document new module.
20836         Reported by Bruno Haible.
20837
20838 2011-06-06  Bruno Haible  <bruno@clisp.org>
20839
20840         spawn-pipe tests: Rename program.
20841         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20842         * tests/test-spawn-pipe-child.c: Update comment.
20843         * tests/test-spawn-pipe.sh: Update.
20844         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20845
20846         spawn-pipe tests: Link the child program only against libc.
20847         * tests/test-spawn-pipe-child.c: New file, extracted from
20848         tests/test-spawn-pipe.c.
20849         (main): Expect only one argument.
20850         (is_open): New function, copied from tests/test-pipe.c.
20851         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20852         (child_main): Remove function.
20853         (test_pipe): Pass only one argument to the child program.
20854         (main): Remove child process code. Expect the child program's name as
20855         first argument.
20856         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20857         argument.
20858         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20859         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20860         test-spawn-pipe-child against no libraries.
20861
20862 2011-06-06  Bruno Haible  <bruno@clisp.org>
20863
20864         careadlinkat: Avoid mismatch between ssize_t and int.
20865         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20866         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20867
20868 2011-06-06  Jim Meyering  <meyering@redhat.com>
20869
20870         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20871         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20872         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20873
20874 2011-06-05  Bruno Haible  <bruno@clisp.org>
20875
20876         ansi-c++-opt: Interoperability with libtool.
20877         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20878         set the variable to "no", not to ":".
20879         * NEWS: Mention the change.
20880
20881 2011-06-05  Bruno Haible  <bruno@clisp.org>
20882
20883         acl: Fix test failure on AIX 7.
20884         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20885         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20886
20887 2011-06-05  Bruno Haible  <bruno@clisp.org>
20888
20889         pipe-filter-ii: Fix test failure on AIX and IRIX.
20890         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20891         with EAGAIN, retry with a smaller buffer size.
20892
20893 2011-06-05  Bruno Haible  <bruno@clisp.org>
20894
20895         localename: Fix link dependencies.
20896         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20897         * modules/localename-tests (Makefile.am): Link test-localename with
20898         $(LIBTHREAD).
20899
20900 2011-06-05  Bruno Haible  <bruno@clisp.org>
20901
20902         error: Avoid gcc warning.
20903         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20904
20905 2011-06-05  Bruno Haible  <bruno@clisp.org>
20906
20907         unsetenv: Avoid gcc warning.
20908         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20909
20910 2011-06-05  Bruno Haible  <bruno@clisp.org>
20911
20912         setenv: Avoid gcc warning.
20913         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20914
20915 2011-06-05  Bruno Haible  <bruno@clisp.org>
20916
20917         sys_select: Ensure memset is declared also on AIX 7.
20918         * lib/sys_select.in.h: Include <string.h> also on AIX.
20919         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20920         self-contained also on AIX 7.1.
20921
20922 2011-06-04  Jim Meyering  <meyering@redhat.com>
20923
20924         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20925         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20926         function name, "error".
20927         (_gl_translatable_diag_func_re): New configurable variable.
20928
20929 2011-06-04  Bruno Haible  <bruno@clisp.org>
20930
20931         getopt: Avoid gcc warning.
20932         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20933
20934 2011-06-04  Bruno Haible  <bruno@clisp.org>
20935
20936         strerror_r: Fix comments.
20937         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20938         commit.
20939
20940 2011-06-04  Bruno Haible  <bruno@clisp.org>
20941
20942         perror: Fix compilation error.
20943         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20944         Undefine fprintf, not sprintf.
20945         * modules/perror (Depends-on): Remove intprops, verify.
20946
20947 2011-06-04  Bruno Haible  <bruno@clisp.org>
20948
20949         setlocale: Enable replacement on Cygwin 1.5.
20950         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20951         Cygwin 1.5.x.
20952         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20953         LC_CTYPE category also exists on Cygwin 1.5.x.
20954
20955 2011-06-04  Bruno Haible  <bruno@clisp.org>
20956
20957         strerror-override: Don't disable symbol renamings.
20958         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20959         * lib/strerror-override.c: Include config.h.
20960         (strerror_override): Don't undefine.
20961
20962 2011-06-03  Bruno Haible  <bruno@clisp.org>
20963
20964         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20965         * lib/localename.h: Update copyright header.
20966         * lib/localename.c: Likewise.
20967         * lib/relocatable.h: Likewise.
20968         * lib/relocatable.c: Likewise.
20969
20970 2011-06-02  Bruno Haible  <bruno@clisp.org>
20971
20972         doc: Fix a module name.
20973         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20974
20975 2011-06-02  Bruno Haible  <bruno@clisp.org>
20976
20977         pipe2: Remove dependency on 'nonblocking' module.
20978         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20979         O_NONBLOCK is defined by gnulib.
20980         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20981         is zero.
20982         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20983         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20984         defined by gnulib.
20985         (get_nonblocking_flag): New function.
20986         (main): Test O_NONBLOCK flag only if it is nonzero.
20987         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20988
20989 2011-06-03  Jim Meyering  <meyering@redhat.com>
20990
20991         maint: three new prohibit-header-without-use rules
20992         Prohibit use of cloexec.h, posixver.h, same.h without use.
20993         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20994         (sc_prohibit_posixver_without_use): Likewise.
20995         (sc_prohibit_same_without_use): Likewise.
20996
20997 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20998
20999         allocator: 'die' routine is now given requested size
21000         * lib/allocator.h (struct allocator.die): New size arg.
21001         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
21002         If the actual problem is an ssize_t limitation, not a size_t or
21003         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
21004
21005 2011-06-01  Eric Blake  <eblake@redhat.com>
21006
21007         strerror: drop strerror_r dependency
21008         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
21009         * lib/strerror-override.c (strerror_override): ...to new file.
21010         * lib/strerror-override.h: Add prototype.
21011         * lib/strerror-impl.h: Delete.
21012         * lib/strerror.c (strerror): New implementation.
21013         * modules/errno (Files): Add new files.
21014         (configure.ac): Compile new file as appropriate.
21015         * modules/strerror (Files): Drop unused file.
21016         (Depends-on): Drop strerror_r-posix.
21017         * MODULES.html.sh: Document strerror_r-posix.
21018         Requested by Sam Steingold.
21019
21020         perror: call strerror_r directly
21021         * modules/perror (Files): Drop strerror-impl.h.
21022         * lib/perror.c (perror): Use our own stack buffer, rather than
21023         calling a wrapper that uses static storage.
21024         * doc/posix-functions/perror.texi (perror): Document a limitation
21025         of our replacement.
21026
21027         strerror_r: fix includes for FreeBSD
21028         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
21029         since we use abort on some platforms.
21030         Reported by Matthias Bolte.
21031
21032 2011-05-31  Bruno Haible  <bruno@clisp.org>
21033
21034         Fix link errors in tests: openat-die uses gettext-h.
21035         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
21036         against $(LIBINTL).
21037         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
21038         against $(LIBINTL).
21039         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
21040         $(LIBINTL).
21041         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
21042         against $(LIBINTL).
21043         * modules/linkat-tests (Makefile.am): Link test-linkat against
21044         $(LIBINTL).
21045         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
21046         $(LIBINTL).
21047         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
21048         against $(LIBINTL).
21049         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
21050         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
21051         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
21052         $(LIBINTL).
21053         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
21054         $(LIBINTL).
21055         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
21056         $(LIBINTL).
21057         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21058
21059 2011-05-31  Bruno Haible  <bruno@clisp.org>
21060
21061         Fix link errors in tests: wait-process uses gettext-h.
21062         * modules/nonblocking-pipe-tests (Makefile.am): Set
21063         test_nonblocking_pipe_main_LDADD.
21064         * modules/nonblocking-socket-tests (Makefile.am): Link
21065         test-nonblocking-socket-main against $(LIBINTL).
21066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21067
21068 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
21069
21070         assert-h: work around 'verify' incompatibility
21071         * lib/verify.h: Use @...@ directives, not ifdef.
21072         * modules/assert-h (assert.h): Implement the directives.
21073         (assert.h): Substitute the symbol-prefix more consistently.
21074
21075 2011-05-29  Jim Meyering  <meyering@redhat.com>
21076
21077         trim: remove three superfluous assignments
21078         * lib/trim.c (trim2): Remove three superfluous assignments
21079         and correct brace positioning.
21080
21081 2011-05-29  Bruno Haible  <bruno@clisp.org>
21082
21083         wctype-h: Avoid namespace pollution on Solaris 2.6.
21084         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
21085         identifiers.
21086         * doc/posix-headers/wctype.texi: Mention the problem.
21087         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21088
21089 2011-05-28  Jim Meyering  <meyering@redhat.com>
21090
21091         parse-datetime.y: accommodate -Wstrict-overflow
21092         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
21093         placate -Wstrict-overflow.
21094
21095         trim: avoid a warning from -O2 -Wstrict-overflow
21096         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
21097
21098 2011-05-29  Bruno Haible  <bruno@clisp.org>
21099
21100         gnulib-tool: Fix bug in yesterday's commit.
21101         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
21102         twice.
21103
21104 2011-05-29  Bruno Haible  <bruno@clisp.org>
21105
21106         Allow multiple gnulib generated include files to be combined.
21107         * gnulib-tool (func_compute_include_guard_prefix): New function.
21108         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
21109         ${gl_include_guard_prefix} references.
21110         (func_import, func_create_testdir): Invoke
21111         func_compute_include_guard_prefix.
21112         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
21113         * lib/ctype.in.h: Likewise.
21114         * lib/dirent.in.h: Likewise.
21115         * lib/errno.in.h: Likewise.
21116         * lib/fcntl.in.h: Likewise.
21117         * lib/float.in.h: Likewise.
21118         * lib/getopt.in.h: Likewise.
21119         * lib/iconv.in.h: Likewise.
21120         * lib/langinfo.in.h: Likewise.
21121         * lib/locale.in.h: Likewise.
21122         * lib/math.in.h: Likewise.
21123         * lib/netdb.in.h: Likewise.
21124         * lib/netinet_in.in.h: Likewise.
21125         * lib/poll.in.h: Likewise.
21126         * lib/pthread.in.h: Likewise.
21127         * lib/pty.in.h: Likewise.
21128         * lib/sched.in.h: Likewise.
21129         * lib/se-selinux.in.h: Likewise.
21130         * lib/search.in.h: Likewise.
21131         * lib/signal.in.h: Likewise.
21132         * lib/spawn.in.h: Likewise.
21133         * lib/stdarg.in.h: Likewise.
21134         * lib/stddef.in.h: Likewise.
21135         * lib/stdint.in.h: Likewise.
21136         * lib/stdio.in.h: Likewise.
21137         * lib/stdlib.in.h: Likewise.
21138         * lib/string.in.h: Likewise.
21139         * lib/strings.in.h: Likewise.
21140         * lib/sys_file.in.h: Likewise.
21141         * lib/sys_ioctl.in.h: Likewise.
21142         * lib/sys_select.in.h: Likewise.
21143         * lib/sys_socket.in.h: Likewise.
21144         * lib/sys_stat.in.h: Likewise.
21145         * lib/sys_time.in.h: Likewise.
21146         * lib/sys_times.in.h: Likewise.
21147         * lib/sys_uio.in.h: Likewise.
21148         * lib/sys_utsname.in.h: Likewise.
21149         * lib/sys_wait.in.h: Likewise.
21150         * lib/sysexits.in.h: Likewise.
21151         * lib/termios.in.h: Likewise.
21152         * lib/time.in.h: Likewise.
21153         * lib/unistd.in.h: Likewise.
21154         * lib/wchar.in.h: Likewise.
21155         * lib/wctype.in.h: Likewise.
21156         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
21157         * modules/ctype (Makefile.am): Likewise.
21158         * modules/dirent (Makefile.am): Likewise.
21159         * modules/errno (Makefile.am): Likewise.
21160         * modules/fcntl-h (Makefile.am): Likewise.
21161         * modules/float (Makefile.am): Likewise.
21162         * modules/getopt-posix (Makefile.am): Likewise.
21163         * modules/iconv-h (Makefile.am): Likewise.
21164         * modules/langinfo (Makefile.am): Likewise.
21165         * modules/locale (Makefile.am): Likewise.
21166         * modules/math (Makefile.am): Likewise.
21167         * modules/netdb (Makefile.am): Likewise.
21168         * modules/netinet_in (Makefile.am): Likewise.
21169         * modules/poll-h (Makefile.am): Likewise.
21170         * modules/pthread (Makefile.am): Likewise.
21171         * modules/pty (Makefile.am): Likewise.
21172         * modules/sched (Makefile.am): Likewise.
21173         * modules/search (Makefile.am): Likewise.
21174         * modules/selinux-h (Makefile.am): Likewise.
21175         * modules/signal (Makefile.am): Likewise.
21176         * modules/spawn (Makefile.am): Likewise.
21177         * modules/stdarg (Makefile.am): Likewise.
21178         * modules/stddef (Makefile.am): Likewise.
21179         * modules/stdint (Makefile.am): Likewise.
21180         * modules/stdio (Makefile.am): Likewise.
21181         * modules/stdlib (Makefile.am): Likewise.
21182         * modules/string (Makefile.am): Likewise.
21183         * modules/strings (Makefile.am): Likewise.
21184         * modules/sys_file (Makefile.am): Likewise.
21185         * modules/sys_ioctl (Makefile.am): Likewise.
21186         * modules/sys_select (Makefile.am): Likewise.
21187         * modules/sys_socket (Makefile.am): Likewise.
21188         * modules/sys_stat (Makefile.am): Likewise.
21189         * modules/sys_time (Makefile.am): Likewise.
21190         * modules/sys_times (Makefile.am): Likewise.
21191         * modules/sys_uio (Makefile.am): Likewise.
21192         * modules/sys_utsname (Makefile.am): Likewise.
21193         * modules/sys_wait (Makefile.am): Likewise.
21194         * modules/sysexits (Makefile.am): Likewise.
21195         * modules/termios (Makefile.am): Likewise.
21196         * modules/time (Makefile.am): Likewise.
21197         * modules/unistd (Makefile.am): Likewise.
21198         * modules/wchar (Makefile.am): Likewise.
21199         * modules/wctype-h (Makefile.am): Likewise.
21200         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
21201
21202 2011-05-29  Bruno Haible  <bruno@clisp.org>
21203
21204         assert-h: Allow multiple gnulib generated replacements to coexist.
21205         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
21206
21207 2011-05-29  Bruno Haible  <bruno@clisp.org>
21208
21209         argp: Allow coexistence with strerror_r-posix module.
21210         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
21211         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
21212         by gnulib's <string.h> replacement), assume it has the POSIX signature,
21213         not the glibc signature.
21214
21215 2011-05-28  Bruno Haible  <bruno@clisp.org>
21216
21217         gnulib-tool: Alternative structure of testdirs, similar to --import.
21218         * gnulib-tool: New option --single-configure.
21219         (func_usage): Document it.
21220         (single_configure): New variable.
21221         (func_modules_transitive_closure_separately,
21222         func_modules_transitive_closure_separately,
21223         func_determine_use_libtests, func_modules_add_dummy_separately,
21224         func_modules_to_filelist_separately): New functions, extracted from
21225         func_import.
21226         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
21227         (func_import): Use the new functions.
21228         (func_create_testdir): Set final_modules. Handle $single_configure =
21229         true case.
21230
21231 2011-05-28  Bruno Haible  <bruno@clisp.org>
21232
21233         getloadavg: Remove an unreliable safety check.
21234         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
21235         getloadavg.c is in place.
21236         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
21237         Reported by Sam Steingold <sds@gnu.org>.
21238
21239 2011-05-28  Bruno Haible  <bruno@clisp.org>
21240
21241         doc: Cleanup yet another file produced by texinfo.tex.
21242         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
21243
21244 2011-05-28  Bruno Haible  <bruno@clisp.org>
21245
21246         Finish the conditional dependencies mechanism.
21247         * gnulib-tool: New option --no-conditional-dependencies.
21248         (func_usage): Document it. Don't mark --conditional-dependencies as
21249         experimental.
21250         (cond_dependencies): The possible values can now be true, false, empty.
21251         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
21252         (func_import): Store setting in gnulib-cache.m4 and read it from there.
21253         * doc/gnulib-tool.texi (Conditional dependencies): New section.
21254
21255 2011-05-28  Bruno Haible  <bruno@clisp.org>
21256
21257         doc: Use a recent texinfo.tex.
21258         * doc/Makefile (tex_opts): New variable.
21259         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
21260
21261 2011-05-28  Jim Meyering  <meyering@redhat.com>
21262
21263         intprops.h: adjust comment to match code change
21264         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
21265         only once, it *may* have side effects.  Also fix an unrelated typo.
21266         (_GL_INT_SIGNED): Likewise.
21267
21268 2011-05-26  Simon Josefsson  <simon@josefsson.org>
21269
21270         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
21271
21272 2011-05-26  Bruno Haible  <bruno@clisp.org>
21273
21274         mbsrchr: Avoid collision with system function on Interix.
21275         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
21276         Reported by Markus Duft <mduft@gentoo.org>.
21277
21278 2011-05-15  James Youngman  <jay@gnu.org>
21279
21280         getopt: for ambiguous options, enumerate the possibilities.
21281         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
21282         the ambiguous options when an ambiguous prefix is given. This was
21283         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
21284         glibc change was
21285         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
21286
21287 2011-05-25  Eric Blake  <eblake@redhat.com>
21288
21289         getcwd: work around mingw bug
21290         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
21291         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21292         Reported by Matthias Bolte.
21293
21294 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
21295
21296         test-intprops: disable -Wtype-limits diagnostics
21297         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
21298         diagnostics.  Otherwise, the integer overflow macros generate many
21299         diagnostics.  Reported by Jim Meyering in
21300         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21301
21302         intprops: shorten, to pacify gcc -Woverlength-strings
21303         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
21304         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
21305         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
21306         likely to run afoul of C compiler limits for string constant lengths.
21307         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21308
21309 2011-05-24  Eric Blake  <eblake@redhat.com>
21310
21311         docs: document recently fixed glibc printf bug
21312         * doc/posix-functions/fprintf.texi (fprintf): Document it.
21313         * doc/posix-functions/printf.texi (printf): Likewise.
21314         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21315         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21316
21317         closein-tests: convert to init.sh
21318         * modules/closein-tests (Files): Add init.sh
21319         * tests/test-closein.sh Use it.
21320
21321         yesno-tests: convert to init.sh
21322         * modules/yesno-tests (Files): Add init.sh.
21323         * tests/test-yesno.sh: Use it.
21324
21325         atexit-tests: ensure reliable exit status
21326         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
21327         Reported by Bruno Haible.
21328
21329 2011-05-24  Bruno Haible  <bruno@clisp.org>
21330
21331         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
21332         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
21333         gl_PREREQ_STRERROR_R invocations from here...
21334         * modules/strerror_r-posix (configure.ac): ... to here.
21335
21336 2011-05-24  Eric Blake  <eblake@redhat.com>
21337
21338         strerror_r: fix missing header
21339         * lib/strerror_r.c: Avoid compiler warning about snprintf.
21340
21341         strerror_r: fix AIX test failures
21342         * lib/strerror_r.c (strerror_r): Convert silent truncation to
21343         ERANGE failure.
21344
21345         strerror_r: fix Solaris test failures
21346         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
21347         failures.
21348         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21349
21350         strerror_r: enforce POSIX recommendations
21351         * lib/strerror_r.c (safe_copy): New helper method.
21352         (strerror_r): Guarantee a non-empty string.
21353         * tests/test-strerror_r.c (main): Enhance tests to incorporate
21354         recent POSIX rulings and to match our strerror guarantees.
21355         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21356
21357 2011-05-24  Jim Meyering  <meyering@redhat.com>
21358
21359         test-perror2.c: avoid warning about unused variable
21360         * tests/test-perror2.c (main): Remove declaration of unused "fp".
21361
21362 2011-05-24  Eric Blake  <eblake@redhat.com>
21363
21364         perror: avoid spurious test failure on HP-UX
21365         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
21366
21367         tests: fix logic bug in init.sh
21368         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
21369         shell.
21370
21371 2011-05-24  Jim Meyering  <meyering@redhat.com>
21372
21373         utimensat: do not reference an out-of-scope buffer
21374         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
21375         declared in an inner scope, yet "times" would be dereferenced outside
21376         the scope in which "ts" was valid.
21377         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
21378         of ts[2] "out/up", so that the use of aliased "times" (via
21379         "times = ts;") does not end up referencing an out-of-scope "ts"
21380
21381         opendir-safer.c: don't clobber errno; don't close negative FD
21382         * lib/opendir-safer.c (opendir_safer):
21383         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
21384         file descriptor, and more importantly, don't clobber the
21385         offending errno value with EINVAL.  Before, upon failure
21386         of dup_safer, we would pass the negative file descriptor to
21387         fdopendir, which would clobber errno.
21388
21389 2011-05-23  Bruno Haible  <bruno@clisp.org>
21390
21391         idcache: Fix module description.
21392         * modules/idcache (Include): Set to "idcache.h".
21393
21394 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21395
21396         gnulib-tool: fix portability problem with MacOS sed
21397         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
21398         before the "}".  Problem reported by Leo in
21399         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
21400         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
21401         sed_extract_condition1, sed_extract_condition2.
21402
21403 2011-05-23  Bruno Haible  <bruno@clisp.org>
21404
21405         hash: Simplify autoconf macro.
21406         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
21407
21408 2011-05-23  Bruno Haible  <bruno@clisp.org>
21409
21410         getugroups: Fix module description.
21411         * modules/getugroups (Include): Set to "getugroups.h".
21412
21413 2011-05-23  Bruno Haible  <bruno@clisp.org>
21414
21415         linkat: Simplify autoconf macro.
21416         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
21417
21418 2011-05-23  Bruno Haible  <bruno@clisp.org>
21419             Eric Blake  <eblake@redhat.com>
21420
21421         linkat, renameat: Update dependencies.
21422         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
21423         * modules/linkat (Depends-on): Likewise. Remove also readlink,
21424         symlinkat.
21425
21426 2011-05-23  Jim Meyering  <meyering@redhat.com>
21427
21428         maint.mk: more tight_scope improvements
21429         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
21430         (_gl_TS_headers): Define only in if-0'd block.
21431         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
21432         sometimes we must *not* use it.  Adjust uses accordingly.
21433         (sc_tight_scope): Use much simpler grep-based test to determine
21434         whether we skip this rule.
21435
21436         maint.mk: generalize/improve the tight-scope rule
21437         * top/maint.mk: Emit a warning when the test is skipped.
21438         (_gl_TS_dir): Add $(srcdir)/ prefix.
21439         (_gl_TS_function_match): Simplify, rather than trying
21440         to enumerate common types.  Otherwise, it would fail to match an
21441         "extern unsigned char const *" declaration in idutils.
21442         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
21443         a way to support use of that type of macro.
21444         (_gl_TS_var_match): Simplify regexp.
21445         (_gl_TS_obj_files): New configurable variable.
21446         (_gl_TS_headers): Likewise.
21447
21448 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21449
21450         verify: fix bug when gnulib <assert.h> is also included
21451         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
21452         is defined, not if _GL_STATIC_ASSERT_H is not defined.
21453         Perhaps there's a better way, but this fixes the immediate problem.
21454         Problem reported by Bruno Haible in
21455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
21456
21457 2011-05-22  Bruno Haible  <bruno@clisp.org>
21458
21459         xgetcwd: Simplify autoconf macro.
21460         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
21461
21462 2011-05-22  Bruno Haible  <bruno@clisp.org>
21463
21464         New module 'mktime-internal'.
21465         * modules/mktime-internal: New file.
21466         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
21467         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
21468         mktime_internal as a C macro if libc has __mktime_internal.
21469         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
21470         conditions.
21471         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
21472
21473 2011-05-22  Bruno Haible  <bruno@clisp.org>
21474
21475         timegm: Correct mktime replacement statements.
21476         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
21477         defining mktime as a C macro. This completes a 2009-07-28 commit.
21478
21479 2011-05-22  Bruno Haible  <bruno@clisp.org>
21480
21481         timegm: Simplify autoconf macro.
21482         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
21483
21484 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
21485
21486         clock-time: change to LGPLv2+.
21487         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
21488         BSD-like but we have no mark for that; this is good enough for now.
21489
21490 2011-05-21  Bruno Haible  <bruno@clisp.org>
21491
21492         strerror_r: Fix comments.
21493         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
21494
21495 2011-05-21  Bruno Haible  <bruno@clisp.org>
21496
21497         relocatable-prog-wrapper: Fix possible link error.
21498         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
21499         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
21500         (gl_FUNC_SETENV): ... to here.
21501         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
21502         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
21503
21504 2011-05-21  Bruno Haible  <bruno@clisp.org>
21505
21506         relocatable-prog-wrapper: Assume strerror() exists.
21507         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21508         m4/strerror.m4.
21509         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21510         * lib/relocwrapper.c: Remove mention of strerror module.
21511         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21512         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21513         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21514         C macro.
21515
21516 2011-05-21  Bruno Haible  <bruno@clisp.org>
21517
21518         select: Simplify replacement idiom.
21519         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21520         Win32 platforms.
21521         * lib/sys_select.in.h (select): Simplify accordingly.
21522         * modules/select (Depends-on): Likewise.
21523
21524 2011-05-21  Bruno Haible  <bruno@clisp.org>
21525
21526         mkdir-p: Simplify autoconf macro.
21527         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21528         gl_FUNC_LCHOWN.
21529
21530 2011-05-21  Eric Blake  <eblake@redhat.com>
21531
21532         strerror_r: avoid clobbering strerror on cygwin
21533         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21534         fall back instead to sys_errlist.
21535         * modules/strerror (configure.ac): Add witness.
21536         * tests/test-strerror_r.c (main): Enhance test.
21537         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21538         * tests/test-perror2.c (main): Free memory before exit.
21539
21540 2011-05-21  Bruno Haible  <bruno@clisp.org>
21541
21542         mkdtemp: Use gnulib naming conventions.
21543         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21544         * modules/mkdtemp (configure.ac): Update.
21545
21546 2011-05-20  Eric Blake  <eblake@redhat.com>
21547
21548         strerror_r: avoid corrupting errno on Solaris
21549         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21550         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21551
21552         strerror_r: avoid compiler warning
21553         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21554
21555         strerror_r: simplify AIX code
21556         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21557
21558         test-perror: avoid spurious failure on FreeBSD
21559         * modules/perror-tests (Depends-on): Add strerror, now that
21560         strerror_r no longer pulls it in.
21561
21562 2011-05-20  Bruno Haible  <bruno@clisp.org>
21563
21564         strerror_r-posix: Remove unused dependencies.
21565         * modules/strerror_r-posix (Depends-on): Remove strerror.
21566         Reported by Eric Blake.
21567
21568 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21569
21570         intprops: remove assumption about A|B representation
21571         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21572         is a valid integer if both A and B are.  Although this is true for
21573         all known practical hosts, the C standard doesn't guarantee it,
21574         and the code need not assume it.  Also, this change may work around
21575         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21577
21578 2011-05-20  Eric Blake  <eblake@redhat.com>
21579
21580         perror: work around FreeBSD bug
21581         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21582         is broken.  Move AC_LIBOBJ...
21583         * modules/perror (configure.ac): Here.
21584         * doc/posix-functions/perror.texi (perror): Document this.
21585         * tests/test-perror2.c (main): Enhance test.
21586
21587         test-perror: check for strerror interactions
21588         * tests/macros.h (STREQ): Add macro.
21589         * modules/perror-tests (Files): Add second test.
21590         * tests/test-perror2.c (main): New file.
21591         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21592
21593         test-perror: rewrite to use init script
21594         * modules/perror-tests (Files): Add init.sh.
21595         * tests/test-perror.sh: Use temporary directory.
21596
21597 2011-05-20  Jim Meyering  <meyering@redhat.com>
21598
21599         maint: replace misused "a" with "an"
21600         * doc/intprops.texi: "a integer"
21601         * doc/regex.texi: "a explanation"
21602         * lib/alignof.h: "a object"
21603         * lib/argmatch.h: "a explanation"
21604         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21605         * lib/stdint.in.h: "a integer"
21606         * lib/userspec.c: "a owner"
21607         * doc/gnulib.texi: Fix "a idea", and reword.
21608
21609 2011-05-19  Jim Meyering  <meyering@redhat.com>
21610
21611         maint: correct misuse of "a" and "an"
21612         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21613         * lib/argp-help.c: "an docum...": s/an/a/
21614         * lib/argp-parse.c: "An vector": s/An/A/
21615         * lib/execute.c: "an native": s/an/a/
21616         * lib/spawn-pipe.c: Likewise.
21617         * lib/gc.h: "an Gc_rc": s/an/a/
21618         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21619         * lib/fts.c: "an stat.st_dev": s/an/a/
21620
21621 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21622
21623         intprops-tests: work around HP-UX 11.23 cc bug with constants
21624         * tests/test-intprops.c (VERIFY): New macro.
21625         (main): Use it, instead of verify, to work around the compiler bug; see
21626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21627
21628         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21629         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21630         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21631         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21632         (_GL_REMAINDER_OVERFLOW): Use it.
21633
21634         intprops-tests: revert unsigned part of previous change
21635         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21636         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21637         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21639
21640 2011-05-19  Bruno Haible  <bruno@clisp.org>
21641
21642         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21643         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21644         strerror_r() returned without filling the buffer.
21645         Reported by Eric Blake.
21646
21647 2011-05-19  Eric Blake  <eblake@redhat.com>
21648
21649         strerror_r: guarantee unchanged errno
21650         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21651         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21652         failure.
21653         * tests/test-strerror_r.c (main): Enhance test.
21654
21655 2011-05-19  Bruno Haible  <bruno@clisp.org>
21656
21657         strerror_r: Reorder #if blocks.
21658         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21659         for consistency with the previous commit.
21660
21661 2011-05-19  Bruno Haible  <bruno@clisp.org>
21662
21663         perror: Avoid clobbering the strerror buffer when possible.
21664         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21665         * lib/strerror.c: Include it.
21666         * modules/strerror (Files): Add lib/strerror-impl.h.
21667         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21668         (my_strerror): New function, defined through lib/strerror-impl.h.
21669         (perror): Use it instead of strerror.
21670         * modules/perror (Files): Add lib/strerror-impl.h.
21671         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21672
21673 2011-05-19  Eric Blake  <eblake@redhat.com>
21674
21675         strerror_r: fix on newer cygwin
21676         * lib/strerror_r.c (strerror_r): Cygwin now has
21677         __xpg_strerror_r, use it.
21678
21679 2011-05-19  Bruno Haible  <bruno@clisp.org>
21680
21681         strerror_r: Avoid clobbering the strerror buffer when possible.
21682         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21683         (sys_nerr, sys_errlist): New declarations.
21684         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21685         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21686         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21687
21688 2011-05-19  Bruno Haible  <bruno@clisp.org>
21689
21690         strerror_r: Fix test failure on mingw.
21691         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21692         EXTEND_STRERROR_R.
21693         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21694         macros from errno.in.h instead.
21695
21696 2011-05-19  Eric Blake  <eblake@redhat.com>
21697
21698         strerror: relax test for Solaris
21699         * tests/test-strerror.c (main): Permit Solaris behavior.
21700         * tests/test-strerror_r.c (main): Likewise.
21701
21702         strerror: enforce POSIX ruling on strerror(0)
21703         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21704         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21705         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21706         * doc/posix-functions/strerror.texi (strerror): Document it.
21707         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21708         * tests/test-strerror.c (main): Strengthen test.
21709         * tests/test-strerror_r.c (main): Likewise.
21710
21711 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21712
21713         intprop-tests: port to older and more-pedantic compilers
21714         * modules/intprops-tests (Files): Add tests/macros.h.
21715         * tests/test-intprops.c: Include macros.h.
21716         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21717         it's no longer documented to expand to an integer constant expression.
21718         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21719         argument is floating point, as it's no longer documented to expand
21720         to an integer constant expression in that case.
21721         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21722         compiler bugs reported by Bruno Haible.  See
21723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21724         (U0, U1): New constants, to work around the same bugs.  Also,
21725         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21726
21727         intprops: work around C compiler bugs
21728         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21729         bug in Sun C 5.11 2010/08/13 and other compilers; see
21730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21731
21732         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21733         * doc/intprops.texi (Integer Type Determination): Fix
21734         documentation for TYPE_IS_INTEGER: it returns an constant
21735         expression, not an integer constant expression.  Fix doc for
21736         TYPE_SIGNED: it returns an integer constant expression only if its
21737         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21738         hardly worth documented that way....)
21739
21740 2011-05-18  Bruno Haible  <bruno@clisp.org>
21741
21742         strerror_r: Avoid clobbering the strerror buffer when possible.
21743         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21744         Handle gnulib defined errno values here. When strerror() returns NULL
21745         or an empty string, return EINVAL.
21746         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21747         gnulib defined errno values here.
21748         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21749
21750 2011-05-18  Eric Blake  <eblake@redhat.com>
21751
21752         fnmatch: avoid compiler warning
21753         * lib/fnmatch_loop.c (FCT): Use correct type.
21754         Reported by Matthias Bolte.
21755
21756 2011-05-13  Jim Meyering  <meyering@redhat.com>
21757
21758         maint.mk: three new prohibit_<HDR>_without_use rules
21759         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21760         (sc_prohibit_stdio-safer_without_use): Likewise.
21761         (sc_prohibit_xfreopen_without_use): Likewise.
21762
21763 2011-05-17  Jim Meyering  <meyering@redhat.com>
21764
21765         announce-gen: fail if the NEWS delta is empty
21766         If there's nothing noteworthy in NEWS, then either you forgot
21767         or you shouldn't be releasing.
21768         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21769
21770 2011-05-17  Pádraig Brady <P@draigBrady.com>
21771
21772         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21773         reserved symbols starting with double underscore from the check.
21774
21775 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21776
21777         intprops: add doc
21778         * doc/intprops.texi: New file, documenting intprops.
21779         * doc/gnulib.texi (Particular Modules): Include it.
21780
21781         verify: add doc to gnulib manual and fix example
21782         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21783         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21784         (Compile-time Assertions): Fix example so it can't overflow.
21785
21786 2011-05-17  Jim Meyering  <meyering@redhat.com>
21787
21788         warnings.m4: don't usurp save_CPPFLAGS variable name
21789         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21790
21791         doc: fix typo
21792         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21793
21794 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21795             Bruno Haible  <bruno@clisp.org>
21796
21797         doc: Tweak recent change.
21798         * README (Portability guidelines): Tweak new text.
21799         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21800         Interix 6.1.
21801
21802 2011-05-16  Eric Blake  <eblake@redhat.com>
21803
21804         inttypes: avoid autoconf warning
21805         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21806         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21807
21808 2011-05-16  Sam Steingold <sds@gnu.org>
21809         and Eric Blake  <eblake@redhat.com>
21810
21811         vc-list-files: accept multiple directory operands
21812         * build-aux/vc-list-files: Iterate over all remaining operands.
21813
21814 2011-05-16  Bruno Haible  <bruno@clisp.org>
21815
21816         Fix confusion regarding deprecated modules.
21817         * modules/calloc (Status, Notice): Mark module as deprecated, not
21818         obsolete.
21819         * modules/fnmatch-posix (Status, Notice): Likewise.
21820         * modules/getdate (Status, Notice): Likewise.
21821         * modules/getopt (Status, Notice): Likewise.
21822         * modules/malloc (Status, Notice): Likewise.
21823         * modules/pipe (Status, Notice): Likewise.
21824         * modules/realloc (Status, Notice): Likewise.
21825         * modules/rename-dest-slash (Status, Notice): Likewise.
21826         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21827         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21828         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21829         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21830         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21831
21832 2011-05-16  Bruno Haible  <bruno@clisp.org>
21833
21834         doc: List the target platforms.
21835         * doc/gnulib-intro.texi (Target Platforms): New section.
21836         * doc/gnulib.texi (Introduction): Update menu.
21837         * README (Portability guidelines): Refer to the new section. Update
21838         statement about oldest supported environment. Remove rationale why
21839         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21840         unportable C89 function.
21841         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21842         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21843
21844 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21845
21846         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21847
21848 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21849
21850         intprops-tests: new module
21851         * modules/intprops-tests, tests/test-intprops.c: New files.
21852
21853         intprops: add safe, portable integer overflow checking
21854         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21855         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21856         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21857         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21858         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21859         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21860         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21861         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21862         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21863         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21864         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21865
21866 2011-05-12  James Youngman  <jay@gnu.org>
21867
21868         Add a test for glibc's Bugzilla bug #12378.
21869         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21870         doesn't allow the literal matching of a lone "[" (which is
21871         required by POSIX).
21872         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21873
21874 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21875
21876         Sync glibc change fixing Bugzilla bug #12378.
21877         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21878         beginning and fall back to matching as normal character if the
21879         string ends before the matching ']' is found.  This is what POSIX
21880         requires.
21881
21882 2011-05-13  Eric Blake  <eblake@redhat.com>
21883
21884         getcwd-lgpl: relax test for FreeBSD
21885         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21886         issue.
21887         * tests/test-getcwd-lgpl.c (main): Relax test.
21888         Reported by Matthias Bolte.
21889
21890 2011-05-11  Eric Blake  <eblake@redhat.com>
21891
21892         test-fflush: silence compiler warning
21893         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21894
21895 2011-05-11  Bruno Haible  <bruno@clisp.org>
21896
21897         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21898         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21899         * modules/canonicalize (Depends-on): Add 'nocrash'.
21900         * modules/canonicalize-lgpl (Depends-on): Likewise.
21901         * doc/posix-functions/realpath.texi: Update platforms list.
21902         Reported by Ryan Schmidt <ryandesign@macports.org>.
21903
21904 2011-05-11  Bruno Haible  <bruno@clisp.org>
21905
21906         group-member: Declare function in <unistd.h>.
21907         * lib/unistd.in.h (group_member): New declaration.
21908         * lib/group-member.h: Remove file.
21909         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21910         * tests/test-unistd-c++.cc: Check signature of group_member.
21911         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21912         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21913         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21914         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21915         HAVE_GROUP_MEMBER.
21916         * modules/group-member (Files): Remove lib/group-member.h.
21917         (Depends-on): Add unistd. Specify conditions.
21918         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21919         (Include): Change to <unistd.h>.
21920         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21921         HAVE_GROUP_MEMBER.
21922         * NEWS: Mention the change.
21923         * lib/euidaccess.c: Don't include group-member.h.
21924
21925 2011-05-11  Bruno Haible  <bruno@clisp.org>
21926
21927         group-member: Document module.
21928         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21929         module.
21930
21931 2011-05-11  Bruno Haible  <bruno@clisp.org>
21932
21933         fclose: Fix mistake earlier today.
21934         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21935
21936 2011-05-11  Eric Blake  <eblake@redhat.com>
21937
21938         fclose: preserve fflush errors
21939         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21940         Reported by Jim Meyering.
21941
21942         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21943         * build-aux/bootstrap (check_versions): When no specific version
21944         is required, merely check that the app produces an exit status
21945         that indicates its existence.
21946
21947         maint.mk: drop redundant check
21948         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21949         the same but better.
21950
21951 2011-05-11  Bruno Haible  <bruno@clisp.org>
21952
21953         fclose: Fix possible link error.
21954         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21955         unregister_shadow_fd. Improve comments.
21956         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21957         Eric Blake.
21958
21959 2011-05-11  Jim Meyering  <meyering@redhat.com>
21960
21961         maint.mk: improve "can not" detection and generalize rule name
21962         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21963         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21964         Use the same technique as in sc_prohibit_doubled_word, so that
21965         we recognize "can not" also when the words are separated by a newline.
21966         Suggested by Eric Blake.
21967         (perl_filename_lineno_text_): Define.  Factored out of...
21968         (prohibit_doubled_word_): ...here.  Use the new definition.
21969         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21970         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21971         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21972
21973 2011-05-10  Eric Blake  <eblake@redhat.com>
21974
21975         fclose: avoid double close race when possible
21976         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21977         all but WINDOWS_SOCKETS.
21978
21979 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21980
21981         openat: correct new comment
21982         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21983
21984 2011-05-10  Jim Meyering  <meyering@redhat.com>
21985
21986         openat: add comments
21987         * lib/openat-proc.c (openat_proc_name): Add comments,
21988         mostly from Eric Blake.
21989
21990 2011-05-09  Eric Blake  <eblake@redhat.com>
21991
21992         openat: reduce syscalls in first probe of /proc
21993         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21994         be a directory.  Simplify the probe for .. bugs.
21995         * modules/openat (Depends-on): Drop same-inode.
21996         Reported by Bastien ROUCARIES.
21997
21998 2011-05-09  Jim Meyering  <meyering@redhat.com>
21999
22000         maint.mk: change semantics/name of tight_scope variables
22001         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
22002         Rename variables to align with semantics that make them more useful.
22003
22004         maint.mk: tweak new rule's name not to impinge
22005         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
22006         (sc_tight_scope): Use new rule name rather than $@-0.
22007
22008         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
22009         * top/maint.mk (sc_tight_scope): New rule.
22010         (sc_tight_scope-0): New rule, ifdef'd out.
22011         (_gl_TS_dir): Default.
22012         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
22013         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
22014
22015 2011-05-09  Simon Josefsson  <simon@josefsson.org>
22016
22017         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
22018         Haible <bruno@clisp.org>.
22019
22020 2011-05-08  Bruno Haible  <bruno@clisp.org>
22021
22022         Comments.
22023         * m4/isnanf.m4: Add comment.
22024         * m4/isnanl.m4: Likewise.
22025
22026 2011-05-08  Bruno Haible  <bruno@clisp.org>
22027
22028         glob: Remove obsolete macro.
22029         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
22030
22031 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
22032
22033         intprops: Sun C 5.11 supports __typeof__
22034         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
22035         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
22036         which is new.
22037         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
22038
22039         intprops: switch to usual gnulib indenting and naming
22040         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
22041         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
22042
22043         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
22044
22045 2011-05-08  Jim Meyering  <meyering@redhat.com>
22046
22047         maint.mk: suppress "Entering/Leaving directory" diag in announcement
22048         * top/maint.mk (release-prep): Use make's --no-print-directory
22049         option when generating the announcement.  This eliminates the
22050         pesky "make[2]: Entering/Leaving directory" diagnostics in the
22051         generated announcement template.
22052
22053 2011-05-08  Bruno Haible  <bruno@clisp.org>
22054
22055         tzset: Fix gettimeofday wrapper on Solaris 2.6.
22056         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
22057         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
22058
22059 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
22060
22061         ignore-value, verify: Omit include files from lib_SOURCES.
22062         * modules/ignore-value, modules/verify (Makefile.am):
22063         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
22064         that leads Automake to duplicate use of am__objects_... variables
22065         in Makefile.in.  See
22066         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
22067
22068 2011-05-07  Bruno Haible  <bruno@clisp.org>
22069
22070         fclose: Simplify autoconf macro.
22071         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
22072         defined.
22073
22074 2011-05-07  Bruno Haible  <bruno@clisp.org>
22075
22076         canonicalize-lgpl: Fix autoconf macro ordering bug.
22077         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
22078         gl_STDLIB_H_DEFAULTS.
22079
22080 2011-05-06  Eric Blake  <eblake@redhat.com>
22081
22082         maintainer-makefile: make sc_po_check easier to tune
22083         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
22084         to probe for strings, such as an alternate location for gnulib.
22085
22086         fclose: guarantee behavior on seekable stdin
22087         * modules/fclose (Depends-on): Add fflush.
22088         * doc/posix-functions/fclose.texi (fclose): Document this.
22089         * tests/test-fclose.c (main): Make test for this unconditional.
22090
22091 2011-05-06  Bruno Haible  <bruno@clisp.org>
22092
22093         fflush, fpurge: Relicense under LGPLv2+.
22094         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
22095         * modules/fpurge (License): Likewise.
22096         With permission from Eric Blake and Jim Meyering.
22097         Suggested by Eric Blake.
22098
22099 2011-05-06  Karl Berry  <karl@gnu.org>
22100
22101         * MODULES.html.sh (func_all_modules): remove exit.
22102
22103 2011-05-06  Jim Meyering  <meyering@redhat.com>
22104
22105         maint.mk: use info-gnu@ as the default only for a stable release
22106         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
22107         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
22108         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
22109         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
22110
22111 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22112
22113         assert-h: new module, which supports C1X-style static_assert
22114         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
22115         * lib/verify.h: Revamp so that this can be copied into assert.h,
22116         while retaining the ability to use it standalone as before.
22117         Rename private identifiers so as not to encroach on the
22118         standard C namespace, since this is now used by assert.h.
22119         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
22120         the old verify_true.
22121         (_GL_VERIFY_TRUE): New macro, with much of the contents of
22122         the old verify_true.  Use _GL_VERIFY_TYPE.
22123         (_GL_VERIFY): New macro, with much of the contents of the old verify.
22124         (static_assert): New macro, if _GL_STATIC_ASSERT_H
22125         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
22126         defined when this file is copied into the replacement assert.h.
22127         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
22128         and _Static_assert is not built in.
22129         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
22130         defined, and use the new macros mentioned above.
22131         * doc/posix-headers/assert.texi: Document this.
22132
22133 2011-05-05  Bruno Haible  <bruno@clisp.org>
22134
22135         fclose, fflush: Respect rules for use of AC_LIBOBJ.
22136         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
22137         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
22138         gl_REPLACE_FCLOSE here.
22139         * modules/fflush (Depends-on): Remove fclose.
22140         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
22141         combination with module 'fclose'.
22142
22143 2011-05-05  Bruno Haible  <bruno@clisp.org>
22144
22145         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
22146         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
22147         gl_FUNC_FFLUSH.
22148         (gl_FUNC_FFLUSH): Use it.
22149         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
22150         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
22151         gl_REPLACE_FSEEKO here.
22152
22153 2011-05-05  Bruno Haible  <bruno@clisp.org>
22154
22155         tzset: Relicense under LGPL.
22156         * modules/tzset (License): Change to LGPL.
22157         No agreement needed; it's a no-op.
22158
22159         strtoimax, strtoumax: Relicense under LGPL.
22160         * modules/strtoimax (License): Change to LGPL.
22161         * modules/strtoumax (License): Likewise.
22162         With permission from Jim Meyering, Paul Eggert:
22163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
22164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
22165
22166         getgroups: Relicense under LGPL.
22167         * modules/getgroups (License): Change to LGPL.
22168         With permission from Jim Meyering, Paul Eggert, Eric Blake:
22169         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22172
22173         nanosleep: Relicense under LGPL.
22174         * modules/nanosleep (License): Change to LGPL.
22175         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
22176         Haible:
22177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22181
22182         futimens: Relicense under LGPL.
22183         * modules/futimens (License): Change to LGPL.
22184         With permission from Eric Blake:
22185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22186
22187         fflush: Relicense under LGPL.
22188         * modules/fflush (License): Change to LGPL.
22189         With permission from Eric Blake, Bruno Haible, Jim Meyering:
22190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
22193
22194         tmpfile: Relicense under LGPL.
22195         * modules/tmpfile (License): Change to LGPL.
22196         With permission from Ben Pfaff:
22197         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22198
22199         isfinite: Relicense under LGPL.
22200         * modules/isfinite (License): Change to LGPL.
22201         With permission from Ben Pfaff, Bruno Haible:
22202         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
22204
22205         acosl..tanl: Relicense under LGPL.
22206         * modules/acosl (License): Change to LGPL.
22207         * modules/asinl (License): Likewise.
22208         * modules/atanl (License): Likewise.
22209         * modules/cosl (License): Likewise.
22210         * modules/expl (License): Likewise.
22211         * modules/logl (License): Likewise.
22212         * modules/sinl (License): Likewise.
22213         * modules/sqrtl (License): Likewise.
22214         * modules/tanl (License): Likewise.
22215         Source code originally from glibc and Paolo Bonzini. Agreements:
22216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
22217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
22218
22219 2011-05-05  Bruno Haible  <bruno@clisp.org>
22220
22221         signal: Define sighandler_t.
22222         * lib/signal.in.h (sighandler_t): New type.
22223         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
22224         whether sighandler_t is defined.
22225         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
22226         * modules/signal (Depends-on): Add extensions.
22227         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
22228         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
22229         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
22230
22231 2011-05-05  Eric Blake  <eblake@redhat.com>
22232
22233         maint: remove useless REPLACE_*_H macros
22234         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
22235         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22236         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22237         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
22238         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22239         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22240         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
22241         * m4/btowc.m4: Update callers.
22242         * m4/dirfd.m4: Likewise.
22243         * m4/duplocale.m4: Likewise.
22244         * m4/fchdir.m4: Likewise.
22245         * m4/fdopendir.m4: Likewise.
22246         * m4/inet_ntop.m4: Likewise.
22247         * m4/inet_pton.m4: Likewise.
22248         * m4/ioctl.m4: Likewise.
22249         * m4/mbrlen.m4: Likewise.
22250         * m4/mbrtowc.m4: Likewise.
22251         * m4/mbsinit.m4: Likewise.
22252         * m4/mbsnrtowcs.m4: Likewise.
22253         * m4/mbsrtowcs.m4: Likewise.
22254         * m4/poll.m4: Likewise.
22255         * m4/setlocale.m4: Likewise.
22256         * m4/wcrtomb.m4: Likewise.
22257         * m4/wcsnrtombs.m4: Likewise.
22258         * m4/wcsrtombs.m4: Likewise.
22259         * m4/wctob.m4: Likewise.
22260         * m4/wcwidth.m4: Likewise.
22261         * modules/posix_spawn: Likewise.
22262         * modules/posix_spawn_file_actions_addclose: Likewise.
22263         * modules/posix_spawn_file_actions_adddup2: Likewise.
22264         * modules/posix_spawn_file_actions_addopen: Likewise.
22265         * modules/posix_spawn_file_actions_destroy: Likewise.
22266         * modules/posix_spawn_file_actions_init: Likewise.
22267         * modules/posix_spawnattr_destroy: Likewise.
22268         * modules/posix_spawnattr_getflags: Likewise.
22269         * modules/posix_spawnattr_getpgroup: Likewise.
22270         * modules/posix_spawnattr_getschedparam: Likewise.
22271         * modules/posix_spawnattr_getschedpolicy: Likewise.
22272         * modules/posix_spawnattr_getsigdefault: Likewise.
22273         * modules/posix_spawnattr_getsigmask: Likewise.
22274         * modules/posix_spawnattr_init: Likewise.
22275         * modules/posix_spawnattr_setflags: Likewise.
22276         * modules/posix_spawnattr_setpgroup: Likewise.
22277         * modules/posix_spawnattr_setschedparam: Likewise.
22278         * modules/posix_spawnattr_setschedpolicy: Likewise.
22279         * modules/posix_spawnattr_setsigdefault: Likewise.
22280         * modules/posix_spawnattr_setsigmask: Likewise.
22281         * modules/posix_spawnp: Likewise.
22282
22283 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
22284
22285         Add option to do-release-commit-and-tag to specify branch.
22286         * build-aux/do-release-commit-and-tag: Add --branch.
22287
22288 2011-05-03  Bruno Haible  <bruno@clisp.org>
22289
22290         Avoid unnecessary compilation units, through conditional dependencies.
22291         * modules/accept (Depends-on): Add conditions to the dependencies.
22292         * modules/acosl (Depends-on): Likewise.
22293         * modules/argz (Depends-on): Likewise.
22294         * modules/asinl (Depends-on): Likewise.
22295         * modules/atanl (Depends-on): Likewise.
22296         * modules/atoll (Depends-on): Likewise.
22297         * modules/bind (Depends-on): Likewise.
22298         * modules/btowc (Depends-on): Likewise.
22299         * modules/canonicalize-lgpl (Depends-on): Likewise.
22300         * modules/ceil (Depends-on): Likewise.
22301         * modules/ceilf (Depends-on): Likewise.
22302         * modules/ceill (Depends-on): Likewise.
22303         * modules/chdir-long (Depends-on): Likewise.
22304         * modules/chown (Depends-on): Likewise.
22305         * modules/close (Depends-on): Likewise.
22306         * modules/connect (Depends-on): Likewise.
22307         * modules/cosl (Depends-on): Likewise.
22308         * modules/dirfd (Depends-on): Likewise.
22309         * modules/dprintf (Depends-on): Likewise.
22310         * modules/dprintf-posix (Depends-on): Likewise.
22311         * modules/error (Depends-on): Likewise.
22312         * modules/euidaccess (Depends-on): Likewise.
22313         * modules/expl (Depends-on): Likewise.
22314         * modules/faccessat (Depends-on): Likewise.
22315         * modules/fchdir (Depends-on): Likewise.
22316         * modules/fclose (Depends-on): Likewise.
22317         * modules/fcntl (Depends-on): Likewise.
22318         * modules/fdopendir (Depends-on): Likewise.
22319         * modules/fflush (Depends-on): Likewise.
22320         * modules/floor (Depends-on): Likewise.
22321         * modules/floorf (Depends-on): Likewise.
22322         * modules/floorl (Depends-on): Likewise.
22323         * modules/fnmatch (Depends-on): Likewise.
22324         * modules/fopen (Depends-on): Likewise.
22325         * modules/fprintf-posix (Depends-on): Likewise.
22326         * modules/frexp (Depends-on): Likewise.
22327         * modules/frexp-nolibm (Depends-on): Likewise.
22328         * modules/frexpl (Depends-on): Likewise.
22329         * modules/frexpl-nolibm (Depends-on): Likewise.
22330         * modules/fseek (Depends-on): Likewise.
22331         * modules/fsusage (Depends-on): Likewise.
22332         * modules/ftell (Depends-on): Likewise.
22333         * modules/ftello (Depends-on): Likewise.
22334         * modules/futimens (Depends-on): Likewise.
22335         * modules/getcwd (Depends-on): Likewise.
22336         * modules/getcwd-lgpl (Depends-on): Likewise.
22337         * modules/getdelim (Depends-on): Likewise.
22338         * modules/getdomainname (Depends-on): Likewise.
22339         * modules/getgroups (Depends-on): Likewise.
22340         * modules/gethostname (Depends-on): Likewise.
22341         * modules/getline (Depends-on): Likewise.
22342         * modules/getlogin_r (Depends-on): Likewise.
22343         * modules/getopt-posix (Depends-on): Likewise.
22344         * modules/getpeername (Depends-on): Likewise.
22345         * modules/getsockname (Depends-on): Likewise.
22346         * modules/getsockopt (Depends-on): Likewise.
22347         * modules/getsubopt (Depends-on): Likewise.
22348         * modules/getusershell (Depends-on): Likewise.
22349         * modules/glob (Depends-on): Likewise.
22350         * modules/grantpt (Depends-on): Likewise.
22351         * modules/iconv_open (Depends-on): Likewise.
22352         * modules/iconv_open-utf (Depends-on): Likewise.
22353         * modules/inet_ntop (Depends-on): Likewise.
22354         * modules/inet_pton (Depends-on): Likewise.
22355         * modules/ioctl (Depends-on): Likewise.
22356         * modules/isapipe (Depends-on): Likewise.
22357         * modules/isfinite (Depends-on): Likewise.
22358         * modules/isinf (Depends-on): Likewise.
22359         * modules/lchown (Depends-on): Likewise.
22360         * modules/ldexpl (Depends-on): Likewise.
22361         * modules/link (Depends-on): Likewise.
22362         * modules/linkat (Depends-on): Likewise.
22363         * modules/listen (Depends-on): Likewise.
22364         * modules/logl (Depends-on): Likewise.
22365         * modules/lstat (Depends-on): Likewise.
22366         * modules/mbrlen (Depends-on): Likewise.
22367         * modules/mbrtowc (Depends-on): Likewise.
22368         * modules/mbsinit (Depends-on): Likewise.
22369         * modules/mbsnrtowcs (Depends-on): Likewise.
22370         * modules/mbsrtowcs (Depends-on): Likewise.
22371         * modules/mbtowc (Depends-on): Likewise.
22372         * modules/memcmp (Depends-on): Likewise.
22373         * modules/mkdir (Depends-on): Likewise.
22374         * modules/mkdtemp (Depends-on): Likewise.
22375         * modules/mkfifo (Depends-on): Likewise.
22376         * modules/mkfifoat (Depends-on): Likewise.
22377         * modules/mknod (Depends-on): Likewise.
22378         * modules/mkostemp (Depends-on): Likewise.
22379         * modules/mkostemps (Depends-on): Likewise.
22380         * modules/mkstemp (Depends-on): Likewise.
22381         * modules/mkstemps (Depends-on): Likewise.
22382         * modules/mktime (Depends-on): Likewise.
22383         * modules/nanosleep (Depends-on): Likewise.
22384         * modules/open (Depends-on): Likewise.
22385         * modules/openat (Depends-on): Likewise.
22386         * modules/perror (Depends-on): Likewise.
22387         * modules/poll (Depends-on): Likewise.
22388         * modules/popen (Depends-on): Likewise.
22389         * modules/posix_spawn (Depends-on): Likewise.
22390         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
22391         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22392         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22393         * modules/posix_spawnp (Depends-on): Likewise.
22394         * modules/pread (Depends-on): Likewise.
22395         * modules/printf-posix (Depends-on): Likewise.
22396         * modules/ptsname (Depends-on): Likewise.
22397         * modules/putenv (Depends-on): Likewise.
22398         * modules/pwrite (Depends-on): Likewise.
22399         * modules/readline (Depends-on): Likewise.
22400         * modules/readlink (Depends-on): Likewise.
22401         * modules/readlinkat (Depends-on): Likewise.
22402         * modules/recv (Depends-on): Likewise.
22403         * modules/recvfrom (Depends-on): Likewise.
22404         * modules/regex (Depends-on): Likewise.
22405         * modules/remove (Depends-on): Likewise.
22406         * modules/rename (Depends-on): Likewise.
22407         * modules/renameat (Depends-on): Likewise.
22408         * modules/rmdir (Depends-on): Likewise.
22409         * modules/round (Depends-on): Likewise.
22410         * modules/roundf (Depends-on): Likewise.
22411         * modules/roundl (Depends-on): Likewise.
22412         * modules/rpmatch (Depends-on): Likewise.
22413         * modules/select (Depends-on): Likewise.
22414         * modules/send (Depends-on): Likewise.
22415         * modules/sendto (Depends-on): Likewise.
22416         * modules/setenv (Depends-on): Likewise.
22417         * modules/setlocale (Depends-on): Likewise.
22418         * modules/setsockopt (Depends-on): Likewise.
22419         * modules/shutdown (Depends-on): Likewise.
22420         * modules/sigaction (Depends-on): Likewise.
22421         * modules/signbit (Depends-on): Likewise.
22422         * modules/sigprocmask (Depends-on): Likewise.
22423         * modules/sinl (Depends-on): Likewise.
22424         * modules/sleep (Depends-on): Likewise.
22425         * modules/snprintf (Depends-on): Likewise.
22426         * modules/snprintf-posix (Depends-on): Likewise.
22427         * modules/socket (Depends-on): Likewise.
22428         * modules/sprintf-posix (Depends-on): Likewise.
22429         * modules/sqrtl (Depends-on): Likewise.
22430         * modules/stat (Depends-on): Likewise.
22431         * modules/strchrnul (Depends-on): Likewise.
22432         * modules/strdup-posix (Depends-on): Likewise.
22433         * modules/strerror (Depends-on): Likewise.
22434         * modules/strerror_r-posix (Depends-on): Likewise.
22435         * modules/strndup (Depends-on): Likewise.
22436         * modules/strnlen (Depends-on): Likewise.
22437         * modules/strptime (Depends-on): Likewise.
22438         * modules/strsep (Depends-on): Likewise.
22439         * modules/strsignal (Depends-on): Likewise.
22440         * modules/strstr-simple (Depends-on): Likewise.
22441         * modules/strtod (Depends-on): Likewise.
22442         * modules/strtoimax (Depends-on): Likewise.
22443         * modules/strtok_r (Depends-on): Likewise.
22444         * modules/strtoumax (Depends-on): Likewise.
22445         * modules/symlink (Depends-on): Likewise.
22446         * modules/symlinkat (Depends-on): Likewise.
22447         * modules/tanl (Depends-on): Likewise.
22448         * modules/tcgetsid (Depends-on): Likewise.
22449         * modules/tmpfile (Depends-on): Likewise.
22450         * modules/trunc (Depends-on): Likewise.
22451         * modules/truncf (Depends-on): Likewise.
22452         * modules/truncl (Depends-on): Likewise.
22453         * modules/uname (Depends-on): Likewise.
22454         * modules/unlink (Depends-on): Likewise.
22455         * modules/unlockpt (Depends-on): Likewise.
22456         * modules/unsetenv (Depends-on): Likewise.
22457         * modules/usleep (Depends-on): Likewise.
22458         * modules/utimensat (Depends-on): Likewise.
22459         * modules/vasprintf (Depends-on): Likewise.
22460         * modules/vdprintf (Depends-on): Likewise.
22461         * modules/vdprintf-posix (Depends-on): Likewise.
22462         * modules/vfprintf-posix (Depends-on): Likewise.
22463         * modules/vprintf-posix (Depends-on): Likewise.
22464         * modules/vsnprintf (Depends-on): Likewise.
22465         * modules/vsnprintf-posix (Depends-on): Likewise.
22466         * modules/vsprintf-posix (Depends-on): Likewise.
22467         * modules/wcrtomb (Depends-on): Likewise.
22468         * modules/wcscasecmp (Depends-on): Likewise.
22469         * modules/wcscspn (Depends-on): Likewise.
22470         * modules/wcsdup (Depends-on): Likewise.
22471         * modules/wcsncasecmp (Depends-on): Likewise.
22472         * modules/wcsnrtombs (Depends-on): Likewise.
22473         * modules/wcspbrk (Depends-on): Likewise.
22474         * modules/wcsrtombs (Depends-on): Likewise.
22475         * modules/wcsspn (Depends-on): Likewise.
22476         * modules/wcsstr (Depends-on): Likewise.
22477         * modules/wcstok (Depends-on): Likewise.
22478         * modules/wcswidth (Depends-on): Likewise.
22479         * modules/wctob (Depends-on): Likewise.
22480         * modules/wctomb (Depends-on): Likewise.
22481         * modules/wctype (Depends-on): Likewise.
22482         * modules/wcwidth (Depends-on): Likewise.
22483         * modules/write (Depends-on): Likewise.
22484
22485 2011-05-03  Bruno Haible  <bruno@clisp.org>
22486
22487         Support for conditional dependencies.
22488         * doc/gnulib.texi (Module description): Document the syntax of
22489         conditional dependencies.
22490         * gnulib-tool: New option --conditional-dependencies.
22491         (func_usage): Document it.
22492         (cond_dependencies): New variable.
22493         (func_get_automake_snippet_conditional,
22494         func_get_automake_snippet_unconditional): New functions, extracted from
22495         func_get_automake_snippet.
22496         (func_get_automake_snippet): Use them.
22497         (sed_first_32_chars): New variable.
22498         (func_module_shellfunc_name): New function.
22499         (func_module_shellvar_name): New function.
22500         (func_module_conditional_name): New function.
22501         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
22502         func_cond_module_condition): New functions.
22503         (func_modules_transitive_closure): Add support for conditional
22504         dependencies.
22505         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22506         conditional automake snippet in an automake conditional.
22507         (func_emit_autoconf_snippets): Emit shell functions that contain the
22508         code for conditional modules.
22509         (func_import, func_create_testdir): Update specification.
22510
22511 2011-05-03  Eric Blake  <eblake@redhat.com>
22512
22513         test-getaddrinfo: report error information
22514         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22515
22516 2011-05-03  Jim Meyering  <meyering@redhat.com>
22517
22518         bootstrap: avoid build failure when $GZIP is set
22519         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22520         program name.  If defined at all, it is supposed to list gzip options.
22521         Reported by Alan Curry in http://debbugs.gnu.org/8609
22522
22523 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22524
22525         readme-release: new module with release instructions
22526         * modules/readme-release: New module.
22527         * top/README-release: New file, from coreutils, grep, diffutils.
22528         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22529
22530 2011-05-02  Eric Blake  <eblake@redhat.com>
22531
22532         fflush: also replace fclose when fixing fflush
22533         * modules/fflush (Depends-on): Add fclose.
22534         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22535         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22536         memstreams with no backing fd.
22537         * doc/posix-functions/fclose.texi (fclose): Document the use of
22538         fflush module to fix the bug.
22539         * tests/test-fclose.c (main): Relax test when fclose is used in
22540         isolation.
22541
22542         fclose: add some tests
22543         * modules/fclose-tests: New test module.
22544         * tests/test-fclose.c: New file.
22545         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22546
22547         fclose: reduced dependencies
22548         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22549         simpler lseek.
22550         * lib/fclose.c (rpl_fclose): Likewise.
22551         Reported by Simon Josefsson.
22552
22553         exit: drop remaining clients
22554         * modules/argmatch (Depends-on): Replace exit with stdlib.
22555         * modules/copy-file (Depends-on): Likewise.
22556         * modules/execute (Depends-on): Likewise.
22557         * modules/exitfail (Depends-on): Likewise.
22558         * modules/obstack (Depends-on): Likewise.
22559         * modules/pagealign_alloc (Depends-on): Likewise.
22560         * modules/pipe-filter-gi (Depends-on): Likewise.
22561         * modules/pipe-filter-ii (Depends-on): Likewise.
22562         * modules/savewd (Depends-on): Likewise.
22563         * modules/spawn-pipe (Depends-on): Likewise.
22564         * modules/wait-process (Depends-on): Likewise.
22565         * modules/xsetenv (Depends-on): Likewise.
22566         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22567         * modules/git-merge-changelog (Depends-on): Likewise.
22568         * modules/long-options (Depends-on): Likewise.
22569         * modules/pt_chown (Depends-on): Likewise.
22570         * modules/sysexits (Depends-on): Likewise.
22571
22572         freading: relax license from LGPLv3+ to LGPLv2+
22573         * modules/freading (License): Relax LGPL version.
22574
22575 2011-05-02  Bruno Haible  <bruno@clisp.org>
22576
22577         fchdir: Remove unused dependencies.
22578         * modules/fchdir (Depends-on): Remove include_next.
22579
22580 2011-05-02  Bruno Haible  <bruno@clisp.org>
22581
22582         gnulib-tool: Refactor.
22583         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22584         from func_emit_autoconf_snippets.
22585         (func_emit_autoconf_snippets): Use it.
22586
22587 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22588
22589         * NEWS: Document removal of 'exit'.
22590         * modules/exit: Remove file.
22591
22592 2011-05-01  Bruno Haible  <bruno@clisp.org>
22593
22594         Update DEPENDENCIES.
22595         * DEPENDENCIES (gettext): Recommend the newest release.
22596         Reported by Simon Josefsson.
22597
22598 2011-05-01  Bruno Haible  <bruno@clisp.org>
22599
22600         gnulib-tool: Reduce code duplication.
22601         * gnulib-tool (func_emit_autoconf_snippets): New function.
22602         (func_import, func_create_testdir): Use it.
22603
22604 2011-04-30  Eric Blake  <eblake@redhat.com>
22605
22606         fclose: don't fail on non-seekable input stream
22607         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22608         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22609         since fflush is allowed to fail in that case.
22610
22611 2011-04-30  Bruno Haible  <bruno@clisp.org>
22612
22613         dup3: cleanup
22614         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22615
22616 2011-04-30  Bruno Haible  <bruno@clisp.org>
22617
22618         netdb: Make it work in C++ mode.
22619         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22620         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22621         module.
22622         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22623         gl_MODULE_INDICATOR_FOR_TESTS.
22624         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22625         * modules/netdb-c++-tests: New file.
22626         * tests/test-netdb-c++.cc: New file.
22627
22628 2011-04-30  Bruno Haible  <bruno@clisp.org>
22629
22630         New modules 'vfscanf', 'vscanf'.
22631         * modules/vfscanf: New file.
22632         * modules/vscanf: New file.
22633         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22634         here.
22635         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22636         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22637
22638 2011-04-30  Bruno Haible  <bruno@clisp.org>
22639
22640         passfd: Add comments.
22641         * lib/passfd.c: Add comments about platforms.
22642
22643 2011-04-30  Bruno Haible  <bruno@clisp.org>
22644
22645         sys_uio: Make <sys/uio.h> self-contained.
22646         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22647         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22648
22649 2011-04-30  Bruno Haible  <bruno@clisp.org>
22650
22651         sys_socket: Ensure 'struct iovec' definition.
22652         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22653         <sys/socket.h>.
22654         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22655
22656 2011-04-30  Bruno Haible  <bruno@clisp.org>
22657
22658         sys_uio: Protect definition of 'struct iovec'.
22659         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22660         it as a C struct.
22661
22662 2011-04-30  Bruno Haible  <bruno@clisp.org>
22663
22664         manywarnings: fix indentation
22665         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22666
22667 2011-04-30  Pádraig Brady <P@draigBrady.com>
22668
22669         manywarnings: add -Wno-missing-field-initializers if needed.
22670         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22671         option if it's needed to allow initialization with { 0, }
22672
22673 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22674
22675         announce-gen: cosmetic improvement
22676         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22677
22678 2011-04-29  Jim Meyering  <meyering@redhat.com>
22679
22680         vc-list-files: indent with spaces, not TABs
22681         * build-aux/vc-list-files: Convert leading TABs to spaces,
22682         to match the style of most other files in gnulib.
22683
22684         announce-gen: indent with spaces, not TABs
22685         * build-aux/announce-gen: Convert all TABs to spaces, to match
22686         the style of most other files in gnulib.
22687
22688 2011-04-29  Eric Blake  <eblake@redhat.com>
22689
22690         quotearg: avoid uninitialized variable use
22691         * lib/quotearg.c (quoting_options_from_style): Initialize
22692         remaining fields, and ensure that custom styles are only used via
22693         quoting_options rather than quoting_style.
22694
22695 2011-04-29  Jim Meyering  <meyering@redhat.com>
22696
22697         maint.mk: remove unused VC-tag variable
22698         * top/maint.mk (VC-tag): Remove unused variable.
22699
22700 2011-04-29  Bruno Haible  <bruno@clisp.org>
22701
22702         netdb: fix gai_strerror replacements
22703         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22704         * modules/netdb: Substitute it.
22705
22706 2011-04-29  Jim Meyering  <meyering@redhat.com>
22707
22708         test-getcwd.c: avoid new set-but-not-used warning
22709         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22710         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22711         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22712         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22713
22714         test-hash.c: avoid a new shadowing warning
22715         * tests/test-hash.c (main): Don't shadow "dup".
22716
22717 2011-04-28  Eric Blake  <eblake@redhat.com>
22718
22719         getaddrinfo: fix gai_strerror signature
22720         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22721         and work around mingw with UNICODE defined.
22722         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22723         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22724         * modules/netdb (Makefile.am): Substitute it.
22725         * lib/netdb.in.h (gai_strerror): Declare replacement.
22726         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22727         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22728         the fix.
22729
22730         getsockopt: avoid compiler warning
22731         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22732         Reported by Matthias Bolte.
22733
22734         tests: drop unused link dependency
22735         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22736         * modules/dirent-safer-tests (Makefile.am): Likewise.
22737         * modules/fdopendir-tests (Makefile.am): Likewise.
22738         * modules/mkfifoat-tests (Makefile.am): Likewise.
22739         * modules/openat-safer-tests (Makefile.am): Likewise.
22740         * modules/openat-tests (Makefile.am): Likewise.
22741         * modules/readlinkat-tests (Makefile.am): Likewise.
22742         * modules/symlinkat-tests (Makefile.am): Likewise.
22743         * modules/linkat-tests (Makefile.am): Likewise.
22744         (Depends-on): Switch to filenamecat-lgpl.
22745         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22746         LIBINTL.
22747         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22748         * tests/test-linkat.c (main): Don't require xalloc.
22749
22750         hash, mgetgroups: drop xalloc dependency
22751         * lib/hash.c (includes): Adjust includes.
22752         * lib/mgetgroups.c (includes): Likewise.
22753         (xgetgroups): Move...
22754         * lib/xgetgroups.c: ...to new file.
22755         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22756         * modules/xgetgroups: New file, split from...
22757         * modules/mgetgroups: ...here.
22758         (Depends-on): Add xalloc-oversized.
22759         * modules/hash (Depends-on): Likewise.
22760         * modules/hash-tests (Depends-on): Drop xalloc.
22761         (test_hash_LDADD): Drop unused library.
22762         * tests/test-hash.c (main): Break xalloc dependency.
22763         (includes): Drop unused include.
22764
22765         xalloc-oversized: new module
22766         * modules/xalloc-oversized: New module.
22767         * modules/xalloc (Depends-on): Add it.
22768         * lib/xalloc.h (xalloc_oversized): Move...
22769         * lib/xalloc-oversized.h: ...into new file.
22770
22771         utimecmp: drop dependency on xmalloc
22772         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22773         due to memory pressure.
22774         * modules/utimecmp (Depends-on): Drop xalloc.
22775
22776 2011-04-27  Eric Blake  <eblake@redhat.com>
22777
22778         getcwd: fix mingw bugs
22779         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22780         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22781         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22782
22783 2011-04-27  Bruno Haible  <bruno@clisp.org>
22784
22785         mkstemps: Ensure declaration on MacOS X 10.5.
22786         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22787         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22788         MacOS X.
22789
22790 2011-04-27  Bruno Haible  <bruno@clisp.org>
22791
22792         mkstemp: More documentation.
22793         * doc/posix-functions/mkstemp.texi: Document header file problem on
22794         MacOS X.
22795
22796 2011-04-27  Bruno Haible  <bruno@clisp.org>
22797
22798         mkstemp: Tweak configure message when cross-compiling.
22799         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22800         result as a guess.
22801
22802 2011-04-27  Bruno Haible  <bruno@clisp.org>
22803
22804         clean-temp: Clarify what it does.
22805         * lib/clean-temp.h: Add more comments.
22806         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22807         module.
22808         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22809         * doc/glibc-functions/mkstemps.texi: Likewise.
22810         * doc/glibc-functions/mkostemps.texi: Likewise.
22811
22812 2011-04-27  Eric Blake  <eblake@redhat.com>
22813
22814         fchdir: avoid extra chdir and fix test
22815         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22816         getcwd-lgpl.
22817         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22818         have to be canonical.
22819         (canonicalize_file_name): Drop unused macro.
22820         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22821
22822         filenamecat-lgpl: fix licence
22823         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22824         when it was first created.
22825
22826         linkat, renameat: add missing dependency
22827         * modules/linkat (Depends-on): Require getcwd-lgpl.
22828         * modules/renameat (Depends-on): Likewise.
22829
22830         tests: reduce dependencies
22831         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22832         * tests/test-renameat.c (main): Likewise.
22833         * modules/linkat-tests (Depends-on): Relax dependency.
22834         * modules/renameat-tests (Depends-on): Likewise.
22835         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22836         dependency explicit.
22837
22838         save-cwd: reduce default dependency
22839         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22840         * lib/save-cwd.c: Update comments.
22841         * NEWS: Document the semantic change.
22842
22843         getcwd: enhance tests
22844         * tests/test-getcwd-lgpl.c: New file, taken from...
22845         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22846         repeat long path stress tests from m4 probe.
22847         * modules/getcwd-lgpl-tests: New module.
22848         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22849         * m4/getcwd-abort-bug.m4: Update comment.
22850         * m4/getcwd-path-max.m4: Likewise.
22851
22852         getcwd-lgpl: new module
22853         * modules/getcwd-lgpl: New module.
22854         * lib/getcwd-lgpl.c: New file.
22855         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22856         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22857         * modules/getcwd (configure.ac): Set C witness.
22858         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22859
22860         getcwd: tweak comments
22861         * m4/getcwd-abort-bug.m4: Fix comments.
22862         * m4/getcwd-path-max.m4: Likewise.
22863         * m4/getcwd.m4: Likewise.
22864
22865 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22866         and Eric Blake  <eblake@redhat.com>
22867
22868         mkstemp: replace if system version uses wrong permissions
22869         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22870         read/write mode bits set in file created by mkstemp.
22871         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22872
22873 2011-04-27  Eric Blake  <eblake@redhat.com>
22874
22875         passfd: avoid compiler warning
22876         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22877         Reported by Laine Stump.
22878
22879 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22880
22881         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22882         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22883
22884 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22885         and Eric Blake  <eblake@redhat.com>
22886
22887         mkstemp: mention clean-temp module
22888         * lib/mkstemp.c: Add comment.
22889         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22890
22891 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22892
22893         inttypes: also provide default values for 32-bit tests
22894         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22895         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22896
22897 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22898
22899         strtoumax: remove dependency on strtoimax
22900         This is like the strtoull change of yesterday.
22901         * modules/strtoumax (Files): Add lib/strtoimax.c.
22902         (Depends-on): Remove strtoimax and add verify.
22903
22904         inttypes-incomplete: new module
22905         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22906         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22907         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22908         of gl_INTTYPES_H.
22909         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22910         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22911         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22912         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22913         * modules/strtoumax, modules/xstrtol (Depends-on):
22914         Depend on inttypes-incomplete, not inttypes.
22915         * modules/inttypes-incomplete: New module, containing the contents
22916         of the old modules/inttypes module, except that the Files: section
22917         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22918         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22919         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22920         (Depends-on): Depend only on inttypes-incomplete.
22921         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22922
22923         inttypes: omit now-redundant strtoimax and strtoumax work
22924         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22925         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22926
22927         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22928         This supports apps that need pointers to strtoimax and strtoumax,
22929         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22930         nonexistent functions.  See
22931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22932         et seq.
22933         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22934         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22935         a macro.
22936         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22937
22938 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22939
22940         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22941
22942 2011-04-25  Bruno Haible  <bruno@clisp.org>
22943
22944         strtol, strtoul: Mark modules as obsolete.
22945         * modules/strtol (Status, Notice): New sections.
22946         * modules/strtoul (Status, Notice): New sections.
22947
22948 2011-04-25  Bruno Haible  <bruno@clisp.org>
22949
22950         strtod: Remove check for strtod, unless supporting old platforms.
22951         * modules/strtod-obsolete: New file.
22952         * m4/strtod-obsolete.m4: New file.
22953         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22954         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22955         * modules/strtod (Depends-on): Add strtod-obsolete.
22956         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22957
22958 2011-04-25  Bruno Haible  <bruno@clisp.org>
22959
22960         strcase: Make module obsolete.
22961         * modules/strcase (Status, Notice): New sections.
22962
22963 2011-04-25  Bruno Haible  <bruno@clisp.org>
22964
22965         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22966         * modules/dup2-obsolete: New file.
22967         * m4/dup2-obsolete.m4: New file.
22968         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22969         gl_FUNC_DUP2_OBSOLETE is not also defined.
22970         * modules/dup2 (Depends-on): Add dup2-obsolete.
22971         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22972
22973 2011-04-25  Bruno Haible  <bruno@clisp.org>
22974
22975         strnlen: Avoid memchr related link error on old obsolete platforms.
22976         * modules/memchr-obsolete: New file.
22977         * m4/memchr-obsolete.m4: New file.
22978         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22979         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22980         * modules/memchr (Depends-on): Add memchr-obsolete.
22981         * modules/strnlen (Depends-on): Likewise.
22982         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22983
22984 2011-04-25  Jim Meyering  <meyering@redhat.com>
22985
22986         maint.mk: makefile_at_at_check extend and clean up
22987         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22988         in addition to */Makefile.am.
22989         Exempt legitimate uses of @VAR@ notation, e.g.,
22990         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22991         Remove obsolete coreutils-specific comment.
22992         Prompted by discussion here:
22993         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22994
22995 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22996
22997         strtoul: remove dependency on strtol
22998         This is so that 'configure' need not check for strtol merely because
22999         the application needs strtoul.
23000         * modules/strtoul (Files): Add lib/strtol.c.
23001         (Depends-on): Remove strtol.
23002
23003         strtoull: remove dependency on strtoul
23004         This is like the strtoll change.
23005         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
23006         (Depends-on): Remove strtoul.
23007
23008         strtoll: remove dependency on strtol
23009         This is so that 'configure' need not check for strtol merely because
23010         the application needs strtoll.
23011         * modules/strtoll (Files): Add lib/strtol.c.
23012         (Depends-on): Remove strtol.
23013
23014 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23015
23016         inttypes: Move some configure check to module 'imaxdiv'.
23017         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
23018         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
23019         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
23020
23021 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23022
23023         inttypes: Move some configure check to module 'imaxabs'.
23024         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
23025         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
23026         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
23027
23028 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23029
23030         inttypes: Remove configure tests that are not needed since 2009-12-31.
23031         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
23032         gl_cv_header_working_inttypes_h.
23033
23034 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23035
23036         * modules/strnlen (Depends-on): Remove memchr.
23037         The strnlen implementation doesn't need the memchr module's fixes; see
23038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
23039
23040         strtol: remove dependency on wchar
23041         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
23042         * modules/strtol (Depends-on): Remove wchar.
23043
23044 2011-04-21  Eric Blake  <eblake@redhat.com>
23045
23046         passfd: fix test regression on Linux
23047         * modules/passfd-tests (configure.ac): Correct socketpair check.
23048
23049         passfd: speed up configure and drop unused code
23050         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
23051         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
23052         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
23053         Instead of probing at configure for unix_scm_rights_bsd44_way,
23054         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
23055         check to a struct member probe.
23056         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
23057         (sendfd, recvfd): Update preprocessor checks.
23058         * modules/passfd (Files): Reflect rename, and drop unused file.
23059         (Depends-on): Drop unused dependency.
23060
23061         passfd: allow compilation on mingw
23062         * modules/sys_socket (Depends-on): Add sys_uio.
23063         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
23064         iovec and a minimal struct msghdr.
23065         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
23066         * tests/test-sys_socket.c (main): Enhance test.
23067         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
23068         guaranteed to provide what we need.
23069         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
23070         * modules/passfd-tests (Depends-on): Add sys_wait.
23071         * tests/test-passfd.c (main): Skip test on mingw, for now.
23072         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
23073         partial 'struct msghdr' implementation.
23074
23075         sys_uio: new module
23076         * modules/sys_uio: New module.
23077         * modules/sys_uio-tests: Likewise.
23078         * lib/sys_uio.in.h: New file.
23079         * m4/sys_uio_h.m4: Likewise.
23080         * tests/test-sys_uio.c: Likewise.
23081         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
23082         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
23083
23084 2011-04-20  Jim Meyering  <meyering@redhat.com>
23085
23086         useless-if-before-free: avoid false-positive
23087         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
23088         disjunct so that it too requires a terminating ";".  Without that,
23089         this script would identify as useless one statement from gcc that
23090         was not:
23091           if (aligned_ptr)
23092             free (((void **) aligned_ptr) [-1]);
23093
23094 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
23095
23096         doc: update users.txt.
23097         * users.txt: Add barcode.
23098
23099 2011-04-19  Bruno Haible  <bruno@clisp.org>
23100
23101         ioctl: Remove link dependency on native Windows.
23102         * lib/fd-hook.h: Renamed from lib/close-hook.h.
23103         (gl_close_fn, gl_ioctl_fn): New types.
23104         (struct fd_hook): Renamed from struct close_hook. Change type of
23105         private_close_fn field. Add private_ioctl_fn field.
23106         (close_hook_fn): Add parameter for primary close method.
23107         (execute_close_hooks, execute_all_close_hooks): Likewise.
23108         (ioctl_hook_fn): New type.
23109         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
23110         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
23111         argument.
23112         (unregister_fd_hook): Renamed from unregister_close_hook.
23113         * lib/fd-hook.c: Renamed from lib/close-hook.c.
23114         Don't include <unistd.h>.
23115         (close): Remove undef.
23116         (anchor): Update.
23117         (execute_close_hooks): Add argument for primary close method.
23118         (execute_all_close_hooks): Likewise.
23119         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
23120         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
23121         argument. Allow each argument to be NULL.
23122         (unregister_fd_hook): Renamed from unregister_close_hook.
23123         * lib/close.c (rpl_close): Pass 'close' function pointer to
23124         execute_all_close_hooks.
23125         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
23126         (primary_ioctl): New function.
23127         (ioctl): Don't call ioctlsocket here. Instead, call
23128         execute_all_ioctl_hooks.
23129         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
23130         close method.
23131         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
23132         (fd_sockets_hook): Renamed from close_sockets_hook.
23133         (gl_sockets_startup, gl_sockets_cleanup): Update.
23134         * modules/fd-hook: Renamed from modules/close-hook. Update.
23135         * modules/close (Depends-on): Add fd-hook, remove close-hook.
23136         * modules/sockets (Depends-on): Likewise.
23137         * modules/ioctl (Depends-on): Add fd-hook.
23138         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
23139         GNULIB_SOCKET.
23140
23141 2011-04-19  Bruno Haible  <bruno@clisp.org>
23142
23143         Move the support of O_NONBLOCK in open() to the 'open' module.
23144         * modules/nonblocking (Depends-on): Remove 'open'.
23145         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
23146         gl_cv_have_open_O_NONBLOCK.
23147         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
23148         O_NONBLOCK support.
23149         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
23150
23151 2011-04-17  Bruno Haible  <bruno@clisp.org>
23152
23153         pipe2: Simplify code.
23154         * lib/pipe2.c (pipe2): Reduce code duplication.
23155
23156 2011-04-17  Bruno Haible  <bruno@clisp.org>
23157
23158         nonblocking: Add comment.
23159         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
23160
23161 2011-04-17  Bruno Haible  <bruno@clisp.org>
23162
23163         nonblocking: Add tests for sockets.
23164         * tests/test-nonblocking-socket.sh: New file.
23165         * tests/test-nonblocking-socket-main.c: New file.
23166         * tests/test-nonblocking-socket-child.c: New file.
23167         * tests/test-nonblocking-socket.h: New file.
23168         * tests/socket-server.h: New file.
23169         * tests/socket-client.h: New file.
23170         * modules/nonblocking-socket-tests: New file.
23171         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
23172
23173 2011-04-17  Bruno Haible  <bruno@clisp.org>
23174
23175         nonblocking: Add tests for pipes.
23176         * tests/test-nonblocking-pipe.sh: New file.
23177         * tests/test-nonblocking-pipe-main.c: New file.
23178         * tests/test-nonblocking-pipe-child.c: New file.
23179         * tests/test-nonblocking-pipe.h: New file.
23180         * tests/test-nonblocking-writer.h: New file.
23181         * tests/test-nonblocking-reader.h: New file.
23182         * tests/test-nonblocking-misc.h: New file.
23183         * modules/nonblocking-pipe-tests: New file.
23184         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
23185
23186 2011-04-16  Bruno Haible  <bruno@clisp.org>
23187
23188         gettext: Clarify the needed programmer actions.
23189         * modules/gettext (Notice): New field.
23190         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
23191
23192 2011-04-16  Bruno Haible  <bruno@clisp.org>
23193
23194         strchrnul: Tweak last commit.
23195         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
23196         bug.
23197         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
23198         as in _GL_FUNCDECL_SYS.
23199         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
23200         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
23201
23202 2011-04-15  Eric Blake  <eblake@redhat.com>
23203
23204         strchrnul: work around cygwin bug
23205         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
23206         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
23207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
23208         * modules/string (Makefile.am): Substitute it.
23209         * lib/string.in.h (strchrnul): Use it.
23210
23211 2011-04-15  Bruno Haible  <bruno@clisp.org>
23212
23213         Don't require lib/stdio-write.c when only module 'stdio' is used.
23214         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
23215         invocation.
23216         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
23217
23218 2011-04-14  Bruno Haible  <bruno@clisp.org>
23219
23220         Support non-blocking pipe I/O in read() on native Windows.
23221         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
23222         (read): New declaration.
23223         * lib/read.c: New file.
23224         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
23225         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
23226         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
23227         vscanf): New declarations.
23228         * lib/stdio-read.c: New file.
23229         * m4/read.m4: New file.
23230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
23231         REPLACE_READ.
23232         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
23233         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23234         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
23235         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
23236         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
23237         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23238         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23239         * modules/read: New file.
23240         * modules/nonblocking (Files): Add lib/stdio-read.c.
23241         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
23242         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
23243         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23244         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23245         * modules/pread (Depends-on): Add read.
23246         * modules/safe-read (Depends-on): Likewise.
23247         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
23248         gets, scanf, vfscanf, vscanf): Verify signatures.
23249         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
23250         problem with non-blocking pipes.
23251         * doc/posix-functions/fgetc.texi: Likewise.
23252         * doc/posix-functions/fgets.texi: Likewise.
23253         * doc/posix-functions/fread.texi: Likewise.
23254         * doc/posix-functions/fscanf.texi: Likewise.
23255         * doc/posix-functions/getc.texi: Likewise.
23256         * doc/posix-functions/getchar.texi: Likewise.
23257         * doc/posix-functions/gets.texi: Likewise.
23258         * doc/posix-functions/scanf.texi: Likewise.
23259         * doc/posix-functions/vfscanf.texi: Likewise.
23260         * doc/posix-functions/vscanf.texi: Likewise.
23261
23262 2011-04-14  Bruno Haible  <bruno@clisp.org>
23263
23264         Support non-blocking pipe I/O in write() on native Windows.
23265         * lib/write.c (rpl_write): Split a write request that failed merely
23266         because the byte count was larger than the pipe buffer's size.
23267         * doc/posix-functions/write.texi: Mention the problem with large byte
23268         counts.
23269
23270 2011-04-14  Bruno Haible  <bruno@clisp.org>
23271
23272         wchar: Ensure that wchar_t gets defined on uClibc.
23273         * lib/wchar.in.h: On uClibc, include <stddef.h>.
23274         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
23275
23276 2011-04-13  Bruno Haible  <bruno@clisp.org>
23277
23278         safe-write, full-read: Avoid unnecessary compilation units.
23279         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
23280         (Depends-on): Remove safe-read. Add ssize_t.
23281         * modules/full-read (Files): Add lib/full-write.c.
23282         (Depends-on): Add full-write.
23283
23284 2011-04-13  Bruno Haible  <bruno@clisp.org>
23285
23286         Support non-blocking pipe I/O and SIGPIPE in pwrite().
23287         * modules/pwrite (Depends-on): Add 'write'.
23288
23289 2011-04-13  Bruno Haible  <bruno@clisp.org>
23290
23291         Support non-blocking pipe I/O in write() on native Windows.
23292         * lib/unistd.in.h (write): Enable replacement also if
23293         GNULIB_UNISTD_H_NONBLOCKING is 1.
23294         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
23295         (rpl_write): When failing to write on a non-blocking pipe, change
23296         errno from ENOSPC to EAGAIN.
23297         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
23298         putchar, puts, vfprintf, vprintf): Enable replacement also if
23299         GNULIB_STDIO_H_NONBLOCKING is 1.
23300         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
23301         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
23302         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
23303         CALL_WITH_SIGPIPE_EMULATION.
23304         (CALL_WITH_SIGPIPE_EMULATION): Use them.
23305         * m4/nonblocking.m4: New file.
23306         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
23307         for non-blocking I/O support.
23308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23309         GNULIB_UNISTD_H_NONBLOCKING.
23310         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
23311         required for non-blocking I/O support.
23312         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
23313         * modules/nonblocking (Files): Add m4/nonblocking.m4,
23314         lib/stdio-write.c, m4/asm-underscore.m4.
23315         (Depends-on): Add stdio, unistd.
23316         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
23317         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
23318         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
23319         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
23320         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
23321         problem with non-blocking pipes.
23322         * doc/posix-functions/fputc.texi: Likewise.
23323         * doc/posix-functions/fputs.texi: Likewise.
23324         * doc/posix-functions/fwrite.texi: Likewise.
23325         * doc/posix-functions/printf.texi: Likewise.
23326         * doc/posix-functions/putc.texi: Likewise.
23327         * doc/posix-functions/putchar.texi: Likewise.
23328         * doc/posix-functions/puts.texi: Likewise.
23329         * doc/posix-functions/vfprintf.texi: Likewise.
23330         * doc/posix-functions/vprintf.texi: Likewise.
23331         * doc/posix-functions/write.texi: Likewise.
23332
23333 2011-04-10  Jim Meyering  <meyering@redhat.com>
23334
23335         maint.mk: prohibit doubled words
23336         Detect them also when they're separated by a newline.
23337         There are 3 ways to customize it:
23338           - disable the test on a per file basis, as usual with rules using
23339             $(VC_LIST_EXCEPT)
23340           - replace the default doubled-word-selecting regexp (affects all files)
23341           - ignore a particular file-vs-doubled-word match
23342         I nearly used that last one to ignore the "is is" match in
23343         coreutils' NEWS file, since the text was "ls -is is ..."
23344         To do that, I would have added this line to cfg.mk:
23345           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
23346         but it would have ignored any "is is" match in NEWS.
23347         Low probability, but still...
23348         Instead, I changed the text, slightly:
23349           -  ls -is is now consistent with ls -lis in ignoring values returned
23350           +  "ls -is" is now consistent with ls -lis in ignoring values returned
23351         * top/maint.mk (prohibit_double_word_RE_): Provide default.
23352         (prohibit_doubled_word_): Define.
23353         (sc_prohibit_doubled_word): New rule.
23354         (sc_prohibit_the_the): Remove.  Subsumed by the above.
23355
23356 2011-04-10  Jim Meyering  <meyering@redhat.com>
23357
23358         maint: fix doubled-word typo in comment
23359         * m4/gethostname.m4: s/is is/it is/
23360         * m4/getdomainname.m4: Likewise.
23361
23362 2011-04-10  Jim Meyering  <meyering@redhat.com>
23363
23364         maint: remove doubled word: s/it it/it/
23365         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
23366
23367 2011-04-10  Jim Meyering  <meyering@redhat.com>
23368
23369         maint.mk: remove useless semicolon and backslash
23370         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
23371         semicolon and backslash.
23372
23373 2011-04-10  Bruno Haible  <bruno@clisp.org>
23374
23375         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
23376         * modules/stdint-tests (Depends-on): Add wchar.
23377
23378 2011-04-10  Jim Meyering  <meyering@redhat.com>
23379
23380         maint: remove doubled words in comments, e.g., s/a a/a/
23381         * lib/strptime.c (day_of_the_week): s/the the/the/
23382         * tests/test-chown.h (test_chown): s/a a/a/
23383
23384         test-chown.h: correct a cast
23385         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
23386         when the destination is a stat.st_gid.
23387
23388 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
23389
23390         getaddrinfo: Fix test for sa_len member.
23391         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
23392         include <sys/types.h> before <sys/socket.h>.
23393
23394 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23395
23396         maint: change "can not" to "cannot"
23397         * doc/posix-functions/iconv.texi (iconv): This one crossed line
23398         boundaries.
23399
23400 2011-04-09  Jim Meyering  <meyering@redhat.com>
23401
23402         maint: change "a a" to "a"
23403         * tests/test-lchown.h (test_lchown): s/a a/a/
23404
23405         maint.mk: prohibit \<the the\>
23406         * top/maint.mk (sc_prohibit_the_the): New rule.
23407
23408         maint: fix "the the" in comment
23409         * lib/count-one-bits.h: s/the the/the/
23410
23411         maint: change "can not" to "cannot"
23412         But do not change the occurrences in maintain.texi or in
23413         build-aux/po/Makefile.in.in, which I presume comes from gettext.
23414         * doc/gnulib-tool.texi: s/can not/cannot/
23415         * doc/posix-functions/accept.texi (accept): Likewise.
23416         * doc/posix-functions/socket.texi (socket): Likewise.
23417         * lib/mbrtowc.c: Likewise.
23418
23419         maint.mk: prohibit use of "can not"
23420         * top/maint.mk (sc_prohibit_can_not): New rule.
23421         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
23422
23423 2011-04-09  Bruno Haible  <bruno@clisp.org>
23424
23425         careadlinkat: Guard against misuse of careadlinkatcwd.
23426         * lib/careadlinkat.c: Include <stdlib.h>.
23427         (careadlinkatcwd): Check that the fd argument is as expected.
23428
23429 2011-04-09  Bruno Haible  <bruno@clisp.org>
23430
23431         careadlinkat: Use common coding style.
23432         * lib/careadlinkat.c: Move gnulib includes after system includes.
23433
23434 2011-04-09  Bruno Haible  <bruno@clisp.org>
23435
23436         careadlinkat: Clarify specification.
23437         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
23438         (careadlinkatcwd): Add comment.
23439         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
23440
23441 2011-04-09  Bruno Haible  <bruno@clisp.org>
23442
23443         areadlinkat: Avoid link error on many platforms.
23444         * modules/areadlinkat (Depends-on): Add areadlink.
23445
23446 2011-04-09  Bruno Haible  <bruno@clisp.org>
23447
23448         allocator, careadlinkat: Fix double-inclusion guard.
23449         * lib/allocator.h: Fix double-inclusion guard.
23450         * lib/careadlinkat.h: Likewise.
23451
23452 2011-04-09  Bruno Haible  <bruno@clisp.org>
23453
23454         relocatable-prog-wrapper: Update after module 'areadlink' changed.
23455         * lib/relocwrapper.c: Update dependencies hierarchy.
23456         * build-aux/install-reloc: Update list of files to be compiled.
23457         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
23458         lib/allocator.[hc].
23459
23460 2011-04-08  Eric Blake  <eblake@redhat.com>
23461
23462         strftime: silence gnulib-tool warning
23463         * modules/strftime-tests (Depends-on): Drop automatic dependency.
23464
23465 2011-04-08  Bruno Haible  <bruno@clisp.org>
23466
23467         verify: Fix syntax error with GCC 4.6 in C++ mode.
23468         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
23469         (HAVE_STATIC_ASSERT): New macro.
23470         (verify_true, verify): Use 'static_assert' if it is supported and
23471         '_Static_assert' is not supported.
23472
23473 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23474
23475         allocator: New module.
23476         * modules/allocator, lib/allocator.c: New files.
23477         * lib/allocator.h (stdlib_allocator): New decl.
23478         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
23479         Remove.  Do not include <stdlib.h>.
23480         (careadlinkat): Use stdlib_allocator instead of rolling our own.
23481         * modules/careadlinkat (Files): Remove lib/allocator.h.
23482         (Depends-on): Add allocator.
23483
23484         stdlib: let modules use system malloc, realloc
23485         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
23486         if !_GL_USE_STDLIB_ALLOC.
23487         (malloc, realloc): Limit this change to a smaller scope.
23488
23489         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
23490         (malloc, realloc): Don't #undef; no longer needed.
23491         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23492         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23493         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23494         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23495         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23496         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23497         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23498         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23499
23500         careadlinkat: rename members to avoid problem
23501         * lib/allocator.h (struct allocator): Rename members from
23502         malloc/realloc to allocate/reallocate, to avoid problems if malloc
23503         and realloc are #define'd.  Reported by Eric Blake in
23504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
23505         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23506
23507 2011-04-08  Eric Blake  <eblake@redhat.com>
23508
23509         nonblocking: reduce dependency
23510         * tests/test-nonblocking.c: Only test sockets when in use.
23511         * modules/nonblocking-tests (Depends-on): Drop socket.
23512         (Makefile.am): Link even if sockets are not present.
23513         * modules/pipe2-tests (Makefile.am): Likewise.
23514         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23515
23516         pipe2: fix O_NONBLOCK support on mingw
23517         * modules/pipe2 (Depends-on): Add nonblocking.
23518         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23519         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23520         * tests/test-nonblocking.c (main): Likewise.
23521         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23522
23523         fcntl-h: fix O_ACCMODE on cygwin
23524         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23525         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23526
23527         pipe-filter: drop O_NONBLOCK workarounds
23528         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23529         * modules/pipe-filter-ii (Depends-on): Likewise.
23530         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23531
23532         nonblocking: provide O_NONBLOCK for mingw
23533         * modules/nonblocking (Depends-on): Add open.
23534         (configure.ac): Set new witness macro.
23535         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23536         * modules/fcntl-h (Makefile.am): Substitute it.
23537         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23538         nonblocking module is in use.
23539         * lib/nonblocking.c: Adjust portability test.
23540         * lib/open.c (open): Don't let native open see gnulib flag.
23541         * tests/test-fcntl-h.c (main): Enhance test.
23542         * tests/test-open.h (test_open): Likewise.
23543         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23544
23545         careadlinkat: fix compilation error on mingw
23546         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23547         within struct allocator.
23548
23549 2011-04-06  Eric Blake  <eblake@redhat.com>
23550
23551         binary-io: relicense under LGPLv2+
23552         * modules/binary-io (License): Relax to LGPLv2+.
23553         Requested for libvirt, and required by pipe2.
23554
23555 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23556
23557         verify: use _Static_assert if available
23558         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23559         (verify_true, verify): Use it if available.  This generates better
23560         diagnostics with GCC 4.6.0 and later.
23561
23562 2011-04-05  Bruno Haible  <bruno@clisp.org>
23563
23564         Remove leftover generated .h files after config.status changed.
23565
23566         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23567         GL_GENERATE_ALLOCA_H.
23568         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23569         GL_GENERATE_ALLOCA_H evaluates to false.
23570
23571         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23572         GL_GENERATE_ARGZ_H.
23573         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23574         evaluates to false.
23575
23576         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23577         GL_GENERATE_BYTESWAP_H.
23578         * modules/byteswap (Makefile.am): Remove byteswap.h if
23579         GL_GENERATE_BYTESWAP_H evaluates to false.
23580
23581         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23582         GL_GENERATE_ERRNO_H.
23583         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23584         evaluates to false.
23585
23586         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23587         GL_GENERATE_FLOAT_H.
23588         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23589         evaluates to false.
23590
23591         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23592         GL_GENERATE_FNMATCH_H.
23593         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23594         GL_GENERATE_FNMATCH_H evaluates to false.
23595
23596         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23597         GL_GENERATE_GLOB_H.
23598         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23599         evaluates to false.
23600
23601         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23602         automake conditional GL_GENERATE_ICONV_H.
23603         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23604         evaluates to false.
23605
23606         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23607         GL_GENERATE_NETINET_IN_H.
23608         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23609         GL_GENERATE_NETINET_IN_H evaluates to false.
23610
23611         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23612         conditional GL_GENERATE_PTHREAD_H.
23613         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23614         * modules/pthread (Makefile.am): Remove pthread.h if
23615         GL_GENERATE_PTHREAD_H evaluates to false.
23616
23617         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23618         GL_GENERATE_SCHED_H.
23619         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23620         evaluates to false.
23621
23622         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23623         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23624         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23625         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23626
23627         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23628         GL_GENERATE_STDARG_H.
23629         * modules/stdarg (Makefile.am): Remove stdarg.h if
23630         GL_GENERATE_STDARG_H evaluates to false.
23631
23632         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23633         GL_GENERATE_STDBOOL_H.
23634         * modules/stdbool (Makefile.am): Remove stdbool.h if
23635         GL_GENERATE_STDBOOL_H evaluates to false.
23636
23637         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23638         conditional GL_GENERATE_STDDEF_H.
23639         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23640         * modules/stddef (Makefile.am): Remove stddef.h if
23641         GL_GENERATE_STDDEF_H evaluates to false.
23642
23643         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23644         GL_GENERATE_STDINT_H.
23645         * modules/stdint (Makefile.am): Remove stdint.h if
23646         GL_GENERATE_STDINT_H evaluates to false.
23647
23648         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23649         GL_GENERATE_SYSEXITS_H.
23650         * modules/sysexits (Makefile.am): Remove sysexits.h if
23651         GL_GENERATE_SYSEXITS_H evaluates to false.
23652
23653         Reported by Karl Berry and Ralf Wildenhues.
23654
23655 2011-04-05  Bruno Haible  <bruno@clisp.org>
23656
23657         Ensure to rebuild generated .h files when config.status has changed.
23658         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23659         config.status.
23660         * modules/ctype (Makefile.am): Likewise.
23661         * modules/dirent (Makefile.am): Likewise.
23662         * modules/errno (Makefile.am): Likewise.
23663         * modules/fcntl-h (Makefile.am): Likewise.
23664         * modules/float (Makefile.am): Likewise.
23665         * modules/getopt-posix (Makefile.am): Likewise.
23666         * modules/glob (Makefile.am): Likewise.
23667         * modules/iconv-h (Makefile.am): Likewise.
23668         * modules/inttypes (Makefile.am): Likewise.
23669         * modules/langinfo (Makefile.am): Likewise.
23670         * modules/locale (Makefile.am): Likewise.
23671         * modules/math (Makefile.am): Likewise.
23672         * modules/netdb (Makefile.am): Likewise.
23673         * modules/netinet_in (Makefile.am): Likewise.
23674         * modules/poll-h (Makefile.am): Likewise.
23675         * modules/pthread (Makefile.am): Likewise.
23676         * modules/pty (Makefile.am): Likewise.
23677         * modules/sched (Makefile.am): Likewise.
23678         * modules/search (Makefile.am): Likewise.
23679         * modules/selinux-h (Makefile.am): Likewise.
23680         * modules/signal (Makefile.am): Likewise.
23681         * modules/spawn (Makefile.am): Likewise.
23682         * modules/stdarg (Makefile.am): Likewise.
23683         * modules/stdbool (Makefile.am): Likewise.
23684         * modules/stddef (Makefile.am): Likewise.
23685         * modules/stdint (Makefile.am): Likewise.
23686         * modules/stdio (Makefile.am): Likewise.
23687         * modules/stdlib (Makefile.am): Likewise.
23688         * modules/string (Makefile.am): Likewise.
23689         * modules/strings (Makefile.am): Likewise.
23690         * modules/sys_file (Makefile.am): Likewise.
23691         * modules/sys_ioctl (Makefile.am): Likewise.
23692         * modules/sys_select (Makefile.am): Likewise.
23693         * modules/sys_socket (Makefile.am): Likewise.
23694         * modules/sys_stat (Makefile.am): Likewise.
23695         * modules/sys_time (Makefile.am): Likewise.
23696         * modules/sys_times (Makefile.am): Likewise.
23697         * modules/sys_utsname (Makefile.am): Likewise.
23698         * modules/sys_wait (Makefile.am): Likewise.
23699         * modules/sysexits (Makefile.am): Likewise.
23700         * modules/termios (Makefile.am): Likewise.
23701         * modules/time (Makefile.am): Likewise.
23702         * modules/unistd (Makefile.am): Likewise.
23703         * modules/wchar (Makefile.am): Likewise.
23704         * modules/wctype-h (Makefile.am): Likewise.
23705         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23706
23707 2011-04-05  Bruno Haible  <bruno@clisp.org>
23708
23709         pipe2: Relicense under LGPLv2+.
23710         * modules/pipe2 (License): Change to LGPLv2+.
23711         Requested by Eric Blake, for libvirt.
23712
23713 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23714
23715         bootstrap: compute gnulib_extra_files after updating build_aux
23716         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23717         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23718
23719 2011-04-05  Eric Blake  <eblake@redhat.com>
23720
23721         bootstrap: preserve git whitelist item sorting
23722         * build-aux/bootstrap (sort_patterns): New function.
23723         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23724
23725 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23726
23727         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23728         sc_space_tab check.
23729
23730 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23731
23732         areadlink, areadlinkat: rewrite in terms of careadlinkat
23733         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23734         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23735         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23736         (malloc, realloc): Remove #undefs.
23737         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23738         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23739         readlink, ssize_t, stdint, unistd.
23740         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23741         areadlink, stdint.
23742
23743         careadlinkat: new module
23744         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23745         * modules/careadlinkat: New files, written by me with
23746         a review and feedback from Ben Pfaff in
23747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23748
23749 2011-04-01  Bruno Haible  <bruno@clisp.org>
23750
23751         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23752         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23753         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23754         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23755         Reported by Bruce Korb <bruce.korb@gmail.com>.
23756
23757 2011-04-01  Bruno Haible  <bruno@clisp.org>
23758
23759         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23760         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23761         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23762         * modules/wcpcpy (Depends-on): Add extensions.
23763         * modules/wcpncpy (Depends-on): Likewise.
23764         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23765         systems.
23766         * doc/posix-functions/wcpncpy.texi: Likewise.
23767         * doc/posix-functions/wcwidth.texi: Likewise.
23768
23769 2011-03-31  Eric Blake  <eblake@redhat.com>
23770
23771         nonblocking: fix mingw test failures
23772         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23773         non-blocking flag on regular file.
23774         (get_nonblocking_flag): Set errno on invalid fd.
23775         * tests/test-nonblocking.c (main): Avoid test failure on
23776         directories if fchdir is not active.
23777         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23778
23779 2011-03-31  Bruno Haible  <bruno@clisp.org>
23780
23781         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23782         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23783         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23784         Reported by Simon Josefsson <simon@josefsson.org>.
23785
23786 2011-03-31  Bruno Haible  <bruno@clisp.org>
23787         and Eric Blake  <eblake@redhat.com>
23788
23789         nonblocking: new module
23790         * modules/nonblocking: New module.
23791         * modules/nonblocking-tests: Likewise.
23792         * lib/nonblocking.h: New file.
23793         * lib/nonblocking.c: Likewise.
23794         * tests/test-nonblocking.c: New test.
23795         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23796
23797 2011-03-30  Bruno Haible  <bruno@clisp.org>
23798
23799         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23800         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23801         instead of 'printf' format for GCC >= 4.4.
23802         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23803         (fprintf, printf, vfprintf, vprintf): Declare with
23804         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23805         the system's vfprintf() function.
23806         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23807
23808 2011-03-30  Eric Blake  <eblake@redhat.com>
23809
23810         passfd: fix scoping bug
23811         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23812         before sendmsg/recvmsg.
23813
23814         passfd: standardize coding conventions
23815         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23816         can be learned at compile time.
23817         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23818         ifdefs.
23819         (sendfd, recvfd): Follow gnulib code conventions.
23820
23821         passfd: fix incorrect sendmsg arguments
23822         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23823         incorrect msg_controllen value.
23824         * modules/passfd-tests (Depends-on): Check for alarm.
23825         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23826         Reported by Bastien ROUCARIES.
23827
23828 2011-03-30  Bruno Haible  <bruno@clisp.org>
23829
23830         c-strcasestr: Relicense under LGPLv2+.
23831         * modules/c-strcasestr (License): Change to LGPLv2+.
23832         Requested by Eric Blake, for libvirt.
23833
23834 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23835
23836         * users.txt: Add libidn2.  Fix libtasn1 link.
23837
23838 2011-03-30  Jim Meyering  <meyering@redhat.com>
23839
23840         tests: readlink* ("",... fails with EINVAL on newer kernels
23841         readlink and readlinkat have typically failed with ENOENT for
23842         the invalid, empty file name,  "".  However, with the advent
23843         of linux-2.6.39, they fail with EINVAL.
23844         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23845         when operating on the empty file name.
23846         * tests/test-readlink.h (test_readlink): Likewise.
23847
23848 2011-03-29  Bruno Haible  <bruno@clisp.org>
23849
23850         Relicense some modules under LGPLv2+, for libidn2.
23851         * modules/array-mergesort (License): Change to LGPLv2+.
23852         * modules/c-strcaseeq (License): Likewise.
23853         * modules/striconveh (License): Likewise.
23854         * modules/striconveha (License): Likewise.
23855         * modules/uniconv/base (License): Likewise.
23856         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23857         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23858         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23859         * modules/unictype/base (License): Likewise.
23860         * modules/unictype/bidiclass-of (License): Likewise.
23861         * modules/unictype/category-M (License): Likewise.
23862         * modules/unictype/category-none (License): Likewise.
23863         * modules/unictype/category-of (License): Likewise.
23864         * modules/unictype/category-test (License): Likewise.
23865         * modules/unictype/category-test-withtable (License): Likewise.
23866         * modules/unictype/combining-class (License): Likewise.
23867         * modules/unictype/joiningtype-of (License): Likewise.
23868         * modules/unictype/scripts (License): Likewise.
23869         * modules/uninorm/base (License): Likewise.
23870         * modules/uninorm/canonical-decomposition (License): Likewise.
23871         * modules/uninorm/composition (License): Likewise.
23872         * modules/uninorm/decompose-internal (License): Likewise.
23873         * modules/uninorm/decomposition-table (License): Likewise.
23874         * modules/uninorm/nfc (License): Likewise.
23875         * modules/uninorm/nfd (License): Likewise.
23876         * modules/uninorm/u32-normalize (License): Likewise.
23877         * modules/unistr/base (License): Likewise.
23878         * modules/unistr/u32-cpy (License): Likewise.
23879         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23880         * modules/unistr/u32-to-u8 (License): Likewise.
23881         * modules/unistr/u32-uctomb (License): Likewise.
23882         * modules/unistr/u8-check (License): Likewise.
23883         * modules/unistr/u8-mblen (License): Likewise.
23884         * modules/unistr/u8-mbtouc (License): Likewise.
23885         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23886         * modules/unistr/u8-mbtoucr (License): Likewise.
23887         * modules/unistr/u8-prev (License): Likewise.
23888         * modules/unistr/u8-strlen (License): Likewise.
23889         * modules/unistr/u8-to-u32 (License): Likewise.
23890         * modules/unistr/u8-uctomb (License): Likewise.
23891         * modules/unitypes (License): Likewise.
23892         Requested by Simon Josefsson.
23893
23894 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23895
23896         lib-symbol-visibility: Add a notice.
23897         * modules/lib-symbol-visibility (Notice): New field.
23898
23899 2011-03-29  Bruno Haible  <bruno@clisp.org>
23900
23901         getaddrinfo: Doc fix.
23902         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23903         section "fixed in Gnulib".
23904
23905 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23906
23907         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23908         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23909
23910 2011-03-26  Bruno Haible  <bruno@clisp.org>
23911
23912         unictype/property-byname: Reduce the number of load-time relocations.
23913         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23914         (UC_PROPERTY_INDEX_*): New enumeration values.
23915         (uc_property_byname): Convert an index from the lookup table to an
23916         uc_property_t.
23917         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23918         values.
23919
23920 2011-03-26  Bruno Haible  <bruno@clisp.org>
23921
23922         unictype/property-byname: Allow omitted word separators and aliases.
23923         * lib/unictype/pr_byname.gperf: Add property names without word
23924         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23925         for 'space'.
23926
23927 2011-03-26  Bruno Haible  <bruno@clisp.org>
23928
23929         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23930         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23931         also hyphens to space.
23932         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23933         without spaces.
23934         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23935
23936 2011-03-26  Bruno Haible  <bruno@clisp.org>
23937
23938         unictype/joiningtype-byname: Recognize long names as well.
23939         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23940         a long name.
23941         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23942         unictype/joiningtype_byname.h.
23943         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23944         * lib/unictype/joiningtype_byname.gperf: New file.
23945         * modules/unictype/joiningtype-byname (Files): Add
23946         lib/unictype/joiningtype_byname.gperf.
23947         (Depends-on): Add gperf.
23948         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23949         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23950         long names.
23951
23952         Tests for module 'unictype/joiningtype-longname'.
23953         * modules/unictype/joiningtype-longname-tests: New file.
23954         * tests/unictype/test-joiningtype_longname.c: New file.
23955
23956         New module 'unictype/joiningtype-longname'.
23957         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23958         * lib/unictype/joiningtype_longname.c: New file.
23959         * modules/unictype/joiningtype-longname: New file.
23960         * modules/unictype/joiningtype-all (Depends-on): Add
23961         unictype/joiningtype-longname.
23962
23963 2011-03-26  Bruno Haible  <bruno@clisp.org>
23964
23965         unictype/bidiclass-byname: Recognize long names as well.
23966         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23967         name.
23968         * lib/unictype/bidi_byname.c: Include <string.h>,
23969         unictype/bidi_byname.h.
23970         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23971         * lib/unictype/bidi_byname.gperf: New file.
23972         * modules/unictype/bidiclass-byname (Files): Add
23973         lib/unictype/bidi_byname.gperf.
23974         (Depends-on): Add gperf.
23975         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23976         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23977         long names.
23978
23979         Tests for module 'unictype/bidiclass-longname'.
23980         * modules/unictype/bidiclass-longname-tests: New file.
23981         * tests/unictype/test-bidi_longname.c: New file.
23982
23983         New module 'unictype/bidiclass-longname'.
23984         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23985         * lib/unictype/bidi_longname.c: New file.
23986         * modules/unictype/bidiclass-longname: New file.
23987         * modules/unictype/bidiclass-all (Depends-on): Add
23988         unictype/bidiclass-longname.
23989
23990 2011-03-26  Bruno Haible  <bruno@clisp.org>
23991
23992         unictype/bidi*: Rename modules.
23993         * modules/unictype/bidiclass-all: Renamed from
23994         modules/unictype/bidicategory-all.
23995         * modules/unictype/bidiclass-name: Renamed from
23996         modules/unictype/bidiclass-name.
23997         (Description): Update.
23998         * modules/unictype/bidiclass-name-tests: Renamed from
23999         modules/unictype/bidicategory-name-tests.
24000         * modules/unictype/bidiclass-byname: Renamed from
24001         modules/unictype/bidicategory-byname.
24002         (Description): Update.
24003         * modules/unictype/bidiclass-byname-tests: Renamed from
24004         modules/unictype/bidicategory-byname-tests.
24005         * modules/unictype/bidiclass-of: Renamed from
24006         modules/unictype/bidicategory-of.
24007         (Description): Update.
24008         * modules/unictype/bidiclass-of-tests: Renamed from
24009         modules/unictype/bidicategory-of-tests.
24010         * modules/unictype/bidiclass-test: Renamed from
24011         modules/unictype/bidicategory-test.
24012         (Description): Update.
24013         * modules/unictype/bidiclass-test-tests: Renamed from
24014         modules/unictype/bidicategory-test-tests.
24015         * modules/unictype/bidicategory-all: New file, a simple redirection.
24016         * modules/unictype/bidicategory-name: Likewise.
24017         * modules/unictype/bidicategory-byname: Likewise.
24018         * modules/unictype/bidicategory-of: Likewise.
24019         * modules/unictype/bidicategory-test: Likewise.
24020         * modules/unictype/property-bidi-* (Dependencies): Update.
24021         * lib/unictype/bidi_*.c: Update comment.
24022
24023 2011-03-26  Bruno Haible  <bruno@clisp.org>
24024
24025         unictype/bidi*: Rename functions, part 2.
24026         * modules/unictype/bidicategory-name (configure.ac): Update required
24027         libunistring version.
24028         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
24029
24030 2011-03-25  Bruno Haible  <bruno@clisp.org>
24031
24032         New module 'unictype/combining-class-all'.
24033         * modules/unictype/combining-class-all: New file.
24034
24035         Tests for module 'unictype/combining-class-byname'.
24036         * modules/unictype/combining-class-byname-tests: New file.
24037         * tests/unictype/test-combiningclass_byname.c: New file.
24038
24039         New module 'unictype/combining-class-byname'.
24040         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
24041         * lib/unictype/combiningclass_byname.c: New file.
24042         * lib/unictype/combiningclass_byname.gperf: New file.
24043         * modules/unictype/combining-class-byname: New file.
24044
24045         Tests for module 'unictype/combining-class-longname'.
24046         * modules/unictype/combining-class-longname-tests: New file.
24047         * tests/unictype/test-combiningclass_longname.c: New file.
24048
24049         New module 'unictype/combining-class-longname'.
24050         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
24051         * lib/unictype/combiningclass_longname.c: New file.
24052         * modules/unictype/combining-class-longname: New file.
24053
24054         Tests for module 'unictype/combining-class-name'.
24055         * modules/unictype/combining-class-name-tests: New file.
24056         * tests/unictype/test-combiningclass_name.c: New file.
24057
24058         New module 'unictype/combining-class-name'.
24059         * lib/unictype.in.h (uc_combining_class_name): New declaration.
24060         * lib/unictype/combiningclass_name.c: New file.
24061         * modules/unictype/combining-class-name: New file.
24062
24063 2011-03-25  Bruno Haible  <bruno@clisp.org>
24064
24065         unictype/combining-class: Rename source files.
24066         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
24067         of unictype/combining.h.
24068         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
24069         Update.
24070         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
24071         * modules/unictype/combining-class (Description): Fix.
24072         (Files, Makefile.am): Update.
24073         * tests/unictype/test-combiningclass.c: Renamed from
24074         tests/unictype/test-combining.c.
24075         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
24076
24077 2011-03-25  Bruno Haible  <bruno@clisp.org>
24078
24079         unictype: Update list of canonical combining classes.
24080         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
24081
24082 2011-03-25  Bruno Haible  <bruno@clisp.org>
24083
24084         unictype/category-byname: Recognize long names as well.
24085         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
24086         a long name.
24087         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
24088         unictype/categ_byname.h.
24089         (UC_CATEGORY_INDEX_*): New enumeration values.
24090         (uc_general_category_byname): Use uc_general_category_lookup and
24091         convert from index to value.
24092         * lib/unictype/categ_byname.gperf: New file.
24093         * modules/unictype/category-byname (Files): Add
24094         lib/unictype/categ_byname.gperf.
24095         (Depends-on): Add gperf.
24096         (Makefile.am): Add rule for generating unictype/categ_byname.h.
24097         * tests/unictype/test-categ_byname.c (main): Test the recognition of
24098         long names.
24099
24100         Tests for module 'unictype/category-longname'.
24101         * modules/unictype/category-longname-tests: New file.
24102         * tests/unictype/test-categ_longname.c: New file.
24103
24104         New module 'unictype/category-longname'.
24105         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
24106         * lib/unictype/categ_longname.c: New file.
24107         * modules/unictype/category-longname: New file.
24108         * modules/unictype/category-all (Depends-on): Add it.
24109
24110 2011-03-25  Bruno Haible  <bruno@clisp.org>
24111
24112         Tests for module 'unictype/category-LC'.
24113         * modules/unictype/category-LC-tests: New file.
24114         * tests/unictype/test-categ_LC.c: New file, automatically generated.
24115
24116         New module 'unictype/category-LC'.
24117         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
24118         (UC_CATEGORY_LC): New declaration.
24119         (UC_CASED_LETTER): New macro.
24120         * lib/gen-uni-tables.c (is_category_LC): New function.
24121         (output_categories): Also handle category LC.
24122         (UC_CATEGORY_MASK_LC): New enumeration value.
24123         (general_category_byname): Also handle category LC.
24124         * lib/unictype/categ_LC.c: New file.
24125         * lib/unictype/categ_LC.h: New file, automatically generated.
24126         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
24127         category LC.
24128         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
24129         * modules/unictype/category-LC: New file.
24130         * modules/unictype/category-byname (Depends-on): Add
24131         unictype/category-LC.
24132         * modules/unictype/category-all (Depends-on): Likewise.
24133
24134 2011-03-25  Eric Blake  <eblake@redhat.com>
24135
24136         xmalloc: revert yesterday's regression
24137         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
24138         realloc's underlying behavior (allowing allocation of zero-size
24139         objects, especially if malloc-gnu is also in use).
24140
24141 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
24142
24143         maint.mk: add missing version to VC-tag
24144         * top/maint.mk: git tag was missing actual tag name; add it.
24145
24146         valgrind: do leak checking, and exit with code 1 on error (not 0)
24147         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
24148         to VALGRIND.
24149
24150 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
24151
24152         posix-modules: say what it does.
24153         * posix-modules: Add a line to the --help output saying what it does.
24154
24155 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24156
24157         xmalloc: Do not leak if underlying realloc is C99 compatible.
24158         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
24159         This avoids a leak on C99-based systems.  See
24160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
24161
24162 2011-03-24  Eric Blake  <eblake@redhat.com>
24163
24164         realloc: document portability problem
24165         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
24166         passing 0 size to realloc.
24167
24168 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
24169
24170         doc: update users.txt
24171         * users.txt: Add cvsps, tmpwatch
24172
24173 2011-03-23  Matt Rice  <ratmice@gmail.com>
24174
24175         doc: update users.txt
24176         * users.txt: Add gdb.
24177
24178 2011-03-23  Jim Meyering  <meyering@redhat.com>
24179
24180         doc: update users.txt
24181         Looking through matches up to the following URL (there are still
24182         several more pages), I found several projects that use gnulib:
24183         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
24184         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
24185         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
24186
24187 2011-03-22  Bruno Haible  <bruno@clisp.org>
24188
24189         unictype/bidi*: Rename functions.
24190         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
24191         uc_bidi_class, uc_is_bidi_class): New declarations.
24192         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
24193         uc_bidi_category_byname.
24194         (uc_bidi_category_byname): New function.
24195         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
24196         u_bidi_category_name.
24197         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
24198         (uc_bidi_category_name): New function.
24199         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
24200         uc_bidi_category.
24201         (uc_bidi_category): New function.
24202         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
24203         uc_is_bidi_category. Invoke uc_bidi_class.
24204         (uc_is_bidi_category): New function.
24205         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
24206         instead of uc_bidi_category_byname.
24207         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
24208         instead of uc_bidi_category_name.
24209         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
24210         uc_bidi_category.
24211         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
24212         instead of uc_is_bidi_category.
24213
24214 2011-03-21  Bruno Haible  <bruno@clisp.org>
24215
24216         New module 'unictype/joininggroup-all'.
24217         * modules/unictype/joininggroup-all: New file.
24218
24219         Tests for module 'unictype/joininggroup-of'.
24220         * modules/unictype/joininggroup-of-tests: New file.
24221         * tests/unictype/test-joininggroup_of.c: New file.
24222         * tests/unictype/test-joininggroup_of.h: New file, automatically
24223         generated by gen-uni-tables.
24224
24225         New module 'unictype/joininggroup-of'.
24226         * modules/unictype/joininggroup-of: New file.
24227         * lib/unictype/joininggroup_of.c: New file.
24228         * lib/unictype/joininggroup_of.h: New file, automatically generated by
24229         gen-uni-tables.
24230
24231         Tests for module 'unictype/joininggroup-byname'.
24232         * modules/unictype/joininggroup-byname-tests: New file.
24233         * tests/unictype/test-joininggroup_byname.c: New file.
24234
24235         New module 'unictype/joininggroup-byname'.
24236         * modules/unictype/joininggroup-byname: New file.
24237         * lib/unictype/joininggroup_byname.c: New file.
24238         * lib/unictype/joininggroup_byname.gperf: New file.
24239
24240         Tests for module 'unictype/joininggroup-name'.
24241         * modules/unictype/joininggroup-name-tests: New file.
24242         * tests/unictype/test-joininggroup_name.c: New file.
24243
24244         New module 'unictype/joininggroup-name'.
24245         * modules/unictype/joininggroup-name: New file.
24246         * lib/unictype/joininggroup_name.c: New file.
24247         * lib/unictype/joininggroup_name.h: New file.
24248
24249         New module 'unictype/joiningtype-all'.
24250         * modules/unictype/joiningtype-all: New file.
24251
24252         Tests for module 'unictype/joiningtype-of'.
24253         * modules/unictype/joiningtype-of-tests: New file.
24254         * tests/unictype/test-joiningtype_of.c: New file.
24255         * tests/unictype/test-joiningtype_of.h: New file, automatically
24256         generated by gen-uni-tables.
24257
24258         New module 'unictype/joiningtype-of'.
24259         * modules/unictype/joiningtype-of: New file.
24260         * lib/unictype/joiningtype_of.c: New file.
24261         * lib/unictype/joiningtype_of.h: New file, automatically generated by
24262         gen-uni-tables.
24263
24264         Tests for module 'unictype/joiningtype-byname'.
24265         * modules/unictype/joiningtype-byname-tests: New file.
24266         * tests/unictype/test-joiningtype_byname.c: New file.
24267
24268         New module 'unictype/joiningtype-byname'.
24269         * modules/unictype/joiningtype-byname: New file.
24270         * lib/unictype/joiningtype_byname.c: New file.
24271
24272         Tests for module 'unictype/joiningtype-name'.
24273         * modules/unictype/joiningtype-name-tests: New file.
24274         * tests/unictype/test-joiningtype_name.c: New file.
24275
24276         New module 'unictype/joiningtype-name'.
24277         * modules/unictype/joiningtype-name: New file.
24278         * lib/unictype/joiningtype_name.c: New file.
24279
24280         unictype: Add support for Arabic shaping properties.
24281         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
24282         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
24283         declarations.
24284         (UC_JOINING_GROUP_*): New enumeration values.
24285         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
24286         declarations.
24287         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
24288         (unicode_joining_type): New variable.
24289         (UC_JOINING_GROUP_*): New enumeration values.
24290         (unicode_joining_group): New variable.
24291         (fill_arabicshaping, joining_type_as_c_identifier,
24292         output_joining_type_test, output_joining_type,
24293         joining_group_as_c_identifier, output_joining_group_test,
24294         output_joining_group): New functions.
24295         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
24296         fill_arabicshaping and output_joining_type_test, output_joining_type,
24297         output_joining_group_test, output_joining_group.
24298         Reported by Simon Josefsson.
24299
24300 2011-03-21  Jim Meyering  <meyering@redhat.com>
24301
24302         strftime: fix a bug in yesterday's change
24303         * lib/strftime.c (add): Accommodate width's initial value of -1.
24304         Otherwise, nstrftime would copy uninitialized data into
24305         the result buffer.
24306
24307 2011-03-21  Jim Meyering  <meyering@redhat.com>
24308
24309         tests: add strftime-tests module
24310         * tests/test-strftime.c: New file.
24311         * modules/strftime-tests: New module.
24312
24313 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24314
24315         strftime: don't assume a byte count fits in 'int'
24316         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
24317         found this problem by static analysis, using gcc -Wstrict-overflow
24318         (GCC 4.5.2, x86-64).  This reported an optimization that depended
24319         on an integer overflow having undefined behavior, but it turns out
24320         that the argument is a size, which might not fit in 'int' anyway,
24321
24322 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24323
24324         stdio: don't require ignore_value around fwrite
24325
24326         This patch works around libc bug 11959
24327         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
24328         Without this patch, applications must often write
24329         ignore_value (fwrite (...)) even though the ignore_value is
24330         not helpful here.  It's common to write many objects, using
24331         fwrite/printf/etc., and then use ferror to detect output error.
24332
24333         I considered making this patch optional, but decided against it,
24334         because libc is obviously being inconsistent here: there is no
24335         reason libc should insist that user code must inspect fwrite
24336         return's value without also insisting that it inspect printf's,
24337         putchar's, etc.  If user code wants to have a strict style where
24338         all these functions' values are checked (so that ferror need not
24339         be checked), we could add support for that style in a new gnulib
24340         module, but in the meantime it's better to be consistent and to
24341         support common usage.
24342
24343         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
24344         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
24345         that we are compiling in checking mode, and if not C++, and
24346         if not already wrapping fwrite for some other reason.
24347         (fwrite): #define to rpl_fwrite if the latter is defined.
24348
24349 2011-03-20  Bruno Haible  <bruno@clisp.org>
24350
24351         verror: Fix compilation error introduced on 2011-02-13.
24352         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
24353         instead of __attribute__.
24354         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24355
24356 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24357             Bruno Haible  <bruno@clisp.org>
24358
24359         socklen: do not depend on sys_socket
24360         While trying to modify Emacs to use gnulib's socklen module,
24361         I discovered a circular dependency: socklen depends on sys_socket
24362         and vice versa.  Emacs can use socklen, but it does not need
24363         sys_socket because it has its own substitute for sys/socket.h.
24364         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
24365         gl_TYPE_SOCKLEN_T.
24366         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
24367         gl_PREREQ_SYS_H_SOCKET.
24368         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
24369         gl_PREREQ_SYS_H_SOCKET.
24370         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
24371         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
24372         * modules/socklen (Depends-on): Do not depend on sys_socket.
24373         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
24374
24375 2011-03-20  Jim Meyering  <meyering@redhat.com>
24376
24377         maint.mk: sort file names *after* new transformation
24378         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
24379         prefix would have led to an unwarranted failure in GNU parted.
24380         Sort after that transformation.
24381
24382 2011-03-19  Jim Meyering  <meyering@redhat.com>
24383
24384         maint.mk: fix po-file syntax-check rule
24385         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
24386         Patch by Bruno Haible.
24387
24388 2011-03-19  Bruno Haible  <bruno@clisp.org>
24389
24390         socklen: Update comment.
24391         * m4/socklen.m4: Update comment about platforms.
24392
24393 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24394             Bruno Haible  <bruno@clisp.org>
24395
24396         inet_ntop, inet_pton: Simplify.
24397         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
24398         documented to provide socklen_t and we already depend on sys_socket.
24399         * modules/inet_pton (Depends-on): Likewise.
24400         * lib/arpa_inet.in.h: Adjust comment.
24401
24402 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24403             Bruno Haible  <bruno@clisp.org>
24404
24405         netdb: Simplify.
24406         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
24407         documented to provide socklen_t and we already depend on sys_socket.
24408         * lib/netdb.in.h: Adjust comment.
24409
24410 2011-03-19  Bruno Haible  <bruno@clisp.org>
24411
24412         sys_socket, netdb: Document problem with socklen_t.
24413         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
24414         platforms.
24415         * doc/posix-headers/netdb.texi: Likewise.
24416
24417 2011-03-18  Eric Blake  <eblake@redhat.com>
24418
24419         maint.mk: let po check work in VPATH build
24420         * top/maint.mk (po_file): Allow cfg.mk override.
24421         (sc_po_check): Allow VPATH use.
24422         Reported by Jiri Denemark.
24423
24424 2011-03-16  Jim Meyering  <meyering@redhat.com>
24425
24426         maint.mk: allow fine-grained syntax-check exclusion via Make variables
24427         Before, you would have had to create one .x-sc_ file per rule in order
24428         to exempt offending files.  Now, you may instead use a Make variable --
24429         usually defined in cfg.mk -- whose name identifies the affected rule.
24430         * top/maint.mk (_sc_excl): Define.
24431         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
24432         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
24433
24434 2011-03-13  Bruno Haible  <bruno@clisp.org>
24435
24436         ignore-value tests: Avoid warnings.
24437         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
24438         empty for gcc < 3.4.
24439
24440 2011-03-13  Bruno Haible  <bruno@clisp.org>
24441
24442         passfd: Fix link error on Solaris.
24443         * modules/passfd (Description): Correct.
24444         (Depends-on): Add socketlib.
24445         (Link): New section.
24446         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
24447
24448 2011-03-13  Bruno Haible  <bruno@clisp.org>
24449
24450         passfd: Fix link error on AIX 5.2.
24451         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
24452
24453 2011-03-13  Bruno Haible  <bruno@clisp.org>
24454
24455         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
24456         * lib/sys_socket.in.h: Include <stddef.h>.
24457         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
24458         CMSG_FIRSTHDR. Remove unused variable.
24459
24460 2011-03-13  Bruno Haible  <bruno@clisp.org>
24461
24462         passfd: Fix compilation error on OpenBSD.
24463         * lib/passfd.c: Include <sys/uio.h>.
24464
24465 2011-03-13  Bruno Haible  <bruno@clisp.org>
24466
24467         passfd test: Fix warnings.
24468         * tests/test-passfd.c: Include <sys/wait.h>.
24469         (main): Fix typo.
24470
24471 2011-03-13  Bruno Haible  <bruno@clisp.org>
24472
24473         passfd module, part 4, tweaks.
24474         * tests/test-passfd.c: Reorder includes.
24475         (main): Fix perror and printf calls.
24476
24477 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24478
24479         passfd module, part 4.
24480         * modules/passfd-tests: New file.
24481         * tests/test-passfd.c: New file.
24482
24483 2011-03-13  Jim Meyering  <meyering@redhat.com>
24484
24485         Makefile: rely on GNU make; derive syntax-check rule names
24486         Rather than requiring that each sc_ rule be listed as a dependent
24487         of "check", use features of GNU make to derive the list.
24488         * Makefile (syntax-check-rules): Define.
24489         (check): Depend on the new variable, not the hard-coded list.
24490
24491 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
24492             Bruno Haible  <bruno@clisp.org>
24493
24494         passfd module, part 3.
24495         * lib/passfd.h (recvfd): Add a flags argument.
24496         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
24497         (recvfd): Add a flags argument.
24498         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
24499         exists.
24500         * modules/passfd (Depends-on): Add cloexec.
24501         Suggested by Eric Blake.
24502
24503 2011-03-13  Bruno Haible  <bruno@clisp.org>
24504
24505         passfd module, part 2, tweaks.
24506         * modules/passfd (Files): Reorder.
24507         (Depends-on): Remove errno.
24508         (Include): Remove <sys/socket.h>, <sys/un.h>.
24509         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24510         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24511         specification header. Include <sys/socket.h> always. Don't include
24512         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24513         (sendfd): Clarify that it sets errno when it fails.
24514         (recvfd): Fix specification.
24515
24516 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24517
24518         passfd module, part 2.
24519         * modules/passfd: New file.
24520         * lib/passfd.h: New file.
24521         * lib/passfd.c: New file.
24522
24523 2011-03-12  Bruno Haible  <bruno@clisp.org>
24524
24525         wcswidth, mbswidth: Avoid integer overflow.
24526         * lib/wcswidth.c: Include <limits.h>.
24527         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24528         * lib/mbswidth.c: Include <limits.h>.
24529         (mbsnwidth): Avoid 'int' overflow.
24530         Reported by Jim Meyering.
24531
24532 2011-03-12  Bruno Haible  <bruno@clisp.org>
24533
24534         futimens, utimensat: Avoid endless recursion on Solaris 10.
24535         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24536         Solaris.
24537         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24538         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24539
24540 2011-03-11  Jim Meyering  <meyering@redhat.com>
24541
24542         maint.mk: relax a regexp to accommodate other formatting styles
24543         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24544         between "ngettext" and the following "(".
24545
24546 2011-03-11  Pádraig Brady <P@draigBrady.com>
24547
24548         maint.mk: suppress a false positive warning
24549         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24550         diagnostics are marked with ngettext.
24551
24552 2011-03-10  Eric Blake  <eblake@redhat.com>
24553
24554         wchar: add explicit dependencies, for Tru64
24555         * modules/mbmemcasecoll (Depends-on): Add wchar.
24556         * modules/mbtowc (Depends-on): Likewise.
24557         * modules/vasnprintf (Depends-on): Likewise.
24558         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24559         * modules/wctomb (Depends-on): Likewise.
24560         Reported by Peter O'Gorman.
24561
24562 2011-03-08  Bruno Haible  <bruno@clisp.org>
24563
24564         passfd module, part 1, tweaks.
24565         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24566         Improve indentation. Improve AC_MSG_CHECKING messages.
24567         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24568         gl_SOCKET_FAMILIES.
24569
24570 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24571
24572         passfd module, part 1.
24573         * m4/afunix.m4: New file.
24574         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24575         sockets.
24576
24577 2011-03-08  Bruno Haible  <bruno@clisp.org>
24578
24579         regex-quote: New API.
24580         * lib/regex-quote.h: Include <stdbool.h>.
24581         (struct regex_quote_spec): New type.
24582         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24583         New declarations.
24584         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24585         'const struct regex_quote_spec *' argument.
24586         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24587         (pcre_special): New constant.
24588         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24589         New functions.
24590         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24591         'const struct regex_quote_spec *' argument.
24592         * modules/regex-quote (Depends-on): Add stdbool.
24593         * tests/test-regex-quote.c (check): Update for new API. Add test for
24594         anchored results.
24595         * NEWS: Mention the API change.
24596         Reported by Reuben Thomas and Eric Blake.
24597
24598 2011-03-06  Bruno Haible  <bruno@clisp.org>
24599
24600         regex-quote: Fix creation of POSIX extended regular expressions.
24601         * lib/regex-quote.c (ere_special): Add grouping and alternation
24602         operators.
24603
24604 2011-03-05  Bruno Haible  <bruno@clisp.org>
24605
24606         doc: Improve doc regarding autopoint vs. gnulib.
24607         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24608         disable autopoint while running autoreconf.
24609         Suggested by Ralf Wildenhues.
24610
24611 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24612
24613         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24614         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24615
24616 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24617
24618         parse-duration: remove xalloc.h dependency
24619         * lib/parse-duration.c (parse_period): handle NULL return from
24620         strdup instead of calling xstrdup().
24621         * modules/parse-duration: remove "xalloc" dependency
24622
24623 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24624
24625         bootstrap: honor m4_base when running aclocal
24626         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24627
24628 2011-03-02  Jim Meyering  <meyering@redhat.com>
24629
24630         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24631         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24632         on request from Matt Booth.
24633
24634 2011-03-01  Eric Blake  <eblake@redhat.com>
24635
24636         test-link: work on Hurd
24637         * tests/test-link.h (test_link): Hurd rejects linking directories
24638         with EISDIR instead of the POSIX-mandated EPERM.
24639
24640 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24641
24642         stdio: simplify by moving files to printf-posix, sigpipe
24643         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24644         since this symbol is needed only if printf is replaced.
24645         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24646         Require gl_ASM_SYMBOL_PREFIX.
24647         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24648         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24649         (Depends-on): Add 'raise'.
24650         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24651         * modules/stdio (Files): Remove lib/stdio-write.c,
24652         m4/asm-underscore.m4.
24653         (Depends-on): Remove 'raise'.
24654
24655         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24656         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24657         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24658         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24659
24660 2011-02-28  Bruno Haible  <bruno@clisp.org>
24661
24662         localcharset: Assume ANSI C behaviour of free().
24663         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24664         calling free().
24665         Suggested by Simon Josefsson <simon@josefsson.org>.
24666
24667 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24668             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24669             Bruno Haible  <bruno@clisp.org>  (tiny change)
24670
24671         On Cygwin, use /proc file system instead of win32 API.
24672         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24673         Win32 file names.
24674         (DllMain): Simplify by removing Cygwin specific code.
24675         (find_shared_library_fullname): Use Linux specific implementation also
24676         for Cygwin.
24677         (get_shared_library_fullname): Update accordingly.
24678         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24679         Win32 file names.
24680         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24681         Cygwin specific code.
24682
24683 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24684             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24685
24686         Fix OpenMP flag detection for various Fortran compilers.
24687         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24688         OpenMP-conditional compilation construct, to force compile
24689         failure with missing OpenMP flag.
24690         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24691
24692 2011-02-25  Eric Blake  <eblake@redhat.com>
24693
24694         strstr: expand test coverage
24695         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24696         compilation.
24697         * tests/test-memmem.c (main): Duplicate tests.
24698         * tests/test-strcasestr.c (main): Likewise.
24699         * tests/test-c-strcasestr.c (main): Likewise.
24700
24701 2011-02-25  Jim Meyering  <meyering@redhat.com>
24702
24703         maint.mk: detect missing-NL-at-EOF, too
24704         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24705         it also detects when a file lacks a newline at EOF.
24706         (require_exactly_one_NL_at_EOF_): Renamed from
24707         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24708         since people may well have .x-sc_... file names tied to the
24709         existing name.  Suggested by Eric Blake.
24710
24711 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24712
24713         dirname: move m4/dos.m4 functionality into lib/dosname.h
24714
24715         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24716         extracts symbols from it, puts them into config.h; but it's much
24717         easier to use the symbols directly.  filename.h already does this,
24718         but it disagrees with dos.m4 in some respects.  This patch
24719         introduces a different include file dosname.h that packages up
24720         dos.m4, and then later we can work on merging filename.h and
24721         dosname.h.  Applications that need only the easy-to-configure
24722         symbols should consider including dosname.h rather than dirname.h.
24723         * NEWS: Mention incompatible changes.
24724         * m4/dos.m4: Remove.
24725         * lib/dosname.h, modules/dosname: New files.
24726         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24727         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24728         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24729         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24730         Include dosname.h, not dirname.h.
24731         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24732         Include dosname.h, for definitions of symbols like ISSLASH
24733         that used to be in config.h.
24734         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24735         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24736         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24737         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24738         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24739         * modules/rmdir (Files): Likewise.
24740         * modules/stat (Files): Likewise.
24741         * modules/unlink (Files): Likewise.
24742         * modules/dirname-lgpl (Depends-on): Add dosname.
24743         * modules/lstat (Depends-on): Likewise.
24744         * modules/openat (Depends-on): Likewise.
24745         * modules/rmdir (Depends-on): Likewise.
24746         * modules/savewd (Depends-on): Likewise.
24747         * modules/stat (Depends-on): Likewise.
24748         * modules/unlink (Depends-on): Likewise.
24749         * modules/openat (Depends-on): Remove dirname-lgpl.
24750         * modules/savewd (Depends-on): Likewise.
24751         * tests/test-dirname.c: Do not use removed symbols like
24752         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24753         the remaining symbols, e.g., ISSLASH ('\\').
24754
24755 2011-02-25  Eric Blake  <eblake@redhat.com>
24756
24757         strstr: revert patches that introduced bug and pessimization
24758         * lib/str-two-way.h: Add another reference.
24759         (two_way_short_needle, two_way_long_needle): Revert changes from
24760         2011-02-24; they pessimize search speed.
24761         (critical_factorization): Partially revert changes from
24762         2010-06-22; they violate the requirement that the left half of the
24763         needle be smaller than the period of the needle.
24764
24765 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24766
24767         filenamecat: remove unnecessary dependency on dirname-lgpl
24768         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24769         is no direct dependency, just an indirect one via filenamecat-lgpl.
24770
24771         remove: remove unnecessary use of m4/dos.m4
24772         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24773         * modules/remove (FILES): Remove m4/dos.m4.
24774
24775         * lib/openat-proc.c: Don't include dirname.h; not needed.
24776
24777         backupfile: remove unnecessary use of m4/dos.m4
24778         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24779         of its symbols are used by the backupfile code.  backupfile.c does
24780         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24781         for the rare case of programs that want all their backup file
24782         names to live within 8+3 limits, and dos.m4 doesn't address that.
24783         * modules/backupfile (Files): Remove m4/dos.m4.
24784
24785 2011-02-24  Jim Meyering  <meyering@redhat.com>
24786
24787         strstr: fix a bug whereby strstr would mistakenly return NULL
24788         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24789         in period calculation.
24790         (two_way_long_needle): Likewise.
24791         The original problem was reported by Mike Stump in
24792         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24793         Ralf Wildenhues provided the short needle and haystack.
24794         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24795         Add a more involved test to trigger the bug in two_way_long_needle.
24796
24797 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24798
24799         gnulib-tool: remove use of bold display in help screen
24800         * gnulib-tool (func_usage): Do not use bold display anymore in the
24801         help screen.  That was just meant to be a temporary emphasis for a
24802         backward-incompatible change.
24803
24804 2011-02-23  Bruno Haible  <bruno@clisp.org>
24805
24806         Fix misindentation of preprocessor directives.
24807         * lib/argp-namefrob.h: Reindent preprocessor directives.
24808         * lib/getopt_int.h (struct _getopt_data): Likewise.
24809         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24810         * lib/vasnprintf.c (decode_long_double): Likewise.
24811         * tests/test-argmatch.c: Insert blank lines, for clarity.
24812         * tests/test-exclude.c: Likewise.
24813
24814 2011-02-22  Bruno Haible  <bruno@clisp.org>
24815
24816         ioctl: Fix for MacOS X in 64-bit mode.
24817         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24818         value.
24819         Suggested by Eric Blake.
24820         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24821
24822 2011-02-22  Jim Meyering  <meyering@redhat.com>
24823
24824         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24825         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24826         in lib/.
24827
24828 2011-02-22  Eric Blake  <eblake@redhat.com>
24829
24830         maint: avoid any CDPATH issue
24831         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24832
24833         maint: adjust cpp indentation for my modules, as well
24834         * Makefile (sc_cpp_indent_check): Add my name.
24835         * lib/fbufmode.c: Filter through cppi.
24836         * lib/fpurge.c: Likewise.
24837         * lib/freadable.c: Likewise.
24838         * lib/freading.c: Likewise.
24839         * lib/fwritable.c: Likewise.
24840         * lib/fwriting.c: Likewise.
24841         * lib/sigaction.c: Likewise.
24842
24843 2011-02-22  Jim Meyering  <meyering@redhat.com>
24844
24845         maint: adjust cpp indentation to reflect nesting depth
24846         I.e., in a block of code that begins with an unnested "#if",
24847         put one space between the "#" in column 1 and following token.
24848         For example,
24849         -#include <sys/vfs.h>
24850         +# include <sys/vfs.h>
24851         Do this only in .c files that are part of a module I maintain.
24852         * lib/linkat.c: Filter through cppi.
24853         * lib/nanosleep.c: Likewise.
24854         * lib/openat.c: Likewise.
24855         * lib/openat-die.c: Likewise.
24856         * lib/dup3.c: Likewise.
24857         * lib/fchownat.c: Likewise.
24858         * lib/flock.c: Likewise.
24859         * lib/fsync.c: Likewise.
24860         * lib/fts.c: Likewise.
24861         * lib/getpass.c: Likewise.
24862         * lib/gettimeofday.c: Likewise.
24863         * lib/userspec.c: Likewise.
24864         * Makefile (sc_cpp_indent_check): New rule, to check this.
24865
24866 2011-02-22  Bruno Haible  <bruno@clisp.org>
24867
24868         New module 'wctomb'.
24869         * lib/stdlib.in.h (wctomb): New declaration.
24870         * lib/wctomb.c: New file.
24871         * lib/wctomb-impl.h: New file.
24872         * m4/wctomb.m4: New file.
24873         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24874         REPLACE_WCTOMB.
24875         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24876         REPLACE_WCTOMB.
24877         * modules/wctomb: New file.
24878         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24879         * doc/posix-functions/wctomb.texi: Mention the new module.
24880         * modules/wctob (Depends-on): Add wctomb.
24881
24882 2011-02-22  Bruno Haible  <bruno@clisp.org>
24883
24884         New module 'mbtowc'.
24885         * lib/stdlib.in.h (mbtowc): New declaration.
24886         * lib/mbtowc.c: New file.
24887         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24888         * m4/mbtowc.m4: New file.
24889         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24890         REPLACE_MBTOWC.
24891         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24892         REPLACE_MBTOWC.
24893         * modules/mbtowc: New file.
24894         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24895         * doc/posix-functions/mbtowc.texi: Mention the new module.
24896         * modules/btowc (Depends-on): Add mbtowc.
24897
24898 2011-02-22  Bruno Haible  <bruno@clisp.org>
24899
24900         wcrtomb: Add more tests for native Windows platforms.
24901         * tests/test-wcrtomb-w32-1.sh: New file.
24902         * tests/test-wcrtomb-w32-2.sh: New file.
24903         * tests/test-wcrtomb-w32-3.sh: New file.
24904         * tests/test-wcrtomb-w32-4.sh: New file.
24905         * tests/test-wcrtomb-w32-5.sh: New file.
24906         * tests/test-wcrtomb-w32.c: New file.
24907         * modules/wcrtomb-tests (Files): Add them.
24908         (Makefile.am): Arrange to run these tests.
24909         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24910         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24911
24912 2011-02-20  Bruno Haible  <bruno@clisp.org>
24913
24914         wcrtomb: Enhance test.
24915         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24916
24917 2011-02-20  Bruno Haible  <bruno@clisp.org>
24918
24919         mbrtowc: Tiny optimization.
24920         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24921
24922 2011-02-20  Jim Meyering  <meyering@redhat.com>
24923
24924         test-exclude.c: remove unmatched #endif
24925         * tests/test-exclude.c: Remove stray #endif, left over from
24926         the change of a week ago.
24927
24928 2011-02-19  Jim Meyering  <meyering@redhat.com>
24929
24930         git-version-gen: skip "-dirty" check when appropriate
24931         * build-aux/git-version-gen: Don't run any git commands when the
24932         version string comes from .tarball-version.  Prior to this, we
24933         would run git update-index --refresh even from a just-unpacked
24934         tarball directory, and that could affect a .git/ directory in a
24935         parent of the build directory.  Reported by Mike Frysinger.
24936
24937 2011-02-19  Bruno Haible  <bruno@clisp.org>
24938
24939         unictype/property-byname: Reduce the size of the 'data' segment.
24940         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24941
24942 2011-02-19  Bruno Haible  <bruno@clisp.org>
24943
24944         unictype/scripts: Reduce the size of the 'data' segment.
24945         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24946         '%pic'.
24947         * lib/unictype/scripts_byname.gperf: Regenerated.
24948
24949 2011-02-19  Bruno Haible  <bruno@clisp.org>
24950
24951         stdint: Update documentation.
24952         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24953
24954 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24955
24956         stdint: omit redundant check for wchar.h
24957         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24958         always tests whether wchar.h exists, so remove the now-redundant test.
24959
24960 2011-02-18  Bruno Haible  <bruno@clisp.org>
24961
24962         stdint: Cut dependency to module 'wchar'.
24963         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24964         include the necessary prerequisites.
24965         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24966         * modules/stdint (Depends-on): Remove wchar.
24967         (Makefile.am): Substitute HAVE_WCHAR_H.
24968         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24969
24970 2011-02-18  Eric Blake  <eblake@redhat.com>
24971
24972         longlong: skip, rather than fail, on cross-compilation
24973         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24974         when cross-compiling; regression from 2011-02-16.
24975
24976 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24977
24978         * NEWS: Mention 2011-02-08 change to stdlib.
24979
24980 2011-02-17  Bruno Haible  <bruno@clisp.org>
24981
24982         getloadavg: Add comments about platforms.
24983         * m4/getloadavg.m4: Add comment.
24984         * lib/getloadavg.c: Likewise.
24985
24986 2011-02-17  Bruno Haible  <bruno@clisp.org>
24987
24988         getloadavg: Fix link error on Solaris 2.6.
24989         * modules/getloadavg (Link): New section.
24990         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24991         linking test-getloadavg.
24992         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24993         getloadavg.
24994
24995 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24996
24997         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24998         It was 'int', but this doesn't match the IRIX 6.5 manual.
24999         Suggested by Bruno Haible in
25000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
25001
25002 2011-02-17  Bruno Haible  <bruno@clisp.org>
25003
25004         havelib: Fix comments.
25005         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
25006         change.
25007
25008 2011-02-17  Bruno Haible  <bruno@clisp.org>
25009
25010         havelib: Update config.rpath.
25011         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
25012
25013 2011-02-17  Bruno Haible  <bruno@clisp.org>
25014
25015         getloadavg test: Add some plausibility checks.
25016         * tests/test-getloadavg.c (check_avg): Print a warning when the value
25017         is improbable.
25018
25019 2011-02-16  Eric Blake  <eblake@redhat.com>
25020
25021         maintainer-makefile: make syntax-check a no-op from tarballs
25022         * top/maint.mk (no-vc-detected): New rule.
25023         (local-checks-available): Use it to avoid hanging if someone tries
25024         'make syntax-check' from a tarball.  Also append to any non-syntax
25025         checks already defined in cfg.mk.
25026
25027 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
25028
25029         longlong: tune, particularly for common case of c99
25030
25031         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
25032         or running anything if c99, or if unsigned long long int does not
25033         work.  In either case, we know the answer without further tests.
25034         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
25035         it at most once, and use its results for both long long int and
25036         unsigned long long int.  This is more likely to be efficient in
25037         the common case where the program wants to check for both long
25038         long int and unsigned long long int.
25039         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
25040         since the answer is already known.
25041
25042 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
25043
25044         getloadavg: set errno
25045         * lib/getloadavg.c: Set errno when returning -1.  If no other
25046         error number looks appropriate, set it to ENOSYS if the getloadavg
25047         looks like it can't possibly ever work, ENOTSUP otherwise.
25048         Suggested by Bruno Haible in
25049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
25050
25051         getloadavg: trim unused parts and speed up 'configure'
25052         * NEWS: Document this.
25053         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
25054         always compiled if getloadavg is absent.
25055         Move test code to ...
25056         * tests/test-getloadavg.c: New file, containing previous
25057         contents of test from lib/getloadavg.c.  It also contains
25058         suggestions by Bruno Haible in
25059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
25060         * modules/getloadavg-tests: New file.
25061         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
25062         Do tests in the same order as they're needed for getloadavg.c.
25063         Omit setgid-related tests that generate symbols KMEM_GROUP,
25064         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
25065         Do only the tests that are needed to see whether the system has
25066         getloadavg, moving the other tests into ...
25067         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
25068         NLIST_NAME_UNION; nobody should be using it.  Do not define
25069         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
25070         relevant, as the user of this module shouldn't care how getloadavg
25071         is implemented.
25072
25073         getloadavg: omit unused var
25074         * lib/getloadavg.c (getloadavg): Omit unused local variable.
25075
25076 2011-02-15  Jim Meyering  <meyering@redhat.com>
25077
25078         doc: update users.txt
25079         * users.txt: Update iwhd's URL.
25080
25081 2011-02-13  Bruno Haible  <bruno@clisp.org>
25082
25083         Consistent macro naming for macros that use GCC __attribute__.
25084         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
25085         _ATTRIBUTE_NONNULL_.
25086         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
25087         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
25088         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
25089         ATTRIBUTE_DEPRECATED.
25090         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
25091         ATTRIBUTE_NORETURN.
25092         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25093         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25094         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25095         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25096         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
25097         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
25098         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
25099         ATTRIBUTE_SENTINEL.
25100         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
25101         ATTRIBUTE_RETURN_CHECK.
25102         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
25103         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
25104         ATTRIBUTE_NORETURN.
25105         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
25106         Reported by Paul Eggert.
25107
25108 2011-02-13  Bruno Haible  <bruno@clisp.org>
25109
25110         Don't interfere with a program's definition of __attribute__.
25111         * lib/argp.h (__attribute__): Remove definition.
25112         (_GL_ATTRIBUTE_FORMAT): New macro.
25113         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
25114         * lib/argp-fmtstream.h (__attribute__): Remove definition.
25115         (_GL_ATTRIBUTE_FORMAT): New macro.
25116         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
25117         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
25118         GCC 3 or newer.
25119         * lib/error.h (__attribute__): Remove definition.
25120         (_GL_ATTRIBUTE_FORMAT): New macro.
25121         (error, error_at_line): Use it.
25122         * lib/hash.h (__attribute__): Remove definition.
25123         (ATTRIBUTE_WUR): Update definition. Define always.
25124         * lib/openat.h (__attribute__): Remove definition.
25125         (ATTRIBUTE_NORETURN): Update definition. Define always.
25126         * lib/sigpipe-die.h (__attribute__): Remove definition.
25127         (ATTRIBUTE_NORETURN): Update definition. Define always.
25128         * lib/vasnprintf.h (__attribute__): Remove definition.
25129         (_GL_ATTRIBUTE_FORMAT): New macro.
25130         (asnprintf, vasnprintf): Use it.
25131         * lib/xalloc.h (__attribute__): Remove definition.
25132         (ATTRIBUTE_NORETURN): Update definition. Define always.
25133         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
25134         * lib/xmemdup0.h (__attribute__): Remove definition.
25135         (ATTRIBUTE_NORETURN): Update definition. Define always.
25136         * lib/xprintf.h (__attribute__): Remove definition.
25137         (_GL_ATTRIBUTE_FORMAT): New macro.
25138         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
25139         * lib/xstrtol.h (__attribute__): Remove definition.
25140         (ATTRIBUTE_NORETURN): Update definition. Define always.
25141         * lib/xvasprintf.h (__attribute__): Remove definition.
25142         (_GL_ATTRIBUTE_FORMAT): New macro.
25143         (xasprintf, xvasprintf): Use it.
25144         * tests/test-argmatch.c (__attribute__): Remove definition.
25145         (ATTRIBUTE_NORETURN): Update definition. Define always.
25146         * tests/test-exclude.c (__attribute__): Remove definition.
25147         (ATTRIBUTE_NORETURN): Update definition. Define always.
25148         Reported by Paul Eggert.
25149
25150 2011-02-13  Bruno Haible  <bruno@clisp.org>
25151
25152         mbrtowc: Add more tests for native Windows platforms.
25153         * tests/test-mbrtowc-w32-1.sh: New file.
25154         * tests/test-mbrtowc-w32-2.sh: New file.
25155         * tests/test-mbrtowc-w32-3.sh: New file.
25156         * tests/test-mbrtowc-w32-4.sh: New file.
25157         * tests/test-mbrtowc-w32-5.sh: New file.
25158         * tests/test-mbrtowc-w32.c: New file.
25159         * modules/mbrtowc-tests (Files): Add them.
25160         (Makefile.am): Arrange to run these tests.
25161         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
25162         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
25163
25164 2011-02-13  Bruno Haible  <bruno@clisp.org>
25165
25166         mbrtowc: Work around native Windows bug.
25167         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
25168         guess when no suitable locale for testing was found.
25169         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
25170
25171 2011-02-13  Bruno Haible  <bruno@clisp.org>
25172
25173         mbsinit: Work around mingw bug.
25174         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
25175         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
25176         Windows.
25177         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
25178
25179 2011-02-13  Bruno Haible  <bruno@clisp.org>
25180
25181         mbsinit: Don't crash for a NULL argument.
25182         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
25183         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
25184
25185 2011-02-13  Bruno Haible  <bruno@clisp.org>
25186
25187         Don't interfere with a program's definition of __attribute__.
25188         * lib/stdio.in.h (__attribute__): Remove definition.
25189         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
25190         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
25191         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
25192         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
25193         * lib/string.in.h (__attribute__): Remove definition.
25194         Reported by Paul Eggert.
25195
25196 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25197
25198         stdlib: don't get in the way of non-GCC __attribute__
25199         See thread starting at
25200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
25201         Revert previous stdlib change, installing the following instead:
25202         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
25203         to get in the way of a non-GCC compiler that supports __attribute__.
25204         (_GL_ATTRIBUTE_RETURN): New macro.
25205         (_Exit): Use it instead of __attribute__.
25206
25207 2011-02-12  Bruno Haible  <bruno@clisp.org>
25208
25209         quotearg test: Avoid test failure on mingw.
25210         * tests/test-quotearg.sh: Convert the locale identifier from native
25211         Windows syntax to Unix syntax.
25212
25213 2011-02-12  Bruno Haible  <bruno@clisp.org>
25214
25215         setlocale: Prefer gnulib's override over libintl's override.
25216         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
25217         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
25218         GNULIB_defined_setlocale is set.
25219
25220 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25221
25222         stdlib: support non-GCC __attribute__
25223
25224         Fix a serious and tricky problem encountered when attempting to
25225         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
25226         5.5, but it crashed due to memory corruption on Solaris 10 with
25227         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
25228         bits that are otherwise zero.  This tagging is optional inside
25229         Emacs but is preferred and is used when __attribute__ ((__aligned
25230         (8))) works, as it does with both recent-enough GCC and with Sun C
25231         5.11.  However, Sun C 5.11 is not GCC and does not #define
25232         __GNUC__ and __GNUC_MINOR__.
25233
25234         When I added the getloadavg module to Emacs, it brought in
25235         stdlib.in.h, which contained this fragment:
25236
25237            #ifndef __attribute__
25238            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
25239            #  define __attribute__(Spec)   /* empty */
25240            # endif
25241            #endif
25242
25243         When files that include <stdlib.h> were compiled with Sun C 5.11,
25244         the above code disabled __attribute__ ((__aligned (8))), which
25245         caused variables to not be properly aligned, which eventually led
25246         to the pointer corruption mentioned above.  (This was a bit hard
25247         to diagnose, unfortunately.)
25248
25249         Several "#define __attribute__(X) /* empty */" code snippets need
25250         to be eradicated from Gnulib to work with non-GCC compilers that
25251         support __attribute__.  The Autoconf way to do this is to test for
25252         each kind of attribute that we want support for, and selectively
25253         enable that in source code.
25254
25255         Fix this problem just for stdlib.h, by adding a test for the
25256         __noreturn__ attribute, and change stdlib.in.h to use that test
25257         when needed.  This technique can be easily generalized to the
25258         other *.in.h files and attributes, and a similar technique can be
25259         used for *.h and *.c files.  This patch is enough to solve the
25260         problem for Emacs + getloadavg, and I thought I'd publish it for
25261         feedback before undertaking further, similar fixes in other
25262         modules.
25263
25264         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
25265         because it's not needed for stdlib.h.  It merely substitutes the
25266         value directly into stdlib.h.  We may well need to #define it, or
25267         similar symbols, for other modules, but it's nice to also have an
25268         option to not #define it for applications like Emacs that do not
25269         need it.
25270
25271         * lib/stdlib.in.h (__attribute__): Do not #define.
25272         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
25273         be defined only if the _Exit module is also used.
25274         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
25275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
25276         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
25277         platforms.
25278         * modules/_Exit (Files): Add m4/attribute.m4.
25279         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
25280         * m4/attribute.m4: New file.
25281
25282 2011-02-12  Bruno Haible  <bruno@clisp.org>
25283
25284         wcsrtombs: Work around bug on native Windows.
25285         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
25286         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
25287         instead of len.
25288         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
25289
25290 2011-02-12  Bruno Haible  <bruno@clisp.org>
25291
25292         mbsrtowcs: Work around bug on native Windows.
25293         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
25294         against mingw bug.
25295         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
25296
25297 2011-02-12  Bruno Haible  <bruno@clisp.org>
25298
25299         Avoid setlocale bugs in tests.
25300         * modules/btowc (Dependencies): Add setlocale.
25301         * modules/c-strcase (Dependencies): Likewise.
25302         * modules/mbmemcasecmp (Dependencies): Likewise.
25303         * modules/mbmemcasecoll (Dependencies): Likewise.
25304         * modules/mbrtowc (Dependencies): Likewise.
25305         * modules/mbscasecmp (Dependencies): Likewise.
25306         * modules/mbscasestr (Dependencies): Likewise.
25307         * modules/mbschr (Dependencies): Likewise.
25308         * modules/mbscspn (Dependencies): Likewise.
25309         * modules/mbsinit (Dependencies): Likewise.
25310         * modules/mbsncasecmp (Dependencies): Likewise.
25311         * modules/mbsnrtowcs (Dependencies): Likewise.
25312         * modules/mbspbrk (Dependencies): Likewise.
25313         * modules/mbspcasecmp (Dependencies): Likewise.
25314         * modules/mbsrchr (Dependencies): Likewise.
25315         * modules/mbsrtowcs (Dependencies): Likewise.
25316         * modules/mbsspn (Dependencies): Likewise.
25317         * modules/mbsstr (Dependencies): Likewise.
25318         * modules/nl_langinfo (Dependencies): Likewise.
25319         * modules/quotearg (Dependencies): Likewise.
25320         * modules/unicase/locale-language (Dependencies): Likewise.
25321         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
25322         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
25323         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
25324         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
25325         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
25326         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
25327         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
25328         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
25329         * modules/vasnprintf-posix (Dependencies): Likewise.
25330         * modules/wcrtomb (Dependencies): Likewise.
25331         * modules/wcsnrtombs (Dependencies): Likewise.
25332         * modules/wcsrtombs (Dependencies): Likewise.
25333
25334 2011-02-12  Bruno Haible  <bruno@clisp.org>
25335
25336         setlocale: Workaround native Windows bug.
25337         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
25338         succeeds but sets LC_CTYPE to "C", report a failure.
25339         * tests/test-setlocale2.sh: New file.
25340         * tests/test-setlocale2.c: New file.
25341         * modules/setlocale-tests (Files): Add the new files.
25342         (Makefile.am): Enable test-setlocale2.sh test.
25343         * doc/posix-functions/setlocale.texi: Mention workaround.
25344
25345 2011-02-11  Bruno Haible  <bruno@clisp.org>
25346
25347         Tests for module 'setlocale'.
25348         * modules/setlocale-tests: New file.
25349         * tests/test-setlocale1.sh: New file.
25350         * tests/test-setlocale1.c: New file.
25351
25352         New module 'setlocale'.
25353         * lib/locale.in.h (setlocale): New declaration.
25354         * lib/setlocale.c: New file, based on
25355         gettext/gettext-runtime/intl/setlocale.c.
25356         * m4/setlocale.m4: New file.
25357         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
25358         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
25359         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
25360         REPLACE_SETLOCALE.
25361         * modules/setlocale: New file.
25362         * tests/test-locale-c++.cc: Test the declaration of setlocale.
25363         * doc/posix-functions/setlocale.texi: Mention the new module.
25364
25365 2011-02-11  Bruno Haible  <bruno@clisp.org>
25366
25367         Prepare for locale dependent tests on mingw.
25368         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
25369         because it has the wrong locale encoding.
25370         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
25371         French_France.1252 instead of "fr".
25372         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
25373         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
25374         because it has the wrong locale encoding.
25375         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
25376         native Windows, try Turkish_Turkey.65001.
25377         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
25378         Chinese_China.54936.
25379
25380         Prepare for locale dependent tests on mingw.
25381         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
25382         differently.
25383         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
25384         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
25385         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25386         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25387
25388 2011-02-11  Eric Blake  <eblake@redhat.com>
25389
25390         strptime: avoid compiler warnings
25391         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
25392         compiler warnings about dead code.
25393         Reported by Daniel P. Berrange.
25394
25395 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
25396
25397         doc: update users.txt
25398         * users.txt: Add rcs.
25399
25400 2011-02-10  John W. Eaton  <jwe@gnu.org>
25401
25402         doc: update users.txt
25403         * users.txt: Add octave.
25404
25405 2011-02-10  Jim Meyering  <meyering@redhat.com>
25406
25407         doc: update users.txt
25408         * users.txt: Add iwhd.
25409
25410 2011-02-09  Bruno Haible  <bruno@clisp.org>
25411
25412         gnulib-tool: Make copyright notice adjustment more robust.
25413         * gnulib-tool (func_import): In sed_transform_main_lib_file,
25414         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
25415         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
25416         License".
25417         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
25418
25419 2011-02-06  Bruno Haible  <bruno@clisp.org>
25420
25421         New module 'towctrans'.
25422         * modules/towctrans: New file.
25423         * lib/wctype.in.h (towctrans): New declaration.
25424         * lib/towctrans.c: New file.
25425         * lib/towctrans-impl.h: New file.
25426         * m4/towctrans.m4: New file.
25427         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
25428         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
25429         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
25430         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
25431         * doc/posix-functions/towctrans.texi: Mention the new module.
25432
25433 2011-02-06  Bruno Haible  <bruno@clisp.org>
25434
25435         New module 'wctrans'.
25436         * modules/wctrans: New file.
25437         * lib/wctype.in.h (wctrans): New declaration.
25438         * lib/wctrans.c: New file.
25439         * lib/wctrans-impl.h: New file.
25440         * m4/wctrans.m4: New file.
25441         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
25442         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
25443         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
25444         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
25445         * doc/posix-functions/wctrans.texi: Mention the new module.
25446
25447 2011-02-06  Bruno Haible  <bruno@clisp.org>
25448
25449         New module 'iswctype'.
25450         * modules/iswctype: New file.
25451         * lib/wctype.in.h (iswctype): New declaration.
25452         * lib/iswctype.c: New file.
25453         * lib/iswctype-impl.h: New file.
25454         * m4/iswctype.m4: New file.
25455         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
25456         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
25457         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
25458         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
25459         * doc/posix-functions/iswctype.texi: Mention the new module and the
25460         HP-UX 11.00 problem.
25461
25462 2011-02-06  Bruno Haible  <bruno@clisp.org>
25463
25464         New module 'wctype'.
25465         * modules/wctype: Change to represent the wctype() substitute.
25466         * lib/wctype.in.h (wctype): New declaration.
25467         * lib/wctype.c: New file.
25468         * lib/wctype-impl.h: New file.
25469         * m4/wctype.m4: New file.
25470         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
25471         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
25472         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
25473         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
25474         * doc/posix-functions/wctype.texi: Mention the new module and the
25475         HP-UX 11.00 problem.
25476
25477 2011-02-06  Bruno Haible  <bruno@clisp.org>
25478
25479         wctype-h: Ensure wctype_t and wctrans_t are defined.
25480         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
25481         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25482         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25483         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
25484         HAVE_WCTRANS_T.
25485         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
25486
25487 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25488
25489         flock: fix license typo
25490
25491         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
25492         omitted.
25493
25494 2011-02-08  Bruno Haible  <bruno@clisp.org>
25495
25496         Split large sed scripts, for HP-UX sed.
25497         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
25498         to avoid HP-UX limit of 99 commands, in the near future.
25499         * modules/stdlib (Makefile.am): Likewise.
25500         * modules/unistd (Makefile.am): Likewise.
25501         * modules/wchar (Makefile.am): Likewise.
25502         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25503         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
25504         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
25505
25506 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25507             Bruno Haible  <bruno@clisp.org>
25508
25509         stdlib: improve random_r modularization
25510         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25511         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25512         you also need the random_r module to get this material right.
25513         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25514         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25515         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25516
25517 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25518
25519         stdlib: don't depend on stdint
25520         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25521         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25522         be independent of whether stdint.h is needed.
25523         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25524         here, instead of ...
25525         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25526         struct random_data should be using the random_r module, not just
25527         the stdlib module (which wouldn't make sense: what package needs
25528         just struct random_data without also needing random_r?).
25529         * modules/stdlib (Depends-on): Remove stdint.
25530
25531         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25532         See the thread rooted at
25533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25534         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25535         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25536         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25537         __VMS)); previously it was always included (via fcntl--.h).
25538         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25539         hand; this is good enough for load averages.  Also, do not use
25540         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25541         flags directly if available and don't bother otherwise.  (Packages
25542         that need the extra reliability should use the modules that define
25543         these flags on older platforms that lack them.)
25544         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25545         fcntl-safer.
25546
25547 2011-02-08  Jim Meyering  <meyering@redhat.com>
25548
25549         di-set.h, ino-map.h: add multiple-inclusion guard
25550         Technically, the guard is required only for ino-map.h, due to its
25551         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25552         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25553         * lib/ino-map.h: Likewise.
25554
25555 2011-02-06  Bruno Haible  <bruno@clisp.org>
25556
25557         iswblank: Ensure declaration on glibc systems.
25558         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25559         * modules/iswblank (Dependencies): Add 'extensions'.
25560         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25561
25562 2011-02-06  Bruno Haible  <bruno@clisp.org>
25563
25564         New module 'iswblank'.
25565         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25566         * modules/iswblank: New file.
25567         * modules/wctype-h (Files): Remove lib/iswblank.c.
25568         (Makefile.am): Substitute GNULIB_ISWBLANK.
25569         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25570         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25571         (gl_WCTYPE_H_DEFAULTS): New macro.
25572         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25573         * modules/iswblank-tests: New file.
25574         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25575         * tests/test-wctype-h.c (main): Remove iswblank tests.
25576         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25577         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25578         of 'wctype-h'.
25579         * NEWS: Mention the change.
25580         * modules/mbchar (Depends-on): Add iswblank.
25581
25582 2011-02-08  Bruno Haible  <bruno@clisp.org>
25583
25584         di-set tests: Refactor.
25585         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25586         unnecessary includes.
25587         (ASSERT): Remove macro.
25588         (main): Make C90 compliant by avoiding variable declaration after
25589         statement.
25590         * modules/di-set-tests (Files): Add tests/macros.h.
25591
25592 2011-02-08  Bruno Haible  <bruno@clisp.org>
25593
25594         ino-map tests: Refactor.
25595         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25596         unnecessary includes.
25597         (ASSERT): Remove macro.
25598         (main): Make C90 compliant by avoiding variable declaration after
25599         statement.
25600         * modules/ino-map-tests (Files): Add tests/macros.h.
25601
25602 2011-02-08  Jim Meyering  <meyering@redhat.com>
25603
25604         di-set: add "const" to a cast
25605         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25606         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25607
25608 2011-02-06  Bruno Haible  <bruno@clisp.org>
25609
25610         Rename module 'wctype' to 'wctype-h'.
25611         * modules/wctype-h: Renamed from modules/wctype.
25612         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25613         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25614         (Files, Depends-on, Makefile.am): Update.
25615         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25616         (Files, Makefile.am): Update.
25617         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25618         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25619         * doc/posix-headers/wctype.texi: Update.
25620         * doc/posix-functions/iswalnum.texi: Update.
25621         * doc/posix-functions/iswalpha.texi: Update.
25622         * doc/posix-functions/iswblank.texi: Update.
25623         * doc/posix-functions/iswcntrl.texi: Update.
25624         * doc/posix-functions/iswdigit.texi: Update.
25625         * doc/posix-functions/iswgraph.texi: Update.
25626         * doc/posix-functions/iswlower.texi: Update.
25627         * doc/posix-functions/iswprint.texi: Update.
25628         * doc/posix-functions/iswpunct.texi: Update.
25629         * doc/posix-functions/iswspace.texi: Update.
25630         * doc/posix-functions/iswupper.texi: Update.
25631         * doc/posix-functions/iswxdigit.texi: Update.
25632         * doc/posix-functions/towlower.texi: Update.
25633         * doc/posix-functions/towupper.texi: Update.
25634         * NEWS: Mention the change.
25635         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25636         * modules/mbchar (Dependencies): Likewise.
25637         * modules/mbswidth (Dependencies): Likewise.
25638         * modules/quotearg (Dependencies): Likewise.
25639         * modules/regex (Dependencies): Likewise.
25640         * modules/wcscasecmp (Dependencies): Likewise.
25641         * modules/wcsncasecmp (Dependencies): Likewise.
25642         * modules/wcwidth (Dependencies): Likewise.
25643
25644 2011-02-06  Bruno Haible  <bruno@clisp.org>
25645
25646         New module 'wcswidth'.
25647         * modules/wcswidth: New file.
25648         * lib/wchar.in.h (wcswidth): New declaration.
25649         * lib/wcswidth.c: New file.
25650         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25651         * m4/wcswidth.m4: New file.
25652         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25653         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25654         REPLACE_WCSWIDTH.
25655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25656         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25657         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25658         * doc/posix-functions/wcswidth.texi: Mention the new module.
25659
25660 2011-02-06  Bruno Haible  <bruno@clisp.org>
25661
25662         New module 'wcstok'.
25663         * modules/wcstok: New file.
25664         * lib/wchar.in.h (wcstok): New declaration.
25665         * lib/wcstok.c: New file.
25666         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25667         * m4/wcstok.m4: New file.
25668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25670         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25671         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25672         * doc/posix-functions/wcstok.texi: Mention the new module.
25673
25674 2011-02-06  Bruno Haible  <bruno@clisp.org>
25675
25676         New module 'wcsstr'.
25677         * modules/wcsstr: New file.
25678         * lib/wchar.in.h (wcsstr): New declaration.
25679         * lib/wcsstr.c: New file.
25680         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25681         * m4/wcsstr.m4: New file.
25682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25684         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25685         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25686         * doc/posix-functions/wcsstr.texi: Mention the new module.
25687
25688 2011-02-06  Bruno Haible  <bruno@clisp.org>
25689
25690         New module 'wcspbrk'.
25691         * modules/wcspbrk: New file.
25692         * lib/wchar.in.h (wcspbrk): New declaration.
25693         * lib/wcspbrk.c: New file.
25694         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25695         * m4/wcspbrk.m4: New file.
25696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25698         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25699         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25700         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25701
25702 2011-02-06  Bruno Haible  <bruno@clisp.org>
25703
25704         New module 'wcsspn'.
25705         * modules/wcsspn: New file.
25706         * lib/wchar.in.h (wcsspn): New declaration.
25707         * lib/wcsspn.c: New file.
25708         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25709         * m4/wcsspn.m4: New file.
25710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25712         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25713         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25714         * doc/posix-functions/wcsspn.texi: Mention the new module.
25715
25716 2011-02-06  Bruno Haible  <bruno@clisp.org>
25717
25718         New module 'wcscspn'.
25719         * modules/wcscspn: New file.
25720         * lib/wchar.in.h (wcscspn): New declaration.
25721         * lib/wcscspn.c: New file.
25722         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25723         * m4/wcscspn.m4: New file.
25724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25726         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25727         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25728         * doc/posix-functions/wcscspn.texi: Mention the new module.
25729
25730 2011-02-06  Bruno Haible  <bruno@clisp.org>
25731
25732         New module 'wcsrchr'.
25733         * modules/wcsrchr: New file.
25734         * lib/wchar.in.h (wcsrchr): New declaration.
25735         * lib/wcsrchr.c: New file.
25736         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25737         * m4/wcsrchr.m4: New file.
25738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25740         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25741         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25742         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25743
25744 2011-02-06  Bruno Haible  <bruno@clisp.org>
25745
25746         New module 'wcschr'.
25747         * modules/wcschr: New file.
25748         * lib/wchar.in.h (wcschr): New declaration.
25749         * lib/wcschr.c: New file.
25750         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25751         * m4/wcschr.m4: New file.
25752         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25753         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25754         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25755         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25756         * doc/posix-functions/wcschr.texi: Mention the new module.
25757
25758 2011-02-06  Bruno Haible  <bruno@clisp.org>
25759
25760         New module 'wcsdup'.
25761         * modules/wcsdup: New file.
25762         * lib/wchar.in.h (wcsdup): New declaration.
25763         * lib/wcsdup.c: New file.
25764         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25765         * m4/wcsdup.m4: New file.
25766         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25767         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25768         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25769         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25770         * doc/posix-functions/wcsdup.texi: Mention the new module.
25771
25772 2011-02-06  Bruno Haible  <bruno@clisp.org>
25773
25774         New module 'wcsxfrm'.
25775         * modules/wcsxfrm: New file.
25776         * lib/wchar.in.h (wcsxfrm): New declaration.
25777         * lib/wcsxfrm.c: New file.
25778         * lib/wcsxfrm-impl.h: New file.
25779         * m4/wcsxfrm.m4: New file.
25780         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25781         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25782         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25783         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25784         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25785
25786 2011-02-06  Bruno Haible  <bruno@clisp.org>
25787
25788         New module 'wcscoll'.
25789         * modules/wcscoll: New file.
25790         * lib/wchar.in.h (wcscoll): New declaration.
25791         * lib/wcscoll.c: New file.
25792         * lib/wcscoll-impl.h: New file.
25793         * m4/wcscoll.m4: New file.
25794         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25795         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25797         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25798         * doc/posix-functions/wcscoll.texi: Mention the new module.
25799
25800 2011-02-06  Bruno Haible  <bruno@clisp.org>
25801
25802         New module 'wcsncasecmp'.
25803         * modules/wcsncasecmp: New file.
25804         * lib/wchar.in.h (wcsncasecmp): New declaration.
25805         * lib/wcsncasecmp.c: New file.
25806         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25807         * m4/wcsncasecmp.m4: New file.
25808         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25809         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25811         HAVE_WCSNCASECMP.
25812         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25813         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25814
25815 2011-02-06  Bruno Haible  <bruno@clisp.org>
25816
25817         New module 'wcscasecmp'.
25818         * modules/wcscasecmp: New file.
25819         * lib/wchar.in.h (wcscasecmp): New declaration.
25820         * lib/wcscasecmp.c: New file.
25821         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25822         * m4/wcscasecmp.m4: New file.
25823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25825         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25826         HAVE_WCSCASECMP.
25827         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25828         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25829
25830 2011-02-05  Bruno Haible  <bruno@clisp.org>
25831
25832         New module 'wcsncmp'.
25833         * modules/wcsncmp: New file.
25834         * lib/wchar.in.h (wcsncmp): New declaration.
25835         * lib/wcsncmp.c: New file.
25836         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25837         * m4/wcsncmp.m4: New file.
25838         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25839         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25840         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25841         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25842         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25843
25844 2011-02-05  Bruno Haible  <bruno@clisp.org>
25845
25846         New module 'wcscmp'.
25847         * modules/wcscmp: New file.
25848         * lib/wchar.in.h (wcscmp): New declaration.
25849         * lib/wcscmp.c: New file.
25850         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25851         * m4/wcscmp.m4: New file.
25852         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25853         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25854         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25855         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25856         * doc/posix-functions/wcscmp.texi: Mention the new module.
25857
25858 2011-02-05  Bruno Haible  <bruno@clisp.org>
25859
25860         New module 'wcsncat'.
25861         * modules/wcsncat: New file.
25862         * lib/wchar.in.h (wcsncat): New declaration.
25863         * lib/wcsncat.c: New file.
25864         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25865         * m4/wcsncat.m4: New file.
25866         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25867         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25868         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25869         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25870         * doc/posix-functions/wcsncat.texi: Mention the new module.
25871
25872 2011-02-05  Bruno Haible  <bruno@clisp.org>
25873
25874         New module 'wcscat'.
25875         * modules/wcscat: New file.
25876         * lib/wchar.in.h (wcscat): New declaration.
25877         * lib/wcscat.c: New file.
25878         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25879         * m4/wcscat.m4: New file.
25880         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25881         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25882         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25883         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25884         * doc/posix-functions/wcscat.texi: Mention the new module.
25885
25886 2011-02-05  Bruno Haible  <bruno@clisp.org>
25887
25888         New module 'wcpncpy'.
25889         * modules/wcpncpy: New file.
25890         * lib/wchar.in.h (wcpncpy): New declaration.
25891         * lib/wcpncpy.c: New file.
25892         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25893         * m4/wcpncpy.m4: New file.
25894         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25895         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25896         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25897         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25898         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25899
25900 2011-02-05  Bruno Haible  <bruno@clisp.org>
25901
25902         New module 'wcsncpy'.
25903         * modules/wcsncpy: New file.
25904         * lib/wchar.in.h (wcsncpy): New declaration.
25905         * lib/wcsncpy.c: New file.
25906         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25907         * m4/wcsncpy.m4: New file.
25908         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25909         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25910         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25911         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25912         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25913
25914 2011-02-05  Bruno Haible  <bruno@clisp.org>
25915
25916         New module 'wcpcpy'.
25917         * modules/wcpcpy: New file.
25918         * lib/wchar.in.h (wcpcpy): New declaration.
25919         * lib/wcpcpy.c: New file.
25920         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25921         * m4/wcpcpy.m4: New file.
25922         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25923         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25924         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25925         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25926         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25927
25928 2011-02-05  Bruno Haible  <bruno@clisp.org>
25929
25930         New module 'wcscpy'.
25931         * modules/wcscpy: New file.
25932         * lib/wchar.in.h (wcscpy): New declaration.
25933         * lib/wcscpy.c: New file.
25934         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25935         * m4/wcscpy.m4: New file.
25936         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25937         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25938         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25939         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25940         * doc/posix-functions/wcscpy.texi: Mention the new module.
25941
25942 2011-02-05  Bruno Haible  <bruno@clisp.org>
25943
25944         New module 'wcsnlen'.
25945         * modules/wcsnlen: New file.
25946         * lib/wchar.in.h (wcsnlen): New declaration.
25947         * lib/wcsnlen.c: New file.
25948         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25949         * m4/wcsnlen.m4: New file.
25950         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25951         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25952         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25953         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25954         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25955
25956 2011-02-05  Bruno Haible  <bruno@clisp.org>
25957
25958         New module 'wcslen'.
25959         * modules/wcslen: New file.
25960         * lib/wchar.in.h (wcslen): New declaration.
25961         * lib/wcslen.c: New file.
25962         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25963         * m4/wcslen.m4: New file.
25964         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25965         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25966         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25967         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25968         * doc/posix-functions/wcslen.texi: Mention the new module.
25969
25970 2011-02-05  Bruno Haible  <bruno@clisp.org>
25971
25972         New module 'wmemset'.
25973         * modules/wmemset: New file.
25974         * lib/wchar.in.h (wmemset): New declaration.
25975         * lib/wmemset.c: New file.
25976         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25977         * m4/wmemset.m4: New file.
25978         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25979         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25980         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25981         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25982         * doc/posix-functions/wmemset.texi: Mention the new module.
25983
25984 2011-02-05  Bruno Haible  <bruno@clisp.org>
25985
25986         New module 'wmemmove'.
25987         * modules/wmemmove: New file.
25988         * lib/wchar.in.h (wmemmove): New declaration.
25989         * lib/wmemmove.c: New file.
25990         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25991         * m4/wmemmove.m4: New file.
25992         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25993         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25994         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25995         HAVE_WMEMMOVE.
25996         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25997         * doc/posix-functions/wmemmove.texi: Mention the new module.
25998
25999 2011-02-05  Bruno Haible  <bruno@clisp.org>
26000
26001         New module 'wmemcpy'.
26002         * modules/wmemcpy: New file.
26003         * lib/wchar.in.h (wmemcpy): New declaration.
26004         * lib/wmemcpy.c: New file.
26005         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
26006         * m4/wmemcpy.m4: New file.
26007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
26008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
26009         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
26010         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
26011         * doc/posix-functions/wmemcpy.texi: Mention the new module.
26012
26013 2011-02-05  Bruno Haible  <bruno@clisp.org>
26014
26015         New module 'wmemcmp'.
26016         * modules/wmemcmp: New file.
26017         * lib/wchar.in.h (wmemcmp): New declaration.
26018         * lib/wmemcmp.c: New file.
26019         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
26020         * m4/wmemcmp.m4: New file.
26021         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
26022         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
26023         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
26024         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
26025         * doc/posix-functions/wmemcmp.texi: Mention the new module.
26026
26027 2011-02-07  Jim Meyering  <meyering@redhat.com>
26028
26029         di-set, ino-map: new modules, from coreutils
26030         * lib/di-set.c: New file.
26031         * lib/di-set.h: Likewise.
26032         * lib/ino-map.c: Likewise.
26033         * lib/ino-map.h: Likewise.
26034         * modules/di-set: Likewise.
26035         * modules/di-set-tests: Likewise.
26036         * modules/ino-map: Likewise.
26037         * modules/ino-map-tests: Likewise.
26038         * tests/test-di-set.c: Likewise.
26039         * tests/test-ino-map.c: Likewise.
26040
26041 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
26042
26043         getloadavg: merge minor changes from Emacs
26044
26045         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
26046         (getloadavg): Use memset, not bzero.
26047
26048         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
26049         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
26050         clash (bug#86).
26051
26052 2010-11-14  Bruno Haible  <bruno@clisp.org>
26053
26054         Allow multiple gnulib generated replacements to coexist.
26055         * lib/getopt.in.h (struct option): Avoid identical redefinition.
26056         * lib/inttypes.in.h (imaxdiv_t): Likewise.
26057         * lib/langinfo.in.h (nl_item): Likewise.
26058         * lib/math.in.h (_NaN, NAN): Likewise.
26059         * lib/netdb.in.h (struct addrinfo): Likewise.
26060         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
26061         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
26062         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
26063         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
26064         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
26065         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
26066         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
26067         pthread_mutexattr_init, pthread_mutexattr_settype,
26068         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
26069         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
26070         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
26071         pthread_spin_trylock, pthread_spin_unlock): Likewise.
26072         * lib/sched.in.h (struct sched_param): Likewise.
26073         * lib/se-selinux.in.h (security_class_t, security_context_t,
26074         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
26075         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
26076         lsetfilecon, fsetfilecon, security_check_context,
26077         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
26078         Likewise.
26079         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
26080         Likewise.
26081         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
26082         _gl_function_taking_int_returning_void_t, union sigval,
26083         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
26084         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
26085         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26086         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
26087         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
26088         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
26089         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
26090         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
26091         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
26092         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
26093         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
26094         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
26095         socklen_t, rpl_fd_isset): Likewise.
26096         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
26097         * lib/sys_time.in.h (struct timeval): Likewise.
26098         * lib/sys_times.in.h (struct tms): Likewise.
26099         * lib/sys_utsname.in.h (struct utsname):
26100         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
26101         * lib/unistd.in.h (getpagesize): Likewise.
26102         * lib/wchar.in.h (mbstate_t): Likewise.
26103         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
26104         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
26105         towlower, towupper): Likewise.
26106         Reported by Sam Steingold <sds@gnu.org>.
26107
26108 2011-02-05  Eric Blake  <eblake@redhat.com>
26109
26110         unsetenv: work around Haiku issues
26111         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
26112         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
26113
26114 2010-12-30  Bruce Korb  <bkorb@gnu.org>
26115
26116         libposix: avoid calling error() within libposix
26117         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
26118         is defined.
26119
26120 2011-02-05  Eric Blake  <eblake@redhat.com>
26121
26122         strerror_r-posix: port to cygwin
26123         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
26124         implementation.
26125         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
26126         * tests/test-strerror_r.c (main): Fix test.
26127         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
26128         issue.
26129
26130 2011-02-05  Bruno Haible  <bruno@clisp.org>
26131
26132         New module 'wmemchr'.
26133         * modules/wmemchr: New file.
26134         * lib/wchar.in.h (wmemchr): New declaration.
26135         * lib/wmemchr.c: New file.
26136         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
26137         * m4/wmemchr.m4: New file.
26138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
26139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
26140         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
26141         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
26142         * doc/posix-functions/wmemchr.texi: Mention the new module.
26143
26144 2011-02-04  Eric Blake  <eblake@redhat.com>
26145
26146         fdopendir: detect FreeBSD bug
26147         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
26148         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
26149
26150 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26151
26152         stdbool: do not define HAVE_STDBOOL_H
26153         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
26154         AC_HEADER_STDBOOL.  All uses changed.  Do not define
26155         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
26156         imported from the latest Autoconf git.  It was motivated by Emacs,
26157         which uses gnulib but does not need HAVE_STDBOOL_H.
26158
26159 2011-02-04  Bruno Haible  <bruno@clisp.org>
26160
26161         wcsnrtombs: Prepare for new module wwcsnrtombs.
26162         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
26163         * lib/wcsnrtombs.c: Include it.
26164         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
26165
26166         wcsrtombs: Prepare for new module wwcsrtombs.
26167         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
26168         * lib/wcsrtombs.c: Include it.
26169         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
26170
26171         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
26172         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
26173         * lib/mbsnrtowcs.c: Include it.
26174         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
26175
26176         mbsrtowcs: Prepare for new module mbsrtowwcs.
26177         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
26178         * lib/mbsrtowcs.c: Include it.
26179         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
26180
26181 2011-02-04  Bruno Haible  <bruno@clisp.org>
26182
26183         vasnprintf: Reduce use of malloc for small format strings.
26184         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
26185         (arguments): Add room for the first 7 arguments.
26186         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
26187         (char_directives, u8_directives, u16_directives, u32_directives): Add
26188         room for the first 7 directives.
26189         * lib/printf-parse.c: Include <string.h>.
26190         (PRINTF_PARSE): Change memory handling code so that it uses the first
26191         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
26192         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
26193         Reported by Pádraig Brady <P@draigbrady.com>.
26194
26195 2011-01-31  Eric Blake  <eblake@redhat.com>
26196
26197         dup2: work around Haiku bug
26198         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
26199         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
26200         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26201         * tests/test-dup2.c (main): Enhance test.
26202
26203 2011-01-31  Simon Josefsson  <simon@josefsson.org>
26204
26205         doc: off_t is not available in eglibc 2.11.2 stdio.h.
26206         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
26207         declared by eglibc 2.11.2.
26208         * lib/stdio.in.h: Likewise.
26209
26210 2011-01-31  Eric Blake  <eblake@redhat.com>
26211
26212         ignore-value: add missing test dependency
26213         * tests/test-ignore-value.c: Revert previous change; stdio.h
26214         provides off_t.
26215         * modules/ignore-value-tests (Depends-on): Add missing dependency.
26216
26217 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
26218
26219         mktime: clarify long_int width checking
26220         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
26221         the top level, to make it clearer that the assumption about
26222         long_int width is being checked.  See
26223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
26224
26225 2011-01-30  Simon Josefsson  <simon@josefsson.org>
26226
26227         ignore-value: Fix self-test.
26228         * tests/test-ignore-value.c: Include sys/types.h for off_t.
26229
26230 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
26231
26232         TYPE_MAXIMUM: avoid theoretically undefined behavior
26233         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
26234         negative number, which the C Standard says has undefined behavior.
26235         In practice this is not a problem, but might as well do it by the book.
26236         Reported by Rich Felker and Eric Blake; see
26237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
26238         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
26239         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26240         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26241         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
26242         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26243         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
26244
26245         mktime: #undef mktime before #defining it
26246         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
26247
26248         mktime: systematically normalize tm_isdst comparisons
26249         * lib/mktime.c (isdst_differ): New function.
26250         (__mktime_internal): Use it systematically for all isdst comparisons.
26251         This completes the fix for libc BZ #6723, and removes the need for
26252         normalizing tm_isdst.  See
26253         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
26254         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
26255
26256         mktime: fix some integer overflow issues and sidestep the rest
26257
26258         This was prompted by a bug report by Benjamin Lindner for MinGW
26259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
26260         His bug is due to signed integer overflow (0 - INT_MIN), and I
26261         I scanned through mktime.c looking for other integer overflow
26262         problems, fixing all the bugs I found.
26263
26264         Although the C Standard says the resulting code is still not safe
26265         in the presence of integer overflow, in practice it should be good
26266         enough for all real-world two's-complement implementations, except
26267         for debugging environments that deliberately trap on integer
26268         overflow (e.g., gcc -ftrapv).
26269
26270         * lib/mktime.c (WRAPV): New macro.
26271         (SHR): Also check that long_int and time_t shift right in the
26272         usual way, before using the fast-but-unportable method.
26273         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
26274         used.  The code already assumed two's complement, so there's
26275         no need to test for alternatives.  All uses removed.
26276         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
26277         the C standard.  Problem reported by Rich Felker in
26278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
26279         (twos_complement_arithmetic): Also check long_int and time_t.
26280         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
26281         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
26282         (__mktime_internal): Avoid integer overflow with unary subtraction
26283         in two instances where -1 - X is an adequate replacement for -X,
26284         since the calculations are approximate.
26285
26286 2011-01-29  Eric Blake  <eblake@redhat.com>
26287
26288         mktime: avoid infinite loop
26289         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
26290         type; behavior is still undefined but portable to all known targets.
26291         Reported by Rich Felker.
26292
26293 2011-01-29  Simon Josefsson  <simon@josefsson.org>
26294
26295         rename, unlink, same-inode: Relicense.
26296         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
26297         * modules/unlink (License): Likewise.
26298         * modules/same-inode (License): Likewise.
26299
26300 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26301
26302         mktime: avoid problems on NetBSD 5 / i386
26303         * lib/mktime.c (long_int): New type.  This works around a problem
26304         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
26305         but time_t is 64 bits, and where I expect the existing code is
26306         wrong in some cases.
26307         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
26308         (ydhms_diff): Bring back the compile-time check for wide-enough
26309         year and yday.
26310
26311         mktime: fix misspelling in comment
26312         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
26313         This merges all recent glibc changes of importance.
26314
26315 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26316
26317         move-if-change: cope with concurrent mv of identical file.
26318         * build-aux/move-if-change (CMPPROG): Accept environment
26319         variable as an override for `cmp'.
26320         (usage): Document CMPPROG.
26321         Adjust comparison to drop stdout.  Cope with failure of mv if
26322         the target file exists and is identical to the source, for
26323         parallel builds.
26324         Report from H.J. Lu against binutils in PR binutils/12283.
26325
26326 2011-01-28  Bruce Korb  <bkorb@gnu.org>
26327
26328         * users.txt: Mention sharutils.
26329
26330 2011-01-28  Simon Josefsson  <simon@josefsson.org>
26331
26332         * users.txt: Mention OATH Toolkit.
26333
26334 2011-01-27  Bruno Haible  <bruno@clisp.org>
26335
26336         Prepare for supporting FreeBSD 10.
26337         * build-aux/config.libpath: Remove handling of freebsd1*.
26338
26339 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
26340
26341         Prepare for supporting FreeBSD 10.
26342         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
26343         match FreeBSD 10.0.
26344
26345 2011-01-27  Bruno Haible  <bruno@clisp.org>
26346
26347         vma-iter, get-rusage-as: Add OpenBSD support.
26348         * modules/vma-iter (configure.ac): Test for mquery.
26349         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
26350         * lib/vma-iter.c: Include <sys/mman.h>.
26351         (vma_iterate): Add an implementation based on mquery().
26352         * lib/resource-ext.h (get_rusage_as): Update comments.
26353         * lib/get-rusage-as.c: Likewise.
26354         * lib/get-rusage-data.c: Likewise.
26355
26356 2011-01-26  Karl Berry  <karl@gnu.org>
26357
26358         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
26359         variables to make it easier to override the makeinfo program used.
26360
26361 2011-01-26  Eric Blake  <eblake@redhat.com>
26362
26363         fcntl: work around Haiku F_DUPFD bugs
26364         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
26365         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
26366         cloexec bit on duplication.
26367         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
26368
26369 2011-01-26  Bruno Haible  <bruno@clisp.org>
26370
26371         Enable memory leak tests on AIX.
26372         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
26373         * tests/test-fprintf-posix3.c (main): Likewise.
26374
26375 2011-01-26  Bruno Haible  <bruno@clisp.org>
26376
26377         Tests for module 'get-rusage-data'.
26378         * modules/get-rusage-data-tests: New file.
26379         * tests/test-get-rusage-data.c: New file.
26380
26381         New module 'get-rusage-data'.
26382         * lib/resource-ext.h (get_rusage_data): New declaration.
26383         * lib/get-rusage-data.c: New file.
26384         * modules/get-rusage-data: New file.
26385
26386 2011-01-25  Bruno Haible  <bruno@clisp.org>
26387
26388         get-rusage-as: Allow for easier testing.
26389         * lib/resource-ext.h (get_rusage_as): Add comment.
26390         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
26391         (main): New function for interactive testing.
26392
26393 2011-01-25  Bruno Haible  <bruno@clisp.org>
26394
26395         vma-iter: Treat Haiku like BeOS.
26396         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
26397         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
26398
26399 2011-01-25  Eric Blake  <eblake@redhat.com>
26400
26401         c-stack: fix regression on cygwin when libsigsegv is present
26402         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
26403
26404 2011-01-24  Bruno Haible  <bruno@clisp.org>
26405
26406         vma-iter: Avoid empty intervals.
26407         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
26408         on an empty interval.
26409
26410 2011-01-24  Jim Meyering  <meyering@redhat.com>
26411
26412         u64: remove unnecessary #include
26413         * lib/u64.h: Don't include <stddef.h>.  It was not used.
26414
26415 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26416
26417         Allow the user to avoid the HAVE_RAW_DECL_* macros.
26418         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
26419
26420 2011-01-23  Bruno Haible  <bruno@clisp.org>
26421
26422         New module 'vma-iter'.
26423         * lib/vma-iter.h: New file.
26424         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
26425         * modules/vma-iter: New file.
26426         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
26427         for get_rusage_as_via_iterator.
26428         (vma_iterate_callback): New function.
26429         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
26430         * modules/get-rusage-as (Depends-on): Add vma-iter.
26431
26432 2011-01-23  Bruno Haible  <bruno@clisp.org>
26433
26434         uninorm: Tweak includes.
26435         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
26436         Reported by Jim Meyering.
26437
26438 2011-01-23  Bruno Haible  <bruno@clisp.org>
26439
26440         get-rusage-as: Improve on NetBSD.
26441         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
26442         /proc, like on FreeBSD.
26443
26444 2011-01-23  Jim Meyering  <meyering@redhat.com>
26445
26446         xreadlink.h: remove unnecessary #include
26447         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
26448
26449         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
26450         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
26451
26452 2011-01-23  Bruno Haible  <bruno@clisp.org>
26453
26454         get-rusage-as: Fix bug.
26455         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
26456         original limit when aborting the first loop.
26457
26458 2011-01-23  Bruno Haible  <bruno@clisp.org>
26459
26460         wctype: Ensure valid C syntax.
26461         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
26462         unconditionally, instead of gl_NEXT_HEADERS conditionally.
26463
26464 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26465
26466         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
26467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
26468         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
26469         as they are needed only for configure's test case.
26470         This removes two unnecessary symbols from config.h.
26471
26472         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
26473         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
26474         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
26475         AC_CHECK_HEADERS_ONCE on a header that we also invoke
26476         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
26477         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
26478         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
26479         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26480         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26481         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26482         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26483         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26484         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26485         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26486         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26487         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26488         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26489         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26490
26491 2011-01-21  Eric Blake  <eblake@redhat.com>
26492
26493         maintainer-makefile: work with older git for submodule check
26494         * top/maint.mk (public-submodule-commit): Rewrite to avoid
26495         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
26496         Reported by Matthias Bolte.
26497
26498         bootstrap: minor portability fixes
26499         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
26500         (usage): Omit leading capital and trailing . on help phrases, per
26501         GNU Coding Standards.
26502         (check_versions, top level): Prefix messages with script name.
26503
26504 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
26505
26506         bootstrap: support --no-git option
26507         * build-aux/bootstrap: Add --no-git option, to be used when
26508         --gnulib-srcdir points to the exact desired checkout.
26509
26510 2011-01-21  Eric Blake  <eblake@redhat.com>
26511
26512         strerror_r-posix: work with glibc 2.13
26513         * lib/strerror_r.c (strerror_r): Fix return type.
26514
26515 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26516             Bruno Haible  <bruno@clisp.org>
26517
26518         uN_strstr: New unit tests.
26519         * modules/unistr/u8-strstr-tests: New file.
26520         * modules/unistr/u16-strstr-tests: New file.
26521         * modules/unistr/u32-strstr-tests: New file.
26522         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26523         * tests/unistr/test-u8-strstr.c: New file.
26524         * tests/unistr/test-u16-strstr.c: New file.
26525         * tests/unistr/test-u32-strstr.c: New file.
26526
26527 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26528             Bruno Haible  <bruno@clisp.org>
26529
26530         Make uN_strstr functions O(n) worst-case.
26531         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26532         16-bit and 32-bit unit cases, use the unibyte algorithm from
26533         lib/mbsstr.c.
26534         * lib/unistr/u8-strstr.c: Include <string.h>.
26535         (UNIT_IS_UINT8_T): New macro.
26536         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26537         (U_STRLEN, U_STRNLEN): New macros.
26538         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26539         (U_STRLEN, U_STRNLEN): New macros.
26540         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26541         (configure.ac): Update required libunistring version.
26542         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26543         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26544         malloca.
26545         (configure.ac): Update required libunistring version.
26546         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26547         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26548         malloca.
26549         (configure.ac): Update required libunistring version.
26550
26551 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26552             Bruno Haible  <bruno@clisp.org>
26553
26554         Prepare for faster uN_strstr functions.
26555         * lib/str-kmp.h: Support definable UNITs.
26556         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26557         needle_len argument.
26558         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26559         * lib/mbscasestr.c (mbscasestr): Likewise.
26560
26561 2011-01-21  Pádraig Brady <P@draigBrady.com>
26562
26563         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26564         * tests/test-malloca.c (main): Unset the environment variable
26565         to greatly speed up the test.
26566         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26567         * modules/malloca-tests: Depend on unsetenv.
26568
26569 2011-01-21  Pádraig Brady <P@draigBrady.com>
26570
26571         ignore-value: remove stdint dependency
26572         * lib/ignore-value.h: Remove <stdint.h>
26573         * modules/ignore-value: Remove stdint dependency.
26574
26575 2011-01-21  Jim Meyering  <meyering@redhat.com>
26576
26577         maint.mk: adjust variable name to be consistent with other gl_ vars
26578         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26579         to be lower case.
26580
26581 2011-01-20  Jim Meyering  <meyering@redhat.com>
26582
26583         maint.mk: make "check" depend on public-submodule-commit by default
26584         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26585
26586 2011-01-20  Bruno Haible  <bruno@clisp.org>
26587
26588         mbfile, mbiter: Complete change from 2008-12-21.
26589         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26590         * m4/mbiter.m4 (gl_MBITER): Likewise.
26591
26592 2011-01-20  Jim Meyering  <meyering@redhat.com>
26593
26594         init.sh: insert space between each function name and "()"
26595         * tests/init.sh: Make it a little easier to see that a function's
26596         name is "warn_", and not "warn" when looking at the first part of
26597         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26598
26599 2011-01-20  Jim Meyering  <meyering@redhat.com>
26600
26601         mountlist: clean up code formatting
26602         * lib/mountlist.c (read_file_system_list): Split a long line,
26603         correct bracing style, use NULL in place of "(struct statfs *)0",
26604         don't parenthesize return value, add spaces around "=" and after
26605         ";-in-for-stmt".
26606
26607 2011-01-14  Markus Duft <mduft@gentoo.org>
26608
26609         mountlist: add support for Interix
26610         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26611         Apply statvfs to all entries of /dev/fs.
26612         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26613         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26614
26615 2011-01-20  Jim Meyering  <meyering@redhat.com>
26616
26617         maint.mk: improve the public-submodule-commit rule
26618         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26619         to suppress printing of its commands... unless V=1.
26620         Add git submodule's --quiet option to suppress printing of e.g.,
26621         "Entering gnulib" output.
26622         "cd" into $(srcdir) before running git submodule.
26623
26624 2011-01-20  Bruno Haible  <bruno@clisp.org>
26625
26626         include_next: Fix bug introduced on 2011-01-18.
26627         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26628         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26629         ac_cv_header_... variable if the second argument is not 'check'.
26630         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26631         gl_NEXT_HEADERS_INTERNAL.
26632
26633 2011-01-20  Bruno Haible  <bruno@clisp.org>
26634
26635         Allow the user to avoid the GNULIB_TEST_* macros.
26636         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26637         Suggested by Paul Eggert.
26638
26639 2011-01-14  Jim Meyering  <meyering@redhat.com>
26640
26641         bootstrap: avoid failure when there is no .gitmodules file
26642         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26643         has been assigned to, even when its value is the empty string.
26644         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26645         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26646         Reported by John W. Eaton <jwe@gnu.org>.
26647
26648 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26649
26650         assume <ctype.h>, ..., <time.h> exist
26651         For years gnulib has been assuming the existence of the headers
26652         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26653         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26654         them, since they don't appear to be needed.
26655         * README (Portability guidelines): Document this.
26656         * lib/flock.c: Assume <fcntl.h> exists.
26657         * lib/regex_internal.h: Assume <locale.h> exists.
26658         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26659         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26660         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26661         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26662         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26663         * m4/regex.m4 (gl_REGEX): Likewise.
26664         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26665         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26666         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26667         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26668         * tests/test-argp.c: Likewise.
26669         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26670
26671         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26672         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26673         AA_APPLE_UNIVERSAL_BUILD.  See
26674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26675         * NEWS: Document this.
26676
26677 2011-01-19  Eric Blake  <eblake@redhat.com>
26678
26679         c-stack: assume stack overflow if SA_SIGINFO unsupported
26680         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26681         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26682         sigaction will work.
26683         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26684         behavior match Linux.
26685         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26686
26687         stdbool-tests: accommodate Haiku
26688         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26689
26690         binary-io: fix O_TEXT on Haiku
26691         * modules/binary-io (Depends-on): Add fcntl-h.
26692         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26693         than blindly undefining O_TEXT.
26694         Reported by Scott McCreary.
26695
26696 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26697
26698         include_next: do not check for standard headers like stddef.h
26699
26700         I found this problem when modifying Emacs to use gnulib.
26701         I noticed that it added HAVE_STDDEF_H to config.h, even though
26702         gnulib always assumes <stddef.h> exists as per README and this
26703         symbol is unnecessary.
26704         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26705         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26706         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26707         faster for headers like stddef.h that are known to exist.
26708         (gl_CHECK_NEXT_HEADERS): Use it.
26709         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26710         rather than gl_CHECK_NEXT_HEADERS.
26711         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26712         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26713
26714 2011-01-18  Eric Blake  <eblake@redhat.com>
26715
26716         ansi-c++-opt: skip C++ dependency style if C++ is unused
26717         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26718         tests when we know C++ compilation is not desired.
26719         Reported by Scott McCreary.
26720
26721 2011-01-18  Bruno Haible  <bruno@clisp.org>
26722
26723         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26724         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26725         (main): Perform test also when getrlimit and setrlimit don't exist or
26726         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26727         limiting the address space size using setrlimit, compare the address
26728         space size before and after the the test.
26729         * tests/test-dprintf-posix2.c: Likewise.
26730         * tests/test-fprintf-posix3.sh: Update skip messages.
26731         * tests/test-dprintf-posix2.sh: Likewise.
26732         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26733         * modules/dprintf-posix-tests (Depends-on): Likewise.
26734         Reported by Bruce Korb <bkorb@gnu.org> and
26735         Gary V. Vaughan <gary@gnu.org>.
26736
26737 2011-01-18  Bruno Haible  <bruno@clisp.org>
26738
26739         get-rusage-as: Improvement for Cygwin.
26740         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26741         areas that are merely reserved.
26742
26743 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26744
26745         strftime: remove dependencies on multibyte modules
26746
26747         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26748         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26749         only if __osf__ is defined, and I suspect OSF doesn't need these
26750         other modules.  If my guess is wrong, we'll need to come up with a
26751         variant of strftime that doesn't need the multibyte modules.
26752
26753         I discovered this problem when attempting modify Emacs to use the
26754         strftime module.  With the previous gnulib, this caused Emacs to
26755         need 31 new files, ranging from lib/config.charset to
26756         m4/wint_t.m4.  This was overkill and I expect would be offputting
26757         to the Emacs maintainers.  After this change, only 6 new files are
26758         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26759         stdbool.m4, and tm_gmtoff.m4.
26760
26761         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26762         Suggested by Bruno Haible in
26763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26764         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26765         and do not check for wchar.h.
26766         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26767         (Depends-on): Remove mbrlen, mbsinit, wchar.
26768
26769 2011-01-18  Bruno Haible  <bruno@clisp.org>
26770
26771         Tests for module 'get-rusage-as'.
26772         * modules/get-rusage-as-tests: New file.
26773         * tests/test-get-rusage-as.c: New file.
26774
26775         New module 'get-rusage-as'.
26776         * modules/get-rusage-as: New file.
26777         * lib/resource-ext.h: New file.
26778         * lib/get-rusage-as.c: New file.
26779
26780 2011-01-17  Eric Blake  <eblake@redhat.com>
26781
26782         sigaction: relax license from LGPLv3+ to LGPLv2+
26783         * modules/sigaction (License): Relax to LGPLv2+.
26784
26785 2011-01-14  Bruno Haible  <bruno@clisp.org>
26786
26787         filemode: Make function declarations usable in C++ mode.
26788         * lib/filemode.h: Enclose function declarations in extern "C" block.
26789         Reported by John W. Eaton <jwe@gnu.org>.
26790
26791 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26792
26793         save-cwd: no longer include "xgetcwd.h"
26794         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26795         This avoids a compilation failure in projects that use save-cwd
26796         without also using the xgetcwd module.
26797
26798 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26799
26800         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26801         This is so that a program like Emacs, which needs only dtoastr,
26802         does not have to bother with distributing and compiling ftoastr
26803         and ldtoastr.
26804         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26805         * modules/dtoastr, modules/ldtoastr: New files.
26806         * modules/ftoastr: Now works just for 'float'.
26807         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26808         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26809         dtoastr.c, ldtoastr.c.
26810
26811 2011-01-11  Jim Meyering  <meyering@redhat.com>
26812
26813         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26814         There is no need to work around the lack of the fchdir function,
26815         since gnulib can now provide a replacement when required.
26816         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26817         * modules/save-cwd (Depends-on): Add fchdir.
26818
26819 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26820
26821         openat, save-cwd: avoid xmalloc
26822
26823         This removes a direct (but undocumented) dependency of openat on
26824         xalloc, along with an indirect dependency via save-cwd.  It also
26825         removes a dependency of save-cwd on xgetcwd, and thereby
26826         indirectly on xalloc.  This change causes the openat substitute
26827         to fall back on save_cwd when memory is tight, and for save_cwd to
26828         fail instead of dying when memory is tight, but that's good enough.
26829         Problem and initial idea for fix reported by Bastien Roucaries in
26830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26831
26832         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26833         xalloc.h (for xmalloc).
26834         (openat_proc_name): Use malloc, not xmalloc.
26835         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26836         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26837
26838         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26839         This avoids heap allocation for file names whose lengths are in
26840         the range 512..1023, with the upper bound increasing to at most
26841         4031 depending on the platform's PATH_MAX.  (We do not want
26842         pathmax.h here as it might supply a non-constant PATH_MAX.)
26843         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26844         Perhaps they should be moved to malloca.h?
26845         (OPENAT_BUFFER_SIZE): Use them.
26846
26847 2011-01-10  Bruno Haible  <bruno@clisp.org>
26848
26849         doc: Update users.txt.
26850         * users.txt: Add recutils.
26851
26852 2011-01-09  Karl Berry  <karl@gnu.org>
26853
26854         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26855
26856         * doc/configmake.texi: New file.
26857         * doc/gnulib.texi: Include it.
26858         * modules/configmake: Move documentation from here.
26859
26860 2011-01-09  Bruno Haible  <bruno@clisp.org>
26861
26862         Update to Unicode 6.0.0.
26863         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26864         (get_lbp): Update for Unicode 6.0.0.
26865         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26866         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26867         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26868         U+11001, U+11038..U+11046. Remove U+06DE.
26869         (uc_width): Fix bounds of planes.
26870         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26871         lib/uniwidth/width.c.
26872         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26873         trailing whitespace removed.
26874         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26875         without comments, but with the original copyright notice.
26876         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26877         * lib/unicase/ignorable.h: Likewise.
26878         * lib/unicase/tocasefold.h: Likewise.
26879         * lib/unicase/tolower.h: Likewise.
26880         * lib/unicase/totitle.h: Likewise.
26881         * lib/unicase/toupper.h: Likewise.
26882         * lib/unictype/bidi_of.h: Likewise.
26883         * lib/unictype/blocks.h: Likewise.
26884         * lib/unictype/categ_C.h: Likewise.
26885         * lib/unictype/categ_Cn.h: Likewise.
26886         * lib/unictype/categ_L.h: Likewise.
26887         * lib/unictype/categ_Ll.h: Likewise.
26888         * lib/unictype/categ_Lm.h: Likewise.
26889         * lib/unictype/categ_Lo.h: Likewise.
26890         * lib/unictype/categ_Lu.h: Likewise.
26891         * lib/unictype/categ_M.h: Likewise.
26892         * lib/unictype/categ_Mc.h: Likewise.
26893         * lib/unictype/categ_Me.h: Likewise.
26894         * lib/unictype/categ_Mn.h: Likewise.
26895         * lib/unictype/categ_N.h: Likewise.
26896         * lib/unictype/categ_Nd.h: Likewise.
26897         * lib/unictype/categ_No.h: Likewise.
26898         * lib/unictype/categ_P.h: Likewise.
26899         * lib/unictype/categ_Po.h: Likewise.
26900         * lib/unictype/categ_S.h: Likewise.
26901         * lib/unictype/categ_Sc.h: Likewise.
26902         * lib/unictype/categ_Sk.h: Likewise.
26903         * lib/unictype/categ_Sm.h: Likewise.
26904         * lib/unictype/categ_So.h: Likewise.
26905         * lib/unictype/categ_of.h: Likewise.
26906         * lib/unictype/combining.h: Likewise.
26907         * lib/unictype/ctype_alnum.h: Likewise.
26908         * lib/unictype/ctype_alpha.h: Likewise.
26909         * lib/unictype/ctype_graph.h: Likewise.
26910         * lib/unictype/ctype_lower.h: Likewise.
26911         * lib/unictype/ctype_print.h: Likewise.
26912         * lib/unictype/ctype_punct.h: Likewise.
26913         * lib/unictype/ctype_upper.h: Likewise.
26914         * lib/unictype/decdigit.h: Likewise.
26915         * lib/unictype/digit.h: Likewise.
26916         * lib/unictype/numeric.h: Likewise.
26917         * lib/unictype/pr_alphabetic.h: Likewise.
26918         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26919         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26920         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26921         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26922         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26923         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26924         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26925         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26926         * lib/unictype/pr_case_ignorable.h: Likewise.
26927         * lib/unictype/pr_cased.h: Likewise.
26928         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26929         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26930         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26931         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26932         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26933         * lib/unictype/pr_combining.h: Likewise.
26934         * lib/unictype/pr_composite.h: Likewise.
26935         * lib/unictype/pr_currency_symbol.h: Likewise.
26936         * lib/unictype/pr_decimal_digit.h: Likewise.
26937         * lib/unictype/pr_deprecated.h: Likewise.
26938         * lib/unictype/pr_format_control.h: Likewise.
26939         * lib/unictype/pr_grapheme_base.h: Likewise.
26940         * lib/unictype/pr_grapheme_extend.h: Likewise.
26941         * lib/unictype/pr_grapheme_link.h: Likewise.
26942         * lib/unictype/pr_id_continue.h: Likewise.
26943         * lib/unictype/pr_id_start.h: Likewise.
26944         * lib/unictype/pr_ideographic.h: Likewise.
26945         * lib/unictype/pr_lowercase.h: Likewise.
26946         * lib/unictype/pr_math.h: Likewise.
26947         * lib/unictype/pr_numeric.h: Likewise.
26948         * lib/unictype/pr_other_alphabetic.h: Likewise.
26949         * lib/unictype/pr_other_id_continue.h: Likewise.
26950         * lib/unictype/pr_other_math.h: Likewise.
26951         * lib/unictype/pr_punctuation.h: Likewise.
26952         * lib/unictype/pr_sentence_terminal.h: Likewise.
26953         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26954         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26955         * lib/unictype/pr_unified_ideograph.h: Likewise.
26956         * lib/unictype/pr_uppercase.h: Likewise.
26957         * lib/unictype/pr_xid_continue.h: Likewise.
26958         * lib/unictype/pr_xid_start.h: Likewise.
26959         * lib/unictype/scripts.h: Likewise.
26960         * lib/unictype/scripts_byname.gperf: Likewise.
26961         * lib/unictype/sy_java_ident.h: Likewise.
26962         * lib/unigbrk/gbrkprop.h: Likewise.
26963         * lib/unilbrk/lbrkprop1.h: Likewise.
26964         * lib/unilbrk/lbrkprop2.h: Likewise.
26965         * lib/uninorm/decomposition-table2.h: Likewise.
26966         * lib/uniwbrk/wbrkprop.h: Likewise.
26967         * tests/unicase/test-cased.c: Likewise.
26968         * tests/unicase/test-ignorable.c: Likewise.
26969         * tests/unicase/test-uc_tolower.c: Likewise.
26970         * tests/unicase/test-uc_totitle.c: Likewise.
26971         * tests/unicase/test-uc_toupper.c: Likewise.
26972         * tests/unictype/test-categ_C.c: Likewise.
26973         * tests/unictype/test-categ_Cn.c: Likewise.
26974         * tests/unictype/test-categ_L.c: Likewise.
26975         * tests/unictype/test-categ_Ll.c: Likewise.
26976         * tests/unictype/test-categ_Lm.c: Likewise.
26977         * tests/unictype/test-categ_Lo.c: Likewise.
26978         * tests/unictype/test-categ_Lu.c: Likewise.
26979         * tests/unictype/test-categ_M.c: Likewise.
26980         * tests/unictype/test-categ_Mc.c: Likewise.
26981         * tests/unictype/test-categ_Me.c: Likewise.
26982         * tests/unictype/test-categ_Mn.c: Likewise.
26983         * tests/unictype/test-categ_N.c: Likewise.
26984         * tests/unictype/test-categ_Nd.c: Likewise.
26985         * tests/unictype/test-categ_No.c: Likewise.
26986         * tests/unictype/test-categ_P.c: Likewise.
26987         * tests/unictype/test-categ_Po.c: Likewise.
26988         * tests/unictype/test-categ_S.c: Likewise.
26989         * tests/unictype/test-categ_Sc.c: Likewise.
26990         * tests/unictype/test-categ_Sk.c: Likewise.
26991         * tests/unictype/test-categ_Sm.c: Likewise.
26992         * tests/unictype/test-categ_So.c: Likewise.
26993         * tests/unictype/test-ctype_alnum.c: Likewise.
26994         * tests/unictype/test-ctype_alpha.c: Likewise.
26995         * tests/unictype/test-ctype_graph.c: Likewise.
26996         * tests/unictype/test-ctype_lower.c: Likewise.
26997         * tests/unictype/test-ctype_print.c: Likewise.
26998         * tests/unictype/test-ctype_punct.c: Likewise.
26999         * tests/unictype/test-ctype_upper.c: Likewise.
27000         * tests/unictype/test-decdigit.h: Likewise.
27001         * tests/unictype/test-digit.h: Likewise.
27002         * tests/unictype/test-numeric.h: Likewise.
27003         * tests/unictype/test-pr_alphabetic.c: Likewise.
27004         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27005         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27006         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27007         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27008         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27009         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27010         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27011         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27012         * tests/unictype/test-pr_case_ignorable.c: Likewise.
27013         * tests/unictype/test-pr_cased.c: Likewise.
27014         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
27015         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
27016         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
27017         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
27018         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
27019         * tests/unictype/test-pr_combining.c: Likewise.
27020         * tests/unictype/test-pr_composite.c: Likewise.
27021         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27022         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27023         * tests/unictype/test-pr_deprecated.c: Likewise.
27024         * tests/unictype/test-pr_format_control.c: Likewise.
27025         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27026         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27027         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27028         * tests/unictype/test-pr_id_continue.c: Likewise.
27029         * tests/unictype/test-pr_id_start.c: Likewise.
27030         * tests/unictype/test-pr_ideographic.c: Likewise.
27031         * tests/unictype/test-pr_lowercase.c: Likewise.
27032         * tests/unictype/test-pr_math.c: Likewise.
27033         * tests/unictype/test-pr_numeric.c: Likewise.
27034         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27035         * tests/unictype/test-pr_other_id_continue.c: Likewise.
27036         * tests/unictype/test-pr_other_math.c: Likewise.
27037         * tests/unictype/test-pr_punctuation.c: Likewise.
27038         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27039         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27040         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27041         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27042         * tests/unictype/test-pr_uppercase.c: Likewise.
27043         * tests/unictype/test-pr_xid_continue.c: Likewise.
27044         * tests/unictype/test-pr_xid_start.c: Likewise.
27045         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27046         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27047         changes.
27048         * lib/unictype/categ_Cc.h: Likewise.
27049         * lib/unictype/categ_Cf.h: Likewise.
27050         * lib/unictype/categ_Co.h: Likewise.
27051         * lib/unictype/categ_Cs.h: Likewise.
27052         * lib/unictype/categ_Lt.h: Likewise.
27053         * lib/unictype/categ_Nl.h: Likewise.
27054         * lib/unictype/categ_Pc.h: Likewise.
27055         * lib/unictype/categ_Pd.h: Likewise.
27056         * lib/unictype/categ_Pe.h: Likewise.
27057         * lib/unictype/categ_Pf.h: Likewise.
27058         * lib/unictype/categ_Pi.h: Likewise.
27059         * lib/unictype/categ_Ps.h: Likewise.
27060         * lib/unictype/categ_Z.h: Likewise.
27061         * lib/unictype/categ_Zl.h: Likewise.
27062         * lib/unictype/categ_Zp.h: Likewise.
27063         * lib/unictype/categ_Zs.h: Likewise.
27064         * lib/unictype/ctype_blank.h: Likewise.
27065         * lib/unictype/ctype_cntrl.h: Likewise.
27066         * lib/unictype/ctype_digit.h: Likewise.
27067         * lib/unictype/ctype_space.h: Likewise.
27068         * lib/unictype/ctype_xdigit.h: Likewise.
27069         * lib/unictype/mirror.h: Likewise.
27070         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27071         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27072         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27073         * lib/unictype/pr_bidi_control.h: Likewise.
27074         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27075         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27076         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27077         * lib/unictype/pr_bidi_pdf.h: Likewise.
27078         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27079         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27080         * lib/unictype/pr_dash.h: Likewise.
27081         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27082         * lib/unictype/pr_diacritic.h: Likewise.
27083         * lib/unictype/pr_extender.h: Likewise.
27084         * lib/unictype/pr_hex_digit.h: Likewise.
27085         * lib/unictype/pr_hyphen.h: Likewise.
27086         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27087         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27088         * lib/unictype/pr_ignorable_control.h: Likewise.
27089         * lib/unictype/pr_iso_control.h: Likewise.
27090         * lib/unictype/pr_join_control.h: Likewise.
27091         * lib/unictype/pr_left_of_pair.h: Likewise.
27092         * lib/unictype/pr_line_separator.h: Likewise.
27093         * lib/unictype/pr_logical_order_exception.h: Likewise.
27094         * lib/unictype/pr_non_break.h: Likewise.
27095         * lib/unictype/pr_not_a_character.h: Likewise.
27096         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27097         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27098         * lib/unictype/pr_other_id_start.h: Likewise.
27099         * lib/unictype/pr_other_lowercase.h: Likewise.
27100         * lib/unictype/pr_other_uppercase.h: Likewise.
27101         * lib/unictype/pr_paired_punctuation.h: Likewise.
27102         * lib/unictype/pr_paragraph_separator.h: Likewise.
27103         * lib/unictype/pr_pattern_syntax.h: Likewise.
27104         * lib/unictype/pr_pattern_white_space.h: Likewise.
27105         * lib/unictype/pr_private_use.h: Likewise.
27106         * lib/unictype/pr_quotation_mark.h: Likewise.
27107         * lib/unictype/pr_radical.h: Likewise.
27108         * lib/unictype/pr_soft_dotted.h: Likewise.
27109         * lib/unictype/pr_space.h: Likewise.
27110         * lib/unictype/pr_titlecase.h: Likewise.
27111         * lib/unictype/pr_variation_selector.h: Likewise.
27112         * lib/unictype/pr_white_space.h: Likewise.
27113         * lib/unictype/pr_zero_width.h: Likewise.
27114         * lib/unictype/sy_c_ident.h: Likewise.
27115         * lib/unictype/sy_c_whitespace.h: Likewise.
27116         * lib/unictype/sy_java_whitespace.h: Likewise.
27117         * lib/uninorm/composition-table.gperf: Likewise.
27118         * lib/uninorm/decomposition-table1.h: Likewise.
27119         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
27120         LB8.
27121         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27122         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27123         * modules/unictype/*: Bump version number of expected libunistring
27124         version.
27125
27126 2011-01-09  Bruno Haible  <bruno@clisp.org>
27127
27128         Update to Unicode 5.2.0.
27129         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
27130         trailing whitespace removed.
27131
27132 2011-01-09  Bruno Haible  <bruno@clisp.org>
27133
27134         New Unicode character properties, from Unicode 5.2.0.
27135         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
27136         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
27137         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
27138         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
27139         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
27140         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
27141         uc_is_property_cased, uc_is_property_case_ignorable,
27142         uc_is_property_changes_when_lowercased,
27143         uc_is_property_changes_when_uppercased,
27144         uc_is_property_changes_when_titlecased,
27145         uc_is_property_changes_when_casefolded,
27146         uc_is_property_changes_when_casemapped): New declarations.
27147         * lib/unictype/pr_byname.gperf: Add the new properties.
27148         * modules/unictype/property-byname (Depends-on): Depend on the new
27149         properties modules.
27150         * modules/unictype/property-all (Depends-on): Likewise.
27151         * MODULES.html.sh (Unicode string functions): Add
27152         unictype/property-case-ignorable, unictype/property-cased,
27153         unictype/property-changes-when-casefolded,
27154         unictype/property-changes-when-casemapped,
27155         unictype/property-changes-when-lowercased,
27156         unictype/property-changes-when-titlecased,
27157         unictype/property-changes-when-uppercased.
27158
27159         New module 'unictype/property-changes-when-casemapped'.
27160         * modules/unictype/property-changes-when-casemapped: New file.
27161         * lib/unictype/pr_changes_when_casemapped.c: New file.
27162         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
27163         generated by gen-uni-tables.
27164         * modules/unictype/property-changes-when-casemapped-tests: New file.
27165         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
27166         automatically generated by gen-uni-tables.
27167
27168         New module 'unictype/property-changes-when-casefolded'.
27169         * modules/unictype/property-changes-when-casefolded: New file.
27170         * lib/unictype/pr_changes_when_casefolded.c: New file.
27171         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
27172         generated by gen-uni-tables.
27173         * modules/unictype/property-changes-when-casefolded-tests: New file.
27174         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
27175         automatically generated by gen-uni-tables.
27176
27177         New module 'unictype/property-changes-when-titlecased'.
27178         * modules/unictype/property-changes-when-titlecased: New file.
27179         * lib/unictype/pr_changes_when_titlecased.c: New file.
27180         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
27181         generated by gen-uni-tables.
27182         * modules/unictype/property-changes-when-titlecased-tests: New file.
27183         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
27184         automatically generated by gen-uni-tables.
27185
27186         New module 'unictype/property-changes-when-uppercased'.
27187         * modules/unictype/property-changes-when-uppercased: New file.
27188         * lib/unictype/pr_changes_when_uppercased.c: New file.
27189         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
27190         generated by gen-uni-tables.
27191         * modules/unictype/property-changes-when-uppercased-tests: New file.
27192         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
27193         automatically generated by gen-uni-tables.
27194
27195         New module 'unictype/property-changes-when-lowercased'.
27196         * modules/unictype/property-changes-when-lowercased: New file.
27197         * lib/unictype/pr_changes_when_lowercased.c: New file.
27198         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
27199         generated by gen-uni-tables.
27200         * modules/unictype/property-changes-when-lowercased-tests: New file.
27201         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
27202         automatically generated by gen-uni-tables.
27203
27204         New module 'unictype/property-case-ignorable'.
27205         * modules/unictype/property-case-ignorable: New file.
27206         * lib/unictype/pr_case_ignorable.c: New file.
27207         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
27208         by gen-uni-tables.
27209         * modules/unictype/property-case-ignorable-tests: New file.
27210         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
27211         generated by gen-uni-tables.
27212
27213         New module 'unictype/property-cased'.
27214         * modules/unictype/property-cased: New file.
27215         * lib/unictype/pr_cased.c: New file.
27216         * lib/unictype/pr_cased.h: New file, automatically generated by
27217         gen-uni-tables.
27218         * modules/unictype/property-cased-tests: New file.
27219         * tests/unictype/test-pr_cased.c: New file, automatically generated by
27220         gen-uni-tables.
27221
27222 2011-01-09  Bruno Haible  <bruno@clisp.org>
27223
27224         Update to Unicode 5.2.0.
27225         * lib/gen-uni-tables.c (output_predicate, output_category,
27226         output_combclass, output_bidi_category, output_decimal_digit_test,
27227         output_decimal_digit, output_digit_test, output_digit,
27228         output_numeric_test, output_numeric, output_mirror, output_scripts,
27229         output_scripts_byname, output_blocks, output_ident_category): Fix
27230         comment header.
27231         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
27232         get_wbp.
27233         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
27234         items.
27235         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
27236         Changes_When_Lowercased, Changes_When_Uppercased,
27237         Changes_When_Titlecased, Changes_When_Casefolded,
27238         Changes_When_Casemapped.
27239         (is_property_alphabetic, is_property_default_ignorable_code_point):
27240         Update for Unicode 5.2.0.
27241         (is_property_cased, is_property_case_ignorable,
27242         is_property_changes_when_lowercased,
27243         is_property_changes_when_uppercased,
27244         is_property_changes_when_titlecased,
27245         is_property_changes_when_casefolded,
27246         is_property_changes_when_casemapped): New functions.
27247         (output_properties): Output also the properties cased, case_ignorable,
27248         changes_when_lowercased, changes_when_uppercased,
27249         changes_when_titlecased, changes_when_casefolded,
27250         changes_when_casemapped.
27251         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
27252         Unicode TR#11 revision 17 -> 19.
27253         (LBP_CP): New enumeration value.
27254         (LBP_*): Adjust values accordingly.
27255         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27256         TR#14 revision 22 -> 24.
27257         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
27258         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
27259         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27260         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
27261         is_WBP_MIDLETTER.
27262         (output_composition_tables): Allow for 24 bits instead of 16 bits in
27263         the code1 and code2 of each composition rule.
27264         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
27265         * lib/unicase/ignorable.h: Likewise.
27266         * lib/unicase/tocasefold.h: Likewise.
27267         * lib/unicase/tolower.h: Likewise.
27268         * lib/unicase/totitle.h: Likewise.
27269         * lib/unicase/toupper.h: Likewise.
27270         * lib/unictype/bidi_of.h: Likewise.
27271         * lib/unictype/blocks.h: Likewise.
27272         * lib/unictype/categ_C.h: Likewise.
27273         * lib/unictype/categ_Cf.h: Likewise.
27274         * lib/unictype/categ_Cn.h: Likewise.
27275         * lib/unictype/categ_L.h: Likewise.
27276         * lib/unictype/categ_Ll.h: Likewise.
27277         * lib/unictype/categ_Lm.h: Likewise.
27278         * lib/unictype/categ_Lo.h: Likewise.
27279         * lib/unictype/categ_Lu.h: Likewise.
27280         * lib/unictype/categ_M.h: Likewise.
27281         * lib/unictype/categ_Mc.h: Likewise.
27282         * lib/unictype/categ_Mn.h: Likewise.
27283         * lib/unictype/categ_N.h: Likewise.
27284         * lib/unictype/categ_Nd.h: Likewise.
27285         * lib/unictype/categ_Nl.h: Likewise.
27286         * lib/unictype/categ_No.h: Likewise.
27287         * lib/unictype/categ_P.h: Likewise.
27288         * lib/unictype/categ_Pd.h: Likewise.
27289         * lib/unictype/categ_Po.h: Likewise.
27290         * lib/unictype/categ_S.h: Likewise.
27291         * lib/unictype/categ_Sc.h: Likewise.
27292         * lib/unictype/categ_So.h: Likewise.
27293         * lib/unictype/categ_of.h: Likewise.
27294         * lib/unictype/combining.h: Likewise.
27295         * lib/unictype/ctype_alnum.h: Likewise.
27296         * lib/unictype/ctype_alpha.h: Likewise.
27297         * lib/unictype/ctype_graph.h: Likewise.
27298         * lib/unictype/ctype_lower.h: Likewise.
27299         * lib/unictype/ctype_print.h: Likewise.
27300         * lib/unictype/ctype_punct.h: Likewise.
27301         * lib/unictype/ctype_upper.h: Likewise.
27302         * lib/unictype/decdigit.h: Likewise.
27303         * lib/unictype/digit.h: Likewise.
27304         * lib/unictype/numeric.h: Likewise.
27305         * lib/unictype/pr_alphabetic.h: Likewise.
27306         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27307         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27308         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27309         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27310         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27311         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27312         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27313         * lib/unictype/pr_combining.h: Likewise.
27314         * lib/unictype/pr_composite.h: Likewise.
27315         * lib/unictype/pr_currency_symbol.h: Likewise.
27316         * lib/unictype/pr_dash.h: Likewise.
27317         * lib/unictype/pr_decimal_digit.h: Likewise.
27318         * lib/unictype/pr_deprecated.h: Likewise.
27319         * lib/unictype/pr_diacritic.h: Likewise.
27320         * lib/unictype/pr_extender.h: Likewise.
27321         * lib/unictype/pr_grapheme_base.h: Likewise.
27322         * lib/unictype/pr_grapheme_extend.h: Likewise.
27323         * lib/unictype/pr_grapheme_link.h: Likewise.
27324         * lib/unictype/pr_id_continue.h: Likewise.
27325         * lib/unictype/pr_id_start.h: Likewise.
27326         * lib/unictype/pr_ideographic.h: Likewise.
27327         * lib/unictype/pr_ignorable_control.h: Likewise.
27328         * lib/unictype/pr_logical_order_exception.h: Likewise.
27329         * lib/unictype/pr_lowercase.h: Likewise.
27330         * lib/unictype/pr_numeric.h: Likewise.
27331         * lib/unictype/pr_other_alphabetic.h: Likewise.
27332         * lib/unictype/pr_punctuation.h: Likewise.
27333         * lib/unictype/pr_sentence_terminal.h: Likewise.
27334         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27335         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27336         * lib/unictype/pr_unified_ideograph.h: Likewise.
27337         * lib/unictype/pr_uppercase.h: Likewise.
27338         * lib/unictype/pr_xid_continue.h: Likewise.
27339         * lib/unictype/pr_xid_start.h: Likewise.
27340         * lib/unictype/pr_zero_width.h: Likewise.
27341         * lib/unictype/scripts.h: Likewise.
27342         * lib/unictype/scripts_byname.gperf: Likewise.
27343         * lib/unictype/sy_java_ident.h: Likewise.
27344         * lib/unigbrk/gbrkprop.h: Likewise.
27345         * lib/unilbrk/lbrkprop1.h: Likewise.
27346         * lib/unilbrk/lbrkprop2.h: Likewise.
27347         * lib/unilbrk/lbrktables.h: Likewise.
27348         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
27349         LBP_CP. Implement rule LB30.
27350         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
27351         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
27352         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
27353         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
27354         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
27355         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
27356         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
27357         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
27358         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
27359         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
27360         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
27361         bits instead of 16 bits in the code1 and code2 of each composition
27362         rule.
27363         (uc_composition): Update for Unicode 5.2.0.
27364         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
27365         * lib/uninorm/decomposition-table2.h: Likewise.
27366         * lib/uniwbrk/wbrkprop.h: Likewise.
27367         * tests/unicase/test-cased.c: Likewise.
27368         * tests/unicase/test-ignorable.c: Likewise.
27369         * tests/unicase/test-uc_tolower.c: Likewise.
27370         * tests/unicase/test-uc_totitle.c: Likewise.
27371         * tests/unicase/test-uc_toupper.c: Likewise.
27372         * tests/unictype/test-categ_C.c: Likewise.
27373         * tests/unictype/test-categ_Cf.c: Likewise.
27374         * tests/unictype/test-categ_Cn.c: Likewise.
27375         * tests/unictype/test-categ_L.c: Likewise.
27376         * tests/unictype/test-categ_Ll.c: Likewise.
27377         * tests/unictype/test-categ_Lm.c: Likewise.
27378         * tests/unictype/test-categ_Lo.c: Likewise.
27379         * tests/unictype/test-categ_Lu.c: Likewise.
27380         * tests/unictype/test-categ_M.c: Likewise.
27381         * tests/unictype/test-categ_Mc.c: Likewise.
27382         * tests/unictype/test-categ_Mn.c: Likewise.
27383         * tests/unictype/test-categ_N.c: Likewise.
27384         * tests/unictype/test-categ_Nd.c: Likewise.
27385         * tests/unictype/test-categ_Nl.c: Likewise.
27386         * tests/unictype/test-categ_No.c: Likewise.
27387         * tests/unictype/test-categ_P.c: Likewise.
27388         * tests/unictype/test-categ_Pd.c: Likewise.
27389         * tests/unictype/test-categ_Po.c: Likewise.
27390         * tests/unictype/test-categ_S.c: Likewise.
27391         * tests/unictype/test-categ_Sc.c: Likewise.
27392         * tests/unictype/test-categ_So.c: Likewise.
27393         * tests/unictype/test-ctype_alnum.c: Likewise.
27394         * tests/unictype/test-ctype_alpha.c: Likewise.
27395         * tests/unictype/test-ctype_graph.c: Likewise.
27396         * tests/unictype/test-ctype_lower.c: Likewise.
27397         * tests/unictype/test-ctype_print.c: Likewise.
27398         * tests/unictype/test-ctype_punct.c: Likewise.
27399         * tests/unictype/test-ctype_upper.c: Likewise.
27400         * tests/unictype/test-decdigit.h: Likewise.
27401         * tests/unictype/test-digit.h: Likewise.
27402         * tests/unictype/test-numeric.h: Likewise.
27403         * tests/unictype/test-pr_alphabetic.c: Likewise.
27404         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27405         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27406         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27407         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27408         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27409         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27410         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27411         * tests/unictype/test-pr_combining.c: Likewise.
27412         * tests/unictype/test-pr_composite.c: Likewise.
27413         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27414         * tests/unictype/test-pr_dash.c: Likewise.
27415         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27416         * tests/unictype/test-pr_deprecated.c: Likewise.
27417         * tests/unictype/test-pr_diacritic.c: Likewise.
27418         * tests/unictype/test-pr_extender.c: Likewise.
27419         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27420         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27421         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27422         * tests/unictype/test-pr_id_continue.c: Likewise.
27423         * tests/unictype/test-pr_id_start.c: Likewise.
27424         * tests/unictype/test-pr_ideographic.c: Likewise.
27425         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27426         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27427         * tests/unictype/test-pr_lowercase.c: Likewise.
27428         * tests/unictype/test-pr_numeric.c: Likewise.
27429         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27430         * tests/unictype/test-pr_punctuation.c: Likewise.
27431         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27432         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27433         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27434         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27435         * tests/unictype/test-pr_uppercase.c: Likewise.
27436         * tests/unictype/test-pr_xid_continue.c: Likewise.
27437         * tests/unictype/test-pr_xid_start.c: Likewise.
27438         * tests/unictype/test-pr_zero_width.c: Likewise.
27439         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27440         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
27441         changed behaviour: line breaking is now disallowed between a letter
27442         or '=' and '('.
27443         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27444         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27445         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27446         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
27447         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27448         lib/uniwidth/width.c.
27449         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
27450         without comments, but with the original copyright notice.
27451         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27452         changes.
27453         * lib/unictype/categ_Cc.h: Likewise.
27454         * lib/unictype/categ_Co.h: Likewise.
27455         * lib/unictype/categ_Cs.h: Likewise.
27456         * lib/unictype/categ_Lt.h: Likewise.
27457         * lib/unictype/categ_Me.h: Likewise.
27458         * lib/unictype/categ_Pc.h: Likewise.
27459         * lib/unictype/categ_Pe.h: Likewise.
27460         * lib/unictype/categ_Pf.h: Likewise.
27461         * lib/unictype/categ_Pi.h: Likewise.
27462         * lib/unictype/categ_Ps.h: Likewise.
27463         * lib/unictype/categ_Sk.h: Likewise.
27464         * lib/unictype/categ_Sm.h: Likewise.
27465         * lib/unictype/categ_Z.h: Likewise.
27466         * lib/unictype/categ_Zl.h: Likewise.
27467         * lib/unictype/categ_Zp.h: Likewise.
27468         * lib/unictype/categ_Zs.h: Likewise.
27469         * lib/unictype/ctype_blank.h: Likewise.
27470         * lib/unictype/ctype_cntrl.h: Likewise.
27471         * lib/unictype/ctype_digit.h: Likewise.
27472         * lib/unictype/ctype_space.h: Likewise.
27473         * lib/unictype/ctype_xdigit.h: Likewise.
27474         * lib/unictype/mirror.h: Likewise.
27475         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27476         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27477         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27478         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27479         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27480         * lib/unictype/pr_bidi_control.h: Likewise.
27481         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27482         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27483         * lib/unictype/pr_bidi_pdf.h: Likewise.
27484         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27485         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27486         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27487         * lib/unictype/pr_format_control.h: Likewise.
27488         * lib/unictype/pr_hex_digit.h: Likewise.
27489         * lib/unictype/pr_hyphen.h: Likewise.
27490         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27491         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27492         * lib/unictype/pr_iso_control.h: Likewise.
27493         * lib/unictype/pr_join_control.h: Likewise.
27494         * lib/unictype/pr_left_of_pair.h: Likewise.
27495         * lib/unictype/pr_line_separator.h: Likewise.
27496         * lib/unictype/pr_math.h: Likewise.
27497         * lib/unictype/pr_non_break.h: Likewise.
27498         * lib/unictype/pr_not_a_character.h: Likewise.
27499         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27500         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27501         * lib/unictype/pr_other_id_continue.h: Likewise.
27502         * lib/unictype/pr_other_id_start.h: Likewise.
27503         * lib/unictype/pr_other_lowercase.h: Likewise.
27504         * lib/unictype/pr_other_math.h: Likewise.
27505         * lib/unictype/pr_other_uppercase.h: Likewise.
27506         * lib/unictype/pr_paired_punctuation.h: Likewise.
27507         * lib/unictype/pr_paragraph_separator.h: Likewise.
27508         * lib/unictype/pr_pattern_syntax.h: Likewise.
27509         * lib/unictype/pr_pattern_white_space.h: Likewise.
27510         * lib/unictype/pr_private_use.h: Likewise.
27511         * lib/unictype/pr_quotation_mark.h: Likewise.
27512         * lib/unictype/pr_radical.h: Likewise.
27513         * lib/unictype/pr_soft_dotted.h: Likewise.
27514         * lib/unictype/pr_space.h: Likewise.
27515         * lib/unictype/pr_titlecase.h: Likewise.
27516         * lib/unictype/pr_variation_selector.h: Likewise.
27517         * lib/unictype/pr_white_space.h: Likewise.
27518         * lib/unictype/sy_c_ident.h: Likewise.
27519         * lib/unictype/sy_c_whitespace.h: Likewise.
27520         * lib/unictype/sy_java_whitespace.h: Likewise.
27521         * modules/uni*/*: Bump version number of expected libunistring version.
27522         Reported by Simon Josefsson.
27523
27524 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27525
27526         useless-if-before-free: fix typo in --help and make the internal,
27527         automatic version date update process work once again.
27528         --help output contained a NUL character instead of the
27529         backslash-zero that was intended.  Also, the "must lie within
27530         the first 8 lines" line is on line 9, and hence not getting
27531         automatically updated.
27532         * build-aux/useless-if-before-free: Fix the former by adding a
27533         backslash, and the latter by condensing the three lines of what-it-does
27534         to a single line, leaving one line of slack for the future.
27535
27536 2011-01-09  Bruno Haible  <bruno@clisp.org>
27537
27538         uniwidth/width: Fix width of U+1D173..U+1D17A.
27539         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27540         symbolic_width, output_width_property_test): New functions.
27541         (main): Invoke output_nonspacing_property, output_width_property_test.
27542         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27543         U+1D173..U+1D17A.
27544         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27545         1.
27546         * modules/uniwidth/*: Bump version number of expected libunistring
27547         version.
27548         * modules/unilbrk/*: Likewise.
27549
27550 2011-01-08  Bruno Haible  <bruno@clisp.org>
27551
27552         uninorm tests: Preserve copyright of Unicode data file.
27553         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27554         Mention modifications.
27555
27556 2011-01-08  Bruno Haible  <bruno@clisp.org>
27557
27558         gen-uni-tables: Prepare for Unicode 5.2.0.
27559         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27560         (debug_output_lbp, output_lbp): Update.
27561
27562 2011-01-08  Bruno Haible  <bruno@clisp.org>
27563
27564         unilbrk: Clarify gen-uni-tables.c code.
27565         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27566         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27567         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27568
27569 2011-01-07  Bruno Haible  <bruno@clisp.org>
27570
27571         strtod: Restore errno when successfully parsing Infinity or NaN.
27572         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27573         restore the original errno.
27574
27575 2011-01-07  Bruno Haible  <bruno@clisp.org>
27576
27577         remove test: Avoid failure on HP-UX 11.
27578         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27579
27580 2011-01-07  Bruno Haible  <bruno@clisp.org>
27581
27582         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27583         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27584         error code.
27585
27586 2011-01-07  Pádraig Brady <P@draigBrady.com>
27587
27588         ignore-value: fixup comments, and add Eric Blake
27589         as an author since he rewrote the macros.
27590         * lib/ignore-value.h (ignore_value):  State that
27591         we now support aggregates.  Also specify exactly
27592         when the GCC warn_unused_result feature was added.
27593
27594 2011-01-06  Eric Blake  <eblake@redhat.com>
27595
27596         ignore-value: support aggregate types
27597         * lib/ignore-value.h (ignore_value): Provide separate gcc
27598         definition.
27599         * modules/ignore-value-tests: New test module.
27600         * tests/test-ignore-value.c: New test.
27601
27602         maint.mk: improve sc_prohibit_strcmp regex
27603         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27604         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27605         definition of STRNEQ.
27606
27607         signal: work around Haiku issue with SIGBUS
27608         * lib/siglist.h: Add comment.
27609         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27610         strsignal's favoring of SIGSEGV.
27611         * tests/test-signal.c (main): Avoid test failure.
27612         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27613         Reported by Scott McCreary.
27614
27615         maint.mk: add pre-release check to ensure submodule commits are public
27616         * top/maint.mk (public-submodule-commit): New rule.
27617         (submodule-checks): New variable.
27618         (alpha beta stable): Depend on the variable.
27619
27620 2011-01-05  Pádraig Brady <P@draigBrady.com>
27621         and Jim Meyering  <meyering@redhat.com>
27622
27623         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27624         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27625         (ATTRIBUTE_DEPRECATED): Define.
27626         (_ignore_case): New function.
27627         (ignore_value): New macro, to replace the old function.
27628         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27629         * modules/ignore-value (Depends-on): Add stdint.
27630
27631 2011-01-04  Eric Blake  <eblake@redhat.com>
27632
27633         doc: regenerate INSTALL
27634         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27635         @firstparagraphindent support, now that autoconf dropped it.
27636         (INSTALL_PRELUDE): Reinstate old macro.
27637         * doc/install.texi: Resync from autoconf.
27638         * doc/INSTALL: Reflect recent autoconf update.
27639         * doc/INSTALL.ISO: Likewise.
27640         * doc/INSTALL.UTF-8: Likewise.
27641         Reported by Karl Berry.
27642
27643 2011-01-04  Bruce Korb  <address@hidden>
27644
27645         git-version-gen: avoid a sub-shell
27646         * build-aux/git-version-gen: Redirect stderr in `...` via
27647         "exec 2>...", rather than via an added sub-shell.
27648
27649 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27650
27651         git-version-gen: use (...) rather than sh -c '...'
27652         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27653         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27654
27655 2011-01-03  Jim Meyering  <meyering@redhat.com>
27656
27657         git-version-gen: convert leading TABs to spaces
27658         * build-aux/git-version-gen: Expand leading TABs.
27659
27660         git-version-gen: handle failed "git rev-list"
27661         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27662         from git and proceeding as if it had succeeded but printed no SHA1
27663         checksums, suppress the diagnostic and handle the failure.
27664         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27665
27666         git-version-gen: include command name in one more diagnostic
27667         * build-aux/git-version-gen: When the required .tarball-version file
27668         was missing or unreadable, you might see the diagnostic from "cat",
27669         but no trace of the name of the invoking script.  Now, you still see
27670         the diagnostic from cat, but also get one from "git-version-gen: ".
27671         Inspired by a patch from Bruce Korb.
27672
27673         update-copyright: adjust test to match changed code
27674         * tests/test-update-copyright.sh: Change test's expected output
27675         to match new actual output.
27676
27677 2011-01-02  Bruno Haible  <bruno@clisp.org>
27678
27679         getlogin_r: Avoid test failure on HP-UX 11.
27680         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27681         ERANGE when the second argument is zero.
27682         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27683         portability problem.
27684
27685 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27686
27687         * build-aux/update-copyright: doc Simon's changes
27688
27689 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27690
27691         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27692         environment variable.
27693
27694 2011-01-02  Bruno Haible  <bruno@clisp.org>
27695
27696         unigbrk: Avoid gcc warnings.
27697         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27698         unused variable.
27699         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27700         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27701         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27702         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27703         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27704         Change type of first argument to 'const char *'.
27705         (main): Remove unused variable.
27706         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27707         type of first argument to 'const char *'.
27708         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27709         Likewise.
27710         (main): Change type of variable 's'.
27711         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27712         to 'int'.
27713
27714 2011-01-02  Bruno Haible  <bruno@clisp.org>
27715
27716         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27717         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27718         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27719         bug.
27720         * lib/pwrite.c: Undo 2010-12-31 patch.
27721         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27722
27723 2011-01-02  Bruno Haible  <bruno@clisp.org>
27724
27725         pread: Fix test whether it works.
27726         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27727
27728 2011-01-02  Bruno Haible  <bruno@clisp.org>
27729
27730         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27731         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27732         ends in "6". Don't require a specific month name. Try also the locale
27733         names found on HP-UX 11 and Solaris 7.
27734
27735 2011-01-02  Bruno Haible  <bruno@clisp.org>
27736
27737         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27738         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27739         C linkage.
27740         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27741
27742 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27743
27744         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27745         for consistency, since the "cluster" term is not used elsewhere.
27746         * lib/unigbrk.in.h: Update name.
27747         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27748         * lib/unigbrk/u16-grapheme-next.c: Update name.
27749         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27750         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27751         * lib/unigbrk/u32-grapheme-next.c: Update name.
27752         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27753         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27754         * lib/unigbrk/u8-grapheme-next.c: Update name.
27755         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27756         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27757         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27758         Suggested by Bruno Haible.
27759
27760 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27761
27762         Remove module 'u8-grapheme-len' as too redundant with
27763         'u8-grapheme-next'.
27764         * modules/unigbrk/u8-grapheme-len: Delete file.
27765         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27766         * lib/unigbrk.in.h: Remove prototype for deleted function.
27767         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27768         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27769
27770         Remove module 'u16-grapheme-len' as too redundant with
27771         'u16-grapheme-next'.
27772         * modules/unigbrk/u16-grapheme-len: Delete file.
27773         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27774         * lib/unigbrk.in.h: Remove prototype for deleted function.
27775         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27776         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27777
27778         Remove module 'u32-grapheme-len' as too redundant with
27779         'u32-grapheme-next'.
27780         * modules/unigbrk/u32-grapheme-len: Delete file.
27781         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27782         * lib/unigbrk.in.h: Remove prototype for deleted function.
27783         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27784         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27785
27786         Suggested by Bruno Haible.
27787
27788 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27789
27790         * unigbrk.in.h: Fix typo: "ben" => "been".
27791         Reported by Bruno Haible.
27792
27793 2011-01-01  Jim Meyering  <meyering@redhat.com>
27794
27795         maint: update almost all copyright ranges to include 2011
27796         Run the new "make update-copyright" rule.
27797
27798 2011-01-01  Jim Meyering  <meyering@redhat.com>
27799
27800         maint: update-copyright: exempt doc/INSTALL*
27801         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27802         since they are generated.  Suggested by Bruno Haible.
27803
27804 2011-01-01  Jim Meyering  <meyering@redhat.com>
27805
27806         maint: refine the update-copyright rule
27807         * Makefile (update-copyright): Also exclude any file that includes
27808         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27809         code that merely generates the comment.
27810
27811 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27812
27813         New module 'u8-grapheme-len'.
27814         * modules/unigbrk/u8-grapheme-len: New file.
27815         * modules/unigbrk/u8-grapheme-len-tests: New file.
27816         * lib/unigbrk.in.h: Add prototype for new function.
27817         * lib/unigbrk/u8-grapheme-len.c: New file.
27818         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27819
27820         New module 'u16-grapheme-len'.
27821         * modules/unigbrk/u16-grapheme-len: New file.
27822         * modules/unigbrk/u16-grapheme-len-tests: New file.
27823         * lib/unigbrk.in.h: Add prototype for new function.
27824         * lib/unigbrk/u16-grapheme-len.c: New file.
27825         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27826
27827         New module 'u32-grapheme-len'.
27828         * modules/unigbrk/u32-grapheme-len: New file.
27829         * modules/unigbrk/u32-grapheme-len-tests: New file.
27830         * lib/unigbrk.in.h: Add prototype for new function.
27831         * lib/unigbrk/u32-grapheme-len.c: New file.
27832         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27833
27834         New module 'u8-grapheme-next'.
27835         * modules/unigbrk/u8-grapheme-next: New file.
27836         * modules/unigbrk/u8-grapheme-next-tests: New file.
27837         * lib/unigbrk.in.h: Add prototype for new function.
27838         * lib/unigbrk/u8-grapheme-next.c: New file.
27839         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27840
27841         New module 'u16-grapheme-next'.
27842         * modules/unigbrk/u16-grapheme-next: New file.
27843         * modules/unigbrk/u16-grapheme-next-tests: New file.
27844         * lib/unigbrk.in.h: Add prototype for new function.
27845         * lib/unigbrk/u16-grapheme-next.c: New file.
27846         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27847
27848         New module 'u32-grapheme-next'.
27849         * modules/unigbrk/u32-grapheme-next: New file.
27850         * modules/unigbrk/u32-grapheme-next-tests: New file.
27851         * lib/unigbrk.in.h: Add prototype for new function.
27852         * lib/unigbrk/u32-grapheme-next.c: New file.
27853         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27854
27855         New module 'u8-grapheme-prev'.
27856         * modules/unigbrk/u8-grapheme-prev: New file.
27857         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27858         * lib/unigbrk.in.h: Add prototype for new function.
27859         * lib/unigbrk/u8-grapheme-prev.c: New file.
27860         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27861
27862         New module 'u16-grapheme-prev'.
27863         * modules/unigbrk/u16-grapheme-prev: New file.
27864         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27865         * lib/unigbrk.in.h: Add prototype for new function.
27866         * lib/unigbrk/u16-grapheme-prev.c: New file.
27867         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27868
27869         New module 'u32-grapheme-prev'.
27870         * modules/unigbrk/u32-grapheme-prev: New file.
27871         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27872         * lib/unigbrk.in.h: Add prototype for new function.
27873         * lib/unigbrk/u32-grapheme-prev.c: New file.
27874         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27875
27876         New module 'u8-grapheme-breaks'.
27877         * modules/unigbrk/u8-grapheme-breaks: New file.
27878         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27879         * lib/unigbrk.in.h: Add prototype for new function.
27880         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27881         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27882
27883         New module 'u16-grapheme-breaks'.
27884         * modules/unigbrk/u16-grapheme-breaks: New file.
27885         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27886         * lib/unigbrk.in.h: Add prototype for new function.
27887         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27888         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27889
27890         New module 'u32-grapheme-breaks'.
27891         * modules/unigbrk/u32-grapheme-breaks: New file.
27892         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27893         * lib/unigbrk.in.h: Add prototype for new function.
27894         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27895         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27896
27897         New module 'ulc-grapheme-breaks'.
27898         * modules/unigbrk/ulc-grapheme-breaks: New file.
27899         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27900         * m4/locale-ar.m4: New file.
27901         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27902         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27903         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27904
27905 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27906
27907         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27908         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27909         modified how this file was generated before I initially submitted
27910         the module, but failed to regenerate it.  This meant that several
27911         of the level2 entries were wrong.
27912         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27913         Remove the division-by-2 that is folded into the table now that
27914         gbrkprop.h has been regenerated properly.  Now -1 entries are
27915         handled correctly.
27916
27917         New module 'unigbrk/uc-gbrk-prop-tests'.
27918         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27919         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27920         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27921         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27922
27923 2011-01-01  Bruno Haible  <bruno@clisp.org>
27924
27925         Avoid use of hexadecimal escapes.
27926         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27927         instead of hexadecimal escapes.
27928
27929 2011-01-01  Jim Meyering  <meyering@redhat.com>
27930
27931         maint: new rule to update copyright year ranges
27932         * Makefile (update-copyright): New rule.
27933
27934         maint: indent with TABs in Makefile
27935         * Makefile: Expand leading sequences of spaces to TABs
27936
27937         version-etc: update the copyright year it reports
27938         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27939
27940 2010-12-31  Bruno Haible  <bruno@clisp.org>
27941
27942         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27943         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27944         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27945         zero.
27946
27947 2010-12-31  Bruno Haible  <bruno@clisp.org>
27948
27949         pwrite: Work around HP-UX 11.11 bug.
27950         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27951         works and set REPLACE_PWRITE if not.
27952         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27953         function.
27954         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27955
27956 2010-12-31  Bruno Haible  <bruno@clisp.org>
27957
27958         pread: Work around HP-UX 11 bugs.
27959         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27960         and set REPLACE_PREAD if not.
27961         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27962
27963 2010-12-31  Eric Blake  <eblake@redhat.com>
27964
27965         nl_langinfo: fix YESEXPR on Irix 6.5
27966         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27967         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27968         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27969         it.
27970
27971 2010-12-31  Bruno Haible  <bruno@clisp.org>
27972
27973         iconv: Document HP-UX 11 bug.
27974         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27975
27976 2010-12-31  Bruno Haible  <bruno@clisp.org>
27977
27978         ldexpl: Fix link error on HP-UX 11.
27979         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27980         LDEXPL_LIBM, using $ISNANL_LIBM.
27981
27982 2010-12-31  Eric Blake  <eblake@redhat.com>
27983
27984         ftello: avoid compilation failure with SunStudio c89
27985         * lib/ftello.c (ftello): Use lseek, not llseek.
27986
27987         tests: avoid failing coreutils tests on cygwin
27988         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27989         (create_exe_shims_): Return 0 when skipping.
27990
27991 2010-12-31  Bruno Haible  <bruno@clisp.org>
27992
27993         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27994         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27995
27996 2010-12-31  Bruno Haible  <bruno@clisp.org>
27997
27998         waitpid: Fix link error in C++ mode.
27999         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
28000
28001 2010-12-31  Bruno Haible  <bruno@clisp.org>
28002
28003         isnan: Use GCC built-ins when possible.
28004         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
28005         __builtin_isnan.
28006         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
28007         (isnan): Define using GCC built-ins for GCC >= 4.0.
28008
28009 2010-12-31  Bruno Haible  <bruno@clisp.org>
28010
28011         isnand: Fix mistake.
28012         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
28013         __builtin_isnand.
28014
28015 2010-12-31  Bruno Haible  <bruno@clisp.org>
28016
28017         open: Avoid C++ error on HP-UX 11.
28018         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
28019
28020 2010-12-31  Bruno Haible  <bruno@clisp.org>
28021
28022         time_r: Add missing declarations on HP-UX 11.
28023         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
28024         instead of HAVE_LOCALTIME_R.
28025         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
28026         HAVE_LOCALTIME_R always.
28027         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
28028         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
28029         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
28030         HAVE_LOCALTIME_R.
28031         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
28032         * doc/posix-functions/localtime_r.texi: Likewise.
28033
28034 2010-12-29  Eric Blake  <eblake@redhat.com>
28035
28036         mountlist: tweak previous commit
28037         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
28038         Reported by Paul Eggert.
28039
28040         mountlist: fix local drive detection on cygwin
28041         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
28042         that works for cygwin.
28043
28044 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28045
28046         ftoastr, snprintf: ftoastr + snprintf module
28047         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
28048         since the snprintf module now should be good enough here.
28049         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
28050         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
28051         and gl_MODULE_INDICATOR([snprintf]), but the former enables
28052         GNULIB_SNPRINTF only for the test directory, and the latter
28053         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
28054         seems to suffice by itself.
28055
28056 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28057
28058         alloca: one step towards thread-safety
28059         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
28060         need for a static variable.  All callers changed.  This does not
28061         make the alloca replacement thread-safe, but it's one step.
28062
28063         tests: minor indenting change
28064         * tests/init.sh: Sync from coreutils housekeeping patch
28065         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
28066         to keep lines within 80 columns.
28067
28068 2010-12-28  Jim Meyering  <meyering@redhat.com>
28069
28070         regex: don't infloop on persistent failing calloc
28071         * lib/regexec.c (build_trtable): Return failure indication upon
28072         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
28073         In glibc, this was fixed for version 2.13:
28074         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
28075
28076 2010-12-28  Bruno Haible  <bruno@clisp.org>
28077             Paul Eggert <eggert@cs.ucla.edu>
28078
28079         linkat: Make implementation robust against system behaviour variations.
28080         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
28081         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
28082         way, and to -2 if it needs a generic runtime test.
28083         * lib/linkat.c (solaris_optimized_link_immediate,
28084         solaris_optimized_link_follow): New functions.
28085         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
28086         (check_same_link): Use it.
28087
28088 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
28089
28090         New module 'unigbrk/base'.
28091         * modules/unigbrk/base: New file.
28092         * lib/unigbrk.in.h: New file.
28093
28094         New module 'unigbrk/uc-gbrk-prop'.
28095         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
28096         * modules/unigbrk/uc-gbrk-prop: New file.
28097         * lib/unigbrk/gbrkprop.h: New file.
28098         * lib/unigbrk/uc-gbrk-prop.c: New file.
28099
28100         New module 'unigbrk/uc-is-grapheme-break'.
28101         * modules/unigbrk/uc-is-grapheme-break: New file.
28102         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
28103         * lib/unigbrk/uc-is-grapheme-break.c: New file.
28104         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
28105         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
28106         * tests/unigbrk/GraphemeBreakTest.txt: New file.
28107
28108         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
28109
28110 2010-12-27  Bruno Haible  <bruno@clisp.org>
28111
28112         linkat test: Avoid failure on Solaris 11 2010-11.
28113         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
28114
28115 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28116
28117         utimens: work around glibc rounding bug on more platforms
28118         * lib/utimens.c (fdutimens): Work around rounding bug even if
28119         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
28120         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
28121
28122 2010-12-27  Bruno Haible  <bruno@clisp.org>
28123
28124         select tests: Improve comments.
28125         * tests/test-select.c (do_select): Add comments.
28126
28127 2010-12-27  Bruno Haible  <bruno@clisp.org>
28128
28129         select tests: Safer way of handling timeout.
28130         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
28131         at every invocation.
28132
28133 2010-12-27  Bruno Haible  <bruno@clisp.org>
28134
28135         select tests: Use 'bool' where appropriate.
28136         * tests/test-select.c (connect_to_socket): Change argument type to
28137         'bool'.
28138
28139 2010-12-27  Bruno Haible  <bruno@clisp.org>
28140
28141         select tests: Use existing modules.
28142         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
28143         (configure.ac): Don't test for unistd.h.
28144         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
28145         declared in <unistd.h>.
28146
28147 2010-12-27  Bruno Haible  <bruno@clisp.org>
28148
28149         mbrtowc: Work around a Solaris 7 bug.
28150         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
28151         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
28152         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
28153         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
28154         MBRTOWC_NULL_ARG1_BUG.
28155         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
28156         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
28157         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
28158         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
28159
28160 2010-12-27  Jim Meyering  <meyering@redhat.com>
28161
28162         read-file.c: tweak syntax
28163         * lib/read-file.c (fread_file): Remove space after "*" in function
28164         definitions.
28165
28166 2010-12-27  Bruno Haible  <bruno@clisp.org>
28167
28168         times test: Avoid gcc warnings on OSF/1.
28169         * tests/test-times.c (main): Cast printf arguments from clock_t to
28170         'long int'.
28171
28172 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28173
28174         utimens: work around glibc rounding bug on older Linux kernels
28175         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
28176         on Linux with a glibc whose utimes might not work, then work
28177         around a longstanding glibc bug involving rounding rather than
28178         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
28179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28180
28181 2010-12-26  Bruno Haible  <bruno@clisp.org>
28182
28183         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
28184         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
28185         _GL_CXXALIAS_SYS.
28186         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28187
28188 2010-12-26  Bruno Haible  <bruno@clisp.org>
28189
28190         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
28191         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
28192         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28193         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
28194         looking for the declaration.
28195         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
28196         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
28197         problem.
28198         * doc/posix-functions/inet_pton.texi: Likewise.
28199
28200 2010-12-26  Bruno Haible  <bruno@clisp.org>
28201
28202         arpa_inet: Use the common idioms with C++ support.
28203         * lib/arpa_inet.in.h: Include c++defs.h.
28204         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
28205         support.
28206         * modules/arpa_inet (Depends-on): Add c++defs.
28207         (Makefile.am): Substitute the contents of c++defs.h.
28208         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
28209         * modules/arpa_inet-c++-tests: New file.
28210         * tests/test-arpa_inet-c++.cc: New file.
28211
28212 2010-12-25  Bruno Haible  <bruno@clisp.org>
28213
28214         Fix more C++ link errors on Solaris 8.
28215         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
28216         $(LIB_EACCESS).
28217         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
28218         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
28219         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
28220         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
28221         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
28222
28223 2010-12-25  Bruno Haible  <bruno@clisp.org>
28224
28225         printf-posix: Fix link error when a non-GCC compiler is used.
28226         * lib/stdio.in.h (printf): When not using GCC, override printf
28227         correctly.
28228         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28229
28230 2010-12-25  Bruno Haible  <bruno@clisp.org>
28231
28232         strerror_r-posix: Update doc.
28233         * doc/posix-functions/strerror_r.texi: Update doc about the return
28234         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
28235
28236 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28237
28238         utimens: simplify the logic of the previous change
28239         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
28240         This should not affect whether the test succeeds or fails.
28241
28242         utimens: configure better on hosts with NFS clock skew
28243         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
28244         uses the clock of the local host.  It might use the clock of the
28245         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
28246         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28247
28248 2010-12-25  Bruno Haible  <bruno@clisp.org>
28249
28250         ptsname test: Avoid failure on Solaris.
28251         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
28252         open a pseudo-terminal; don't use BSD-style ptys.
28253         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
28254
28255 2010-12-25  Bruno Haible  <bruno@clisp.org>
28256
28257         ptsname: Avoid ERANGE failure on some systems.
28258         * lib/ptsname.c (buffer): Increase size.
28259
28260 2010-12-25  Bruno Haible  <bruno@clisp.org>
28261
28262         rename, renameat: Avoid test failures at NFS mounted locations.
28263         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
28264         so that subsequent mkdir calls succeed.
28265
28266 2010-12-25  Bruno Haible  <bruno@clisp.org>
28267
28268         iswblank: Fix C++ link error on Solaris 8.
28269         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
28270         _GL_FUNCDECL_SYS.
28271
28272 2010-12-25  Bruno Haible  <bruno@clisp.org>
28273
28274         unistd: Fix C++ link error on Solaris 8.
28275         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
28276
28277 2010-12-25  Bruno Haible  <bruno@clisp.org>
28278
28279         readlink doc: Mention an old glibc bug.
28280         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
28281
28282 2010-12-25  Bruno Haible  <bruno@clisp.org>
28283
28284         fcntl-h: Fix for use of C++ on glibc systems.
28285         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28286         also on glibc systems in C++ mode.
28287         Reported by Gary V. Vaughan <gary@gnu.org>.
28288
28289 2010-12-25  Bruno Haible  <bruno@clisp.org>
28290
28291         roundl-ieee: Make it work on OSF/1 5.1 with cc.
28292         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
28293
28294 2010-12-25  Bruno Haible  <bruno@clisp.org>
28295
28296         truncl-ieee: Make it work on OSF/1 5.1 with cc.
28297         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
28298         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
28299         test whether truncl works according to ISO C 99 with IEC 60559.
28300         * m4/truncl-ieee.m4: New file.
28301         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
28302         m4/signbit.m4.
28303         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
28304
28305 2010-12-25  Bruno Haible  <bruno@clisp.org>
28306
28307         ceill-ieee: Make it work on OSF/1 5.1 with cc.
28308         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
28309         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
28310         test whether ceill works according to ISO C 99 with IEC 60559.
28311         * m4/ceill-ieee.m4: New file.
28312         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
28313         m4/signbit.m4.
28314         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
28315
28316 2010-12-25  Bruno Haible  <bruno@clisp.org>
28317
28318         Ensure all prerequisites of <wchar.h> are included.
28319         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
28320         before <wchar.h>.
28321         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28322         gl_MBRLEN_NUL_RETVAL): Likewise.
28323         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28324         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
28325         AC_FUNC_MBRTOWC): Likewise.
28326         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28327         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28328         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28329         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28330         Likewise.
28331         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28332         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
28333         (gl_WCHAR_H): Improve comments.
28334         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
28335
28336 2010-12-25  Bruno Haible  <bruno@clisp.org>
28337
28338         strtok_r: Fix C syntax error in autoconf macro.
28339         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
28340         characters in test program.
28341
28342 2010-12-24  Bruno Haible  <bruno@clisp.org>
28343
28344         ceil, trunc, round: Fix gcc warnings.
28345         * lib/ceil.c (MIN): Undefine before redefining.
28346         * lib/trunc.c (MIN): Likewise.
28347         * lib/round.c (MIN): Likewise.
28348         Include <math.h> first.
28349
28350 2010-12-24  Bruno Haible  <bruno@clisp.org>
28351
28352         select tests: Avoid failures on OSF/1 5.1.
28353         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
28354         failure of closing the last socket; it may fail with ECONNRESET.
28355
28356 2010-12-24  Eric Blake  <eblake@redhat.com>
28357
28358         stdint: avoid HP-UX 10.20 preprocessor bug
28359         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
28360         than #if.
28361         * tests/test-floor2.c (main): Likewise.
28362         Reported by Peter O'Gorman.
28363
28364         pipe: make obsoletion transition easier
28365         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
28366         * modules/pipe (Files): Include revived file.
28367         (Include): Drop reference, to mirror getdate's behavior.
28368
28369 2010-12-24  Bruno Haible  <bruno@clisp.org>
28370
28371         sys_socket: Hide mismatch of declarations on NonStop Kernel.
28372         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
28373         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
28374         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28375
28376 2010-12-24  Bruno Haible  <bruno@clisp.org>
28377
28378         gethostname: Ensure declaration on NonStop Kernel.
28379         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
28380         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28381
28382 2010-12-24  Bruno Haible  <bruno@clisp.org>
28383
28384         sys_select: Ensure all necessary types on NonStop Kernel.
28385         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
28386         include <sys/time.h>.
28387         * doc/posix-headers/sys_select.texi: Mention that it's missing on
28388         NonStop Kernel.
28389         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28390
28391 2010-12-24  Bruno Haible  <bruno@clisp.org>
28392
28393         sys_select: Remove unneeded include.
28394         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
28395         have <sys/select.h>.
28396
28397 2010-12-24  Bruno Haible  <bruno@clisp.org>
28398
28399         gethostname: Provide a fallback for HOST_NAME_MAX.
28400         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
28401         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
28402         instead.
28403         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28404
28405 2010-12-24  Bruno Haible  <bruno@clisp.org>
28406
28407         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
28408         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
28409         (SA_RESTART): Likewise.
28410         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28411
28412 2010-12-24  Bruno Haible  <bruno@clisp.org>
28413
28414         signal: Define NSIG.
28415         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
28416         * tests/test-signal.c (nsig): New variable.
28417         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28418
28419 2010-12-24  Bruno Haible  <bruno@clisp.org>
28420
28421         rename, renameat: Avoid test failures on OSF/1 5.1.
28422         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
28423         alternative error codes.
28424         * tests/test-renameat.c (main): Likewise.
28425
28426 2010-12-24  Bruno Haible  <bruno@clisp.org>
28427
28428         *printf: Detect large precisions bug on Solaris 10/SPARC.
28429         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
28430         by Paul Eggert.
28431         * tests/test-snprintf-posix.h (test_function): Add this test code here
28432         too.
28433         * tests/test-sprintf-posix.h (test_function): Likewise.
28434         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28435         * tests/test-vasprintf-posix.c (test_function): Likewise.
28436         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
28437         around by gnulib.
28438         * doc/posix-functions/printf.texi: Likewise.
28439         * doc/posix-functions/snprintf.texi: Likewise.
28440         * doc/posix-functions/sprintf.texi: Likewise.
28441         * doc/posix-functions/vfprintf.texi: Likewise.
28442         * doc/posix-functions/vprintf.texi: Likewise.
28443         * doc/posix-functions/vsnprintf.texi: Likewise.
28444         * doc/posix-functions/vsprintf.texi: Likewise.
28445         * doc/posix-functions/dprintf.texi: Undo last commit.
28446         * doc/posix-functions/vdprintf.texi: Likewise.
28447
28448 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28449
28450         tests: port test-fdutimensat.c to Solaris 8
28451         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
28452         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
28453         On Solaris 8, it fails with errno == ENOSYS, because there is no
28454         futimens (so it can't use the fd), and there is no lutimens (so it
28455         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
28456
28457         vsnprintf: make more consistent with snprintf; doc fixes
28458
28459         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
28460         the byte count return problem was promoted from the snprintf-posix
28461         to the snprintf module.
28462         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28463         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
28464         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
28465         * tests/test-snprintf.c (main): Check the byte count returned.
28466         * tests/test-vsnprintf.c (main): Likewise.
28467
28468 2010-12-23  Eric Blake  <eblake@redhat.com>
28469
28470         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
28471         * modules/sigpipe (License): Relax license.
28472
28473 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28474
28475         doc: document Solaris printf bug with large float precisions
28476         * doc/posix-functions/dprintf.texi (dprintf):
28477         * doc/posix-functions/fprintf.texi (fprintf):
28478         * doc/posix-functions/printf.texi (printf):
28479         * doc/posix-functions/snprintf.texi (snprintf):
28480         * doc/posix-functions/sprintf.texi (sprintf):
28481         * doc/posix-functions/vdprintf.texi (vdprintf):
28482         * doc/posix-functions/vfprintf.texi (vfprintf):
28483         * doc/posix-functions/vprintf.texi (vprintf):
28484         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28485         * doc/posix-functions/vsprintf.texi (vsprintf):
28486         Mention that these functions mishandle large floating point
28487         precisions on Solaris 10.  The same bug is also present in Solaris
28488         8, and I assume earlier.  This causes "cd gnulib-tests; make
28489         check" to fail on Solaris 8 (and I assume, later) when building
28490         the latest coreutils, in test-vasprintf-posix's call to
28491         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
28492         the wide flavors (e.g., wprintf) so this patch just updates the
28493         documentation for the narrow ones.
28494
28495         test-posixtm.c: add two tests
28496         * tests/test-posixtm.c: Add two tests, to highlight the
28497         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
28498         around this bug; this is merely to document it.
28499
28500 2010-12-22  Bruno Haible  <bruno@clisp.org>
28501
28502         getlogin_r: Work around portability problem on OSF/1.
28503         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
28504         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
28505         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28506         test for a truncated result.
28507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28508         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28509         * modules/getlogin_r (Depends-on): Add memchr.
28510         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28511
28512 2010-12-22  Bruno Haible  <bruno@clisp.org>
28513
28514         ptsname: Avoid test failure on OSF/1 5.1.
28515         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28516         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28517         (same_slave): New function.
28518         (main): Use it to compare ptsname's result with the expected file name.
28519
28520 2010-12-22  Bruno Haible  <bruno@clisp.org>
28521
28522         Port extended stdio modules to HP NonStop Kernel.
28523         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28524         macros.
28525         * lib/fbufmode.c: Update comments.
28526         * lib/fflush.c: Likewise.
28527         * lib/fpurge.c: Likewise.
28528         * lib/freadable.c: Likewise.
28529         * lib/freadahead.c: Likewise.
28530         * lib/freading.c: Likewise.
28531         * lib/freadptr.c: Likewise.
28532         * lib/freadseek.c: Likewise.
28533         * lib/fseeko.c: Likewise.
28534         * lib/fseterr.c: Likewise.
28535         * lib/fwritable.c: Likewise.
28536         * lib/fwriting.c: Likewise.
28537         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28538
28539 2010-12-22  Bruno Haible  <bruno@clisp.org>
28540
28541         ttyname_r: Work around bug on OSF/1 5.1.
28542         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28543         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28544         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28545         present.
28546         * lib/ttyname_r.c (ttyname_r): Update comments.
28547
28548 2010-12-22  Bruno Haible  <bruno@clisp.org>
28549
28550         round: Implement result sign according to IEEE 754.
28551         * lib/round.c (MIN, MINUS_ZERO): New macros.
28552         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28553         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28554         * tests/test-round-ieee.c (main): Likewise.
28555         * tests/test-roundl-ieee.c (main): Likewise.
28556
28557         trunc: Implement result sign according to IEEE 754.
28558         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28559         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28560         * tests/test-trunc2.c: Include minus-zero.h.
28561         (MINUS_ZERO): New macro.
28562         (trunc_reference): Keep in sync with lib/trunc.c.
28563         * tests/test-truncf2.c: Include minus-zero.h.
28564         (MINUS_ZERO): New macro.
28565         (truncf_reference): Keep in sync with lib/trunc.c.
28566         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28567         * tests/test-trunc-ieee.c (main): Likewise.
28568         * tests/test-truncl-ieee.c (main): Likewise.
28569
28570         ceil: Implement result sign according to IEEE 754.
28571         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28572         (FUNC): Return -0.0 for -1 < x < 0.
28573         * tests/test-ceil2.c: Include minus-zero.h.
28574         (MINUS_ZERO): New macro.
28575         (ceil_reference): Keep in sync with lib/ceil.c.
28576         * tests/test-ceilf2.c: Include minus-zero.h.
28577         (MINUS_ZERO): New macro.
28578         (ceilf_reference): Keep in sync with lib/ceil.c.
28579         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28580         * tests/test-ceil-ieee.c (main): Likewise.
28581         * tests/test-ceill-ieee.c (main): Likewise.
28582
28583         floor: Implement result sign according to IEEE 754.
28584         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28585         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28586         * tests/test-floorf2.c (floorf_reference): Likewise.
28587         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28588         * tests/test-floor-ieee.c (main): Likewise.
28589         * tests/test-floorl-ieee.c (main): Likewise.
28590
28591 2010-12-22  Bruno Haible  <bruno@clisp.org>
28592
28593         getaddrinfo: Update doc.
28594         * doc/posix-functions/gai_strerror.texi: Return type is also different
28595         on AIX and HP-UX.
28596
28597 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28598
28599         getaddrinfo, inet_ntop: Update doc for Solaris.
28600         * doc/posix-functions/gai_strerror.texi: Return type is also an
28601         issue on Solaris 9 and earlier.
28602         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28603         on Solaris 10 and earlier.
28604
28605 2010-12-21  Bruno Haible  <bruno@clisp.org>
28606
28607         New module 'roundl-ieee'.
28608         * modules/roundl-ieee: New file.
28609         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28610         test whether roundl works according to ISO C 99 with IEC 60559.
28611         * m4/roundl-ieee.m4: New file.
28612         * modules/roundl-ieee-tests: New file.
28613         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28614         * tests/test-roundl.c (main): Remove signbit tests.
28615         * modules/roundl-tests (Depends-on): Remove signbit.
28616         * doc/posix-functions/roundl.texi: Mention the new module.
28617
28618 2010-12-21  Bruno Haible  <bruno@clisp.org>
28619
28620         New module 'truncl-ieee'.
28621         * modules/truncl-ieee: New file.
28622         * modules/truncl-ieee-tests: New file.
28623         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28624         * tests/test-truncl.c (main): Remove signbit tests.
28625         * modules/truncl-tests (Depends-on): Remove signbit.
28626         * doc/posix-functions/truncl.texi: Mention the new module.
28627
28628 2010-12-21  Bruno Haible  <bruno@clisp.org>
28629
28630         New module 'ceill-ieee'.
28631         * modules/ceill-ieee: New file.
28632         * modules/ceill-ieee-tests: New file.
28633         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28634         * tests/test-ceill.c (main): Remove signbit tests.
28635         * modules/ceill-tests (Depends-on): Remove signbit.
28636         * doc/posix-functions/ceill.texi: Mention the new module.
28637
28638 2010-12-21  Bruno Haible  <bruno@clisp.org>
28639
28640         New module 'floorl-ieee'.
28641         * modules/floorl-ieee: New file.
28642         * modules/floorl-ieee-tests: New file.
28643         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28644         * tests/test-floorl.c (main): Remove signbit tests.
28645         * modules/floorl-tests (Depends-on): Remove signbit.
28646         * doc/posix-functions/floorl.texi: Mention the new module.
28647
28648 2010-12-21  Bruno Haible  <bruno@clisp.org>
28649
28650         New module 'round-ieee'.
28651         * modules/round-ieee: New file.
28652         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28653         whether round works according to ISO C 99 with IEC 60559.
28654         * m4/round-ieee.m4: New file.
28655         * modules/round-ieee-tests: New file.
28656         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28657         * tests/test-round1.c (main): Remove signbit tests.
28658         * modules/round-tests (Depends-on): Remove 'signbit'.
28659         * doc/posix-functions/round.texi: Mention the new module.
28660
28661 2010-12-21  Bruno Haible  <bruno@clisp.org>
28662
28663         New module 'trunc-ieee'.
28664         * modules/trunc-ieee: New file.
28665         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28666         whether trunc works according to ISO C 99 with IEC 60559.
28667         * m4/trunc-ieee.m4: New file.
28668         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28670         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28671         * modules/trunc-ieee-tests: New file.
28672         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28673         * tests/test-trunc1.c (main): Remove signbit tests.
28674         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28675         * doc/posix-functions/trunc.texi: Mention the new module.
28676
28677 2010-12-21  Bruno Haible  <bruno@clisp.org>
28678
28679         New module 'ceil-ieee'.
28680         * modules/ceil-ieee: New file.
28681         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28682         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28683         ISO C 99 with IEC 60559.
28684         * m4/ceil-ieee.m4: New file.
28685         * modules/ceil (Files): Add lib/ceil.c.
28686         (Depends-on): Add 'float'.
28687         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28688         * lib/math.in.h (ceil): New declaration.
28689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28690         REPLACE_CEIL.
28691         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28692         * modules/ceil-ieee-tests: New file.
28693         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28694         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28695         * doc/posix-functions/ceil.texi: Mention the new module.
28696
28697 2010-12-21  Bruno Haible  <bruno@clisp.org>
28698
28699         New module 'floor-ieee'.
28700         * modules/floor-ieee: New file.
28701         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28702         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28703         ISO C 99 with IEC 60559.
28704         * m4/floor-ieee.m4: New file.
28705         * modules/floor (Files): Add lib/floor.c.
28706         (Depends-on): Add 'float'.
28707         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28708         * lib/math.in.h (floor): New declaration.
28709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28710         REPLACE_FLOOR.
28711         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28712         * modules/floor-ieee-tests: New file.
28713         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28714         * tests/test-math-c++.cc: Check the signature of 'floor'.
28715         * doc/posix-functions/floor.texi: Mention the new module.
28716
28717 2010-12-21  Bruno Haible  <bruno@clisp.org>
28718
28719         New module 'roundf-ieee'.
28720         * modules/roundf-ieee: New file.
28721         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28722         test whether roundf works according to ISO C 99 with IEC 60559.
28723         * m4/roundf-ieee.m4: New file.
28724         * modules/roundf-ieee-tests: New file.
28725         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28726         * tests/test-roundf1.c (main): Remove signbit tests.
28727         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28728         * doc/posix-functions/roundf.texi: Mention the new module.
28729
28730 2010-12-21  Bruno Haible  <bruno@clisp.org>
28731
28732         New module 'truncf-ieee'.
28733         * modules/truncf-ieee: New file.
28734         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28735         test whether truncf works according to ISO C 99 with IEC 60559.
28736         * m4/truncf-ieee.m4: New file.
28737         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28739         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28740         * modules/truncf-ieee-tests: New file.
28741         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28742         * tests/test-truncf1.c (main): Remove signbit tests.
28743         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28744         * doc/posix-functions/truncf.texi: Mention the new module.
28745
28746 2010-12-21  Bruno Haible  <bruno@clisp.org>
28747
28748         New module 'ceilf-ieee'.
28749         * modules/ceilf-ieee: New file.
28750         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28751         test whether ceilf works according to ISO C 99 with IEC 60559.
28752         * m4/ceilf-ieee.m4: New file.
28753         * modules/ceilf-ieee-tests: New file.
28754         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28755         * tests/test-ceilf1.c (main): Remove signbit tests.
28756         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28757         * doc/posix-functions/ceilf.texi: Mention the new module.
28758
28759 2010-12-21  Bruno Haible  <bruno@clisp.org>
28760
28761         New module 'floorf-ieee'.
28762         * modules/floorf-ieee: New file.
28763         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28764         test whether floorf works according to ISO C 99 with IEC 60559.
28765         * m4/floorf-ieee.m4: New file.
28766         * modules/floorf-ieee-tests: New file.
28767         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28768         * tests/test-floorf1.c (main): Remove signbit tests.
28769         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28770         * doc/posix-functions/floorf.texi: Mention the new module.
28771
28772 2010-12-21  Bruno Haible  <bruno@clisp.org>
28773
28774         Support for minus zero in autoconf macros.
28775         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28776         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28777         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28778         * tests/minus-zero.h: Update comments.
28779
28780 2010-12-21  Bruno Haible  <bruno@clisp.org>
28781
28782         Tests for module 'ceil'.
28783         * modules/ceil-tests: New file.
28784         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28785         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28786
28787 2010-12-21  Bruno Haible  <bruno@clisp.org>
28788
28789         Tests for module 'floor'.
28790         * modules/floor-tests: New file.
28791         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28792         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28793
28794 2010-12-21  Bruno Haible  <bruno@clisp.org>
28795
28796         math: Fix indentation.
28797         * lib/math.in.h (floorf): Fix indentation.
28798
28799 2010-12-21  Bruno Haible  <bruno@clisp.org>
28800
28801         Fix cross-compilation guesses on Solaris.
28802         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28803         not match "solaris2.10".
28804         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28805         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28806         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28807
28808 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28809
28810         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28811         This fixes a problem observed with the latest coreutils snapshot
28812         that caused a test to fail on Solaris 8.  src/csplit.c's call
28813         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28814         earlier, instead of returning the number of bytes that would have
28815         been generated; this causes csplit to incorrectly report memory
28816         exhaustion.
28817         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28818         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28819         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28820         comments to match.
28821         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28822         Fix typo in matching older versions of Solaris: "solaris2.10"
28823         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28824         only for guessing while cross-compiling.
28825         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28826
28827 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28828
28829         ftoastr: fix comment again
28830         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28831         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28832         Also, simplify example a bit by using flags = 0.
28833
28834 2010-12-20  Bruno Haible  <bruno@clisp.org>
28835
28836         round*, trunc*: Update documentation regarding glibc.
28837         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28838         * doc/posix-functions/round.texi: Likewise.
28839         * doc/posix-functions/roundl.texi: Likewise.
28840         * doc/posix-functions/truncf.texi: Likewise.
28841         * doc/posix-functions/trunc.texi: Likewise.
28842         * doc/posix-functions/truncl.texi: Likewise.
28843
28844 2010-12-20  Bruno Haible  <bruno@clisp.org>
28845
28846         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28847         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28848         * doc/posix-functions/round.texi: Likewise.
28849         * doc/posix-functions/roundl.texi: Likewise.
28850
28851 2010-12-20  Bruno Haible  <bruno@clisp.org>
28852
28853         ttyname_r: Add missing declaration on HP-UX 11.
28854         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28855         HAVE_TTYNAME_R.
28856         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28857         declared. Set HAVE_TTYNAME_R always.
28858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28859         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28860         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28861         HAVE_TTYNAME_R.
28862         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28863
28864 2010-12-20  Bruno Haible  <bruno@clisp.org>
28865
28866         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28867         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28868         * doc/posix-functions/getlogin_r.texi: Likewise.
28869         * tests/test-getlogin.c: Include <errno.h>.
28870         (main): Avoid test failure on HP-UX 11.11.
28871         * tests/test-getlogin_r.c (main): Likewise.
28872
28873 2010-12-20  Bruno Haible  <bruno@clisp.org>
28874
28875         getlogin_r: Add missing declaration on HP-UX 11.
28876         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28877         declared also when it exists as a function.
28878         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28879
28880 2010-12-20  Bruno Haible  <bruno@clisp.org>
28881
28882         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28883         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28884         through wcrtomb.
28885
28886 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28887
28888         ftoastr: fix comment
28889         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28890         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28891
28892 2010-12-19  Bruno Haible  <bruno@clisp.org>
28893
28894         isnan: Ensure it is a macro.
28895         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28896         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28897         Solaris.
28898
28899 2010-12-19  Bruno Haible  <bruno@clisp.org>
28900
28901         ldexpl test: Fix link error on OSF/1 5.1.
28902         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28903
28904 2010-12-19  Bruno Haible  <bruno@clisp.org>
28905
28906         wctype: Make it work in C++ mode on OSF/1 5.1.
28907         * lib/wctype.in.h (iswblank): Declare but not define here.
28908         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28909         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28910         * modules/wctype (Files): Add lib/iswblank.c.
28911
28912 2010-12-19  Bruno Haible  <bruno@clisp.org>
28913
28914         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28915         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28916         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28917
28918 2010-12-19  Bruno Haible  <bruno@clisp.org>
28919
28920         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28921         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28922         _POSIX_PII_SOCKET.
28923         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28924         * doc/posix-functions/recvfrom.texi: Likewise.
28925         * doc/posix-functions/send.texi: Likewise.
28926         * doc/posix-functions/sendto.texi: Likewise.
28927
28928 2010-12-19  Bruno Haible  <bruno@clisp.org>
28929
28930         tcgetsid: Add missing declaration on OSF/1 5.1.
28931         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28932         HAVE_TCGETSID.
28933         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28934         Don't set HAVE_TCGETSID.
28935         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28936         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28937         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28938         HAVE_TCGETSID.
28939         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28940
28941 2010-12-19  Bruno Haible  <bruno@clisp.org>
28942
28943         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28944         * lib/stdio.in.h: During the include_next statement, let recursive
28945         includes of this file include only the system header file.
28946
28947 2010-12-19  Bruno Haible  <bruno@clisp.org>
28948
28949         iconv_open: Fix regression from 2010-12-04.
28950         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28951         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28952
28953 2010-12-19  Bruno Haible  <bruno@clisp.org>
28954
28955         stdbool test: Avoid a gcc warning.
28956         * tests/test-stdbool.c (main): Fail if e1 is false.
28957         Reported by Jim Meyering.
28958
28959 2010-12-19  Jim Meyering  <meyering@redhat.com>
28960
28961         setenv: restore to working order
28962         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28963         mistakenly removed.
28964         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28965         HAVE_SETENV.
28966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28967         HAVE_SETENV.
28968
28969 2010-12-19  Bruno Haible  <bruno@clisp.org>
28970
28971         Document some different function declarations on OSF/1 5.1.
28972         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28973         * doc/posix-functions/inet_ntop.texi: Likewise.
28974         * doc/posix-functions/gethostname.texi: Likewise.
28975         * lib/unistd.in.h (gethostname): Update comment.
28976
28977 2010-12-19  Bruno Haible  <bruno@clisp.org>
28978
28979         doc: Mention vasprintf-posix module.
28980         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28981         the 'vasprintf-posix' module.
28982         * doc/glibc-functions/vasprintf.texi: Likewise.
28983
28984 2010-12-19  Bruno Haible  <bruno@clisp.org>
28985
28986         unsetenv: Add missing declaration on OSF/1 5.1.
28987         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28988         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28989         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28991         not HAVE_UNSETENV.
28992         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28993         HAVE_UNSETENV.
28994         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28995
28996 2010-12-19  Bruno Haible  <bruno@clisp.org>
28997
28998         setenv: Add missing declaration on OSF/1 5.1.
28999         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
29000         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
29001         declared. Don't set HAVE_SETENV.
29002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
29003         not HAVE_SETENV.
29004         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
29005         HAVE_SETENV.
29006         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
29007
29008 2010-12-19  Bruno Haible  <bruno@clisp.org>
29009
29010         nl_langinfo tests: Avoid gcc warning.
29011         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
29012
29013 2010-12-19  Bruno Haible  <bruno@clisp.org>
29014
29015         mknod: Avoid error in C++ mode on OSF/1 with GCC.
29016         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
29017         _GL_CXXALIAS_SYS.
29018
29019 2010-12-19  Bruno Haible  <bruno@clisp.org>
29020
29021         stdbool: Relax test.
29022         * tests/test-stdbool.c (e): Don't require that casts from a variable's
29023         address to 'bool' work in static initializer, for compilers other than
29024         GCC.
29025
29026 2010-12-19  Bruno Haible  <bruno@clisp.org>
29027
29028         ftello: Add missing declaration on OSF/1 5.1.
29029         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
29030         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
29031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
29032         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
29033         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
29034
29035 2010-12-19  Bruno Haible  <bruno@clisp.org>
29036
29037         fseeko: Add missing declaration on OSF/1 5.1.
29038         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
29039         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
29040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
29041         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
29042         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
29043
29044 2010-12-19  Bruno Haible  <bruno@clisp.org>
29045
29046         fchdir: Add missing declaration on OSF/1 5.1.
29047         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
29048         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
29049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
29050         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
29051         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
29052
29053 2010-12-19  Bruno Haible  <bruno@clisp.org>
29054
29055         relocatable-prog-wrapper: Separate from relocatable-prog.
29056         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
29057         uninstall-relocwrapper rule here.
29058         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
29059         Reported by Ian Beckwith <ianb@erislabs.net>.
29060
29061 2010-12-19  Bruno Haible  <bruno@clisp.org>
29062
29063         unistr/u8-mbsnlen: Add missing dependency.
29064         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
29065         Reported by Ian Beckwith <ianb@erislabs.net>.
29066
29067 2010-12-19  Bruno Haible  <bruno@clisp.org>
29068
29069         iconv: Make it possible again to use this module without 'iconv-h'.
29070         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
29071         if it is not defined.
29072         Reported by Ian Beckwith <ianb@erislabs.net>.
29073
29074 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29075
29076         acl: port to Solaris 8 when copying from tmpfs to ufs
29077         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
29078         error number.  Problem observed on Solaris 8 with latest
29079         coreutils, with "mv A B", where A is on a tmpfs file system and B
29080         is on a ufs file system.  This caused coreutils' mv/part-symlink
29081         test to fail.
29082
29083         tests: set fail=0 at start
29084         * tests/init.sh (setup_): Move fail=0 initialization here ...
29085         (mktempd_): ... from here, so that tests can rely on fail being
29086         set to 0 initially.  This fixes a problem in coreutils; see:
29087         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
29088
29089 2010-12-18  Bruno Haible  <bruno@clisp.org>
29090
29091         memmem-simple: Stylistic changes.
29092         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
29093         Fix preprocessor directive indentation.
29094
29095 2010-12-15  Pádraig Brady <P@draigBrady.com>
29096
29097         memmem, memmem-simple: reorganize and expand empty needle check
29098         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
29099         functional checks to memmem-simple so that one has a fully functional
29100         memmem by using just this module.
29101         Restrict the performance only check to the memmem module.
29102         Also expand the empty needle check to ensure the correct
29103         pointer is returned, not just a non NULL pointer.
29104         * doc/glibc-functions/memmem.texi: Rearrange the portability
29105         documentation to correlate with the rearranged checks.
29106         Clarify exactly how the memmem and memmem-simple modules
29107         relate to each other.
29108
29109 2010-12-15  Pádraig Brady <P@draigBrady.com>
29110             Bruno Haible  <bruno@clisp.org>
29111
29112         Improve cross-compilation guesses for uClibc.
29113         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
29114         that uClibc does not have the glibc bug.
29115         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
29116         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
29117
29118 2010-12-14  Eric Blake  <eblake@redhat.com>
29119
29120         configmake: provide fallbacks for oldest supported autotools
29121         * m4/configmake.m4: New file.
29122         * modules/configmake (Files): Ship it.
29123         (configure.ac): Use it to guarantee fallbacks.
29124
29125 2010-12-13  Pádraig Brady <P@draigBrady.com>
29126
29127         read-file: Improve handling of large files
29128         * lib/read-file.c (fread_file): Minimize realloc()s
29129         for regular files, and better manage sizes around SIZE_MAX.
29130
29131 2010-12-13  Eric Blake  <eblake@redhat.com>
29132
29133         cloexec, fcntl: relax license
29134         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
29135         consent from all contributors.
29136         * modules/fcntl (License): Likewise.
29137
29138 2010-12-10  Bruno Haible  <bruno@clisp.org>
29139
29140         Tests for module 'pipe-posix'.
29141         * modules/pipe-posix-tests: New file.
29142         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
29143
29144 2010-12-10  Bruno Haible  <bruno@clisp.org>
29145
29146         pipe-posix: Make it work in C++ mode.
29147         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
29148         (pipe): Use common idiom, not a macro definition.
29149         * lib/pipe.c: New file.
29150         * m4/pipe.m4: New file.
29151         * modules/pipe-posix (Description): Enhance.
29152         (Files): Add lib/pipe.c, m4/pipe.m4.
29153         (configure.ac): Invoke gl_FUNC_PIPE.
29154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
29155         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
29156         * tests/test-unistd-c++.cc: Check the signature of pipe.
29157
29158 2010-12-10  Bruno Haible  <bruno@clisp.org>
29159
29160         Rename module 'pipe' to 'spawn-pipe'.
29161         * modules/spawn-pipe: New file, renamed from modules/pipe.
29162         (Files, configure.ac, Makefile.am): Update.
29163         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
29164         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
29165         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
29166         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
29167         "spawn-pipe.h" instead of "pipe.h".
29168         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
29169         to gl_SPAWN_PIPE.
29170         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
29171         (Files, Makefile.am): Update.
29172         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
29173         Update.
29174         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
29175         Include "spawn-pipe.h" instead of "pipe.h".
29176         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
29177         * lib/javacomp.c: Likewise.
29178         * lib/javaversion.c: Likewise.
29179         * lib/pipe-filter-gi.c: Likewise.
29180         * lib/pipe-filter-ii.c: Likewise.
29181         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
29182         * modules/javacomp (Depends-on): Likewise.
29183         * modules/javaversion (Depends-on): Likewise.
29184         * modules/pipe-filter-gi (Depends-on): Likewise.
29185         * modules/pipe-filter-ii (Depends-on): Likewise.
29186         * MODULES.html.sh (Executing programs): Update.
29187         * NEWS: Mention the change.
29188
29189 2010-12-10  Eric Blake  <eblake@redhat.com>
29190
29191         pipe-posix: new module
29192         * modules/pipe-posix: New file.
29193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
29194         (gl_UNISTD_H): Check for declaration.
29195         * modules/unistd (Makefile.am): Substitute it.
29196         * lib/unistd.in.h (pipe): Provide it for mingw.
29197         * doc/posix-functions/pipe.texi (pipe): Update documentation.
29198         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
29199
29200 2010-12-07  Bruno Haible  <bruno@clisp.org>
29201
29202         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
29203         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
29204         u8_strcmp_gnu.
29205         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
29206
29207 2010-12-06  Bruno Haible  <bruno@clisp.org>
29208
29209         Update internal documentation.
29210         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
29211
29212 2010-12-04  Bruno Haible  <bruno@clisp.org>
29213
29214         Put more information about failed tests into the test return codes.
29215         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
29216         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
29217         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
29218         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29219         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
29220         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29221         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29222         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29223         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
29224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29225         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
29226         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29227         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
29228         * m4/stdint.m4 (gl_STDINT_H): Likewise.
29229         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
29230         returns a bit mask.
29231         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
29232         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
29233         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
29234         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
29235         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29236         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29237         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29238         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29239         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29240         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29241         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29242         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29243         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29244         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29245         * m4/link.m4 (gl_FUNC_LINK): Likewise.
29246         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29247         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
29248         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
29249         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29250         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
29251         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29252         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29253         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
29254         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
29255         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29256         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29257         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
29258         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29259         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29260         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
29261         gl_PRINTF_PRECISION): Likewise.
29262         * m4/regex.m4 (gl_REGEX): Likewise.
29263         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29264         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
29265         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
29266         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29267         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29268         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29269         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
29270         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
29271         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29272         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29273         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29274         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29275         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29276         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
29277         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29278         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29279         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
29280         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29281         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29282         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
29283         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
29284         enumerated value.
29285         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
29286
29287 2010-12-04  Bruno Haible  <bruno@clisp.org>
29288
29289         Update for Solaris 11 2010-11.
29290         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
29291         Express, released in November 2010.
29292
29293 2010-12-04  Bruno Haible  <bruno@clisp.org>
29294
29295         nproc: Relax license.
29296         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
29297         and Paul Eggert.
29298         Requested by Ludovic Courtès <ludo@gnu.org>.
29299
29300 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29301
29302         utimecmp: fine-grained src to nearby coarse-grained dest
29303
29304         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
29305         and the source is on a file system with higher-resolution time
29306         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
29307         not work, and the time stamps are close together, the algorithm to
29308         determine the exact resolution from the read-back mtime was buggy:
29309         it had a "!=" where it should have had an "==".  This bug has been
29310         in the code ever since it was introduced to gnulib.
29311         Problem reported by Dan Jacobson in
29312         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
29313
29314 2010-11-30  Bruno Haible  <bruno@clisp.org>
29315
29316         strerror_r-posix: Fix autoconf test.
29317         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
29318
29319 2010-11-28  Bruno Haible  <bruno@clisp.org>
29320             Paul Eggert  <eggert@cs.ucla.edu>
29321
29322         Tests for module 'getdomainname'.
29323         * modules/getdomainname-tests: New file.
29324         * tests/test-getdomainname.c: New file, based on
29325         tests/test-gethostname.c.
29326
29327 2010-11-28  Bruno Haible  <bruno@clisp.org>
29328             Paul Eggert  <eggert@cs.ucla.edu>
29329
29330         getdomainname: Use the system function when possible.
29331         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
29332         (getdomainname): Replace if needed. Provide the declaration if it is
29333         missing. Don't use _GL_CXXALIAS_SYS_CAST.
29334         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
29335         (getdomainname): When the system has getdomainname, call the system
29336         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
29337         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29338         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
29339         found in libnsl. Look for the declaration also in <netdb.h>. Replace
29340         the function if its second argument is of type 'int' or if it is found
29341         in libnsl.
29342         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
29343         <sys/systeminfo.h> and sysinfo().
29344         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
29345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29346         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
29347         HAVE_GETDOMAINNAME.
29348         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
29349         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
29350         * doc/glibc-functions/getdomainname.texi: Document the problems with
29351         the getdomainname declaration.
29352
29353 2010-11-28  Bruno Haible  <bruno@clisp.org>
29354
29355         sys_socket: Ensure ss_family field on AIX.
29356         * lib/sys_socket.in.h (ss_family): New macro definition.
29357         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
29358         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
29359         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29360         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29361         * modules/sys_socket (Makefile.am): Substitute
29362         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29363         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
29364
29365 2010-11-27  Bruno Haible  <bruno@clisp.org>
29366
29367         readline: Improve configure output.
29368         * m4/readline.m4 (gl_FUNC_READLINE): Make the
29369         "checking for readline..." result understandable.
29370
29371 2010-11-27  Bruno Haible  <bruno@clisp.org>
29372
29373         *printf-posix: Detect a bug on Solaris 10/x86.
29374         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
29375         for floating-point output.
29376         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
29377         directive.
29378         * tests/test-snprintf-posix.h (test_function): Likewise.
29379         * tests/test-sprintf-posix.h (test_function): Likewise.
29380         * tests/test-vasprintf-posix.c (test_function): Likewise.
29381         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
29382         * doc/posix-functions/printf.texi: Likewise.
29383         * doc/posix-functions/snprintf.texi: Likewise.
29384         * doc/posix-functions/sprintf.texi: Likewise.
29385         * doc/posix-functions/vfprintf.texi: Likewise.
29386         * doc/posix-functions/vprintf.texi: Likewise.
29387         * doc/posix-functions/vsnprintf.texi: Likewise.
29388         * doc/posix-functions/vsprintf.texi: Likewise.
29389         * doc/glibc-functions/obstack_printf.texi: Likewise.
29390         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29391
29392 2010-11-27  Bruno Haible  <bruno@clisp.org>
29393
29394         Fix link error when module libunistring-optional is in use.
29395         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
29396         * modules/striconveha-tests (Makefile.am): Likewise.
29397
29398 2010-11-27  Bruno Haible  <bruno@clisp.org>
29399
29400         regex: Mention link dependencies.
29401         * modules/regex (Link): New section.
29402         * modules/rpmatch (Link): Likewise.
29403         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
29404
29405 2010-11-27  Bruno Haible  <bruno@clisp.org>
29406
29407         ftoastr: Fix compilation error on Solaris.
29408         * lib/ftoastr.c: Include <config.h>.
29409
29410 2010-11-27  Bruno Haible  <bruno@clisp.org>
29411
29412         getloadavg: Update documentation.
29413         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
29414
29415 2010-11-27  Bruno Haible  <bruno@clisp.org>
29416
29417         sys_socket: Fix test whether the functions are declared.
29418         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
29419         not <sys/select.h>.
29420
29421 2010-11-27  Bruno Haible  <bruno@clisp.org>
29422
29423         getpass: Make sure to get system declaration on some platforms.
29424         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
29425         gl_USE_SYSTEM_EXTENSIONS.
29426         * modules/getpass (Depends-on): Add extensions.
29427
29428 2010-11-26  Bruno Haible  <bruno@clisp.org>
29429
29430         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
29431         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
29432         'iconv' module is present.
29433         (ICONV_CONST): New macro.
29434         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
29435         ICONV_CONST.
29436         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
29437         set ICONV_CONST.
29438         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
29439         here.
29440         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
29441         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
29442         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
29443         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
29444         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
29445         present.
29446
29447 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29448
29449         ftoastr: comment fix
29450         * lib/ftoastr.c: "little" -> "little or no" in comment
29451
29452 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
29453
29454         stdint: port to GCC 4.3 + OSX + Octave
29455         On this platform, stdint.h is buggy and defines int64_t to long
29456         long int.  The replacement defined it to long int, causing
29457         problems with C++ style name mangling.  Instead, trust the system
29458         definition if INT64_MAX is defined, and likewise for the unsigned
29459         variant.   Problem reported by Jarno Rajahalme in
29460         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
29461         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
29462         and don't mess with int64_t and INT64_MAX in this case.
29463         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
29464
29465 2010-11-24  Bruno Haible  <bruno@clisp.org>
29466
29467         doc: Corrections regarding MacOS X 10.4 and 10.5.
29468         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
29469         MacOS X.
29470         Reported by Simon Josefsson.
29471
29472 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
29473
29474         Uninstall ".bin" files installed by relocwrapper.
29475         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
29476         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
29477         unless it is already there.
29478
29479 2010-11-21  Bruno Haible  <bruno@clisp.org>
29480
29481         Update for NetBSD 5.0.
29482         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29483         NetBSD; the test fails on NetBSD 5.0.
29484         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29485         about NetBSD.
29486
29487 2010-11-21  Bruno Haible  <bruno@clisp.org>
29488
29489         Update for HP-UX 11.23 and HP-UX 11.31.
29490         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
29491         HP-UX.
29492
29493 2010-11-21  Bruno Haible  <bruno@clisp.org>
29494
29495         Update for MacOS X 10.5.
29496         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29497         MacOS X; the test fails on MacOS X 10.5.8.
29498         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29499         about MacOS X.
29500
29501 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
29502
29503         bootstrap: add bootstrap_sync option.
29504         See discussion at
29505         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29506         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29507         * build-aux/bootstrap: Accept --bootstrap-sync to update
29508         bootstrap if it is not identical to the local gnulib's
29509         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29510         enable this by default.  Accept --no-bootstrap-sync to disable
29511         it.
29512
29513 2010-11-20  Bruno Haible  <bruno@clisp.org>
29514
29515         Ensure that <features.h> is included before __GLIBC__ is tested.
29516         * lib/printf-parse.h: Include <features.h>.
29517         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29518         Reported by Mike Frysinger <vapier@gentoo.org>.
29519
29520         Ensure that <features.h> is included before __GLIBC__ is tested.
29521         * lib/wchar.in.h: Include <features.h>.
29522         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29523         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29524         Reported by Mike Frysinger <vapier@gentoo.org>.
29525
29526         Ensure that <features.h> is included before __GLIBC__ is tested.
29527         * lib/arpa_inet.in.h: Include <features.h>.
29528         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29529         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29530         Reported by Mike Frysinger <vapier@gentoo.org>.
29531
29532         Ensure that <features.h> is included before __GLIBC__ is tested.
29533         * build-aux/link-warning.h: Include <features.h>.
29534         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29535         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29536         Reported by Mike Frysinger <vapier@gentoo.org>.
29537
29538         Ensure that <features.h> is included before __GLIBC__ is tested.
29539         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29540         Reported by Mike Frysinger <vapier@gentoo.org>.
29541
29542 2010-11-20  Bruno Haible  <bruno@clisp.org>
29543
29544         memmem: Fix autoconf test.
29545         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29546
29547 2010-11-20  Bruno Haible  <bruno@clisp.org>
29548
29549         Port to uClibc.
29550         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29551         * lib/fcntl.in.h: Likewise.
29552         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29553         * lib/mbrtowc.c (mbrtowc): Likewise.
29554         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29555         * lib/strerror_r.c: Likewise.
29556         * lib/unistr/u8-strnlen.c: Likewise.
29557         * lib/vasnprintf.c (decimal_point_char): Likewise.
29558         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29559         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29560         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29561         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29562         * tests/test-sigaction.c (handler, main): Likewise.
29563         * lib/freading.h: Treat uClibc like a non-glibc platform.
29564         * lib/freading.c: Likewise.
29565         * lib/gettext.h: Likewise.
29566         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29567         Likewise.
29568         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29569         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29570         * lib/propername.c (proper_name_utf8): Likewise.
29571         * lib/spawn.in.h: Likewise.
29572         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29573         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29574         mem_cd_iconveh_internal): Likewise.
29575         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29576         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29577         strstr, strcasestr): Likewise.
29578         * lib/unicodeio.c (unicode_to_mb): Likewise.
29579         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29580         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29581         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29582         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29583         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29584         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29585         * lib/unistr/u8-stpncpy.c: Likewise.
29586         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29587         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29588         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29589         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29590         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29591         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29592         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29593         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29594         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29595         Likewise.
29596         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29597         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29598         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29599         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29600         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29601         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29602         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29603         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29604         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29605         * tests/test-striconveha.c (main): Likewise.
29606         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29607         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29608         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29609         * doc/posix-functions/getline.texi: Likewise.
29610         Reported by Mike Frysinger <vapier@gentoo.org>.
29611
29612 2010-11-20  Bruno Haible  <bruno@clisp.org>
29613
29614         nproc: Fix condition.
29615         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29616         HAVE_PTHREAD_AFFINITY_NP.
29617
29618 2010-11-20  Bruno Haible  <bruno@clisp.org>
29619
29620         Fix a comment.
29621         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29622
29623 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29624
29625         ftoastr: don't assume snprintf
29626         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29627         Implement a subset of snprintf here, by using sprintf safely.
29628         * modules/ftoastr (Depends-on): Remove snprintf.
29629
29630 2010-11-19  Jim Meyering  <meyering@redhat.com>
29631
29632         test-rename.h: fix compilation failure
29633         * tests/test-rename.h (test_rename): Add omitted "}".
29634
29635 2010-11-17  Jim Meyering  <meyering@redhat.com>
29636
29637         maint.mk: add a URL discussing the no-@acronym policy
29638         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29639
29640 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29641
29642         ftoastr: depend on snprintf, improve comments
29643         * lib/ftoastr.c: Also mention Loitsch's draft.
29644         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29645         needed in the current implementation, but it might simplify
29646         speeding up the code later.
29647         * modules/ftoastr: Depend on snprintf; this improves portability.
29648         Suggested by Bruno Haible in the same email.
29649
29650         ftoastr: port to hosts lacking strtof and strtold
29651         Problem reported by Bruno Haible in
29652         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29653         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29654         environment and strtold (and presumably strtof) are not available.
29655         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29656         (configure.ac): Require gl_C99_STRTOLD.
29657
29658 2010-11-18  Bruno Haible  <bruno@clisp.org>
29659
29660         c-strtold: Avoid link error on AIX 7.
29661         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29662         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29663         (gl_C_STRTOLD): Test whether strtold_l exists.
29664         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29665
29666 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29667
29668         intprops: new macro INT_BITS_STRLEN_BOUND
29669         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29670         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29671         not exposed.  Also, it uses a slightly tighter bound than before;
29672         though this makes no practical difference, we might as well be as
29673         tight as we easily can.
29674
29675         ftoastr: new module, for lossless conversion of floats to short strings
29676         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29677         * modules/ftoastr: New files.
29678
29679 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29680
29681         bootstrap: port to Solaris sed
29682         * build-aux/bootstrap (get_version): Port to Solaris sed.
29683         See Ralf Wildenhues's note in
29684         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29685
29686 2010-11-14  Jim Meyering  <meyering@redhat.com>
29687
29688         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29689         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29690         and move definition closer to sole use.
29691
29692 2010-11-13  Jim Meyering  <meyering@redhat.com>
29693
29694         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29695         Now we require at least autoconf-2.59, which means the work-around
29696         is no longer needed.
29697         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29698         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29699         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29700         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29701         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29702
29703 2010-11-13  Bruno Haible  <bruno@clisp.org>
29704
29705         rename, renameat: Avoid test failures at NFS mounted locations.
29706         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29707         functions.
29708         (test_rename): Use assert_nonexistent.
29709         * tests/test-rename.c: Include <dirent.h>.
29710         * tests/test-renameat.c: Likewise.
29711         Reported by Gary V. Vaughan <gary@gnu.org>.
29712
29713         rename, renameat: Document Linux bug with NFS
29714         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29715         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29716         * doc/posix-functions/renameat.texi: Likewise.
29717         Suggested by Eric Blake.
29718
29719 2010-11-13  Bruno Haible  <bruno@clisp.org>
29720
29721         rename test: Add comments.
29722         * tests/test-rename.h (test_rename): Add structure and comments.
29723
29724 2010-11-13  Eric Blake  <eblake@redhat.com>
29725
29726         maintainer-makefile: cover a few more files
29727         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29728         scripts generated within C files, for libvirt.
29729
29730 2010-11-13  Bruno Haible  <bruno@clisp.org>
29731
29732         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29733         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29734         character, return the number of bytes that belong together, not always
29735         1.
29736         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29737         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29738         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29739         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29740         number of bytes of an invalid character.
29741         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29742         (main): Invoke it.
29743         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29744         results.
29745         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29746         malformed byte sequences.
29747         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29748         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29749         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29750         Reported by Ben Pfaff and Paolo Bonzini.
29751
29752 2010-11-13  Bruno Haible  <bruno@clisp.org>
29753
29754         openat: Work around glibc bug with fchownat() and empty file names.
29755         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29756         (gl_FUNC_FCHOWNAT): Invoke it.
29757         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29758         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29759         Reported by Gary V. Vaughan <gary@gnu.org>.
29760
29761 2010-11-13  Bruno Haible  <bruno@clisp.org>
29762
29763         openat: Ensure autoconf macro ordering.
29764         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29765         gl_USE_SYSTEM_EXTENSIONS.
29766         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29767
29768 2010-11-13  Bruno Haible  <bruno@clisp.org>
29769
29770         Update comments.
29771         * lib/unistr/u8-check.c: Update file name in comments.
29772         * lib/unistr/u8-mblen.c: Likewise.
29773         * lib/unistr/u8-prev.c: Likewise.
29774         * lib/unistr/u8-strmblen.c: Likewise.
29775         * lib/unistr/u8-strmbtouc.c: Likewise.
29776
29777 2010-11-13  Jim Meyering  <meyering@redhat.com>
29778
29779         tests: avoid test failure on Solaris 10 due to lack of PATH export
29780         * tests/test-update-copyright.sh: Don't forget to export PATH.
29781
29782         init.sh: ensure that IFS is defined, just in case...
29783         * tests/init.sh (setup_): Ensure that IFS is defined,
29784         so that saving and restoring it works as expected.  This
29785         appears to be useful at least for an old version of dash
29786         from a long time ago (RH 6).  See here for details:
29787         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29788
29789         maint.mk: tighten "test a == b" check
29790         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29791         test to files that contain something like #!/bin/sh.
29792         Without this, coreutils would get two false positives in
29793         the comments of C source files.
29794
29795 2010-11-12  Eric Blake  <eblake@redhat.com>
29796
29797         bootstrap: fix typo in previous attempt
29798         * build-aux/bootstrap (buildreq): Correct the grouping.
29799         Reported by Paul Eggert.
29800
29801         maintainer-makefile: prohibit test x == x
29802         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29803         Based on a report by Matthias Bolte.
29804
29805         bootstrap: allow FreeBSD gzip
29806         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29807         which has no '.' and goes to stderr.
29808         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29809         Reported by Matthias Bolte.
29810
29811         maintainer-makefile: check for i18n setup
29812         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29813         will likely work.
29814
29815 2010-11-12  Bruno Haible  <bruno@clisp.org>
29816
29817         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29818         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29819         * lib/nanosleep.c (nanosleep): Likewise.
29820
29821 2010-11-11  Bruno Haible  <bruno@clisp.org>
29822
29823         fcntl-h: Fix for use of C++ on glibc systems.
29824         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29825         also on glibc systems in C++ mode.
29826         Reported by Gary V. Vaughan <gary@gnu.org>.
29827
29828 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29829
29830         mknod: avoid false failure with dash
29831         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29832
29833 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29834
29835         unlink: Fix "is it should" typo in diagnostic.
29836         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29837         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29838
29839 2010-11-11  Bruno Haible  <bruno@clisp.org>
29840
29841         Tests for module 'strerror_r-posix'.
29842         * modules/strerror_r-posix-tests: New file.
29843         * tests/test-strerror_r.c: New file.
29844         * tests/test-string-c++.cc: Check the signature of strerror_r.
29845
29846         New module 'strerror_r-posix'.
29847         * lib/string.in.h (strerror_r): New declaration.
29848         * lib/strerror_r.c: New file.
29849         * m4/strerror_r.m4: New file.
29850         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29851         of strerror_r.
29852         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29853         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29854         * modules/strerror_r-posix: New file.
29855         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29856         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29857         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29858         portability problems.
29859
29860 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29861
29862         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29863         line is also considered for output. Quoted function name in shell
29864         command, so temporary files for functions like MyClass::operator()
29865         are removed correctly without errors.
29866
29867 2010-11-09  Bruno Haible  <bruno@clisp.org>
29868
29869         * doc/posix-functions/strerror.texi: List more failing platforms.
29870
29871         * doc/posix-functions/strerror.texi: Add a comment.
29872
29873 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29874
29875         fdopendir: fix bug on MacOS X when low on file descriptors
29876
29877         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29878         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29879         All callers changed.
29880         (fdopendir): Invoke save_cwd at the top level, not after using
29881         multiple dup() calls to use up file descriptors.  Then retry
29882         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29883         less than the maximum number of open file descriptors, because
29884         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29885         on Mac OS X 10.6.4 for tar 1.24
29886         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29887         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29888         and for tar 1.25
29889         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29890
29891 2010-11-07  Bruno Haible  <bruno@clisp.org>
29892
29893         vasnprintf: Support I flag on glibc systems.
29894         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29895         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29896         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29897         snprintf function.
29898         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29899         glibc systems.
29900         * tests/test-vasnprintf-posix3.c: New file.
29901         * modules/vasnprintf-posix-tests (Files): Add it.
29902         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29903
29904 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29905
29906         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29907         * MODULES.html.sh: For compiler warnings, use name
29908         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29909
29910 2010-11-05  Eric Blake  <eblake@redhat.com>
29911
29912         ceil, floor: avoid spurious failure with icc
29913         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29914         [denormals-as-zero] when optimizing without -mieee-fp option.
29915         * tests/test-floorf2.c (floorf_reference): Likewise.
29916         * tests/test-ceilf1.c (dummy): New function.
29917         (main): Use it to outsmart icc's optimization.
29918         * tests/test-floorf1.c (dummy, main): Likewise.
29919
29920         tests: require working signbit
29921         * modules/ceilf-tests (Depends-on): Add signbit.
29922         * modules/ceill-tests (Depends-on): Likewise.
29923         * modules/floorf-tests (Depends-on): Likewise.
29924         * modules/floorl-tests (Depends-on): Likewise.
29925         * modules/round-tests (Depends-on): Likewise.
29926         * modules/roundf-tests (Depends-on): Likewise.
29927         * modules/roundl-tests (Depends-on): Likewise.
29928         * modules/trunc-tests (Depends-on): Likewise.
29929         * modules/truncf-tests (Depends-on): Likewise.
29930         * modules/truncl-tests (Depends-on): Likewise.
29931
29932         strtod: work around icc bug
29933         * lib/strtod.c (minus_zero): Define to working value.
29934         (strtod): Use it to avoid icc bug.
29935
29936         copysign: enhance tests
29937         * modules/copysign-tests (Files): Add minus-zero.h.
29938         * tests/test-copysign.c (main): Also test zeros.
29939
29940 2010-11-04  Eric Blake  <eblake@redhat.com>
29941
29942         ceil, floor, round, trunc: enhance tests of -0
29943         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29944         * tests/test-ceill.c (main): Likewise.
29945         * tests/test-floorf1.c (main): Likewise.
29946         * tests/test-floorl.c (main): Likewise.
29947         * tests/test-round1.c (main): Likewise.
29948         * tests/test-roundf1.c (main): Likewise.
29949         * tests/test-roundl.c (main): Likewise.
29950         * tests/test-trunc1.c (main): Likewise.
29951         * tests/test-truncf1.c (main): Likewise.
29952         * tests/test-truncl.c (main): Likewise.
29953
29954 2010-11-04  Eric Blake  <eblake@redhat.com>
29955
29956         frexp, tests: work around ICC bug with -zero
29957         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29958         works with more compilers.
29959         * tests/minus-zero.h: New file.
29960         * modules/ceilf-tests (Files): Include it.
29961         * modules/ceill-tests (Files): Likewise.
29962         * modules/floorf-tests (Files): Likewise.
29963         * modules/floorl-tests (Files): Likewise.
29964         * modules/frexp-nolibm-tests (Files): Likewise.
29965         * modules/frexp-tests (Files): Likewise.
29966         * modules/frexpl-nolibm-tests (Files): Likewise.
29967         * modules/frexpl-tests (Files): Likewise.
29968         * modules/isnan-tests (Files): Likewise.
29969         * modules/isnand-nolibm-tests (Files): Likewise.
29970         * modules/isnand-tests (Files): Likewise.
29971         * modules/isnanf-nolibm-tests (Files): Likewise.
29972         * modules/isnanf-tests (Files): Likewise.
29973         * modules/isnanl-nolibm-tests (Files): Likewise.
29974         * modules/isnanl-tests (Files): Likewise.
29975         * modules/round-tests (Files): Likewise.
29976         * modules/roundf-tests (Files): Likewise.
29977         * modules/roundl-tests (Files): Likewise.
29978         * modules/ldexpl-tests (Files): Likewise.
29979         * modules/signbit-tests (Files): Likewise.
29980         * modules/snprintf-posix-tests (Files): Likewise.
29981         * modules/sprintf-posix-tests (Files): Likewise.
29982         * modules/strtod-tests (Files): Likewise.
29983         * modules/trunc-tests (Files): Likewise.
29984         * modules/truncf-tests (Files): Likewise.
29985         * modules/truncl-tests (Files): Likewise.
29986         * modules/vsnprintf-posix-tests (Files): Likewise.
29987         * modules/vsprintf-posix-tests (Files): Likewise.
29988         * modules/vasnprintf-posix-tests (Files): Likewise.
29989         * modules/vasprintf-posix-tests (Files): Likewise.
29990         * tests/test-ceilf1.c (main): Use it.
29991         * tests/test-ceill.c (main): Likewise.
29992         * tests/test-floorf1.c (main): Likewise.
29993         * tests/test-floorl.c (main): Likewise.
29994         * tests/test-frexp.c (main): Likewise.
29995         * tests/test-frexpl.c (main): Likewise.
29996         * tests/test-isnan.c (main): Likewise.
29997         * tests/test-isnand.h (main): Likewise.
29998         * tests/test-isnanf.h (main): Likewise.
29999         * tests/test-isnanl.h (main): Likewise.
30000         * tests/test-ldexpl.c (main): Likewise.
30001         * tests/test-round.c (main): Likewise.
30002         * tests/test-roundf.c (main): Likewise.
30003         * tests/test-roundl.c (main): Likewise.
30004         * tests/test-signbit.c (test_signbitf, test_signbitd)
30005         (test_signbitl): Likewise.
30006         * tests/test-snprintf-posix.h (test_function): Likewise.
30007         * tests/test-sprintf-posix.h (test_function): Likewise.
30008         * tests/test-strtod.c (main): Likewise.
30009         * tests/test-trunc1.c (main): Likewise.
30010         * tests/test-truncf1.c (main): Likewise.
30011         * tests/test-truncl.c (main): Likewise.
30012
30013         isnanl: work around icc bug
30014         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
30015
30016 2010-11-03  Eric Blake  <eblake@redhat.com>
30017
30018         tests: fix compiler warnings
30019         * tests/test-getopt.h (test_getopt): Fix condition.
30020         * tests/test-getopt_long.h (test_getopt_long): Likewise.
30021         * tests/test-pipe2.c (main): Likewise.
30022         * tests/test-quotearg-simple.c (main): Avoid icc warning.
30023
30024         utimens: fix broken m4 test
30025         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
30026
30027 2010-10-28  Bruno Haible  <bruno@clisp.org>
30028
30029         posix_spawn*, getdtablesize: Relax license.
30030         * modules/posix_spawn (License): Change to LGPLv2+.
30031         * modules/posix_spawnp (License): Likewise.
30032         * modules/posix_spawn-internal (License): Likewise.
30033         * modules/posix_spawnattr_init (License): Likewise.
30034         * modules/posix_spawnattr_getflags (License): Likewise.
30035         * modules/posix_spawnattr_setflags (License): Likewise.
30036         * modules/posix_spawnattr_getpgroup (License): Likewise.
30037         * modules/posix_spawnattr_setpgroup (License): Likewise.
30038         * modules/posix_spawnattr_getschedparam (License): Likewise.
30039         * modules/posix_spawnattr_setschedparam (License): Likewise.
30040         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
30041         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
30042         * modules/posix_spawnattr_getsigdefault (License): Likewise.
30043         * modules/posix_spawnattr_setsigdefault (License): Likewise.
30044         * modules/posix_spawnattr_getsigmask (License): Likewise.
30045         * modules/posix_spawnattr_setsigmask (License): Likewise.
30046         * modules/posix_spawnattr_destroy (License): Likewise.
30047         * modules/posix_spawn_file_actions_init (License): Likewise.
30048         * modules/posix_spawn_file_actions_addclose (License): Likewise.
30049         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
30050         * modules/posix_spawn_file_actions_addopen (License): Likewise.
30051         * modules/posix_spawn_file_actions_destroy (License): Likewise.
30052         * modules/getdtablesize (License): Likewise.
30053         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
30054
30055 2010-10-26  Bruno Haible  <bruno@clisp.org>
30056
30057         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
30058         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
30059         Cygwin and mingw.
30060         Suggested by Eric Blake.
30061
30062 2010-10-26  Bruno Haible  <bruno@clisp.org>
30063
30064         stdio: Work around compilation error due to renameat() on Solaris 10.
30065         * lib/stdio.in.h: Include <unistd.h> on Solaris.
30066         * lib/renameat.c: Don't include <unistd.h> here.
30067         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
30068         Reported by Paul Eggert and Eric Blake.
30069
30070 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
30071
30072         renameat: port to Solaris 10, which declares renameat in unistd.h
30073
30074         * lib/renameat.c: Include unistd.h before stdio.h, because
30075         Solaris 10 declares renameat in unistd.h.  Problem encountered
30076         when building GNU tar 1.24 on Solaris 10.
30077
30078 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30079
30080         fdopendir: fix C89 compilation
30081         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
30082         compilers.
30083
30084 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
30085
30086         inttostr: simplify by removing unnecessary redundancy
30087         * lib/anytostr.c: Don't include verify.h.
30088         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
30089         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
30090         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
30091         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
30092         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
30093         Likewise.
30094         * modules/inttostr (Depends-on): Remove 'verify'.
30095
30096 2010-10-23  Bruno Haible  <bruno@clisp.org>
30097
30098         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
30099         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
30100         Reported by Eric Blake.
30101
30102 2010-10-23  Bruno Haible  <bruno@clisp.org>
30103
30104         Tests: Fix LOCALE_JA on MirBSD 10.
30105         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
30106         to an UTF-8 locale.
30107         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
30108         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30109         Reported by Eric Blake.
30110
30111 2010-10-21  Bruno Haible  <bruno@clisp.org>
30112
30113         nl_langinfo test: Avoid test failure on NetBSD 5.
30114         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
30115         Reported by Eric Blake.
30116
30117 2010-10-21  Eric Blake  <eblake@redhat.com>
30118
30119         c-stack: work around libsigsegv 2.8 bug
30120         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
30121         overflow on at least PowerPC64.
30122
30123 2010-10-17  Bruno Haible  <bruno@clisp.org>
30124
30125         userspec: Drop redundant file.
30126         * modules/userspec (Files): Remove lib/inttostr.h.
30127
30128 2010-10-17  Bruno Haible  <bruno@clisp.org>
30129
30130         nl_langinfo tests: Silence some warnings.
30131         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
30132         Reported by Jim Meyering.
30133
30134 2010-10-17  Bruno Haible  <bruno@clisp.org>
30135
30136         Make use of GCC's attribute __alloc_size__.
30137         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
30138         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
30139         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
30140         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
30141         __alloc_size__.
30142         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30143         Suggested by Jim Meyering.
30144
30145 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
30146
30147         bootstrap: anchor .gitignore entries.
30148         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
30149         with...
30150         (insert_vc_ignore): ... this new function, which prepends `/' to
30151         all .gitignore entries before passing them to
30152         insert_sorted_if_absent.
30153
30154 2010-10-16  Bruno Haible  <bruno@clisp.org>
30155
30156         nextafter: Fix configure check.
30157         * modules/nextafter (configure.ac): Correct expected prototype.
30158
30159 2010-10-16  Bruno Haible  <bruno@clisp.org>
30160
30161         termios: Update documentation.
30162         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
30163
30164 2010-10-16  Bruno Haible  <bruno@clisp.org>
30165
30166         tests: Make them compile with TinyCC.
30167         * tests/test-strstr.c (main): Remove parentheses around array
30168         initializer.
30169
30170 2010-10-15  Eric Blake  <eblake@redhat.com>
30171
30172         ignore-value: make header idempotent
30173         * lib/ignore-value.h: Add double-inclusion guards.
30174         Reported by Stefan Berger.
30175
30176 2010-10-15  Jim Meyering  <meyering@redhat.com>
30177
30178         GNUmakefile: handle "stable" target, not "major"
30179         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
30180         lists in maint.mk and announce-gen.  Without this, "make stable"
30181         would fail to ensure that $(VERSION) is up to date.
30182
30183 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
30184
30185         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
30186         & co.
30187
30188 2010-10-14  Bruno Haible  <bruno@clisp.org>
30189
30190         vasnprintf: Don't set errno to 0.
30191         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
30192         block that sets it to 0.
30193         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
30194
30195 2010-10-14  Bruno Haible  <bruno@clisp.org>
30196
30197         socketlib: Fix.
30198         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
30199         gl_PREREQ_SYS_H_WINSOCK2.
30200         Reported by Ian Beckwith <ianb@erislabs.net>.
30201
30202 2010-10-13  Jim Meyering  <meyering@redhat.com>
30203
30204         test-select-stdin.c: avoid warn_unused_result warnings
30205         * tests/test-select-stdin.c: Include "macros.h".
30206         ASSERT that read and fflush succeed.
30207
30208 2010-10-13  Jim Meyering  <meyering@redhat.com>
30209
30210         git-version-gen: do require git-VC'd files in cwd
30211         * build-aux/git-version-gen: Reject a git version string
30212         if there are no commits associated with the current directory.
30213         This avoids an unlikely false-positive (unrelated dir whose parent
30214         repository also contains a tag matching v*), as pointed out
30215         by Giuseppe Scrivano in
30216         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
30217
30218 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30219
30220         argv-iter: omit nonconforming declaration
30221         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
30222         enum arg_iter_err declaration, which doesn't conform to C99.
30223         Solaris 10 cc warns about this.
30224
30225 2010-10-13  Eric Blake  <eblake@redhat.com>
30226
30227         termios: fix compilation on mingw
30228         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
30229         (gl_TERMIOS_H): Adjust it on mingw.
30230         * modules/termios (Makefile.am): Substitute new key.
30231         * lib/termios.in.h (includes): Make include_next conditional.
30232         * doc/posix-headers/termios.texi (termios.h): Update
30233         documentation.
30234         Reported by Daniel P. Berrange.
30235
30236 2010-10-13  Jim Meyering  <meyering@redhat.com>
30237
30238         git-version-gen: don't require that .git/ be in the current dir
30239         * build-aux/git-version-gen: Adjust this script so that it works
30240         when run from any working directory beneath the top-level .git/-
30241         containing directory.  Inspired by a patch from Giuseppe Scrivano,
30242         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
30243
30244         test-select: avoid warn_unused_result warnings
30245         * tests/test-select.c: Include "macros.h".
30246         ASSERT that each call to read, write, and pipe succeeds.
30247         While not technically required, also check each "close".
30248         * modules/select-tests (Files): Add tests/macros.h.
30249
30250         test-symlinkat: remove declaration of unused local
30251         * tests/test-symlinkat.c (main): Remove unused local, "buf".
30252
30253         test-inttostr: avoid shadowing warnings
30254         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
30255         and use malloc rather than the stack for the same reason as
30256         mentioned in the comment justifying the other allocation.
30257
30258 2010-10-11  Bruno Haible  <bruno@clisp.org>
30259
30260         stdlib: Allow multiple gnulib generated replacements to coexist.
30261         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
30262         Reported by Sam Steingold <sds@gnu.org>.
30263
30264 2010-10-11  Jim Meyering  <meyering@redhat.com>
30265
30266         fix a documentation typo
30267         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
30268
30269 2010-10-11  Eric Blake  <eblake@redhat.com>
30270
30271         futimens: work around Solaris 11 bug
30272         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
30273         * tests/test-futimens.h (test_futimens): Enhance, rather than
30274         weaken test.
30275         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30276
30277 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30278
30279         Indentation.
30280         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
30281         higher-level operators more to the left.
30282
30283 2010-10-11  Jim Meyering  <meyering@redhat.com>
30284
30285         test-futimens: avoid unwarranted test failure on Solaris 5.11
30286         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
30287         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
30288         because it tries to dereference the NULL name argument.
30289
30290 2010-10-11  Bruno Haible  <bruno@clisp.org>
30291
30292         Indentation.
30293         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
30294         indentation.
30295
30296 2010-10-11  Jim Meyering  <meyering@redhat.com>
30297
30298         spawn.in.h: make indentation consistent with parentheses
30299         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
30300         Make indentation consistent with parentheses.
30301
30302 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
30303
30304         Fix mismatched parens in previous commit
30305         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
30306         parens.
30307
30308 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30309
30310         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
30311
30312         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
30313         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
30314         * lib/malloca.c: Include "verify.h".
30315         (verify1): Remove, replacing with a verify call.
30316         * lib/relocwrapper.c (verify1): Likewise.
30317         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
30318         Likewise.
30319         * modules/malloca (Depends-on): Add 'verify'.
30320         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
30321         * modules/vasnprintf (Depends-on): Add 'verify'.
30322         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30323         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30324         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30325         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30326         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30327         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30328         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30329
30330         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
30331
30332         Formerly the style was sometimes 2*X - 1, because the C standard
30333         was wrongly thought to disallow ?: in integral constant expressions.
30334         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
30335         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
30336         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
30337         * lib/stdint.in.h (_verify_intmax_size): Likewise.
30338         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
30339         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
30340         verify that time_t cannot be floating.
30341
30342 2010-10-08  Eric Blake  <eblake@redhat.com>
30343
30344         time: enforce recent POSIX ruling that time_t is integral
30345         * lib/time.in.h (__time_t_must_be_integral): Detect any
30346         problematic systems, allowing the rest of gnulib to assume POSIX.
30347
30348 2010-10-08  Jim Meyering  <meyering@redhat.com>
30349
30350         fdopendir: fix a bug on systems lacking openat and /proc support
30351         OpenBSD 4.7 is one such system.  The most noticeable effect was
30352         failure of any application making nontrivial use of fts: rm, du,
30353         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
30354           ./rm: traversal failed: `a': Bad file descriptor
30355         Debugging that, you see that even though FD 6 was closed just
30356         prior to the opendir call in fd_clone_opendir, its resulting
30357         dir->dd_fd was 8, rather than the expected value of 6:
30358
30359         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
30360         93                close (fd);
30361         (gdb) n
30362         94                dir = fd_clone_opendir (dupfd);
30363         (gdb) n
30364         95                saved_errno = errno;
30365         (gdb) p dir->dd_fd
30366         $11 = 8
30367
30368         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
30369         The problem is that on OpenBSD, fd_clone_opendir has to resort
30370         to using the old-style save/restore CWD mechanism, due to its
30371         lack of openat/proc support, and *that* would steal the FD (6)
30372         that opendir was supposed to use.
30373
30374         The fix is to squirrel away the desired FD so that save_cwd uses a
30375         different one, and then free the dest FD right before calling opendir.
30376         That guarantees opendir will use the required file descriptor.
30377
30378         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
30379
30380 2010-10-08  Bruno Haible  <bruno@clisp.org>
30381
30382         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
30383         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
30384
30385 2010-10-08  Bruno Haible  <bruno@clisp.org>
30386
30387         nanosleep: Make replacement POSIX compliant.
30388         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
30389         is out of range.
30390         Reported by Jim Meyering.
30391
30392 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30393
30394         bootstrap: add hook for altering gnulib.mk, for Bison
30395         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
30396         the Bison bootstrapping process can rewrite file names and variables
30397         in this file before later parts of 'bootstrap' use the file.
30398         Bison wants to include lib/gnulib.mk from the top-level makefile,
30399         so it needs the file names in this file to be relative to the top
30400         level, not relative to lib; plus it needs variable names to be
30401         rewritten.
30402         (slurp): Use the new function.
30403
30404         bootstrap: reformat for readability
30405         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
30406
30407 2010-10-08  Eric Blake  <eblake@redhat.com>
30408
30409         docs: update cygwin progress
30410         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
30411         1.7.7.
30412         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
30413         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
30414         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
30415         * doc/posix-functions/carg.texi (carg): Likewise.
30416         * doc/posix-functions/cargf.texi (cargf): Likewise.
30417         * doc/posix-functions/casin.texi (casin): Likewise.
30418         * doc/posix-functions/casinf.texi (casinf): Likewise.
30419         * doc/posix-functions/casinh.texi (casinh): Likewise.
30420         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
30421         * doc/posix-functions/catan.texi (catan): Likewise.
30422         * doc/posix-functions/catanf.texi (catanf): Likewise.
30423         * doc/posix-functions/catanh.texi (catanh): Likewise.
30424         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
30425         * doc/posix-functions/ccos.texi (ccos): Likewise.
30426         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
30427         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
30428         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
30429         * doc/posix-functions/cexp.texi (cexp): Likewise.
30430         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
30431         * doc/posix-functions/cimag.texi (cimag): Likewise.
30432         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
30433         * doc/posix-functions/clog.texi (clog): Likewise.
30434         * doc/posix-functions/clogf.texi (clogf): Likewise.
30435         * doc/posix-functions/conj.texi (conj): Likewise.
30436         * doc/posix-functions/conjf.texi (conjf): Likewise.
30437         * doc/posix-functions/cpow.texi (cpow): Likewise.
30438         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
30439         * doc/posix-functions/cproj.texi (cproj): Likewise.
30440         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
30441         * doc/posix-functions/creal.texi (creal): Likewise.
30442         * doc/posix-functions/crealf.texi (crealf): Likewise.
30443         * doc/posix-functions/csin.texi (csin): Likewise.
30444         * doc/posix-functions/csinf.texi (csinf): Likewise.
30445         * doc/posix-functions/csinh.texi (csinh): Likewise.
30446         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
30447         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
30448         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
30449         * doc/posix-functions/ctan.texi (ctan): Likewise.
30450         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
30451         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
30452         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
30453         * doc/posix-headers/complex.texi (complex.h): Likewise.
30454
30455 2010-10-07  Jim Meyering  <meyering@redhat.com>
30456
30457         parse-datetime: avoid compilation failure on OpenBSD 4.7
30458         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
30459         This works around a compilation failure on OpenBSD 4.7:
30460         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
30461
30462 2010-10-07  Eric Blake  <eblake@redhat.com>
30463
30464         docs: update cygwin progress
30465         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
30466         1.7.6.
30467         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30468         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
30469         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
30470         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
30471         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
30472         Likewise.
30473         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
30474         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
30475         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
30476         Likewise.
30477         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
30478         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
30479         Likewise.
30480         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
30481         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
30482         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
30483         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
30484         Likewise.
30485         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
30486         Likewise.
30487         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
30488
30489         docs: update parse-datetime history
30490         * doc/parse-datetime.texi (Authors of parse_datetime): Better
30491         documentation of this function's history and alternatives.
30492
30493         cygwin: use more robust version check
30494         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
30495         exclude an eventual cygwin 1.9.1.
30496         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30497         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30498         (gl_FUNC_STRCASESTR): Likewise.
30499         Reported by Bruno Haible.
30500
30501 2010-10-06  Bruno Haible  <bruno@clisp.org>
30502
30503         string, sys_select: Avoid #including large headers unless necessary.
30504         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
30505         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30506         OSF/1, BeOS, Haiku.
30507         Reported by Jim Meyering.
30508
30509 2010-10-05  Eric Blake  <eblake@redhat.com>
30510
30511         memmem, strstr, strcasestr: fix bug with long periodic needle
30512         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30513         periodic needle having false positive.
30514         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30515         and cygwin 1.7.7.
30516         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30517         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30518         (gl_FUNC_STRCASESTR): Likewise.
30519         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30520         * tests/test-memmem.c (main): Expose the bug.
30521         * tests/test-strcasestr.c (main): Likewise.
30522         * tests/test-strstr.c (main): Likewise.
30523         * tests/test-c-strcasestr.c (main): Likewise.
30524         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30525         * doc/posix-functions/strstr.texi (strstr): Likewise.
30526         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30527         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30528
30529 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30530
30531         parse-datetime: do some more renaming
30532         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30533         parse_datetime, not get_date.  Mention the renaming.
30534         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30535         in comments.
30536         * m4/bison.m4: Likewise.
30537
30538 2010-10-05  Eric Blake  <eblake@redhat.com>
30539
30540         parse-datetime: better name than get_date
30541         * NEWS: Reword the deprecation notice.
30542         * modules/get_date: Rename to modules/parse-datetime.
30543         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30544         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30545         * lib/get_date.y: Rename to lib/parse-datetime.y.
30546         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30547         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30548         * doc/getdate.texi: Provide fallback wrapper.
30549         * lib/getdate.h: Move guts, and wrap...
30550         * lib/parse-datetime.h: ...new file.
30551         * lib/parse-datetime.y (get_date): Rename...
30552         (parse_datetime): ...to this.
30553         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30554         (gl_PARSE_DATETIME): ...to this.
30555         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30556         documentation.
30557         * modules/getdate (Files): Provide fallback docs and header.
30558         (Notice, Depends-on): Update references.
30559         * tests/test-parse-datetime.c: Likewise.
30560         * DEPENDENCIES: Likewise.
30561         * MODULES.html.sh (Date and time <time.h>): Likewise.
30562         * doc/parse-datetime.texi (Date input formats)
30563         (Authors of parse_datetime): Likewise.
30564         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30565         (Include): Likewise.
30566         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30567         * gnulib-tool: Likewise.
30568         * m4/bison.m4 (gl_BISON): Likewise.
30569         Suggested by Bruno Haible.
30570
30571 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30572
30573         more ports to Solaris tr, which needs [] around ranges
30574         * gnulib-tool: Solaris tr needs [] around ranges.
30575         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30576         * tests/test-pipe-filter-gi1.c (main): Likewise.
30577         * tests/test-pipe-filter-ii1.c (main): Likewise.
30578
30579 2010-10-05  Eric Blake  <eblake@redhat.com>
30580
30581         bootstrap: fix Solaris regression
30582         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30583         around ranges.
30584         Reported by Pádraig Brady.
30585
30586         bootstrap: work with pkg-config
30587         * build-aux/bootstrap (check_versions): Also transliterate - in
30588         prerequisite name.
30589         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30590         prerequisites that were already found, to avoid confusion.
30591         Reported by Justin Clift.
30592
30593         faccessat: remove unused wrappers
30594         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30595         presence of these wrappers dragged in -lgen on Solaris.
30596         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30597
30598 2010-10-05  Jim Meyering  <meyering@redhat.com>
30599
30600         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30601         * Makefile (sc_pragma_columns): New syntax-check rule.
30602
30603 2010-10-04  Bruno Haible  <bruno@clisp.org>
30604
30605         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30606         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30607         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30608         Reported by Bruce Korb and Eric Blake.
30609
30610 2010-10-04  Bruno Haible  <bruno@clisp.org>
30611
30612         threadlib: Make option --with-libpth-prefix work.
30613         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30614         use $LIBPTH, not just -lpth.
30615
30616 2010-10-04  Bruno Haible  <bruno@clisp.org>
30617
30618         Avoid line length limitation from HP NonStop system header files.
30619         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30620         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30621         * lib/ctype.in.h: Likewise.
30622         * lib/dirent.in.h: Likewise.
30623         * lib/errno.in.h: Likewise.
30624         * lib/fcntl.in.h: Likewise.
30625         * lib/float.in.h: Likewise.
30626         * lib/getopt.in.h: Likewise.
30627         * lib/iconv.in.h: Likewise.
30628         * lib/inttypes.in.h: Likewise.
30629         * lib/langinfo.in.h: Likewise.
30630         * lib/locale.in.h: Likewise.
30631         * lib/math.in.h: Likewise.
30632         * lib/netdb.in.h: Likewise.
30633         * lib/netinet_in.in.h: Likewise.
30634         * lib/poll.in.h: Likewise.
30635         * lib/pthread.in.h: Likewise.
30636         * lib/pty.in.h: Likewise.
30637         * lib/sched.in.h: Likewise.
30638         * lib/se-selinux.in.h: Likewise.
30639         * lib/search.in.h: Likewise.
30640         * lib/signal.in.h: Likewise.
30641         * lib/spawn.in.h: Likewise.
30642         * lib/stdarg.in.h: Likewise.
30643         * lib/stddef.in.h: Likewise.
30644         * lib/stdint.in.h: Likewise.
30645         * lib/stdio.in.h: Likewise.
30646         * lib/stdlib.in.h: Likewise.
30647         * lib/string.in.h: Likewise.
30648         * lib/strings.in.h: Likewise.
30649         * lib/sys_file.in.h: Likewise.
30650         * lib/sys_ioctl.in.h: Likewise.
30651         * lib/sys_select.in.h: Likewise.
30652         * lib/sys_socket.in.h: Likewise.
30653         * lib/sys_stat.in.h: Likewise.
30654         * lib/sys_time.in.h: Likewise.
30655         * lib/sys_times.in.h: Likewise.
30656         * lib/sys_utsname.in.h: Likewise.
30657         * lib/sys_wait.in.h: Likewise.
30658         * lib/sysexits.in.h: Likewise.
30659         * lib/termios.in.h: Likewise.
30660         * lib/time.in.h: Likewise.
30661         * lib/unistd.in.h: Likewise.
30662         * lib/wchar.in.h: Likewise.
30663         * lib/wctype.in.h: Likewise.
30664         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30665         * modules/ctype (Makefile.am): Likewise.
30666         * modules/dirent (Makefile.am): Likewise.
30667         * modules/errno (Makefile.am): Likewise.
30668         * modules/fcntl-h (Makefile.am): Likewise.
30669         * modules/float (Makefile.am): Likewise.
30670         * modules/getopt-posix (Makefile.am): Likewise.
30671         * modules/iconv-h (Makefile.am): Likewise.
30672         * modules/inttypes (Makefile.am): Likewise.
30673         * modules/langinfo (Makefile.am): Likewise.
30674         * modules/locale (Makefile.am): Likewise.
30675         * modules/math (Makefile.am): Likewise.
30676         * modules/netdb (Makefile.am): Likewise.
30677         * modules/netinet_in (Makefile.am): Likewise.
30678         * modules/poll-h (Makefile.am): Likewise.
30679         * modules/pthread (Makefile.am): Likewise.
30680         * modules/pty (Makefile.am): Likewise.
30681         * modules/sched (Makefile.am): Likewise.
30682         * modules/search (Makefile.am): Likewise.
30683         * modules/selinux-h (Makefile.am): Likewise.
30684         * modules/signal (Makefile.am): Likewise.
30685         * modules/spawn (Makefile.am): Likewise.
30686         * modules/stdarg (Makefile.am): Likewise.
30687         * modules/stddef (Makefile.am): Likewise.
30688         * modules/stdint (Makefile.am): Likewise.
30689         * modules/stdio (Makefile.am): Likewise.
30690         * modules/stdlib (Makefile.am): Likewise.
30691         * modules/string (Makefile.am): Likewise.
30692         * modules/strings (Makefile.am): Likewise.
30693         * modules/sys_file (Makefile.am): Likewise.
30694         * modules/sys_ioctl (Makefile.am): Likewise.
30695         * modules/sys_select (Makefile.am): Likewise.
30696         * modules/sys_socket (Makefile.am): Likewise.
30697         * modules/sys_stat (Makefile.am): Likewise.
30698         * modules/sys_time (Makefile.am): Likewise.
30699         * modules/sys_times (Makefile.am): Likewise.
30700         * modules/sys_utsname (Makefile.am): Likewise.
30701         * modules/sys_wait (Makefile.am): Likewise.
30702         * modules/sysexits (Makefile.am): Likewise.
30703         * modules/termios (Makefile.am): Likewise.
30704         * modules/time (Makefile.am): Likewise.
30705         * modules/unistd (Makefile.am): Likewise.
30706         * modules/wchar (Makefile.am): Likewise.
30707         * modules/wctype (Makefile.am): Likewise.
30708
30709 2010-10-04  Bruno Haible  <bruno@clisp.org>
30710
30711         read-file tests: Avoid a test failure on NonStop Kernel.
30712         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30713         a regular file.
30714         Reported by Joachim Schmitz <schmitz@hp.com>.
30715
30716 2010-10-03  Bruno Haible  <bruno@clisp.org>
30717
30718         gnulib-tool: Fixes for --create-testdir with --libtool.
30719         * gnulib-tool (func_get_automake_snippet): Don't augment
30720         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30721         an executable.
30722         (func_create_testdir): Handle module 'alloca' like func_import.
30723         Reported by Bruce Korb <bruce.korb@gmail.com>.
30724
30725 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30726
30727         Avoid some lines longer than 80 characters.
30728         * lib/stdint.in.h: Break long comment lines.
30729         * lib/math.in.h: Likewise.
30730         (_GL_NUM_UINT_WORDS): New macro, for readability.
30731         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30732         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30733         * lib/stdlib.in.h: Likewise.
30734         * lib/spawn.in.h: Likewise.
30735         * lib/sys_socket.in.h: Update an URL.
30736         * lib/sys_stat.in.h: Break long line.
30737
30738 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30739
30740         Improve pmccabe2html.
30741         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30742         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30743         when the sources change. Remove the line in the HTML about "Used
30744         ranges" (which implied that there might be other unused ranges),
30745         rename "Resume" to "Summary" (easier to understand for more users).
30746         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30747         styles, and some unnecessary blank lines.
30748
30749 2010-10-03  Bruno Haible  <bruno@clisp.org>
30750             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30751
30752         acl: Add support for ACLs on NonStop Kernel.
30753         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30754         Check whether the function aclsort() exists.
30755         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30756         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30757         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30758         (acl_nontrivial [HAVE_ACLSORT]: New function.
30759         (file_has_acl): Implement for NonStop Kernel.
30760         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30761         (qset_acl): Implement for NonStop Kernel.
30762         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30763         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30764         (main): Implement for NonStop Kernel.
30765         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30766         Kernel. Handle this flavor.
30767         * tests/test-set-mode-acl.sh: Likewise.
30768         * tests/test-copy-acl.sh: Likewise.
30769         * tests/test-copy-file.sh: Likewise.
30770
30771 2010-10-03  Bruno Haible  <bruno@clisp.org>
30772
30773         Info about ACLs on NonStop Kernel.
30774         * doc/acl-resources.txt: Add info about NonStop Kernel.
30775         References by Joachim Schmitz <schmitz@hp.com>.
30776
30777 2010-10-02  Bruno Haible  <bruno@clisp.org>
30778
30779         Define missing EDQUOT on NonStop Kernel.
30780         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30781         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30782         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30783         missing.
30784         * doc/posix-headers/errno.texi: Mention the NSK bug.
30785         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30786         Reported by Joachim Schmitz <schmitz@hp.com>.
30787
30788 2010-10-02  Bruno Haible  <bruno@clisp.org>
30789
30790         Update doc for POSIX:2008.
30791         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30792         Update URL of POSIX specification.
30793
30794 2010-10-02  Bruno Haible  <bruno@clisp.org>
30795
30796         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30797         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30798         from gnulib, not from Automake.
30799
30800 2010-10-02  Bruno Haible  <bruno@clisp.org>
30801
30802         New module 'system-posix'.
30803         * modules/system-posix: New file.
30804         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30805         module is present.
30806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30807         GNULIB_SYSTEM_POSIX.
30808         * modules/stdlib (Depends-on): Remove sys_wait.
30809         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30810         * doc/posix-functions/system.texi: Mention the new module.
30811         * doc/posix-headers/stdlib.texi: Likewise.
30812         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30813         define test_sys_wait_macros to a no-op.
30814         Reported by Sam Steingold <sds@gnu.org>.
30815
30816 2010-09-30  Bruno Haible  <bruno@clisp.org>
30817
30818         More renaming from 'getdate' to 'get_date'.
30819         * doc/get_date.texi: Renamed from doc/getdate.texi.
30820         * modules/get_date (Files): Update.
30821         * MODULES.html.sh (Date and time <time.h>): Update.
30822         * DEPENDENCIES: Update.
30823         * gnulib-tool: Update comment.
30824         * m4/bison.m4 (gl_BISON): Likewise.
30825         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30826
30827 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30828
30829         bootstrap: support ACLOCAL_FLAGS during aclocal
30830         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30831         can add additional -I dir for third-party .m4 files.
30832
30833 2010-09-30  Eric Blake  <eblake@redhat.com>
30834
30835         bootstrap: use glibtoolize on MacOS
30836         * build-aux/bootstrap (check_versions): Convert libtool into
30837         libtoolize.
30838         (tool search): Move libtool check earlier, and look for
30839         glibtoolize for MacOS.
30840         (gnulib_tool_options): Auto-add --libtool when appropriate.
30841         Reported by Justin Clift.
30842
30843         poll: fix typo that broke test on MacOS
30844         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30845         Reported by Justin Clift.
30846
30847         getdate: rename to get_date
30848         Note: getdate.h is not renamed, to minimize client impact.
30849         * modules/getdate: Mark obsolete.  Move old contents...
30850         * modules/get_date: ...to new module name.
30851         * modules/getdate-tests: Move...
30852         * modules/get_date-tests: ...here.
30853         * m4/getdate.m4: Move...
30854         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30855         * lib/getdate.y: Move...
30856         * lib/get_date.y: ...here.
30857         * tests/test-getdate.c: Move...
30858         * tests/test-get_date.c: ...here.
30859         * doc/posix-functions/getdate.texi (getdate): Update name.
30860         * NEWS: Mention the change.
30861
30862 2010-09-29  Bruno Haible  <bruno@clisp.org>
30863
30864         Separate the module 'waitpid' from the module 'sys_wait'.
30865         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30866         present.
30867         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30868         gl_MODULE_INDICATOR_FOR_TESTS.
30869         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30870         * modules/sys_wait (Depends-on): Remove waitpid.
30871         (Makefile.am): Substitute GNULIB_WAITPID.
30872         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30873         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30874         signature only if the 'waitpid' module is present.
30875         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30876         * NEWS: Mention the change.
30877         * modules/grantpt (Depends-on): Add waitpid.
30878         * modules/wait-process (Depends-on): Likewise.
30879
30880 2010-09-29  Bruno Haible  <bruno@clisp.org>
30881
30882         More tests for module 'sys_wait'.
30883         * modules/sys_wait-c++-tests: New file.
30884         * tests/test-sys_wait-c++.cc: New file.
30885         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30886         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30887
30888 2010-09-29  Bruno Haible  <bruno@clisp.org>
30889
30890         New module 'waitpid'.
30891         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30892         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30893         Don't include <process.h>.
30894         (waitpid): Declare only, using modern idiom.
30895         * m4/waitpid.m4: New file.
30896         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30897         * modules/waitpid: New file.
30898         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30899         (Makefile.am): Update.
30900         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30901
30902 2010-09-28  Bruno Haible  <bruno@clisp.org>
30903
30904         poll: Assume ANSI C.
30905         * lib/poll.c (poll): Use an ANSI C declaration.
30906
30907 2010-09-28  Bruno Haible  <bruno@clisp.org>
30908
30909         poll-h: Create poll.h on all platforms.
30910         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30911         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30912         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30913         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30914         (gl_REPLACE_POLL_H): Don't set POLL_H.
30915         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30916         * modules/poll-h (Depends-on): Add include_next.
30917         (Makefile.am): Create poll.h unconditionally. Substitute also
30918         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30919
30920 2010-09-28  Bruno Haible  <bruno@clisp.org>
30921
30922         Tests for module 'poll-h'.
30923         * modules/poll-h-c++-tests: New file.
30924         * tests/test-poll-h-c++.cc: New file.
30925
30926         Tests for module 'poll-h'.
30927         * modules/poll-h-tests: New file.
30928         * tests/test-poll-h.c: New file.
30929
30930 2010-09-28  Bruno Haible  <bruno@clisp.org>
30931
30932         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30933         * modules/poll-h (Depends-on): Add 'extensions'.
30934
30935 2010-09-28  Bruno Haible  <bruno@clisp.org>
30936
30937         New module 'poll-h'.
30938         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30939         (poll): Use modern idiom.
30940         * modules/poll-h: New file.
30941         * modules/poll (Files): Remove lib/poll.in.h.
30942         (Depends-on): Add poll-h.
30943         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30944         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30945         * m4/poll_h.m4: New file.
30946         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30947         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30948         and invoke gl_REPLACE_POLL_H.
30949         * lib/poll.c: Use common idiom.
30950         * tests/test-poll.c: Likewise.
30951         * doc/posix-headers/poll.texi: Mention the poll-h module.
30952         Suggested by Eric Blake.
30953
30954 2010-09-26  Bruno Haible  <bruno@clisp.org>
30955
30956         sys_wait: Implement WSTOPSIG.
30957         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30958         Reported by Simon Josefsson.
30959
30960 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30961
30962         stdlib, sys_wait: Avoid compilation error on mingw.
30963         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30964
30965 2010-09-26  Bruno Haible  <bruno@clisp.org>
30966
30967         stdlib tests: Avoid code duplication.
30968         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30969         * modules/sys_wait-tests (Files): Likewise.
30970         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30971         * tests/test-stdlib.c: Include test-sys_wait.h.
30972         (main): Invoke test_sys_wait_macros.
30973         * tests/test-sys_wait.c: Include test-sys_wait.h.
30974         (main): Invoke test_sys_wait_macros.
30975
30976 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30977
30978         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30979         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30980         sure Windows sockets are working before calling getaddrinfo.
30981         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30982         * doc/gnulib.texi (Windows sockets): Fix typo.
30983
30984 2010-09-25  Bruno Haible  <bruno@clisp.org>
30985
30986         Tests for module 'regex-quote'.
30987         * modules/regex-quote-tests: New file.
30988         * tests/test-regex-quote.c: New file.
30989
30990         New module 'regex-quote'.
30991         * lib/regex-quote.h: New file.
30992         * lib/regex-quote.c: New file.
30993         * modules/regex-quote: New file.
30994         Suggested by Reuben Thomas <rrt@sc3d.org>.
30995
30996 2010-09-24  Bruno Haible  <bruno@clisp.org>
30997
30998         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30999         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
31000
31001 2010-09-23  Bruno Haible  <bruno@clisp.org>
31002
31003         setenv: Relax license.
31004         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
31005         Blake.
31006         Requested by Eric Blake.
31007
31008 2010-09-22  Bruno Haible  <bruno@clisp.org>
31009
31010         termios: Relax license.
31011         * modules/termios (License): Change to LGPLv2+.
31012         Requested by Eric Blake.
31013
31014 2010-09-22  Bruno Haible  <bruno@clisp.org>
31015
31016         threadlib: Allow the package to change the default to 'no'.
31017         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
31018         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
31019         Reported by Paul Eggert.
31020
31021 2010-09-22  Pádraig Brady  <P@draigbrady.com>
31022             Bruno Haible  <bruno@clisp.org>
31023
31024         Fix endless loop in mbmemcasecoll.
31025         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
31026         byte.
31027         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
31028
31029 2010-09-22  Bruno Haible  <bruno@clisp.org>
31030
31031         Tests for module 'memcoll'.
31032         * modules/memcoll-tests: New file.
31033         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
31034
31035         memcoll, xmemcoll: Clarify size vs. length.
31036         * modules/memcoll.c (memcoll0): Clarify specification.
31037         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
31038         passed to collate_error.
31039
31040 2010-09-22  Bruno Haible  <bruno@clisp.org>
31041
31042         Tests for module 'memcasecmp'.
31043         * modules/memcasecmp-tests: New file.
31044         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
31045
31046 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
31047
31048         * lib/pthread.in.h: Add split double-inclusion guard, and include
31049         system <pthread.h> if there is one.  Use @@-style as in other
31050         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
31051         pthread.h doesn't.
31052         (pthread_mutexattr_destroy, pthread_mutexattr_init):
31053         (pthread_mutexattr_settype, pthread_mutex_trylock):
31054         New static inline functions, if there's no system <pthread.h>.
31055         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
31056         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
31057         Approximate with mutexes if the system lacks spinlocks, as in
31058         MacOS.
31059         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
31060         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
31061         @@-style.  Check for spinlocks separately.
31062         (gl_PTHREAD_DEFAULTS): New macro.
31063         * modules/pthread: Redo to use a more typical style for in.h files.
31064
31065 2010-09-21  Eric Blake  <eblake@redhat.com>
31066
31067         net_if: enhance tests
31068         * tests/test-net_if.c (main): Move signature checks earlier.
31069         Print failures to stderr.
31070         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
31071         Document the bug that we do not yet fix.
31072
31073 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
31074
31075         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
31076         about gnulib, not GSS.
31077
31078 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
31079
31080         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
31081         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
31082         for Emacs.
31083         * build-aux/pmccabe2html: Make Makefile.am example code more
31084         cut-and-paste friendly.
31085
31086 2010-09-21  Simon Josefsson  <simon@josefsson.org>
31087
31088         * tests/test-net_if.c: New file.
31089         * modules/net_if-tests: New file.
31090
31091 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
31092
31093         pthread: add pthread_spin_destroy
31094         * lib/pthread.in.h (pthread_spin_destroy): New function.
31095
31096 2010-09-19  Bruno Haible  <bruno@clisp.org>
31097
31098         gnulib-tool: Fix --help output.
31099         * gnulib-tool (func_usage): Fix help message.
31100         Reported by Reuben Thomas <rrt@sc3d.org>.
31101
31102 2010-09-18  Jim Meyering  <meyering@redhat.com>
31103
31104         maint.mk: avoid unexpanded \n in two diagnostics
31105         * top/maint.mk (sc_prohibit_always_true_header_tests):
31106         Don't use a literal \n in a halt=... assignment.  It would not be
31107         expanded, and the two \n bytes would appear in the diagnostic output
31108         rather than the desired newline.  Use halt=$$(printf ... instead.
31109         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31110
31111 2010-09-18  Bruno Haible  <bruno@clisp.org>
31112
31113         netinet_in: Doc tweak.
31114         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
31115         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31116
31117 2010-09-18  Jim Meyering  <meyering@redhat.com>
31118
31119         init.sh: correct an outdated comment
31120         * tests/init.sh (create_exe_shims_):  s/function/alias/
31121
31122         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
31123         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
31124         a file named "*.exe" is removed between the glob expansion and the
31125         processing of that oddly named file.
31126
31127 2010-09-17  Eric Blake  <eblake@redhat.com>
31128
31129         mirbsd: add some more support
31130         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
31131         in BSD family.
31132         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
31133         devices as OpenBSD.
31134         * m4/host-os.m4 (mirbsd): Add MirBSD.
31135
31136         tests: fix unportable assumption on sys/wait.h
31137         * tests/test-sys_wait.c (main): Relax test.
31138         * tests/test-stdlib.c (main): Likewise.
31139
31140         init.sh: accommodate directory with no .exes
31141         * tests/init.sh: Accomodate directory containing only scripts.
31142
31143         tests: avoid compiler warning
31144         * tests/test-stdlib.c (main): Use the variable.
31145
31146         fdutimens, fdutimensat: update signature, again
31147         * lib/utimens.h (gl_futimens): Delete, and move signature...
31148         (fdutimens): ...here.
31149         (fdutimensat): Rearrange signature.
31150         (lutimensat): Rename variable for clarity.
31151         * lib/fdutimensat.c (fdutimensat): Update signature.
31152         * lib/utimens.c (fdutimens): Likewise.
31153         (gl_futimens): Delete.
31154         (utimens, lutimens): Update callers.
31155         * lib/futimens.c (futimens): Likewise.
31156         * tests/test-fdutimensat.c: Likewise.
31157         * tests/test-utimens.c: Likewise.
31158         * tests/test-futimens.h: Update comment.
31159         * NEWS: Mention this.
31160         Suggested by Paul Eggert.
31161
31162 2010-09-17  Bruno Haible  <bruno@clisp.org>
31163
31164         Take over the maintenance of some older macros from Autoconf.
31165         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
31166         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
31167         GNU Autoconf.
31168         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
31169         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
31170
31171 2010-09-17  Eric Blake  <eblake@redhat.com>
31172
31173         fdutimensat: drop atflag validation
31174         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
31175         with valid fd, to close a race scenario where futimens is
31176         unsupported and FILE was replaced by a symlink.
31177         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
31178         accordingly.
31179         Suggested by Paul Eggert.
31180
31181 2010-09-16  Bruno Haible  <bruno@clisp.org>
31182
31183         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
31184         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
31185
31186 2010-09-16  Bruno Haible  <bruno@clisp.org>
31187
31188         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
31189         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
31190         login_tty exists.
31191         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31192
31193 2010-09-16  Bruno Haible  <bruno@clisp.org>
31194
31195         login_tty: Make the replacement code work on BSD systems.
31196         * lib/login_tty.c: Include <sys/ioctl.h>.
31197         (login_tty): Use ioctl TIOCSCTTY when available.
31198         * modules/login_tty (Depends-on): Add sys_ioctl.
31199         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31200
31201 2010-09-16  Bruno Haible  <bruno@clisp.org>
31202
31203         login_tty: Stricter unit test.
31204         * modules/login_tty-tests (Depends-on): Add tcgetsid.
31205         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
31206         and tcgetsid() after login_tty.
31207         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31208
31209 2010-09-16  Bruno Haible  <bruno@clisp.org>
31210
31211         New module 'tcgetsid'.
31212         * lib/tcgetsid.c: New file.
31213         * m4/tcgetsid.m4: New file.
31214         * modules/tcgetsid: New file.
31215         * modules/termios (Depends-on): Add c++defs, warn-on-use.
31216         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
31217         GNULIB_TCGETSID, HAVE_TCGETSID.
31218         * lib/termios.in.h: Include <sys/types.h>.
31219         (tcgetsid): New declaration.
31220         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
31221         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
31222         * doc/posix-functions/tcgetsid.texi: Mention the new module.
31223         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
31224
31225 2010-09-16  Bruno Haible  <bruno@clisp.org>
31226
31227         Tests for module 'termios'.
31228         * modules/termios-c++-tests: New file.
31229         * modules/termios-tests: New file.
31230         * tests/test-termios-c++.cc: New file.
31231         * tests/test-termios.c: New file.
31232
31233         New module 'termios'.
31234         * modules/termios: New file.
31235         * lib/termios.in.h: New file.
31236         * m4/termios_h.m4: New file.
31237         * doc/posix-headers/termios.texi: Mention the new module.
31238
31239 2010-09-16  Eric Blake  <eblake@redhat.com>
31240
31241         fdutimensat: add an atflag parameter
31242         * lib/fdutimensat.c (fdutimensat): Add new parameter.
31243         * lib/utimens.h (fdutimensat): Update prototype.
31244         * tests/test-fdutimensat.c: Adjust test to match.
31245         * NEWS: Document the change.
31246         Suggested by Paul Eggert.
31247
31248 2010-09-16  Bruno Haible  <bruno@clisp.org>
31249
31250         Fix typos in comments.
31251         * lib/striconveh.h: Fix typo in comment.
31252         * lib/login_tty.c (login_tty): Likewise.
31253
31254 2010-09-15  Bruno Haible  <bruno@clisp.org>
31255
31256         stdlib: clarify MirBSD WEXITSTATUS bug
31257         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
31258         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31259
31260 2010-09-15  Eric Blake  <eblake@redhat.com>
31261
31262         stdlib: work around MirBSD WEXITSTATUS bug
31263         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
31264         * modules/stdlib (Depends-on): Add sys_wait.
31265         * tests/test-sys_wait.c (main): Enhance test.
31266         * tests/test-stdlib.c (main): Likewise.
31267         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
31268
31269         docs: mention MacOS issue with WEXITSTATUS(constant)
31270         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
31271         issue.
31272         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31273
31274         strnlen: add tests
31275         * modules/strnlen-tests: New file.
31276         * tests/test-strnlen.c: Likewise.
31277
31278 2010-09-14  Bruno Haible  <bruno@clisp.org>
31279
31280         unistr/base: Avoid link errors when module 'libunistring' is also used.
31281         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
31282         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
31283         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
31284         Declare also when HAVE_LIBUNISTRING is set.
31285         Reported by Pádraig Brady <P@draigbrady.com>.
31286
31287 2010-09-14  Eric Blake  <eblake@redhat.com>
31288
31289         test-rawmemchr: make more robust
31290         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
31291         (Depends-on, configure.ac): Add needed prerequisites to use it.
31292         * modules/memchr-tests (Files, Depends-on, configure.ac):
31293         Likewise, to avoid implicit reliance on memchr module prereqs.
31294         * tests/test-memchr.c (main): Ensure proper masking.
31295         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
31296         reads.
31297
31298         memchr: detect glibc Alpha bug
31299         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
31300         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
31301         Alpha.
31302         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
31303         * tests/test-memchr.c (main): Enhance test.
31304         Reported by Nelson H. F. Beebe.
31305
31306 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31307
31308         fts, getcwd, glob: audit for dirfd returning -1
31309         * lib/fts.c (opendir): Remove #define; no longer used.
31310         (opendirat): New arg PDIR_FD.  All callers changed.
31311         (fts_build, _opendir2): Use new opendirat to avoid the need for
31312         dirfd, or for checking whether dirfd returns a negative value.
31313         Don't use opendir; always use openat followed by fdopendir.
31314         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
31315         it.
31316         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
31317         returns -1 here.
31318         * modules/fts (Depends-on): Remove dirfd.
31319         * modules/getcwd (Depends-on): Likewise.
31320
31321 2010-09-13  Eric Blake  <eblake@redhat.com>
31322
31323         float: fix broken MirBSD header
31324         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
31325         * doc/posix-headers/float.texi (float.h): Document it.
31326
31327 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31328
31329         fts: use O_NOFOLLOW to avoid race condition when opening a directory
31330         * lib/fts.c (opendirat): New arg extra_flags.
31331         (__opendir2): Use it to avoid following symlinks when opening
31332         a directory, if symlinks are not supposed to be followed.  See
31333         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
31334
31335         fdopendir: preserve argument fd before returning
31336         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
31337         (fdopendir_with_dup, fd_clone_opendir): New static functions.
31338         (fdopendir): Use them, arranging for FD to be open to the same
31339         directory that it was when it started.  (It might be temporarily
31340         closed while fdopendir is running, so this not thread- or
31341         signal-safe.)  Be careful to do the right thing even when file
31342         descriptors are scarce and dup fails with errno == EMFILE.  See
31343         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
31344
31345 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
31346
31347         regex: Pass the system regex if its only problem is 32-bit regoff_t.
31348         * NEWS: Document change.
31349         * m4/regex.m4: Disable test for regoff_t size.
31350
31351 2010-09-13  Jim Meyering  <meyering@redhat.com>
31352
31353         fts: don't operate on an invalid file descriptor after failed dup
31354         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
31355         negative file descriptor.
31356
31357 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
31358
31359         savedir: add streamsavedir, deprecate fdsavedir
31360         * NEWS: Mention deprecation of fdsavedir.
31361         * lib/savedir.c (streamsavedir): New extern function, whose name
31362         ends in "savedir" to be consistent with the others.  This differs
31363         from savedirstream in that it doesn't close its argument.  The
31364         next version of GNU tar will use this instead of fdsavedir, to
31365         avoid some race conditions and conserve file descriptors.
31366         (savedirstream): Reimplement as a wrapper around streamsavedir.
31367         (fdsavedir): Add a comment deprecating this function.  As far as
31368         I know, only GNU tar used it, and GNU tar doesn't need it any more.
31369         * lib/savedir.h (streamsavedir): New decl.
31370         (fdsavedir): Add a comment deprecating this.
31371
31372 2010-09-10  Bruno Haible  <bruno@clisp.org>
31373
31374         langinfo: Fix last commit.
31375         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
31376         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
31377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31378
31379 2010-09-10  Bruno Haible  <bruno@clisp.org>
31380
31381         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
31382         * lib/progreloc.c (O_EXEC): Define fallback.
31383
31384 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31385
31386         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
31387         * NEWS: Document recent changes to fcntl-h.
31388         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
31389         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
31390         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
31391         Similarly for O_SEARCH; this last was already true, but not documented.
31392         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
31393         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
31394         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
31395         Likewise.
31396         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
31397         is zero, not whether it is defined.
31398         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
31399         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
31400         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
31401
31402 2010-09-10  Bruno Haible  <bruno@clisp.org>
31403
31404         langinfo, nl_langinfo: Fix for IRIX 5.3.
31405         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
31406         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
31407         HAVE_LANGINFO_YESEXPR.
31408         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
31409         HAVE_LANGINFO_YESEXPR.
31410         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
31411         HAVE_LANGINFO_T_FMT_AMPM is 0.
31412         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
31413         HAVE_LANGINFO_YESEXPR is 0.
31414         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
31415         NOEXPR.
31416         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
31417         * doc/posix-functions/nl_langinfo.texi: Likewise.
31418         Reported by Eric Blake.
31419
31420 2010-09-10  Bruno Haible  <bruno@clisp.org>
31421
31422         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
31423         * doc/glibc-functions/login_tty.texi: Mention the include file problem
31424         on FreeBSD 8.0 and OpenBSD 4.6.
31425         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
31426         * m4/pty_h.m4 (gl_PTY_H): Likewise.
31427         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
31428         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
31429         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
31430         ac_includes_default.
31431         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31432
31433 2010-09-09  Eric Blake  <eblake@redhat.com>
31434
31435         strsignal: work around NetBSD bug
31436         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
31437         * lib/string.in.h (includes): Likewise.
31438         * doc/posix-functions/strsignal.texi (strsignal): Document the
31439         bug.
31440         Reported by Nelson H. F. Beebe.
31441
31442         gnulib-tool: work with NetBSD /bin/sh
31443         * gnulib-tool (func_cache_var, func_cache_lookup_module)
31444         (func_get_description, func_get_comment, func_get_status)
31445         (func_get_notice, func_get_applicability, func_get_filelist)
31446         (func_get_dependencies, func_get_autoconf_early_snippet)
31447         (func_get_autoconf_snippet, func_get_automake_snippet)
31448         (func_get_include_directive, func_get_link_directive)
31449         (func_get_license, func_get_maintainer, func_import): Avoid
31450         shell syntax errors from parsing syntax extensions.
31451
31452 2010-09-09  Bruno Haible  <bruno@clisp.org>
31453
31454         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31455         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
31456         a reliable way to determine whether the 'alias' command works.
31457
31458 2010-09-08  Jim Meyering  <meyering@redhat.com>
31459
31460         init.sh: penalize a set-x-impaired shell; don't disqualify it
31461         * tests/init.sh: Too many shells corrupt application stderr when
31462         you set -x, so we can't afford to disqualify them, since at least
31463         on Irix-6.5, that would disqualify all bourne shells.
31464         Instead, use a two-pass approach.
31465         On the first pass, try to find a shell that meets the stricter
31466         condition that set -x does not corrupt stderr.
31467         If no shell meets the stricter condition, retest each candidate
31468         shell, but without that extra condition.  Finally, when
31469         VERBOSE=yes is requested and set -x might cause trouble, simply
31470         issue a warning and refrain from enabling debug output.
31471
31472 2010-09-08  Eric Blake  <eblake@redhat.com>
31473
31474         unsetenv: fix OpenBSD bug
31475         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
31476         * doc/posix-functions/unsetenv.texi (unsetenv): Update
31477         documentation.
31478         Reported by Jim Meyering.
31479
31480         strtod: work around IRIX 6.5 bug
31481         * lib/strtod.c (strtod): Reparse number on shorter string if
31482         exponent parse was invalid.
31483         * tests/test-strtod.c (main): Add check for "0x1p 2".
31484         Reported by Tom G. Christensen.
31485
31486         getopt: optimize previous patch
31487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
31488         empty variable.  Speed up awk script.
31489         Reported by Paolo Bonzini.
31490
31491 2010-09-08  Jim Meyering  <meyering@redhat.com>
31492
31493         test.sh: disqualify shells for which set -x corrupts stderr
31494         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
31495         and OpenBSD 4.7.  They make it so with "set -x", environment settings
31496         appear in stderr output.  For example, this command:
31497             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
31498         prints "P=1" on those two systems:
31499
31500 2010-09-08  Bruno Haible  <bruno@clisp.org>
31501
31502         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31503         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
31504         commands, because some shells ignore redirections when there is an
31505         error in the command lookup.
31506         Reported by Eric Blake.
31507
31508 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31509
31510         * lib/regex.h: Fix a mention of `regex_compile' (should be
31511         `re_compile_pattern').
31512         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31513         (re_set_registers): Correct name of parameter in comment.
31514
31515         * doc/regex.texi: Add documentation for missing syntax flags.
31516         Remove commented-out documentation of defunct syntax option
31517         RE_NO_EMPTY_ALTS.
31518         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31519         Add documentation of re_set_registers.
31520         Document trick to re-use a pattern buffer by setting fastmap manually.
31521         Update documentation of struct re_pattern_buffer per public members.
31522         Uncomment documentation of equivalence class operators and
31523         collating symbol operators, since they are now implemented,
31524         Explain leftmost-longest matching in relation to alternatives.
31525         Tidy documentation of substring matching.
31526         Remove POSIX documentation, which is done better in
31527         glibc, and refer the reader there. Keep BSD API documentation, as
31528         that is not readily available elsewhere.
31529
31530 2010-09-07  Eric Blake  <eblake@redhat.com>
31531
31532         getopt: handle POSIXLY_CORRECT set but not exported
31533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31534         export state of POSIXLY_CORRECT, due to bash set -o posix.
31535         Reported by Dustin J. Mitchell.
31536
31537 2010-09-05  Bruno Haible  <bruno@clisp.org>
31538
31539         gnulib-tool: Highlight the changed options.
31540         * gnulib-tool (func_usage): Display the --import, --add-import,
31541         --remove-import explanations in bold font.
31542
31543 2010-09-06  Karl Berry  <karl@gnu.org>
31544
31545         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31546
31547 2010-09-05  Bruno Haible  <bruno@clisp.org>
31548
31549         uniwidth/width: Update comment.
31550         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31551         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31552
31553 2010-09-05  Bruno Haible  <bruno@clisp.org>
31554
31555         isinf, isnan: Relax license.
31556         * modules/isinf (License): Change from GPL to LGPL, with consent from
31557         Ben Pfaff.
31558         * modules/isnan (License): Likewise.
31559         Requested by Ludovic Courtès.
31560
31561 2010-09-04  Bruno Haible  <bruno@clisp.org>
31562
31563         gnulib-tool: Help migration from --import to --add-import or --update.
31564         * gnulib-tool: Emit a verbose error message when --import is used
31565         without any module name.
31566
31567 2010-09-04  Bruno Haible  <bruno@clisp.org>
31568
31569         Update doc about gnulib-tool.
31570         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31571         'gnulib-tool --update' in more detail.
31572         Reported by Eric Blake.
31573
31574 2010-09-04  Bruno Haible  <bruno@clisp.org>
31575
31576         gnulib-tool: Change --import. New options --add/remove-import.
31577         * gnulib-tool: New options --add-import, --remove-import.
31578         (func_usage): Document them.
31579         (have_associative): Define always.
31580         (func_import): In import mode, don't merge the specified settings with
31581         the cached settings. Implement remove-import mode.
31582         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31583         Explain when to use them versus --import.
31584         (Simple update): Use --add-import instead of --import.
31585         * NEWS: Mention the change.
31586
31587 2010-09-04  Bruno Haible  <bruno@clisp.org>
31588
31589         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31590         separate gnulib.mk.
31591
31592 2010-09-04  Bruno Haible  <bruno@clisp.org>
31593
31594         gnulib-tool: Don't talk about CVS any more.
31595         * gnulib-tool (func_usage, func_import): Write "version control"
31596         instead of CVS.
31597
31598 2010-09-04  Jim Meyering  <meyering@redhat.com>
31599
31600         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31601         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31602         false positives (whose names may be ill-chosen) when searching
31603         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31604         would cause a false-positive.
31605
31606         avoid coreutils "make distcheck" failure
31607         Coreutils tests with an absolute build directory name that contains
31608         a space.  Not quoting this directory name caused a failure.
31609         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31610         * tests/test-vc-list-files-cvs.sh: Likewise.
31611
31612 2010-09-04  Bruno Haible  <bruno@clisp.org>
31613
31614         gnulib-tool: Avoid error when run in a package without Makefile.am.
31615         * gnulib-tool: When collecting the m4dirs in a package that does not
31616         have a Makefile.am, eliminate those directories that contain no
31617         gnulib-cache.m4. Fix expression that counts these directories.
31618
31619 2010-09-04  Bruno Haible  <bruno@clisp.org>
31620
31621         update-copyright test: Improve output when perl is missing or too old.
31622         * tests/test-update-copyright.sh: Move test of Perl version down after
31623         the test whether Perl exists. Provide an explanation relating Perl's
31624         error message to Automake's SKIP: message.
31625
31626 2010-09-04  Bruno Haible  <bruno@clisp.org>
31627
31628         Don't augment PATH in TESTS_ENVIRONMENT.
31629         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31630         set abs_aux_dir instead of augmenting PATH.
31631         * modules/vc-list-files-tests (Makefile.am): Likewise.
31632         * tests/test-update-copyright.sh: Augment PATH here.
31633         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31634         path_prepend_.
31635         * tests/test-vc-list-files-git.sh: Likewise.
31636
31637 2010-09-04  Jim Meyering  <meyering@redhat.com>
31638
31639         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31640         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31641
31642 2010-09-04  Bruno Haible  <bruno@clisp.org>
31643
31644         strdup: Fix compilation error in C++ mode.
31645         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31646         the macro.
31647
31648 2010-09-04  Bruno Haible  <bruno@clisp.org>
31649
31650         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31651         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31652         macro into a function.
31653         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31654
31655 2010-09-04  Bruno Haible  <bruno@clisp.org>
31656
31657         Set PATH_SEPARATOR the same way autoconf does.
31658         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31659         the value of PATH_SEPARATOR the same way autoconf-generated configure
31660         scripts do.
31661         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31662         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31663
31664 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31665
31666         Set PATH_SEPARATOR the same way autoconf does.
31667         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31668         the same way autoconf-generated configure scripts do.
31669         * posix-modules: Likewise.
31670
31671 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31672
31673         hash: fix safe_hasher const typo
31674         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31675         const; otherwise, there is a type error later.
31676
31677 2010-09-02  Jim Meyering  <meyering@redhat.com>
31678
31679         test-update-copyright.sh: require perl 5.8.0
31680         * tests/test-update-copyright.sh: Require 5.8.0,
31681         which Tom G. Christensen has confirmed is adequate,
31682         while 5.6.1 is not.
31683
31684 2010-09-02  Eric Blake  <eblake@redhat.com>
31685
31686         tests: init.sh improvements for re-exec'ing with zsh
31687         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31688         -vx through shell re-exec.
31689         Reported by Tom G. Christensen.
31690
31691         wctype: fix typo in previous commit
31692         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31693         Reported by Ludovic Courtès.
31694
31695 2010-09-02  Jim Meyering  <meyering@redhat.com>
31696
31697         test-update-copyright.sh: skip test if Perl is too old
31698         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31699         Reported by Tom G. Christensen.
31700
31701 2010-09-02  Bruno Haible  <bruno@clisp.org>
31702
31703         wctype: Avoid compilation error on IRIX 6.5.30.
31704         * lib/wctype.in.h (iswblank): Declare with a replacement if
31705         REPLACE_ISWBLANK is set.
31706         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31707         declared. Set REPLACE_ISWBLANK.
31708         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31709         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31710         * doc/posix-headers/wctype.texi: Likewise.
31711         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31712
31713 2010-09-01  Bruno Haible  <bruno@clisp.org>
31714
31715         New module 'socketlib'.
31716         * modules/socketlib: New file.
31717         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31718         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31719         * modules/sockets (Depends-on): Add socketlib.
31720         Suggested by Sam Steingold <sds@gnu.org>.
31721
31722 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31723
31724         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31725
31726         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31727         when one needs search access to a directory but not read access.
31728         On systems where it is available, it works in some cases where
31729         O_RDONLY does not, namely on directories that are searchable but
31730         not readable, and which need only to be searchable.  If O_SEARCH
31731         is not available, fall back to the traditional method of using
31732         O_RDONLY.
31733
31734         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31735         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31736         when opening a directory that needs only to be searchable.
31737         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31738         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31739         * lib/openat-proc.c (openat_proc_name): Likewise.
31740         * lib/openat.c (openat_needs_fchdir): Likewise.
31741         * lib/save-cwd.c (save_cwd): Likewise.
31742         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31743
31744 2010-08-28  Bruno Haible  <bruno@clisp.org>
31745
31746         New module 'host-cpu-c-abi'.
31747         * modules/host-cpu-c-abi: New file.
31748         * m4/host-cpu-c-abi.m4: New file, based on part of
31749         clisp/src/m4/general.m4.
31750         Requested by Sam Steingold <sds@gnu.org>.
31751
31752 2010-08-31  Eric Blake  <eblake@redhat.com>
31753         and Jim Meyering  <meyering@redhat.com>
31754
31755         hash: factor, and guard against misbehaving hasher function
31756         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31757         of table->hasher's return value.  Also protect against a hash value
31758         so large that adding it to table->bucket results in a NULL pointer.
31759         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31760         Use it in place of open-coded check-and-abort.
31761
31762 2010-08-30  Bruno Haible  <bruno@clisp.org>
31763
31764         hash: silence spurious clang warning
31765         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31766         Reported by Eric Blake.
31767
31768 2010-08-30  Eric Blake  <eblake@redhat.com>
31769
31770         strstr, memmem, strcasestr: avoid leaked shell message
31771         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31772         FreeBSD.
31773         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31774         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31775
31776         tests: silence clang warning
31777         * tests/test-malloca.c (do_allocation): Avoid dead store.
31778
31779 2010-08-29  Bruno Haible  <bruno@clisp.org>
31780
31781         gettext: Fix recent mistake.
31782         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31783
31784 2010-08-29  Bruno Haible  <bruno@clisp.org>
31785
31786         selinux-h: Offer a --without-selinux option.
31787         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31788         --without-selinux was specified, skip all tests and define
31789         HAVE_SELINUX_SELINUX_H to 0.
31790         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31791         set LIB_SELINUX to empty.
31792         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31793         gl_LIBSELINUX. If --without-selinux was specified, replace
31794         selinux/context.h.
31795         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31796
31797 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31798             Bruno Haible  <bruno@clisp.org>
31799
31800         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31801         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31802         of HAVE_REALLOC.
31803         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31804         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31805         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31806         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31807
31808 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31809             Bruno Haible  <bruno@clisp.org>
31810
31811         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31812         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31813         HAVE_CALLOC.
31814         * lib/xmalloc.c: Update accordingly.
31815         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31816         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31817         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31818
31819 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31820             Bruno Haible  <bruno@clisp.org>
31821
31822         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31823         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31824         HAVE_MALLOC.
31825         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31826         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31827         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31828
31829 2010-08-29  Bruno Haible  <bruno@clisp.org>
31830
31831         Update modules list.
31832         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31833         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31834         (String handling <string.h>): Add astrxfrm.
31835         (File system functions): Add readlinkat.
31836
31837 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31838
31839         Tests for module 'realloc-gnu'.
31840         * modules/realloc-gnu-tests: New file.
31841         * tests/test-realloc-gnu.c: New file.
31842
31843         Tests for module 'calloc-gnu'.
31844         * modules/calloc-gnu-tests: New file.
31845         * tests/test-calloc-gnu.c: New file.
31846
31847         Tests for module 'malloc-gnu'.
31848         * modules/malloc-gnu-tests: New file.
31849         * tests/test-malloc-gnu.c: New file.
31850
31851 2010-08-28  Bruno Haible  <bruno@clisp.org>
31852
31853         Rename module 'realloc' -> 'realloc-gnu'.
31854         * modules/realloc-gnu: New file, copied from modules/realloc.
31855         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31856         obsolete.
31857         * modules/mgetgroups (Depends-on): Update.
31858         * doc/posix-functions/realloc.texi: Update.
31859         * NEWS: Mention the change.
31860
31861         Rename module 'calloc' -> 'calloc-gnu'.
31862         * modules/calloc-gnu: New file, copied from modules/calloc.
31863         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31864         obsolete.
31865         * doc/posix-functions/calloc.texi: Update.
31866         * NEWS: Mention the change.
31867
31868         Rename module 'malloc' -> 'malloc-gnu'.
31869         * modules/malloc-gnu: New file, copied from modules/malloc.
31870         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31871         obsolete.
31872         * modules/argp (Depends-on): Update.
31873         * modules/regex (Depends-on): Update.
31874         * doc/posix-functions/malloc.texi: Update.
31875         * NEWS: Mention the change.
31876
31877 2010-08-28  Eric Blake  <eblake@redhat.com>
31878
31879         pread, pwrite: add missing dependency
31880         * modules/pread (Depends-on): Add extensions.
31881         * modules/pwrite (Depends-on): Likewise.
31882
31883 2010-08-28  Bruno Haible  <bruno@clisp.org>
31884
31885         unistr/u*-strchr: Fix tests dependencies.
31886         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31887         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31888         Reported by Ian Beckwith <ianb@erislabs.net>.
31889
31890 2010-08-28  Bruno Haible  <bruno@clisp.org>
31891
31892         read-file: Don't occupy too much unused memory.
31893         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31894
31895 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31896             Eric Blake  <eblake@redhat.com>
31897             Bruno Haible  <bruno@clisp.org>
31898
31899         read-file: Avoid memory reallocations with regular files.
31900         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31901         (fread_file): With regular files, use the remaining length as the
31902         initial buffer size.  Check against overflow.
31903         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31904         sys_stat.
31905
31906 2010-08-28  Bruno Haible  <bruno@clisp.org>
31907
31908         ftello: Relax license.
31909         * modules/ftello (License): Relax to LGPLv2+.
31910         Reported by Eric Blake.
31911
31912 2010-08-28  Bruno Haible  <bruno@clisp.org>
31913
31914         Avoid relocwrapper link errors due to gnulib replacement functions.
31915         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31916         function.
31917         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31918
31919 2010-08-28  Bruno Haible  <bruno@clisp.org>
31920
31921         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31922         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31923         defined.
31924         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31925         Suggested by Eric Blake.
31926
31927 2010-08-28  Bruno Haible  <bruno@clisp.org>
31928
31929         sys_socket, netdb: Ensure socklen_t gets defined.
31930         * modules/sys_socket (Depends-on): Add socklen.
31931         * modules/netdb (Depends-on): Likewise.
31932         * modules/getaddrinfo (Depends-on): Remove socklen.
31933         * modules/getsockopt (Depends-on): Likewise.
31934         * modules/setsockopt (Depends-on): Likewise.
31935         * tests/test-sys_socket.c: Check that socklen_t is defined.
31936         * tests/test-netdb.c: Likewise.
31937         * m4/socklen.m4: Update comments.
31938         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31939
31940 2010-08-27  Eric Blake  <eblake@redhat.com>
31941
31942         login_tty: add missing dependency
31943         * modules/login_tty (Depends-on): Add pty.
31944
31945 2010-08-26  Eric Blake  <eblake@redhat.com>
31946
31947         lib-symbol-versions: fix m4 quoting
31948         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31949         format for AC_LINK_IFELSE.
31950
31951         glob: fix compile test
31952         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31953
31954         btowc: fix missing file
31955         * modules/btowc (Files): Also ship locale-fr.m4.
31956
31957         lseek: fix link test
31958         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31959         AC_LINK_IFELSE.
31960
31961         include_next: silence autoconf 2.68 warning
31962         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31963         AC_COMPILE_IFELSE as special.
31964         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31965         autoconf < 2.68.
31966
31967         acl: fix compilation test
31968         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31969         AC_COMPILE_IFELSE.
31970
31971 2010-08-26  Bruno Haible  <bruno@clisp.org>
31972
31973         Modernize AC_TRY_RUN invocations.
31974         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31975         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31976         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31977         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31978         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31979         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31980         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31981         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31982         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31983         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31984         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31985         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31986         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31987         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31988         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31989         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31990         gl_MBRLEN_NUL_RETVAL): Likewise.
31991         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31992         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31993         Likewise.
31994         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31995         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31996         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31997         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31998         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31999         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
32000         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
32001         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
32002         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
32003         Likewise.
32004         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32005         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
32006         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32007         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32008         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32009         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
32010         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
32011         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
32012         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32014
32015 2010-08-26  Bruno Haible  <bruno@clisp.org>
32016
32017         Modernize AC_TRY_LINK invocations.
32018         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
32019         AC_TRY_LINK.
32020         * m4/argp.m4 (gl_ARGP): Likewise.
32021         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
32022         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32023         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
32024         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32025         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32026         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
32027         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
32028         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
32029         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32030         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32031         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32032         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
32033         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
32034         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32035         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32036         * m4/hostent.m4 (gl_HOSTENT): Likewise.
32037         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
32038         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
32039         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
32040         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
32041         Likewise.
32042         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
32043         Likewise.
32044         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
32045         Likewise.
32046         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32047         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
32048         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
32049         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
32050         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
32051         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32052         * m4/servent.m4 (gl_SERVENT): Likewise.
32053         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
32054         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
32055         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
32056         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
32057         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32058         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32059         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32060         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32061         * modules/tsearch-tests (configure.ac): Likewise.
32062
32063 2010-08-26  Bruno Haible  <bruno@clisp.org>
32064
32065         Modernize AC_TRY_COMPILE invocations.
32066         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
32067         AC_TRY_COMPILE.
32068         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
32069         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
32070         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32071         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
32072         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32073         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32074         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32075         * m4/lock.m4 (gl_LOCK): Likewise.
32076         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
32077         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32078         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
32079         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32080         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32081         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
32082         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32083         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
32084         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32085         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32086         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32087         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32088         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
32089         extraneous semicolon.
32090
32091 2010-08-26  Jim Meyering  <meyering@redhat.com>
32092
32093         stat-time: relax license LGPL
32094         * modules/stat-time (License): Change from GPL to LGPL,
32095         with consent from all contributors, for use in libguile.
32096         Requested by Ludovic Courtès.
32097
32098 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
32099
32100         poll: return immediately on POLLHUP.
32101         * lib/poll.c (poll): Always set timeout before wait_timeout is
32102         computed.
32103
32104 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32105
32106         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
32107         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
32108         rmdir ("dir/.//"), unlinkat.
32109
32110 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
32111
32112         stdbool: avoid spurious failure with modern xlc
32113         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32114
32115 2010-08-24  Bruno Haible  <bruno@clisp.org>
32116
32117         getloadavg: simplify code
32118         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
32119         gl_have_func. Update comments.
32120
32121 2010-08-24  Eric Blake  <eblake@redhat.com>
32122
32123         getloadavg: don't define SVR4 on cygwin
32124         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
32125         only define SVR4 when -lkvm is required.
32126         Reported by Yaakov Selkowitz.
32127
32128 2010-08-24  Bruno Haible  <bruno@clisp.org>
32129
32130         priv-set: fix comment
32131         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
32132
32133 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
32134
32135         priv-set: fix comments
32136         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
32137         to match code, as suggested by David Bartley in:
32138         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
32139
32140 2010-08-23  Eric Blake  <eblake@redhat.com>
32141
32142         stdbool: avoid rejecting clang
32143         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32144         * tests/test-stdbool.c: Enable more tests if using the system
32145         <stdbool.h> instead of the gnulib replacement.
32146         (main): Move xlc bug test to a runtime test for all compilers.
32147         Reported by Anders Kaseorg.
32148
32149         argz: fix shell quoting issue
32150         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
32151         Reported by Charles Wilson.
32152
32153 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
32154             Erik Faye-Lund <kusmabite@gmail.com>
32155
32156         poll, select: handle ERROR_BROKEN_PIPE.
32157         * lib/poll.c (win32_compute_revents): Return POLLHUP when
32158         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32159         * lib/select.c (win32_compute_revents): Do not mark a pipe
32160         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32161
32162 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
32163
32164         fts: allow compilation with C++
32165         * lib/fts_.h: Specify extern "C" linkage with C++.
32166
32167 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32168
32169         Fix gnulib-tool sed script de-commentation for AIX sed.
32170         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
32171         sed.
32172
32173 2010-08-17  Eric Blake  <eblake@redhat.com>
32174
32175         test-stddef: test for (some) offsetof bugs
32176         * tests/test-stddef.c: Enhance test to ensure correct type of
32177         offsetof.
32178         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
32179         that we are not fixing at this time.
32180
32181 2010-08-15  Bruno Haible  <bruno@clisp.org>
32182
32183         stpncpy: Allow stpncpy to be defined as a macro.
32184         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
32185         if it's already correctly declared.
32186         * lib/string.in.h (stpncpy): Undefine before redefining.
32187         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
32188
32189 2010-08-14  Bruno Haible  <bruno@clisp.org>
32190
32191         Rename module 'memxfrm' to 'amemxfrm'.
32192         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
32193         (amemxfrm): Renamed from memxfrm.
32194         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
32195         (amemxfrm): Renamed from memxfrm.
32196         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
32197         * NEWS: Mention the change.
32198         * MODULES.html.sh (String handling <string.h>): Update.
32199         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
32200         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
32201         * lib/unicase/u16-casexfrm.c: Likewise.
32202         * lib/unicase/u32-casexfrm.c: Likewise.
32203         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
32204         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
32205         * lib/uninorm/u16-normxfrm.c: Likewise.
32206         * lib/uninorm/u32-normxfrm.c: Likewise.
32207         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
32208         memxfrm.
32209         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
32210         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
32211         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
32212         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
32213         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
32214         Suggested by Paul Eggert.
32215
32216 2010-08-14  Bruno Haible  <bruno@clisp.org>
32217
32218         Tests for module 'astrxfrm'.
32219         * modules/astrxfrm-tests: New file.
32220         * tests/test-astrxfrm.c: New file.
32221
32222         New module 'astrxfrm'.
32223         * lib/astrxfrm.h: New file.
32224         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
32225         * modules/astrxfrm: New file.
32226
32227 2010-08-14  Reuben Thomas <rrt@sc3d.org>
32228
32229         regex: Tweak doc.
32230         * doc/regex.texi (Overview): Don't mention regex.c.
32231         (GNU Regular Expression Compiling): Likewise.
32232         (Match-end-of-line Operator): Mention 'not_eol'.
32233
32234 2010-08-14  Brian Gough  <bjg@gnu.org>
32235             Bruno Haible  <bruno@clisp.org>
32236
32237         git-merge-changelog: add doc relating to use with bzr and hg.
32238         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
32239
32240 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
32241
32242         pthread: fix pthread.h creation for srcdir != builddir
32243         * modules/pthread (Makefile.am): Fix the rule to work also in a
32244         non-srcdir build.
32245
32246 2010-08-13  Karl Berry  <karl@gnu.org>
32247
32248         * doc/regex.texi (Predefined Syntaxes): @smallexample.
32249         * doc/posix-*/*: force line break before @url of POSIX
32250         specifications.
32251         Suggested by Werner Lemberg.
32252
32253 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32254
32255         strtod: fix const diagnostic
32256         * lib/strtod.c (strtod): Don't assign const char * to char *,
32257         as this elicits a warning from GCC when warnings are enabled.
32258
32259 2010-08-10  Pádraig Brady <P@draigbrady.com>
32260         and Eric Blake  <eblake@redhat.com>
32261
32262         copy-acl: ignore ENOTSUP on HP-UX
32263         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
32264         so that it is available for HP-UX.
32265         * lib/copy-acl.c (qcopy_acl): Use it.
32266         Reported by Patrick M. Callahan.
32267
32268 2010-08-10  Eric Blake  <eblake@redhat.com>
32269
32270         open, chown: relax license
32271         * modules/open (License): Change to LGPLv2+, with consent by all
32272         authors, for use in augeas.
32273         * modules/chown (License): Likewise.
32274         * modules/lchown (Likewise): Likewise.
32275         Requested by Adam Stokes.
32276
32277 2010-08-09  Karl Berry  <karl@gnu.org>
32278
32279         * build-aux/ar-lib: new file, import from Automake.
32280         * config/srclist.txt: autocheck for updates.
32281
32282 2010-08-09  Eric Blake  <eblake@redhat.com>
32283
32284         readlinkat: adjust client modules
32285         * modules/areadlinkat (Depends-on): Use readlinkat, not
32286         symlinkat.
32287         * modules/areadlinkat-with-size (Depends-on): Likewise.
32288
32289         mknod: be more vocal about danger of running tests as root
32290         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
32291         root, since that is just asking for problems.
32292         Suggested by Bruno Haible, based on a report by Rainer Tammer.
32293
32294         readlinkat: split into its own module
32295         * modules/symlinkat: Split readlinkat...
32296         * modules/readlinkat: ...into separate module.
32297         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
32298         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
32299         * lib/symlinkat.c (readlinkat): Move...
32300         * lib/readlinkat.c: ...into new file.
32301         * modules/symlinkat-tests: Split readlinkat test...
32302         * modules/readlinkat-tests: ...into separate module.
32303         * tests/test-symlinkat.c: Split...
32304         * tests/test-readlinkat.c: ...into new file.
32305         * NEWS: Document the split.
32306         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32307         * lib/unistd.in.h (readlinkat): Likewise.
32308         Suggested by Bruno Haible.
32309
32310 2010-08-08  Bruno Haible  <bruno@clisp.org>
32311
32312         memxfrm: Speed up.
32313         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
32314         that usually only one call to strxfrm is necessary for each string
32315         part.
32316         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32317
32318 2010-08-07  Karl Berry  <karl@gnu.org>
32319
32320         * doc/posix-headers/limits.texi,
32321         * doc/posix-functions/malloc.texi,
32322         * doc/posix-functions/strsignal.texi: missing @item.
32323         * doc/ld-version-script.texi: spurious leading i.
32324         * doc/regex.texi (Interval Operators): no commas inside @var.
32325
32326 2010-08-01  Bruno Haible  <bruno@clisp.org>
32327
32328         Integrate the regex documentation.
32329         * doc/gnulib.texi: Define 'cn' index.
32330         (Regular expressions): New a chapter that includes regex.texi and
32331         regexprops-generic.texi.
32332         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
32333         syntax.
32334
32335         Whitespace cleanup.
32336         * doc/regex.texi: Remove trailing spaces.
32337
32338         Add regex documentation.
32339         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
32340         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
32341         Written by Kathy A. Hargreaves and Karl Berry.
32342
32343 2010-08-01  Bruno Haible  <bruno@clisp.org>
32344
32345         link: Update documentation.
32346         * doc/posix-functions/link.texi: Update regarding Solaris.
32347
32348 2010-07-31  Bruno Haible  <bruno@clisp.org>
32349
32350         Update modules list.
32351         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
32352         (String handling <string.h>): Add memcmp2, memxfrm.
32353         (Container data structures): Add xlist, xsublist, xoset.
32354         (Core language properties): Add alignof, unused-parameter.
32355         (Process control, Numeric conversion functions <stdlib.h>): Renamed
32356         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
32357         (Unibyte characters <ctype.h>): New section.
32358         (String handling <string.h>): New section.
32359         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
32360         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
32361         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
32362         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
32363         tan, tanh, tanl, y0, y1, yn.
32364         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
32365         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
32366         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
32367         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
32368         unlockpt, vdprintf, vdprintf-posix.
32369         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
32370         (File system functions): Add concat-filename, sys_file, sys_ioctl,
32371         xconcat-filename.
32372         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
32373         getdtablesize, pipe2, pipe2-safer.
32374         (Security): New section.
32375         (Networking functions): Add accept4.
32376         (Signal handling): Add sigpipe.
32377         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
32378         mbmemcasecoll.
32379         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
32380         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
32381         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
32382         pipe-filter-ii.
32383         (Misc): Add argp-version-etc, login_tty, parse-duration.
32384
32385 2010-07-31  Bruno Haible  <bruno@clisp.org>
32386
32387         Improve doc in MODULES.html.
32388         * modules/linkat (Description): Add the word "function".
32389         * modules/mkfifo (Description): Likewise.
32390         * modules/mknod (Description): Likewise.
32391         * modules/remove (Description): Likewise.
32392         * modules/renameat (Description): Likewise.
32393         * modules/stat (Description): Likewise.
32394         * modules/symlink (Description): Likewise.
32395         * modules/unlink (Description): Likewise.
32396
32397 2010-07-31  Bruno Haible  <bruno@clisp.org>
32398
32399         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
32400         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
32401         option --enable/disable-c++ instead of --enable/disable-cxx.
32402         * NEWS: Mention the change.
32403
32404 2010-07-31  Bruno Haible  <bruno@clisp.org>
32405
32406         readlink, areadlink: Relax test a bit.
32407         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
32408         alternative to ENOTDIR.
32409         * tests/test-areadlink.h (test_areadlink): Likewise.
32410         Reported by Rainer Tammer.
32411
32412 2010-07-31  Bruno Haible  <bruno@clisp.org>
32413
32414         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
32415         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
32416         character, perform the search using U_STRCHR.
32417         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
32418         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
32419         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
32420         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
32421         Suggested by Paolo Bonzini.
32422
32423 2010-07-31  Bruno Haible  <bruno@clisp.org>
32424
32425         unistr/u*-strstr: Fix dependencies.
32426         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
32427         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
32428         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
32429
32430 2010-07-31  Bruno Haible  <bruno@clisp.org>
32431
32432         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
32433         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
32434         the beginning of the loop.
32435         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
32436         cases in 'switch' statement.
32437
32438         unistr/u8-strchr: Fix several bugs.
32439         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
32440         the string. When not found, return NULL, not a pointer near the end.
32441
32442         More tests for unistr/u8-strchr.
32443         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
32444         that the function does not read past the first occurrence of the byte
32445         being searched.
32446         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
32447         * tests/unistr/test-u16-strchr.c (main): New function.
32448         * tests/unistr/test-u32-strchr.c (main): New function.
32449
32450 2010-07-31  Bruno Haible  <bruno@clisp.org>
32451
32452         posix-modules: Ignore backup files of documentation files.
32453         * posix-modules: grep only through files named *.texi.
32454
32455 2010-07-31  Bruno Haible  <bruno@clisp.org>
32456
32457         symlinkat: Fix documentation.
32458         * doc/posix-functions/readlinkat.texi: Fix module name.
32459
32460 2010-07-31  Bruno Haible  <bruno@clisp.org>
32461
32462         fchownat: Replace also when chown has the trailing slash bug.
32463         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
32464         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
32465         introduced on 2010-04-10.
32466         Reported by Rainer Tammer.
32467
32468 2010-07-31  Bruno Haible  <bruno@clisp.org>
32469
32470         linkat: Work around AIX 7.1 bug.
32471         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
32472         whether linkat handles trailing slash correctly. If not, replace linkat
32473         and define LINKAT_TRAILING_SLASH_BUG.
32474         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
32475         check whether (fd1,file1) points to a directory if file1 or file2 ends
32476         in a slash. Code taken from lib/link.c.
32477         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
32478         Reported by Rainer Tammer.
32479
32480 2010-07-31  Bruno Haible  <bruno@clisp.org>
32481
32482         Correctly determine whether pow is available in libc on AIX 7 with xlc.
32483         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
32484         This disables an xlc optimization that was causing wrong test results.
32485         Reported by Rainer Tammer.
32486
32487 2010-07-31  Bruno Haible  <bruno@clisp.org>
32488
32489         iconv: Work around AIX 6.1..7.1 bug.
32490         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
32491         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
32492         cross-compiling, guess no on all versions of AIX.
32493         Reported by Rainer Tammer.
32494
32495 2010-07-31  Bruno Haible  <bruno@clisp.org>
32496
32497         readlink: Relax test a bit.
32498         * tests/test-readlink.h (test_readlink): Allow different errno value
32499         when readlink is called with a file name that ends in / and refers to
32500         a file.
32501         Suggested by Eric Blake.
32502         Reported by Rainer Tammer.
32503
32504 2010-07-31  Bruno Haible  <bruno@clisp.org>
32505
32506         copysign: Does not require -lm on glibc systems.
32507         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32508         gl_COMMON_DOUBLE_MATHFUNC.
32509         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32510
32511 2010-07-31  Bruno Haible  <bruno@clisp.org>
32512
32513         duplocale: Work around AIX 7.1 bug.
32514         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32515         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32516         * lib/duplocale.c (rpl_duplocale): Update comment.
32517         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32518         Reported by Rainer Tammer.
32519
32520 2010-07-30  Bruno Haible  <bruno@clisp.org>
32521
32522         dirfd: Avoid link error on AIX 7.1.
32523         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32524         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32525         exist, set REPLACE_DIRFD.
32526         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32527         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32528         * doc/posix-functions/dirfd.texi: Update.
32529         Reported by Rainer Tammer.
32530
32531 2010-07-30  Eric Blake  <eblake@redhat.com>
32532
32533         strtod: next round of AIX fixes
32534         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32535         exponent.
32536         * tests/test-strtod.c (main): Enhance tests.
32537         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32538         Reported by Rainer Tammer.
32539
32540         futimens: fix configure check
32541         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32542         Reported by Bruno Haible.
32543
32544 2010-07-30  Bruno Haible  <bruno@clisp.org>
32545
32546         getline: Update regarding AIX.
32547         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32548         Reported by Rainer Tammer.
32549
32550 2010-07-30  Bruno Haible  <bruno@clisp.org>
32551
32552         wcwidth: Drop replacement on AIX 7.
32553         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
32554         AIX 7.
32555         Reported by Rainer Tammer.
32556
32557 2010-07-30  Bruno Haible  <bruno@clisp.org>
32558
32559         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32560         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32561         a 'char *'.
32562         Reported by Rainer Tammer.
32563
32564 2010-07-30  Bruno Haible  <bruno@clisp.org>
32565
32566         unlink: Update regarding AIX.
32567         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32568         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32569         Reported by Rainer Tammer.
32570
32571 2010-07-30  Bruno Haible  <bruno@clisp.org>
32572
32573         symlink: Update regarding AIX.
32574         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32575         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32576         Reported by Rainer Tammer.
32577
32578 2010-07-30  Bruno Haible  <bruno@clisp.org>
32579
32580         strndup: Update regarding AIX.
32581         * m4/strndup.m4 (gl_FUNC_STRNDUP): 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         stat: Update regarding AIX.
32588         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32589         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32590         Reported by Rainer Tammer.
32591
32592 2010-07-30  Bruno Haible  <bruno@clisp.org>
32593
32594         truncl: Fix autoconf test.
32595         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32596         whether truncl works.
32597         Reported by Rainer Tammer.
32598
32599 2010-07-30  Bruno Haible  <bruno@clisp.org>
32600
32601         round: Update regarding AIX.
32602         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32603         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32604         Reported by Rainer Tammer.
32605
32606 2010-07-30  Bruno Haible  <bruno@clisp.org>
32607
32608         rename: Update regarding AIX.
32609         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32610         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32611         Reported by Rainer Tammer.
32612
32613 2010-07-30  Bruno Haible  <bruno@clisp.org>
32614
32615         printf.m4: Update regarding AIX.
32616         * m4/printf.m4: Update comments regarding AIX.
32617         Reported by Rainer Tammer.
32618
32619 2010-07-30  Bruno Haible  <bruno@clisp.org>
32620
32621         iconv: Update regarding AIX.
32622         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32623         AIX 7.
32624         Reported by Rainer Tammer.
32625
32626 2010-07-30  Bruno Haible  <bruno@clisp.org>
32627
32628         getopt: Update regarding AIX.
32629         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32630         no on AIX.
32631         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32632         Reported by Rainer Tammer.
32633
32634 2010-07-30  Bruno Haible  <bruno@clisp.org>
32635
32636         ldexpl; Update regarding AIX.
32637         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32638         on AIX 7.
32639         Reported by Rainer Tammer.
32640
32641 2010-07-30  Bruno Haible  <bruno@clisp.org>
32642
32643         frexpl: Update regarding AIX.
32644         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32645         on AIX 7.
32646         Reported by Rainer Tammer.
32647
32648 2010-07-30  Bruno Haible  <bruno@clisp.org>
32649
32650         open, fopen: Update regarding AIX.
32651         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32652         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32653         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32654         * doc/posix-functions/fopen.texi: Likewise.
32655         Reported by Rainer Tammer.
32656
32657 2010-07-30  Bruno Haible  <bruno@clisp.org>
32658
32659         chown: Update doc regarding AIX.
32660         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32661         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32662         Reported by Rainer Tammer.
32663
32664 2010-07-30  Eric Blake  <eblake@redhat.com>
32665
32666         strtod: fix bug in replacement function on AIX
32667         * lib/strtod.c (strtod): Special case broken "0x" parse in
32668         underlying strtod.
32669         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32670         * doc/posix-functions/strtod.texi (strtod): Likewise.
32671         Reported by Rainer Tammer.
32672
32673 2010-07-30  Bruno Haible  <bruno@clisp.org>
32674
32675         mbrlen: Fix cross-compilation guess for AIX.
32676         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32677         guess. Leftover from 2008-12-22.
32678
32679 2010-07-30  Bruno Haible  <bruno@clisp.org>
32680
32681         mbrtowc: Fix cross-compilation guess for AIX.
32682         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32683         guess. Leftover from 2008-12-21.
32684
32685 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32686
32687         init.sh: work around trap limitation of some shells
32688         * tests/init.sh (setup_): Move exit trap outside of shell function.
32689
32690 2010-07-29  Eric Blake  <eblake@redhat.com>
32691
32692         strtod: aid debugging
32693         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32694         understanding why strtod is rejected.
32695
32696 2010-07-28  Bruno Haible  <bruno@clisp.org>
32697
32698         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32699         * lib/unistr/u8-chr.c: Include <string.h>.
32700         * tests/unistr/test-u8-chr.c: Likewise.
32701         * tests/unistr/test-u16-chr.c: Likewise.
32702         * tests/unistr/test-u32-chr.c: Likewise.
32703         * tests/unistr/test-u8-strchr.c: Likewise.
32704         * tests/unistr/test-u16-strchr.c: Likewise.
32705         * tests/unistr/test-u32-strchr.c: Likewise.
32706         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32707         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32708         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32709         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32710
32711 2010-07-28  Bruno Haible  <bruno@clisp.org>
32712
32713         Use spaces for indentation, not tabs.
32714         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32715
32716 2010-07-27  Bruno Haible  <bruno@clisp.org>
32717
32718         mbspcasecmp: Fix function specification.
32719         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32720         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32721         Reported by Eric Blake <eblake@redhat.com>.
32722
32723 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32724
32725         timespec: use cast and not conditional, as truncation isn't possible
32726         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32727         instead of a conditional.  Comment about the situation in more detail.
32728         This undoes most of the 2009-10-29 patch.
32729
32730 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32731
32732         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32733         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32734         * lib/unistr/u8-strchr.c: Likewise.
32735         * modules/unistr/u8-chr: Depend on memchr.
32736
32737         unistr/u*-strchr: add tests
32738         * modules/unistr/u8-strchr-tests: New file.
32739         * modules/unistr/u16-strchr-tests: New file.
32740         * modules/unistr/u32-strchr-tests: New file.
32741         * tests/unistr/test-strchr.h: New file.
32742         * tests/unistr/test-u8-strchr.c: New file.
32743         * tests/unistr/test-u16-strchr.c: New file.
32744         * tests/unistr/test-u32-strchr.c: New file.
32745
32746         unistr/u*-chr: test multibyte sequences more
32747         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32748         test vector.
32749         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32750         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32751         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32752
32753         unistr/u*-chr: test multibyte sequences
32754         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32755
32756         unistr/u*-chr: prepare for multibyte tests
32757         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32758         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32759         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32760         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32761         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32762         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32763
32764 2010-07-18  Bruno Haible  <bruno@clisp.org>
32765
32766         unistr/u8-strchr: Optimize non-ASCII argument case.
32767         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32768         because the first byte often matches anyway.
32769         Reported by Pádraig Brady <P@draigbrady.com>.
32770
32771 2010-07-15  Karl Berry  <karl@gnu.org>
32772
32773         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32774
32775 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32776
32777         getcwd: on Solaris, work better if ancestors are inaccessible
32778         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32779         buffer and size, try again with a large buffer.  This works better
32780         on Solaris, since its getcwd succeeds even if the path to the root
32781         is inaccessible, and this is helpful in common cases such as .zfs
32782         hidden directories.  Problem reported by J Chapman Flack in
32783         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32784         Use system getcwd if it's declared, not merely if it's partly
32785         working; use the partly-working test only to avoid needless effort
32786         if the system getcwd fails.
32787         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32788         comment that was already obsolete and is now even more obsolete.
32789         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32790         now might call strdup.
32791
32792 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32793
32794         pthread: Add enough so that coreutils/src/sort.c compiles.
32795         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32796         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32797         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32798         Include <sys/types.h>, in case it defines pthread_t.
32799         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32800         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32801         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32802         (pthread_rwlockattr_t, pthread_spinlock_t):
32803         New typedefs, if HAVE_PTHREAD_T is not defined.
32804         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32805         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32806         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32807         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32808         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32809         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32810         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32811         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32812         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32813         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32814         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32815         New macros.
32816         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32817         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32818         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32819         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32820         (pthread_spin_unlock): New dummy functions.
32821         (pthread_create): Return EAGAIN; don't set errno.
32822         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32823         require AC_C_INLINE.
32824         * modules/pthread (Depends-on): Add sched, time.
32825         (pthread.h): Use AM_V_GEN.
32826
32827 2010-07-13  Bruno Haible  <bruno@clisp.org>
32828
32829         striconveh: Don't malloc memory if the result buffer is sufficient.
32830         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32831         buffer if its size is sufficient.
32832         Reported by Ludovic Courtès <ludo@gnu.org>.
32833
32834 2010-07-13  Bruno Haible  <bruno@clisp.org>
32835
32836         strtod: Add safety check.
32837         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32838
32839 2010-07-12  Bruno Haible  <bruno@clisp.org>
32840
32841         Unify tests that set gl_cv_func_ldexpl_no_libm.
32842         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32843         gl_FUNC_LDEXPL.
32844         (gl_FUNC_LDEXPL): Invoke it.
32845         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32846
32847 2010-07-12  Bruno Haible  <bruno@clisp.org>
32848
32849         Unify tests that set gl_cv_func_ldexp_no_libm.
32850         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32851         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32852         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32853         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32854         * modules/strtod (Files): Add m4/ldexp.m4.
32855
32856 2010-07-12  Bruno Haible  <bruno@clisp.org>
32857
32858         Unify tests that set gl_cv_func_frexpl_no_libm.
32859         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32860         gl_FUNC_FREXPL_NO_LIBM.
32861         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32862         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32863
32864 2010-07-12  Bruno Haible  <bruno@clisp.org>
32865
32866         Unify tests that set gl_cv_func_frexp_no_libm.
32867         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32868         gl_FUNC_FREXP_NO_LIBM.
32869         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32870         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32871
32872 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32873
32874         memcoll: clarify sizes versus lengths, document better, and tweak perf
32875         * lib/memcoll.c (strcoll_loop, memcoll0):
32876         Improve quality of descriptive comments.  Name variables
32877         consistently as to whether they are lengths (which do not include
32878         terminating null) versus sizes (which do).
32879         * lib/xmemcoll.c (xmemcoll0): Likewise.
32880         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32881         returned when s1size == 0; this is easier to compile and saves
32882         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32883
32884 2010-07-12  Bruno Haible  <bruno@clisp.org>
32885
32886         Tests for module '_Exit'.
32887         * modules/_Exit-tests: New file.
32888         * tests/test-_Exit.sh: New file.
32889         * tests/test-_Exit.c: New file.
32890
32891         New module '_Exit'.
32892         * lib/stdlib.in.h (__attribute__): New macro.
32893         (_Exit): New declaration.
32894         * lib/_Exit.c: New file.
32895         * m4/_Exit.m4: New file.
32896         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32897         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32898         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32899         * modules/_Exit: New file.
32900         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32901         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32902
32903 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32904
32905         strtod: make it more-accurate typically, and don't require libm
32906         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32907         Include limits.h.  Don't include string.h.
32908         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32909         (locale_isspace): New function, so that no casts are needed to
32910         check whether *s is a space.
32911         (ldexp): Provide an unused dummy if not available.
32912         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32913         (strtod): Use them.  This implementation prefers to use the
32914         underlying strtod if available, falling back on our own code
32915         only to fix known bugs.  This is more likely to produce an
32916         accurate result.  Also, it avoids the use of libm functions.
32917         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32918         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32919         was absent, but it caused a test failure with coreutils.
32920         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32921         with libm.
32922         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32923         * modules/strtod-tests (Makefile.am): Likewise.
32924
32925 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32926             Bruno Haible  <bruno@clisp.org>
32927
32928         unistr/u8-strchr: Optimize ASCII argument case.
32929         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32930
32931 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32932
32933         (x)memcoll: minor tweaks
32934         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32935         is after the type that it qualifies.
32936         (memcoll0): Likewise.
32937         * lib/memcoll.h (memcoll0): Likewise.
32938         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32939         * lib/xmemcoll.h (xmemcoll0): Likewise.
32940         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32941         differs from memcoll in that the NUL byte is part of the argument.
32942         Omit the abort-checks, as performance is a real issue here.  Plus,
32943         the checks were wrong anyway (an off-by-one error).  Omit local
32944         variable 'diff', as it's a bit clearer that way.
32945         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32946         no longer needed.
32947
32948 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32949
32950         (x)memcoll: speedup when input is known to be NUL delimited
32951         * lib/memcoll.c: Include stdlib.
32952         (memcoll0): New function.
32953         (strcoll_loop): New function, refactored for use in both memcoll
32954         and memcoll0.
32955         * lib/memcoll.h (memcoll0): Add prototype.
32956         * lib/xmemcoll.c (xmemcoll0): New function.
32957         (collate_error): New function, refactored for use in both xmemcoll
32958         and xmemcoll0.
32959         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32960         * m4/memcoll.m4: add inline invocation.
32961
32962 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32963
32964         * build-aux/bootstrap: Remove any local translations
32965         from the translation project synchronization directory,
32966         so that local only translations are not distributed.
32967
32968 2010-07-04  Bruno Haible  <bruno@clisp.org>
32969
32970         fsusage: Clarify which code applies to which platforms.
32971         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32972         platform.
32973         * lib/fsusage.c (get_fs_usage): Likewise.
32974
32975 2010-07-04  Bruno Haible  <bruno@clisp.org>
32976
32977         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32978         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32979         Reported by Martin Lambers <marlam@marlam.de>.
32980
32981 2010-07-04  Jim Meyering  <meyering@redhat.com>
32982
32983         hash: once again explicitly disallow insertion of NULL
32984         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32985         inserting a NULL pointer cannot work with these functions.
32986         Add a comment with details.
32987         This reverts part of the 2010-07-01 commit, 5bef1a35
32988         "hash: extend module to deal with non-pointer keys".
32989
32990 2010-07-01  Bruno Haible  <bruno@clisp.org>
32991
32992         stdbool: Update doc.
32993         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32994         Info from Christian Weisgerber <naddy@mips.inka.de>.
32995
32996 2010-07-01  Jim Meyering  <meyering@redhat.com>
32997
32998         hash: extend module to deal with non-pointer keys
32999         * lib/hash.c (hash_insert0): New interface, much like hash_insert
33000         but that allows insertion of non-pointer entries.
33001         Do not disallow an ENTRY value of NULL.
33002         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
33003         * lib/hash.h (hash_insert0): Declare.
33004
33005 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
33006
33007         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
33008         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
33009         not present (i.e. with autoconf 2.59 and when using gettextize, not
33010         gnulib), require AC_GNU_SOURCE instead.
33011
33012 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
33013
33014         idpriv-drop: Fix tests.
33015         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
33016         not to the test-idpriv-droptemp program.
33017
33018 2010-06-29  Bruno Haible  <bruno@clisp.org>
33019
33020         string: Fix syntax error with g++ 2.96.
33021         * lib/string.in.h (__pure__): Remove definition.
33022         (_GL_ATTRIBUTE_PURE): New macro.
33023         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
33024         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
33025         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33026
33027 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
33028
33029         unitypes: Fix bug introduced on 2010-05-18.
33030         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
33031
33032 2010-06-22  Eric Blake  <eblake@redhat.com>
33033
33034         memmem: slight optimization
33035         * lib/str-two-way.h (critical_factorization): Update comments.
33036         Reduce work during factorization phase.
33037         Reported by Carlos Bueno <carlos@bueno.org>.
33038
33039 2010-06-21  Bruno Haible  <bruno@clisp.org>
33040
33041         Fix HAVE_CALLOC_POSIX misnomer.
33042         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
33043         !HAVE_CALLOC_POSIX.
33044         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
33045         HAVE_CALLOC_POSIX.
33046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
33047         instead of HAVE_CALLOC_POSIX.
33048         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
33049         HAVE_CALLOC_POSIX.
33050
33051         Use modern idiom for calloc() replacement.
33052         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
33053         AC_FUNC_CALLOC.
33054         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
33055         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
33056         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33057         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
33058         (gl_REPLACE_CALLOC): New macro.
33059
33060 2010-06-21  Bruno Haible  <bruno@clisp.org>
33061
33062         Fix HAVE_REALLOC_POSIX misnomer.
33063         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
33064         !HAVE_REALLOC_POSIX.
33065         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
33066         HAVE_REALLOC_POSIX.
33067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
33068         instead of HAVE_REALLOC_POSIX.
33069         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
33070         HAVE_REALLOC_POSIX.
33071
33072         Use modern idiom for realloc() replacement.
33073         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
33074         AC_FUNC_REALLOC.
33075         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
33076         Autoconf's AC_FUNC_REALLOC.
33077         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33078         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
33079         (gl_REPLACE_REALLOC): New macro.
33080         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
33081
33082 2010-06-21  Bruno Haible  <bruno@clisp.org>
33083
33084         Fix HAVE_MALLOC_POSIX misnomer.
33085         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
33086         !HAVE_MALLOC_POSIX.
33087         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
33088         HAVE_MALLOC_POSIX.
33089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
33090         instead of HAVE_MALLOC_POSIX.
33091         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
33092         HAVE_MALLOC_POSIX.
33093
33094         Use modern idiom for malloc() replacement.
33095         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
33096         AC_FUNC_MALLOC.
33097         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
33098         Autoconf's AC_FUNC_MALLOC.
33099         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33100         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
33101         (gl_REPLACE_MALLOC): New macro.
33102         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
33103
33104 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
33105
33106         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
33107         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
33108         This macro takes 3 arguments, not 4.
33109
33110 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
33111
33112         ipv6: fix detection under mingw
33113         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
33114         in6_addr.
33115
33116 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
33117
33118         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
33119         that strtod() works when cross-compiling to a glibc version known
33120         to work.
33121
33122 2010-06-15  Bruno Haible  <bruno@clisp.org>
33123
33124         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
33125
33126 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
33127
33128         select: Correct timeout.
33129         * lib/select.c (rpl_select): Compute wait_timeout correctly.
33130
33131 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33132
33133         git-version-gen: init shell var to avoid env var influence
33134         * build-aux/git-version-gen (v): Init shell var to empty.
33135
33136 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33137
33138         priv-set: Don't assume that priv.h exists merely because getppriv does.
33139         See Jan Andersen's bug report about AIX 5L in
33140         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
33141         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
33142         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
33143         * lib/priv-set.h: Likewise.
33144         * tests/test-priv-set.c: Likewise.
33145
33146 2010-06-13  Bruno Haible  <bruno@clisp.org>
33147
33148         relocatable: Make it easier to test whether to install wrappers.
33149         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
33150         RELOCATABLE_VIA_WRAPPER.
33151
33152 2010-06-13  Bruno Haible  <bruno@clisp.org>
33153
33154         gnulib-tool: Display specified modules and dependencies differently.
33155         * gnulib-tool (func_show_module_list): New function.
33156         (func_import, func_create_testdir): Invoke it.
33157         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33158
33159 2010-06-13  Bruno Haible  <bruno@clisp.org>
33160
33161         gnulib-tool: Align code of func_import and func_create_testdir.
33162         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
33163         specified_modules.
33164
33165 2010-06-12  Jim Meyering  <meyering@redhat.com>
33166
33167         test-inttostr: avoid spurious failure on Solaris 9
33168         * tests/test-inttostr.c (main): Skip the test when snprintf fails
33169         to accept "%ju".  Reported by Bruno Haible.
33170
33171 2010-06-11  Jim Meyering  <meyering@redhat.com>
33172
33173         test-sys_socket: mark variables as used more readably
33174         * tests/test-sys_socket.c (main): Mark otherwise unused variables
33175         as "used" explicitly via (void) statement casts.  This is more
33176         readable than using them in an artificial return expression.
33177         Suggestion from Bruno Haible.
33178
33179 2010-06-11  Bruno Haible  <bruno@clisp.org>
33180
33181         Avoid some more warnings from "gcc -Wwrite-strings".
33182         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
33183         to 'const char *'.
33184         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
33185         * tests/test-c-strcasestr.c (main): Likewise.
33186         * tests/test-mbscasestr1.c (main): Likewise.
33187         * tests/test-mbscasestr2.c (main): Likewise.
33188         * tests/test-memmem.c (main): Likewise.
33189         * tests/test-strstr.c (main): Likewise.
33190         * tests/test-strcasestr.c (main): Likewise.
33191
33192 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33193
33194         init.sh: change framework_failure_ to fail with status 99, not 1
33195         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
33196         automake's parallel-tests rule that this is an unexpected failure,
33197         even if the test is listed in XFAIL_TESTS.
33198
33199 2010-06-11  Jim Meyering  <meyering@redhat.com>
33200
33201         test-inttostr: avoid warnings about 4-6KB literal strings
33202         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
33203         Include "macros.h", for its definition of ASSERT.
33204         (CK): s/assert/ASSERT/
33205         * modules/inttostr-tests (Files): Add macros.h.
33206
33207         init.sh: don't use $ME_ or skip_ before they are defined
33208         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
33209         their first uses.  Also hoist their companions: warn_, fail_,
33210         framework_failure_, $stderr_fileno.  Prompted by a patch from
33211         Stefano Lattarini.
33212
33213         test-sys_socket: avoid set-but-not-used warnings from gcc
33214         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
33215         avoid warning about set-but-not-used variables.
33216
33217         test-xvasprintf: avoid 'const' discard warnings
33218         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
33219         "const" when assigning from literal strings.
33220         (test_xasprintf): Add "void" in function argument list to placate
33221         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
33222
33223         tests: avoid compilation warnings in argmatch and exclude tests...
33224         in packages that define ARGMATCH_DIE_DECL, like coreutils.
33225         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
33226         Since it always exits, declare with the "noreturn" attribute.
33227         * tests/test-argmatch.c: Likewise.
33228
33229         tests: avoid 'const' discard warnings in mbsstr tests
33230         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
33231         * tests/test-mbsstr2.c (main): Likewise.
33232
33233         test-verify: avoid warning from gcc's -Wmissing-declarations
33234         * tests/test-verify.c (function): Declare to be static.
33235
33236         test-inttostr.c: include <string.h> for use of strcmp
33237         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
33238
33239         test-linkat: avoid failed assertion on "other" architectures
33240         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
33241         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
33242         sparc: https://bugs.launchpad.net/bugs/591968
33243
33244 2010-06-11  Jim Meyering  <meyering@redhat.com>
33245
33246         printf.m4: avoid autoconf's "Expanded Before Required" warning
33247         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
33248         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
33249         autoconf warning.
33250
33251 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
33252
33253         Replacement header templates are now named with ".in", not "_".
33254         * doc/gnulib-intro.texi: Correct.
33255
33256 2010-06-10  Jim Meyering  <meyering@redhat.com>
33257
33258         inttostr-tests: depend on snprintf, not snprintf-posix
33259         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
33260         snprintf-posix, to avoid this aclocal failure:
33261           missing file gnulib-tests/vasnprintf.c
33262           configure.ac:45: error: expected source file, required through \
33263           AC_LIBSOURCES, not found
33264
33265 2010-06-10  Jim Meyering  <meyering@redhat.com>
33266
33267         inttostr: add a new function, inttostr, and tests
33268         The namesake function was not available.  The existence of the
33269         template file, inttostr.c makes its addition nontrivial.
33270         * lib/anytostr.c: Rename from inttostr.c.
33271         (anytostr): Rename from inttostr.
33272         * lib/inttostr.c: New file.
33273         * modules/inttostr (Files): Add anytostr.c.
33274         (Makefile.am): Set lib_SOURCES instead of ...
33275         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
33276         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
33277         * lib/offtostr.c: Likewise.
33278         * lib/uinttostr.c: Likewise.
33279         * lib/umaxtostr.c: Likewise.
33280         * modules/inttostr-tests: New file.
33281         * tests/test-inttostr.c: New file.  Test these functions.
33282
33283 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
33284             Bruno Haible  <bruno@clisp.org>
33285
33286         Add "Extending Gnulib" chapter to manual.
33287         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
33288         chapter.
33289         (Extending Gnulib): New chapter.
33290         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
33291         chapter.
33292
33293 2010-06-09  Bruno Haible  <bruno@clisp.org>
33294
33295         Avoid relocwrapper link errors due to gnulib replacement functions.
33296         * lib/areadlink.c: Use the system's malloc, realloc functions.
33297         (areadlink): Set errno to ENOMEM explicitly.
33298         * modules/areadlink (Depends-on): Remove malloc-posix.
33299         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33300
33301 2010-06-09  Bruno Haible  <bruno@clisp.org>
33302
33303         Avoid relocwrapper link errors due to gnulib replacement functions.
33304         * lib/canonicalize-lgpl.c: Use the system's malloc function.
33305         * lib/malloca.c: Likewise.
33306         * lib/relocatable.c: Likewise.
33307         * lib/progreloc.c: Use the system's malloc, sprintf functions.
33308         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
33309         * lib/setenv.c: Use the system's malloc, realloc functions.
33310         * lib/strerror.c: Use the system's sprintf function.
33311         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33312
33313 2010-06-04  Bruno Haible  <bruno@clisp.org>
33314
33315         Prefer documented low-level autoconf macro names.
33316         * m4/lib-link.m4: Use m4_translit instead of translit.
33317         * m4/environ.m4: Likewise.
33318         * m4/mathfunc.m4: Likewise.
33319         * m4/onceonly.m4: Likewise.
33320         * m4/stdint.m4: Likewise.
33321         Suggested by Eric Blake.
33322
33323 2010-06-04  Martin Lambers  <marlam@marlam.de>
33324             Bruno Haible  <bruno@clisp.org>
33325
33326         havelib: Allow library names with '+' characters.
33327         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33328         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
33329
33330 2010-06-09  Bruno Haible  <bruno@clisp.org>
33331
33332         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
33333         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
33334         realloc failed.
33335
33336 2010-06-08  Peter Simons  <simons@cryp.to>
33337
33338         maint.mk: make the news-check rule more configurable
33339         * top/maint.mk (news-check-lines-spec): New variable.
33340         (news-check): Use "sed -n 1,10p" in place of "head".
33341
33342 2010-06-07  Jim Meyering  <meyering@redhat.com>
33343
33344         do-release-commit-and-tag: fix typo in --help
33345         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
33346
33347         regex: avoid new dead-code warning with gcc-4.6.0
33348         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
33349         if-block containing a while-loop.  It's been unused for at least
33350         5 years.
33351
33352 2010-06-05  Bruno Haible  <bruno@clisp.org>
33353
33354         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
33355         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
33356
33357 2010-06-04  Bruno Haible  <bruno@clisp.org>
33358
33359         Update to GNU gettext 0.18.1.
33360         * modules/gettext (configure.ac): Require gettext infrastructure from
33361         version 0.18.1.
33362
33363 2010-06-03  Bruno Haible  <bruno@clisp.org>
33364
33365         Don't use AC_LIBOBJ with file names in subdirectories.
33366         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
33367         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
33368         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
33369         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
33370         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
33371         gl_LIBUNISTRING_LIBSOURCE.
33372         (Makefile.am): Augment lib_SOURCES here, conditionally.
33373         * NEWS: Drop requirement for Automake option 'subdir-objects'.
33374
33375 2010-06-03  Bruno Haible  <bruno@clisp.org>
33376
33377         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
33378         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
33379         expansion does not end with a newline.
33380         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
33381         unnecessary newline.
33382
33383 2010-06-03  Bruno Haible  <bruno@clisp.org>
33384
33385         Reduce dependencies.
33386         * tests/test-quotearg.h: New file, extracted from
33387         tests/test-quotearg.c.
33388         * tests/test-quotearg-simple.c: New file, extracted from
33389         tests/test-quotearg.c.
33390         * tests/test-quotearg.c: Don't include <ctype.h>.
33391         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
33392         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
33393         use_quote_double_quotes, use_quotearg_colon): Moved to
33394         tests/test-quotearg.h.
33395         (results_g, flag_results, custom_quotes, custom_results): Moved
33396         to tests/test-quotearg-simple.c.
33397         (main): Moved the part that does not depend on gettext to
33398         tests/test-quotearg-simple.c. Return 77 if the test cannot be
33399         performed.
33400         * modules/quotearg-simple: New file.
33401         * modules/quotearg-simple-tests: New file.
33402         * modules/quotearg (Depends-on): Add quotearg-simple.
33403         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
33404         (Files): Add tests/test-quotearg.h.
33405         Reported by Paolo Bonzini.
33406
33407 2010-06-03  Bruno Haible  <bruno@clisp.org>
33408
33409         Reduce dependencies.
33410         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
33411
33412 2010-06-03  Bruno Haible  <bruno@clisp.org>
33413
33414         time: Undefine more broken macros.
33415         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
33416         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
33417         Reported by Eric Blake.
33418
33419 2010-06-03  Bruno Haible  <bruno@clisp.org>
33420
33421         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
33422         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
33423         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
33424         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
33425         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
33426         Reported by Ludovic Courtès <ludo@gnu.org>.
33427
33428 2010-06-02  Eric Blake  <eblake@redhat.com>
33429
33430         time: work with mingw + pthreads-win32 library
33431         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
33432         if timespec is defined only in pthread.h.
33433         * modules/time (Makefile.am): Substitute it.
33434         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
33435         <pthread.h>, when needed.
33436         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
33437         from the library.
33438
33439 2010-05-31  Bruno Haible  <bruno@clisp.org>
33440
33441         Avoid expanding two macros in the wrong order.
33442         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
33443         gl_LIBUNISTRING if it is defined.
33444         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
33445         autoconf >= 2.64.
33446         Reported by Ludovic Courtès <ludo@gnu.org>.
33447
33448 2010-05-27  Jim Meyering  <meyering@redhat.com>
33449
33450         maint.mk: also prohibit "#undef" of always-defined symbols
33451         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
33452         Allow more than one space before the symbol name.
33453         (sc_prohibit_always-defined_macros): Use grep's -E, now that
33454         the regexp uses alternation.
33455
33456 2010-05-26  Eric Blake  <eblake@redhat.com>
33457
33458         maint.mk: avoid echo -e
33459         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
33460         Convert all uses of echo -* to printf.
33461         Reported by Matthias Bolte.
33462
33463 2010-05-25  Bruno Haible  <bruno@clisp.org>
33464
33465         Update to GNU gettext 0.18, part 2.
33466         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
33467         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
33468
33469 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33470
33471         Add missing include in test-pwrite.c.
33472         * tests/test-pwrite.c: Include string.h, for strcmp.
33473
33474 2010-05-24  Bruno Haible  <bruno@clisp.org>
33475
33476         * NEWS: Mention requirement for Automake option 'subdir-objects'.
33477
33478 2010-05-24  Bruno Haible  <bruno@clisp.org>
33479
33480         Don't use conversion with transliteration in u{8,16,32}_strcoll.
33481         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
33482         iconveh_error argument.
33483         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
33484         U_STRCONV_TO_LOCALE.
33485         * lib/unistr/u16-strcoll.c: Likewise.
33486         * lib/unistr/u32-strcoll.c: Likewise.
33487         * modules/unistr/u8-strcoll (Depends-on): Add
33488         uniconv/u8-strconv-to-enc, localcharset. Remove
33489         uniconv/u8-strconv-to-locale.
33490         (configure.ac): Bump version number.
33491         * modules/unistr/u16-strcoll (Depends-on): Add
33492         uniconv/u16-strconv-to-enc, localcharset. Remove
33493         uniconv/u16-strconv-to-locale.
33494         (configure.ac): Bump version number.
33495         * modules/unistr/u32-strcoll (Depends-on): Add
33496         uniconv/u32-strconv-to-enc, localcharset. Remove
33497         uniconv/u32-strconv-to-locale.
33498         (configure.ac): Bump version number.
33499
33500 2010-05-24  Bruno Haible  <bruno@clisp.org>
33501
33502         Avoid a test failure on NetBSD 5.0.
33503         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
33504         an iconv() bug.
33505
33506 2010-05-24  Bruno Haible  <bruno@clisp.org>
33507
33508         Adjust #include directive style.
33509         * modules/regex (Includes): Recommend to write <regex.h>.
33510
33511 2010-05-24  Bruno Haible  <bruno@clisp.org>
33512
33513         regex: Don't require alloca.
33514         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33515         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33516         only inside if (0).
33517
33518 2010-05-23  Jim Meyering  <meyering@redhat.com>
33519
33520         test-renameat.c: include <sys/stat.h>
33521         * tests/test-renameat.c: Include <sys/stat.h>; required for
33522         definition of S_IS* macros.
33523
33524 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33525
33526         Update maintainer documentation for 'relocatable-prog' module.
33527         * doc/relocatable-maint.texi: Update.
33528         Comments by Bruno Haible.
33529
33530 2010-05-23  Bruno Haible  <bruno@clisp.org>
33531
33532         git-merge-changelog: Enable --split-merged-entry by default.
33533         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33534         (usage): Don't mention this option any more.
33535         Reported by Ralf Wildenhues.
33536
33537 2010-05-23  Jim Meyering  <meyering@redhat.com>
33538
33539         test-pwrite: do not leave behind a test file named "out"
33540         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33541         The trivial-looking use of init.sh is really necessary.
33542         It ensures that the temporary file, "out", is created in
33543         a temporary directory, and removed upon termination.
33544         * tests/test-pwrite.sh: Re-add file.
33545         * modules/pwrite-tests: Reference it.
33546
33547 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33548
33549         Fix output redirection buglet in init.sh.
33550         * tests/init.sh: Fix redirection of stderr.
33551
33552 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33553
33554         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33555
33556 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33557
33558         * modules/valgrind-tests: New file.
33559         * m4/valgrind-tests.m4: New file.
33560         * doc/valgrind-tests.texi: New file.
33561         * doc/gnulib.texi (Running self-tests under valgrind): New
33562         section.
33563
33564 2010-05-19  Bruno Haible  <bruno@clisp.org>
33565
33566         Clean up dead code in recent commit.
33567         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33568         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33569         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33570         Suggested by Paolo Bonzini.
33571
33572 2010-05-19  Bruno Haible  <bruno@clisp.org>
33573
33574         Avoid valgrind error reports from libunistring.
33575         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33576         * modules/libunistring (Files): Add it.
33577         * modules/libunistring-optional (Files): Likewise.
33578
33579 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33580             Bruno Haible  <bruno@clisp.org>
33581
33582         New module 'libunistring-optional'.
33583         * modules/libunistring-optional: New file.
33584         * m4/libunistring-base.m4: New file.
33585         * m4/libunistring-optional.m4: New file.
33586         * lib/unicase.in.h: Renamed from lib/unicase.h.
33587         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33588         * lib/unictype.in.h: Renamed from lib/unictype.h.
33589         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33590         * lib/uniname.in.h: Renamed from lib/uniname.h.
33591         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33592         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33593         * lib/unistr.in.h: Renamed from lib/unistr.h.
33594         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33595         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33596         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33597         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33598         gl_LIBUNISTRING. If the library was found, determine the installed
33599         version and set LIBUNISTRING_VERSION.
33600         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33601         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33602         handle a configuration option --with-included-libunistring.
33603         * modules/libunistring (Files): Add m4/absolute-header.m4.
33604         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33605         Add m4/libunistring-base.m4.
33606         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33607         (Makefile.am): Build unicase.h from unicase.in.h.
33608         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33609         Add m4/libunistring-base.m4.
33610         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33611         (Makefile.am): Build uniconv.h from uniconv.in.h.
33612         * modules/unictype/base (Files): Use unictype.in.h instead of
33613         unictype.h. Add m4/libunistring-base.m4.
33614         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33615         (Makefile.am): Build unictype.h from unictype.in.h.
33616         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33617         Add m4/libunistring-base.m4.
33618         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33619         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33620         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33621         Add m4/libunistring-base.m4.
33622         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33623         (Makefile.am): Build uniname.h from uniname.in.h.
33624         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33625         Add m4/libunistring-base.m4.
33626         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33627         (Makefile.am): Build uninorm.h from uninorm.in.h.
33628         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33629         unistdio.h. Add m4/libunistring-base.m4.
33630         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33631         (Makefile.am): Build unistdio.h from unistdio.in.h.
33632         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33633         Add m4/libunistring-base.m4.
33634         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33635         (Makefile.am): Build unistr.h from unistr.in.h.
33636         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33637         Add m4/libunistring-base.m4.
33638         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33639         (Makefile.am): Build unitypes.h from unitypes.in.h.
33640         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33641         Add m4/libunistring-base.m4.
33642         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33643         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33644         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33645         uniwidth.h. Add m4/libunistring-base.m4.
33646         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33647         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33648         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33649         instead of augmenting lib_SOURCES.
33650         * modules/unicase/empty-suffix-context: Likewise.
33651         * modules/unicase/locale-language: Likewise.
33652         * modules/unicase/tolower: Likewise.
33653         * modules/unicase/totitle: Likewise.
33654         * modules/unicase/toupper: Likewise.
33655         * modules/unicase/u8-casecmp: Likewise.
33656         * modules/unicase/u8-casecoll: Likewise.
33657         * modules/unicase/u8-casefold: Likewise.
33658         * modules/unicase/u8-casexfrm: Likewise.
33659         * modules/unicase/u8-ct-casefold: Likewise.
33660         * modules/unicase/u8-ct-tolower: Likewise.
33661         * modules/unicase/u8-ct-totitle: Likewise.
33662         * modules/unicase/u8-ct-toupper: Likewise.
33663         * modules/unicase/u8-is-cased: Likewise.
33664         * modules/unicase/u8-is-casefolded: Likewise.
33665         * modules/unicase/u8-is-lowercase: Likewise.
33666         * modules/unicase/u8-is-titlecase: Likewise.
33667         * modules/unicase/u8-is-uppercase: Likewise.
33668         * modules/unicase/u8-prefix-context: Likewise.
33669         * modules/unicase/u8-suffix-context: Likewise.
33670         * modules/unicase/u8-tolower: Likewise.
33671         * modules/unicase/u8-totitle: Likewise.
33672         * modules/unicase/u8-toupper: Likewise.
33673         * modules/unicase/u16-casecmp: Likewise.
33674         * modules/unicase/u16-casecoll: Likewise.
33675         * modules/unicase/u16-casefold: Likewise.
33676         * modules/unicase/u16-casexfrm: Likewise.
33677         * modules/unicase/u16-ct-casefold: Likewise.
33678         * modules/unicase/u16-ct-tolower: Likewise.
33679         * modules/unicase/u16-ct-totitle: Likewise.
33680         * modules/unicase/u16-ct-toupper: Likewise.
33681         * modules/unicase/u16-is-cased: Likewise.
33682         * modules/unicase/u16-is-casefolded: Likewise.
33683         * modules/unicase/u16-is-lowercase: Likewise.
33684         * modules/unicase/u16-is-titlecase: Likewise.
33685         * modules/unicase/u16-is-uppercase: Likewise.
33686         * modules/unicase/u16-prefix-context: Likewise.
33687         * modules/unicase/u16-suffix-context: Likewise.
33688         * modules/unicase/u16-tolower: Likewise.
33689         * modules/unicase/u16-totitle: Likewise.
33690         * modules/unicase/u16-toupper: Likewise.
33691         * modules/unicase/u32-casecmp: Likewise.
33692         * modules/unicase/u32-casecoll: Likewise.
33693         * modules/unicase/u32-casefold: Likewise.
33694         * modules/unicase/u32-casexfrm: Likewise.
33695         * modules/unicase/u32-ct-casefold: Likewise.
33696         * modules/unicase/u32-ct-tolower: Likewise.
33697         * modules/unicase/u32-ct-totitle: Likewise.
33698         * modules/unicase/u32-ct-toupper: Likewise.
33699         * modules/unicase/u32-is-cased: Likewise.
33700         * modules/unicase/u32-is-casefolded: Likewise.
33701         * modules/unicase/u32-is-lowercase: Likewise.
33702         * modules/unicase/u32-is-titlecase: Likewise.
33703         * modules/unicase/u32-is-uppercase: Likewise.
33704         * modules/unicase/u32-prefix-context: Likewise.
33705         * modules/unicase/u32-suffix-context: Likewise.
33706         * modules/unicase/u32-tolower: Likewise.
33707         * modules/unicase/u32-totitle: Likewise.
33708         * modules/unicase/u32-toupper: Likewise.
33709         * modules/unicase/ulc-casecmp: Likewise.
33710         * modules/unicase/ulc-casecoll: Likewise.
33711         * modules/unicase/ulc-casexfrm: Likewise.
33712         * modules/uniconv/u8-conv-from-enc: Likewise.
33713         * modules/uniconv/u8-conv-to-enc: Likewise.
33714         * modules/uniconv/u8-strconv-from-enc: Likewise.
33715         * modules/uniconv/u8-strconv-from-locale: Likewise.
33716         * modules/uniconv/u8-strconv-to-enc: Likewise.
33717         * modules/uniconv/u8-strconv-to-locale: Likewise.
33718         * modules/uniconv/u16-conv-from-enc: Likewise.
33719         * modules/uniconv/u16-conv-to-enc: Likewise.
33720         * modules/uniconv/u16-strconv-from-enc: Likewise.
33721         * modules/uniconv/u16-strconv-from-locale: Likewise.
33722         * modules/uniconv/u16-strconv-to-enc: Likewise.
33723         * modules/uniconv/u16-strconv-to-locale: Likewise.
33724         * modules/uniconv/u32-conv-from-enc: Likewise.
33725         * modules/uniconv/u32-conv-to-enc: Likewise.
33726         * modules/uniconv/u32-strconv-from-enc: Likewise.
33727         * modules/uniconv/u32-strconv-from-locale: Likewise.
33728         * modules/uniconv/u32-strconv-to-enc: Likewise.
33729         * modules/uniconv/u32-strconv-to-locale: Likewise.
33730         * modules/unictype/bidicategory-byname: Likewise.
33731         * modules/unictype/bidicategory-name: Likewise.
33732         * modules/unictype/bidicategory-of: Likewise.
33733         * modules/unictype/bidicategory-test: Likewise.
33734         * modules/unictype/block-list: Likewise.
33735         * modules/unictype/block-test: Likewise.
33736         * modules/unictype/category-C: Likewise.
33737         * modules/unictype/category-Cc: Likewise.
33738         * modules/unictype/category-Cf: Likewise.
33739         * modules/unictype/category-Cn: Likewise.
33740         * modules/unictype/category-Co: Likewise.
33741         * modules/unictype/category-Cs: Likewise.
33742         * modules/unictype/category-L: Likewise.
33743         * modules/unictype/category-Ll: Likewise.
33744         * modules/unictype/category-Lm: Likewise.
33745         * modules/unictype/category-Lo: Likewise.
33746         * modules/unictype/category-Lt: Likewise.
33747         * modules/unictype/category-Lu: Likewise.
33748         * modules/unictype/category-M: Likewise.
33749         * modules/unictype/category-Mc: Likewise.
33750         * modules/unictype/category-Me: Likewise.
33751         * modules/unictype/category-Mn: Likewise.
33752         * modules/unictype/category-N: Likewise.
33753         * modules/unictype/category-Nd: Likewise.
33754         * modules/unictype/category-Nl: Likewise.
33755         * modules/unictype/category-No: Likewise.
33756         * modules/unictype/category-P: Likewise.
33757         * modules/unictype/category-Pc: Likewise.
33758         * modules/unictype/category-Pd: Likewise.
33759         * modules/unictype/category-Pe: Likewise.
33760         * modules/unictype/category-Pf: Likewise.
33761         * modules/unictype/category-Pi: Likewise.
33762         * modules/unictype/category-Po: Likewise.
33763         * modules/unictype/category-Ps: Likewise.
33764         * modules/unictype/category-S: Likewise.
33765         * modules/unictype/category-Sc: Likewise.
33766         * modules/unictype/category-Sk: Likewise.
33767         * modules/unictype/category-Sm: Likewise.
33768         * modules/unictype/category-So: Likewise.
33769         * modules/unictype/category-Z: Likewise.
33770         * modules/unictype/category-Zl: Likewise.
33771         * modules/unictype/category-Zp: Likewise.
33772         * modules/unictype/category-Zs: Likewise.
33773         * modules/unictype/category-and: Likewise.
33774         * modules/unictype/category-and-not: Likewise.
33775         * modules/unictype/category-byname: Likewise.
33776         * modules/unictype/category-name: Likewise.
33777         * modules/unictype/category-none: Likewise.
33778         * modules/unictype/category-of: Likewise.
33779         * modules/unictype/category-or: Likewise.
33780         * modules/unictype/category-test: Likewise.
33781         * modules/unictype/combining-class: Likewise.
33782         * modules/unictype/ctype-alnum: Likewise.
33783         * modules/unictype/ctype-alpha: Likewise.
33784         * modules/unictype/ctype-blank: Likewise.
33785         * modules/unictype/ctype-cntrl: Likewise.
33786         * modules/unictype/ctype-digit: Likewise.
33787         * modules/unictype/ctype-graph: Likewise.
33788         * modules/unictype/ctype-lower: Likewise.
33789         * modules/unictype/ctype-print: Likewise.
33790         * modules/unictype/ctype-punct: Likewise.
33791         * modules/unictype/ctype-space: Likewise.
33792         * modules/unictype/ctype-upper: Likewise.
33793         * modules/unictype/ctype-xdigit: Likewise.
33794         * modules/unictype/decimal-digit: Likewise.
33795         * modules/unictype/digit: Likewise.
33796         * modules/unictype/mirror: Likewise.
33797         * modules/unictype/numeric: Likewise.
33798         * modules/unictype/property-alphabetic: Likewise.
33799         * modules/unictype/property-ascii-hex-digit: Likewise.
33800         * modules/unictype/property-bidi-arabic-digit: Likewise.
33801         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33802         * modules/unictype/property-bidi-block-separator: Likewise.
33803         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33804         * modules/unictype/property-bidi-common-separator: Likewise.
33805         * modules/unictype/property-bidi-control: Likewise.
33806         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33807         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33808         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33809         * modules/unictype/property-bidi-european-digit: Likewise.
33810         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33811         * modules/unictype/property-bidi-left-to-right: Likewise.
33812         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33813         * modules/unictype/property-bidi-other-neutral: Likewise.
33814         * modules/unictype/property-bidi-pdf: Likewise.
33815         * modules/unictype/property-bidi-segment-separator: Likewise.
33816         * modules/unictype/property-bidi-whitespace: Likewise.
33817         * modules/unictype/property-byname: Likewise.
33818         * modules/unictype/property-combining: Likewise.
33819         * modules/unictype/property-composite: Likewise.
33820         * modules/unictype/property-currency-symbol: Likewise.
33821         * modules/unictype/property-dash: Likewise.
33822         * modules/unictype/property-decimal-digit: Likewise.
33823         * modules/unictype/property-default-ignorable-code-point: Likewise.
33824         * modules/unictype/property-deprecated: Likewise.
33825         * modules/unictype/property-diacritic: Likewise.
33826         * modules/unictype/property-extender: Likewise.
33827         * modules/unictype/property-format-control: Likewise.
33828         * modules/unictype/property-grapheme-base: Likewise.
33829         * modules/unictype/property-grapheme-extend: Likewise.
33830         * modules/unictype/property-grapheme-link: Likewise.
33831         * modules/unictype/property-hex-digit: Likewise.
33832         * modules/unictype/property-hyphen: Likewise.
33833         * modules/unictype/property-id-continue: Likewise.
33834         * modules/unictype/property-id-start: Likewise.
33835         * modules/unictype/property-ideographic: Likewise.
33836         * modules/unictype/property-ids-binary-operator: Likewise.
33837         * modules/unictype/property-ids-trinary-operator: Likewise.
33838         * modules/unictype/property-ignorable-control: Likewise.
33839         * modules/unictype/property-iso-control: Likewise.
33840         * modules/unictype/property-join-control: Likewise.
33841         * modules/unictype/property-left-of-pair: Likewise.
33842         * modules/unictype/property-line-separator: Likewise.
33843         * modules/unictype/property-logical-order-exception: Likewise.
33844         * modules/unictype/property-lowercase: Likewise.
33845         * modules/unictype/property-math: Likewise.
33846         * modules/unictype/property-non-break: Likewise.
33847         * modules/unictype/property-not-a-character: Likewise.
33848         * modules/unictype/property-numeric: Likewise.
33849         * modules/unictype/property-other-alphabetic: Likewise.
33850         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33851         * modules/unictype/property-other-grapheme-extend: Likewise.
33852         * modules/unictype/property-other-id-continue: Likewise.
33853         * modules/unictype/property-other-id-start: Likewise.
33854         * modules/unictype/property-other-lowercase: Likewise.
33855         * modules/unictype/property-other-math: Likewise.
33856         * modules/unictype/property-other-uppercase: Likewise.
33857         * modules/unictype/property-paired-punctuation: Likewise.
33858         * modules/unictype/property-paragraph-separator: Likewise.
33859         * modules/unictype/property-pattern-syntax: Likewise.
33860         * modules/unictype/property-pattern-white-space: Likewise.
33861         * modules/unictype/property-private-use: Likewise.
33862         * modules/unictype/property-punctuation: Likewise.
33863         * modules/unictype/property-quotation-mark: Likewise.
33864         * modules/unictype/property-radical: Likewise.
33865         * modules/unictype/property-sentence-terminal: Likewise.
33866         * modules/unictype/property-soft-dotted: Likewise.
33867         * modules/unictype/property-space: Likewise.
33868         * modules/unictype/property-terminal-punctuation: Likewise.
33869         * modules/unictype/property-test: Likewise.
33870         * modules/unictype/property-titlecase: Likewise.
33871         * modules/unictype/property-unassigned-code-value: Likewise.
33872         * modules/unictype/property-unified-ideograph: Likewise.
33873         * modules/unictype/property-uppercase: Likewise.
33874         * modules/unictype/property-variation-selector: Likewise.
33875         * modules/unictype/property-white-space: Likewise.
33876         * modules/unictype/property-xid-continue: Likewise.
33877         * modules/unictype/property-xid-start: Likewise.
33878         * modules/unictype/property-zero-width: Likewise.
33879         * modules/unictype/scripts: Likewise.
33880         * modules/unictype/syntax-c-ident: Likewise.
33881         * modules/unictype/syntax-c-whitespace: Likewise.
33882         * modules/unictype/syntax-java-ident: Likewise.
33883         * modules/unictype/syntax-java-whitespace: Likewise.
33884         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33885         * modules/unilbrk/u8-width-linebreaks: Likewise.
33886         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33887         * modules/unilbrk/u16-width-linebreaks: Likewise.
33888         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33889         * modules/unilbrk/u32-width-linebreaks: Likewise.
33890         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33891         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33892         * modules/uniname/uniname: Likewise.
33893         * modules/uninorm/canonical-decomposition: Likewise.
33894         * modules/uninorm/composition: Likewise.
33895         * modules/uninorm/decomposing-form: Likewise.
33896         * modules/uninorm/decomposition: Likewise.
33897         * modules/uninorm/filter: Likewise.
33898         * modules/uninorm/nfc: Likewise.
33899         * modules/uninorm/nfd: Likewise.
33900         * modules/uninorm/nfkc: Likewise.
33901         * modules/uninorm/nfkd: Likewise.
33902         * modules/uninorm/u8-normalize: Likewise.
33903         * modules/uninorm/u8-normcmp: Likewise.
33904         * modules/uninorm/u8-normcoll: Likewise.
33905         * modules/uninorm/u8-normxfrm: Likewise.
33906         * modules/uninorm/u16-normalize: Likewise.
33907         * modules/uninorm/u16-normcmp: Likewise.
33908         * modules/uninorm/u16-normcoll: Likewise.
33909         * modules/uninorm/u16-normxfrm: Likewise.
33910         * modules/uninorm/u32-normalize: Likewise.
33911         * modules/uninorm/u32-normcmp: Likewise.
33912         * modules/uninorm/u32-normcoll: Likewise.
33913         * modules/uninorm/u32-normxfrm: Likewise.
33914         * modules/unistdio/u8-asnprintf: Likewise.
33915         * modules/unistdio/u8-asprintf: Likewise.
33916         * modules/unistdio/u8-snprintf: Likewise.
33917         * modules/unistdio/u8-sprintf: Likewise.
33918         * modules/unistdio/u8-u8-asnprintf: Likewise.
33919         * modules/unistdio/u8-u8-asprintf: Likewise.
33920         * modules/unistdio/u8-u8-snprintf: Likewise.
33921         * modules/unistdio/u8-u8-sprintf: Likewise.
33922         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33923         * modules/unistdio/u8-u8-vasprintf: Likewise.
33924         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33925         * modules/unistdio/u8-u8-vsprintf: Likewise.
33926         * modules/unistdio/u8-vasnprintf: Likewise.
33927         * modules/unistdio/u8-vasprintf: Likewise.
33928         * modules/unistdio/u8-vsnprintf: Likewise.
33929         * modules/unistdio/u8-vsprintf: Likewise.
33930         * modules/unistdio/u16-asnprintf: Likewise.
33931         * modules/unistdio/u16-asprintf: Likewise.
33932         * modules/unistdio/u16-snprintf: Likewise.
33933         * modules/unistdio/u16-sprintf: Likewise.
33934         * modules/unistdio/u16-u16-asnprintf: Likewise.
33935         * modules/unistdio/u16-u16-asprintf: Likewise.
33936         * modules/unistdio/u16-u16-snprintf: Likewise.
33937         * modules/unistdio/u16-u16-sprintf: Likewise.
33938         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33939         * modules/unistdio/u16-u16-vasprintf: Likewise.
33940         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33941         * modules/unistdio/u16-u16-vsprintf: Likewise.
33942         * modules/unistdio/u16-vasnprintf: Likewise.
33943         * modules/unistdio/u16-vasprintf: Likewise.
33944         * modules/unistdio/u16-vsnprintf: Likewise.
33945         * modules/unistdio/u16-vsprintf: Likewise.
33946         * modules/unistdio/u32-asnprintf: Likewise.
33947         * modules/unistdio/u32-asprintf: Likewise.
33948         * modules/unistdio/u32-snprintf: Likewise.
33949         * modules/unistdio/u32-sprintf: Likewise.
33950         * modules/unistdio/u32-u32-asnprintf: Likewise.
33951         * modules/unistdio/u32-u32-asprintf: Likewise.
33952         * modules/unistdio/u32-u32-snprintf: Likewise.
33953         * modules/unistdio/u32-u32-sprintf: Likewise.
33954         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33955         * modules/unistdio/u32-u32-vasprintf: Likewise.
33956         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33957         * modules/unistdio/u32-u32-vsprintf: Likewise.
33958         * modules/unistdio/u32-vasnprintf: Likewise.
33959         * modules/unistdio/u32-vasprintf: Likewise.
33960         * modules/unistdio/u32-vsnprintf: Likewise.
33961         * modules/unistdio/u32-vsprintf: Likewise.
33962         * modules/unistdio/ulc-asnprintf: Likewise.
33963         * modules/unistdio/ulc-asprintf: Likewise.
33964         * modules/unistdio/ulc-fprintf: Likewise.
33965         * modules/unistdio/ulc-snprintf: Likewise.
33966         * modules/unistdio/ulc-sprintf: Likewise.
33967         * modules/unistdio/ulc-vasnprintf: Likewise.
33968         * modules/unistdio/ulc-vasprintf: Likewise.
33969         * modules/unistdio/ulc-vfprintf: Likewise.
33970         * modules/unistdio/ulc-vsnprintf: Likewise.
33971         * modules/unistdio/ulc-vsprintf: Likewise.
33972         * modules/unistr/u8-check: Likewise.
33973         * modules/unistr/u8-chr: Likewise.
33974         * modules/unistr/u8-cmp: Likewise.
33975         * modules/unistr/u8-cmp2: Likewise.
33976         * modules/unistr/u8-cpy: Likewise.
33977         * modules/unistr/u8-cpy-alloc: Likewise.
33978         * modules/unistr/u8-endswith: Likewise.
33979         * modules/unistr/u8-mblen: Likewise.
33980         * modules/unistr/u8-mbsnlen: Likewise.
33981         * modules/unistr/u8-mbtouc: Likewise.
33982         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33983         * modules/unistr/u8-mbtoucr: Likewise.
33984         * modules/unistr/u8-move: Likewise.
33985         * modules/unistr/u8-next: Likewise.
33986         * modules/unistr/u8-prev: Likewise.
33987         * modules/unistr/u8-set: Likewise.
33988         * modules/unistr/u8-startswith: Likewise.
33989         * modules/unistr/u8-stpcpy: Likewise.
33990         * modules/unistr/u8-stpncpy: Likewise.
33991         * modules/unistr/u8-strcat: Likewise.
33992         * modules/unistr/u8-strchr: Likewise.
33993         * modules/unistr/u8-strcmp: Likewise.
33994         * modules/unistr/u8-strcoll: Likewise.
33995         * modules/unistr/u8-strcpy: Likewise.
33996         * modules/unistr/u8-strcspn: Likewise.
33997         * modules/unistr/u8-strdup: Likewise.
33998         * modules/unistr/u8-strlen: Likewise.
33999         * modules/unistr/u8-strmblen: Likewise.
34000         * modules/unistr/u8-strmbtouc: Likewise.
34001         * modules/unistr/u8-strncat: Likewise.
34002         * modules/unistr/u8-strncmp: Likewise.
34003         * modules/unistr/u8-strncpy: Likewise.
34004         * modules/unistr/u8-strnlen: Likewise.
34005         * modules/unistr/u8-strpbrk: Likewise.
34006         * modules/unistr/u8-strrchr: Likewise.
34007         * modules/unistr/u8-strspn: Likewise.
34008         * modules/unistr/u8-strstr: Likewise.
34009         * modules/unistr/u8-strtok: Likewise.
34010         * modules/unistr/u8-to-u16: Likewise.
34011         * modules/unistr/u8-to-u32: Likewise.
34012         * modules/unistr/u8-uctomb: Likewise.
34013         * modules/unistr/u16-check: Likewise.
34014         * modules/unistr/u16-chr: Likewise.
34015         * modules/unistr/u16-cmp: Likewise.
34016         * modules/unistr/u16-cmp2: Likewise.
34017         * modules/unistr/u16-cpy: Likewise.
34018         * modules/unistr/u16-cpy-alloc: Likewise.
34019         * modules/unistr/u16-endswith: Likewise.
34020         * modules/unistr/u16-mblen: Likewise.
34021         * modules/unistr/u16-mbsnlen: Likewise.
34022         * modules/unistr/u16-mbtouc: Likewise.
34023         * modules/unistr/u16-mbtouc-unsafe: Likewise.
34024         * modules/unistr/u16-mbtoucr: Likewise.
34025         * modules/unistr/u16-move: Likewise.
34026         * modules/unistr/u16-next: Likewise.
34027         * modules/unistr/u16-prev: Likewise.
34028         * modules/unistr/u16-set: Likewise.
34029         * modules/unistr/u16-startswith: Likewise.
34030         * modules/unistr/u16-stpcpy: Likewise.
34031         * modules/unistr/u16-stpncpy: Likewise.
34032         * modules/unistr/u16-strcat: Likewise.
34033         * modules/unistr/u16-strchr: Likewise.
34034         * modules/unistr/u16-strcmp: Likewise.
34035         * modules/unistr/u16-strcoll: Likewise.
34036         * modules/unistr/u16-strcpy: Likewise.
34037         * modules/unistr/u16-strcspn: Likewise.
34038         * modules/unistr/u16-strdup: Likewise.
34039         * modules/unistr/u16-strlen: Likewise.
34040         * modules/unistr/u16-strmblen: Likewise.
34041         * modules/unistr/u16-strmbtouc: Likewise.
34042         * modules/unistr/u16-strncat: Likewise.
34043         * modules/unistr/u16-strncmp: Likewise.
34044         * modules/unistr/u16-strncpy: Likewise.
34045         * modules/unistr/u16-strnlen: Likewise.
34046         * modules/unistr/u16-strpbrk: Likewise.
34047         * modules/unistr/u16-strrchr: Likewise.
34048         * modules/unistr/u16-strspn: Likewise.
34049         * modules/unistr/u16-strstr: Likewise.
34050         * modules/unistr/u16-strtok: Likewise.
34051         * modules/unistr/u16-to-u32: Likewise.
34052         * modules/unistr/u16-to-u8: Likewise.
34053         * modules/unistr/u16-uctomb: Likewise.
34054         * modules/unistr/u32-check: Likewise.
34055         * modules/unistr/u32-chr: Likewise.
34056         * modules/unistr/u32-cmp: Likewise.
34057         * modules/unistr/u32-cmp2: Likewise.
34058         * modules/unistr/u32-cpy: Likewise.
34059         * modules/unistr/u32-cpy-alloc: Likewise.
34060         * modules/unistr/u32-endswith: Likewise.
34061         * modules/unistr/u32-mblen: Likewise.
34062         * modules/unistr/u32-mbsnlen: Likewise.
34063         * modules/unistr/u32-mbtouc: Likewise.
34064         * modules/unistr/u32-mbtouc-unsafe: Likewise.
34065         * modules/unistr/u32-mbtoucr: Likewise.
34066         * modules/unistr/u32-move: Likewise.
34067         * modules/unistr/u32-next: Likewise.
34068         * modules/unistr/u32-prev: Likewise.
34069         * modules/unistr/u32-set: Likewise.
34070         * modules/unistr/u32-startswith: Likewise.
34071         * modules/unistr/u32-stpcpy: Likewise.
34072         * modules/unistr/u32-stpncpy: Likewise.
34073         * modules/unistr/u32-strcat: Likewise.
34074         * modules/unistr/u32-strchr: Likewise.
34075         * modules/unistr/u32-strcmp: Likewise.
34076         * modules/unistr/u32-strcoll: Likewise.
34077         * modules/unistr/u32-strcpy: Likewise.
34078         * modules/unistr/u32-strcspn: Likewise.
34079         * modules/unistr/u32-strdup: Likewise.
34080         * modules/unistr/u32-strlen: Likewise.
34081         * modules/unistr/u32-strmblen: Likewise.
34082         * modules/unistr/u32-strmbtouc: Likewise.
34083         * modules/unistr/u32-strncat: Likewise.
34084         * modules/unistr/u32-strncmp: Likewise.
34085         * modules/unistr/u32-strncpy: Likewise.
34086         * modules/unistr/u32-strnlen: Likewise.
34087         * modules/unistr/u32-strpbrk: Likewise.
34088         * modules/unistr/u32-strrchr: Likewise.
34089         * modules/unistr/u32-strspn: Likewise.
34090         * modules/unistr/u32-strstr: Likewise.
34091         * modules/unistr/u32-strtok: Likewise.
34092         * modules/unistr/u32-to-u16: Likewise.
34093         * modules/unistr/u32-to-u8: Likewise.
34094         * modules/unistr/u32-uctomb: Likewise.
34095         * modules/uniwbrk/u8-wordbreaks: Likewise.
34096         * modules/uniwbrk/u16-wordbreaks: Likewise.
34097         * modules/uniwbrk/u32-wordbreaks: Likewise.
34098         * modules/uniwbrk/ulc-wordbreaks: Likewise.
34099         * modules/uniwbrk/wordbreak-property: Likewise.
34100         * modules/uniwidth/u8-strwidth: Likewise.
34101         * modules/uniwidth/u8-width: Likewise.
34102         * modules/uniwidth/u16-strwidth: Likewise.
34103         * modules/uniwidth/u16-width: Likewise.
34104         * modules/uniwidth/u32-strwidth: Likewise.
34105         * modules/uniwidth/u32-width: Likewise.
34106         * modules/uniwidth/width: Likewise.
34107         * modules/unicase/cased-tests (Makefile.am): Link all test programs
34108         with $(LIBUNISTRING).
34109         * modules/unicase/ignorable-tests: Likewise.
34110         * modules/unicase/locale-language-tests: Likewise.
34111         * modules/unicase/tolower-tests: Likewise.
34112         * modules/unicase/totitle-tests: Likewise.
34113         * modules/unicase/toupper-tests: Likewise.
34114         * modules/unicase/u8-casecmp-tests: Likewise.
34115         * modules/unicase/u8-casecoll-tests: Likewise.
34116         * modules/unicase/u8-casefold-tests: Likewise.
34117         * modules/unicase/u8-is-cased-tests: Likewise.
34118         * modules/unicase/u8-is-casefolded-tests: Likewise.
34119         * modules/unicase/u8-is-lowercase-tests: Likewise.
34120         * modules/unicase/u8-is-titlecase-tests: Likewise.
34121         * modules/unicase/u8-is-uppercase-tests: Likewise.
34122         * modules/unicase/u8-tolower-tests: Likewise.
34123         * modules/unicase/u8-totitle-tests: Likewise.
34124         * modules/unicase/u8-toupper-tests: Likewise.
34125         * modules/unicase/u16-casecmp-tests: Likewise.
34126         * modules/unicase/u16-casecoll-tests: Likewise.
34127         * modules/unicase/u16-casefold-tests: Likewise.
34128         * modules/unicase/u16-is-cased-tests: Likewise.
34129         * modules/unicase/u16-is-casefolded-tests: Likewise.
34130         * modules/unicase/u16-is-lowercase-tests: Likewise.
34131         * modules/unicase/u16-is-titlecase-tests: Likewise.
34132         * modules/unicase/u16-is-uppercase-tests: Likewise.
34133         * modules/unicase/u16-tolower-tests: Likewise.
34134         * modules/unicase/u16-totitle-tests: Likewise.
34135         * modules/unicase/u16-toupper-tests: Likewise.
34136         * modules/unicase/u32-casecmp-tests: Likewise.
34137         * modules/unicase/u32-casecoll-tests: Likewise.
34138         * modules/unicase/u32-casefold-tests: Likewise.
34139         * modules/unicase/u32-is-cased-tests: Likewise.
34140         * modules/unicase/u32-is-casefolded-tests: Likewise.
34141         * modules/unicase/u32-is-lowercase-tests: Likewise.
34142         * modules/unicase/u32-is-titlecase-tests: Likewise.
34143         * modules/unicase/u32-is-uppercase-tests: Likewise.
34144         * modules/unicase/u32-tolower-tests: Likewise.
34145         * modules/unicase/u32-totitle-tests: Likewise.
34146         * modules/unicase/u32-toupper-tests: Likewise.
34147         * modules/unicase/ulc-casecmp-tests: Likewise.
34148         * modules/unicase/ulc-casecoll-tests: Likewise.
34149         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
34150         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
34151         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
34152         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
34153         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
34154         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
34155         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
34156         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
34157         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
34158         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
34159         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
34160         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
34161         * modules/unictype/bidicategory-byname-tests: Likewise.
34162         * modules/unictype/bidicategory-name-tests: Likewise.
34163         * modules/unictype/bidicategory-of-tests: Likewise.
34164         * modules/unictype/bidicategory-test-tests: Likewise.
34165         * modules/unictype/block-list-tests: Likewise.
34166         * modules/unictype/block-of-tests: Likewise.
34167         * modules/unictype/block-test-tests: Likewise.
34168         * modules/unictype/category-C-tests: Likewise.
34169         * modules/unictype/category-Cc-tests: Likewise.
34170         * modules/unictype/category-Cf-tests: Likewise.
34171         * modules/unictype/category-Cn-tests: Likewise.
34172         * modules/unictype/category-Co-tests: Likewise.
34173         * modules/unictype/category-Cs-tests: Likewise.
34174         * modules/unictype/category-L-tests: Likewise.
34175         * modules/unictype/category-Ll-tests: Likewise.
34176         * modules/unictype/category-Lm-tests: Likewise.
34177         * modules/unictype/category-Lo-tests: Likewise.
34178         * modules/unictype/category-Lt-tests: Likewise.
34179         * modules/unictype/category-Lu-tests: Likewise.
34180         * modules/unictype/category-M-tests: Likewise.
34181         * modules/unictype/category-Mc-tests: Likewise.
34182         * modules/unictype/category-Me-tests: Likewise.
34183         * modules/unictype/category-Mn-tests: Likewise.
34184         * modules/unictype/category-N-tests: Likewise.
34185         * modules/unictype/category-Nd-tests: Likewise.
34186         * modules/unictype/category-Nl-tests: Likewise.
34187         * modules/unictype/category-No-tests: Likewise.
34188         * modules/unictype/category-P-tests: Likewise.
34189         * modules/unictype/category-Pc-tests: Likewise.
34190         * modules/unictype/category-Pd-tests: Likewise.
34191         * modules/unictype/category-Pe-tests: Likewise.
34192         * modules/unictype/category-Pf-tests: Likewise.
34193         * modules/unictype/category-Pi-tests: Likewise.
34194         * modules/unictype/category-Po-tests: Likewise.
34195         * modules/unictype/category-Ps-tests: Likewise.
34196         * modules/unictype/category-S-tests: Likewise.
34197         * modules/unictype/category-Sc-tests: Likewise.
34198         * modules/unictype/category-Sk-tests: Likewise.
34199         * modules/unictype/category-Sm-tests: Likewise.
34200         * modules/unictype/category-So-tests: Likewise.
34201         * modules/unictype/category-Z-tests: Likewise.
34202         * modules/unictype/category-Zl-tests: Likewise.
34203         * modules/unictype/category-Zp-tests: Likewise.
34204         * modules/unictype/category-Zs-tests: Likewise.
34205         * modules/unictype/category-and-not-tests: Likewise.
34206         * modules/unictype/category-and-tests: Likewise.
34207         * modules/unictype/category-byname-tests: Likewise.
34208         * modules/unictype/category-name-tests: Likewise.
34209         * modules/unictype/category-none-tests: Likewise.
34210         * modules/unictype/category-of-tests: Likewise.
34211         * modules/unictype/category-or-tests: Likewise.
34212         * modules/unictype/category-test-withtable-tests: Likewise.
34213         * modules/unictype/combining-class-tests: Likewise.
34214         * modules/unictype/ctype-alnum-tests: Likewise.
34215         * modules/unictype/ctype-alpha-tests: Likewise.
34216         * modules/unictype/ctype-blank-tests: Likewise.
34217         * modules/unictype/ctype-cntrl-tests: Likewise.
34218         * modules/unictype/ctype-digit-tests: Likewise.
34219         * modules/unictype/ctype-graph-tests: Likewise.
34220         * modules/unictype/ctype-lower-tests: Likewise.
34221         * modules/unictype/ctype-print-tests: Likewise.
34222         * modules/unictype/ctype-punct-tests: Likewise.
34223         * modules/unictype/ctype-space-tests: Likewise.
34224         * modules/unictype/ctype-upper-tests: Likewise.
34225         * modules/unictype/ctype-xdigit-tests: Likewise.
34226         * modules/unictype/decimal-digit-tests: Likewise.
34227         * modules/unictype/digit-tests: Likewise.
34228         * modules/unictype/mirror-tests: Likewise.
34229         * modules/unictype/numeric-tests: Likewise.
34230         * modules/unictype/property-alphabetic-tests: Likewise.
34231         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
34232         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
34233         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
34234         * modules/unictype/property-bidi-block-separator-tests: Likewise.
34235         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
34236         * modules/unictype/property-bidi-common-separator-tests: Likewise.
34237         * modules/unictype/property-bidi-control-tests: Likewise.
34238         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
34239         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
34240         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
34241         * modules/unictype/property-bidi-european-digit-tests: Likewise.
34242         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
34243         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
34244         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
34245         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
34246         * modules/unictype/property-bidi-pdf-tests: Likewise.
34247         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
34248         * modules/unictype/property-bidi-whitespace-tests: Likewise.
34249         * modules/unictype/property-byname-tests: Likewise.
34250         * modules/unictype/property-combining-tests: Likewise.
34251         * modules/unictype/property-composite-tests: Likewise.
34252         * modules/unictype/property-currency-symbol-tests: Likewise.
34253         * modules/unictype/property-dash-tests: Likewise.
34254         * modules/unictype/property-decimal-digit-tests: Likewise.
34255         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
34256         * modules/unictype/property-deprecated-tests: Likewise.
34257         * modules/unictype/property-diacritic-tests: Likewise.
34258         * modules/unictype/property-extender-tests: Likewise.
34259         * modules/unictype/property-format-control-tests: Likewise.
34260         * modules/unictype/property-grapheme-base-tests: Likewise.
34261         * modules/unictype/property-grapheme-extend-tests: Likewise.
34262         * modules/unictype/property-grapheme-link-tests: Likewise.
34263         * modules/unictype/property-hex-digit-tests: Likewise.
34264         * modules/unictype/property-hyphen-tests: Likewise.
34265         * modules/unictype/property-id-continue-tests: Likewise.
34266         * modules/unictype/property-id-start-tests: Likewise.
34267         * modules/unictype/property-ideographic-tests: Likewise.
34268         * modules/unictype/property-ids-binary-operator-tests: Likewise.
34269         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
34270         * modules/unictype/property-ignorable-control-tests: Likewise.
34271         * modules/unictype/property-iso-control-tests: Likewise.
34272         * modules/unictype/property-join-control-tests: Likewise.
34273         * modules/unictype/property-left-of-pair-tests: Likewise.
34274         * modules/unictype/property-line-separator-tests: Likewise.
34275         * modules/unictype/property-logical-order-exception-tests: Likewise.
34276         * modules/unictype/property-lowercase-tests: Likewise.
34277         * modules/unictype/property-math-tests: Likewise.
34278         * modules/unictype/property-non-break-tests: Likewise.
34279         * modules/unictype/property-not-a-character-tests: Likewise.
34280         * modules/unictype/property-numeric-tests: Likewise.
34281         * modules/unictype/property-other-alphabetic-tests: Likewise.
34282         * modules/unictype/property-other-default-ignorable-code-point-tests:
34283         Likewise.
34284         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
34285         * modules/unictype/property-other-id-continue-tests: Likewise.
34286         * modules/unictype/property-other-id-start-tests: Likewise.
34287         * modules/unictype/property-other-lowercase-tests: Likewise.
34288         * modules/unictype/property-other-math-tests: Likewise.
34289         * modules/unictype/property-other-uppercase-tests: Likewise.
34290         * modules/unictype/property-paired-punctuation-tests: Likewise.
34291         * modules/unictype/property-paragraph-separator-tests: Likewise.
34292         * modules/unictype/property-pattern-syntax-tests: Likewise.
34293         * modules/unictype/property-pattern-white-space-tests: Likewise.
34294         * modules/unictype/property-private-use-tests: Likewise.
34295         * modules/unictype/property-punctuation-tests: Likewise.
34296         * modules/unictype/property-quotation-mark-tests: Likewise.
34297         * modules/unictype/property-radical-tests: Likewise.
34298         * modules/unictype/property-sentence-terminal-tests: Likewise.
34299         * modules/unictype/property-soft-dotted-tests: Likewise.
34300         * modules/unictype/property-space-tests: Likewise.
34301         * modules/unictype/property-terminal-punctuation-tests: Likewise.
34302         * modules/unictype/property-test-tests: Likewise.
34303         * modules/unictype/property-titlecase-tests: Likewise.
34304         * modules/unictype/property-unassigned-code-value-tests: Likewise.
34305         * modules/unictype/property-unified-ideograph-tests: Likewise.
34306         * modules/unictype/property-uppercase-tests: Likewise.
34307         * modules/unictype/property-variation-selector-tests: Likewise.
34308         * modules/unictype/property-white-space-tests: Likewise.
34309         * modules/unictype/property-xid-continue-tests: Likewise.
34310         * modules/unictype/property-xid-start-tests: Likewise.
34311         * modules/unictype/property-zero-width-tests: Likewise.
34312         * modules/unictype/scripts-tests: Likewise.
34313         * modules/unictype/syntax-c-ident-tests: Likewise.
34314         * modules/unictype/syntax-c-whitespace-tests: Likewise.
34315         * modules/unictype/syntax-java-ident-tests: Likewise.
34316         * modules/unictype/syntax-java-whitespace-tests: Likewise.
34317         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
34318         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
34319         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
34320         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
34321         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
34322         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
34323         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
34324         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
34325         * modules/uniname/uniname-tests: Likewise.
34326         * modules/uninorm/canonical-decomposition-tests: Likewise.
34327         * modules/uninorm/compat-decomposition-tests: Likewise.
34328         * modules/uninorm/composition-tests: Likewise.
34329         * modules/uninorm/decomposing-form-tests: Likewise.
34330         * modules/uninorm/decomposition-tests: Likewise.
34331         * modules/uninorm/filter-tests: Likewise.
34332         * modules/uninorm/nfc-tests: Likewise.
34333         * modules/uninorm/nfd-tests: Likewise.
34334         * modules/uninorm/nfkc-tests: Likewise.
34335         * modules/uninorm/nfkd-tests: Likewise.
34336         * modules/uninorm/u8-normcmp-tests: Likewise.
34337         * modules/uninorm/u8-normcoll-tests: Likewise.
34338         * modules/uninorm/u16-normcmp-tests: Likewise.
34339         * modules/uninorm/u16-normcoll-tests: Likewise.
34340         * modules/uninorm/u32-normcmp-tests: Likewise.
34341         * modules/uninorm/u32-normcoll-tests: Likewise.
34342         * modules/unistdio/u8-asnprintf-tests: Likewise.
34343         * modules/unistdio/u8-vasnprintf-tests: Likewise.
34344         * modules/unistdio/u8-vasprintf-tests: Likewise.
34345         * modules/unistdio/u8-vsnprintf-tests: Likewise.
34346         * modules/unistdio/u8-vsprintf-tests: Likewise.
34347         * modules/unistdio/u16-asnprintf-tests: Likewise.
34348         * modules/unistdio/u16-vasnprintf-tests: Likewise.
34349         * modules/unistdio/u16-vasprintf-tests: Likewise.
34350         * modules/unistdio/u16-vsnprintf-tests: Likewise.
34351         * modules/unistdio/u16-vsprintf-tests: Likewise.
34352         * modules/unistdio/u32-asnprintf-tests: Likewise.
34353         * modules/unistdio/u32-vasnprintf-tests: Likewise.
34354         * modules/unistdio/u32-vasprintf-tests: Likewise.
34355         * modules/unistdio/u32-vsnprintf-tests: Likewise.
34356         * modules/unistdio/u32-vsprintf-tests: Likewise.
34357         * modules/unistdio/ulc-asnprintf-tests: Likewise.
34358         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
34359         * modules/unistdio/ulc-vasprintf-tests: Likewise.
34360         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
34361         * modules/unistdio/ulc-vsprintf-tests: Likewise.
34362         * modules/unistr/u8-check-tests: Likewise.
34363         * modules/unistr/u8-chr-tests: Likewise.
34364         * modules/unistr/u8-cmp-tests: Likewise.
34365         * modules/unistr/u8-cmp2-tests: Likewise.
34366         * modules/unistr/u8-cpy-alloc-tests: Likewise.
34367         * modules/unistr/u8-cpy-tests: Likewise.
34368         * modules/unistr/u8-mblen-tests: Likewise.
34369         * modules/unistr/u8-mbsnlen-tests: Likewise.
34370         * modules/unistr/u8-mbtouc-tests: Likewise.
34371         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
34372         * modules/unistr/u8-mbtoucr-tests: Likewise.
34373         * modules/unistr/u8-move-tests: Likewise.
34374         * modules/unistr/u8-next-tests: Likewise.
34375         * modules/unistr/u8-prev-tests: Likewise.
34376         * modules/unistr/u8-set-tests: Likewise.
34377         * modules/unistr/u8-stpcpy-tests: Likewise.
34378         * modules/unistr/u8-stpncpy-tests: Likewise.
34379         * modules/unistr/u8-strcat-tests: Likewise.
34380         * modules/unistr/u8-strcmp-tests: Likewise.
34381         * modules/unistr/u8-strcoll-tests: Likewise.
34382         * modules/unistr/u8-strcpy-tests: Likewise.
34383         * modules/unistr/u8-strdup-tests: Likewise.
34384         * modules/unistr/u8-strlen-tests: Likewise.
34385         * modules/unistr/u8-strmblen-tests: Likewise.
34386         * modules/unistr/u8-strmbtouc-tests: Likewise.
34387         * modules/unistr/u8-strncat-tests: Likewise.
34388         * modules/unistr/u8-strncmp-tests: Likewise.
34389         * modules/unistr/u8-strncpy-tests: Likewise.
34390         * modules/unistr/u8-strnlen-tests: Likewise.
34391         * modules/unistr/u8-to-u16-tests: Likewise.
34392         * modules/unistr/u8-to-u32-tests: Likewise.
34393         * modules/unistr/u8-uctomb-tests: Likewise.
34394         * modules/unistr/u16-check-tests: Likewise.
34395         * modules/unistr/u16-chr-tests: Likewise.
34396         * modules/unistr/u16-cmp-tests: Likewise.
34397         * modules/unistr/u16-cmp2-tests: Likewise.
34398         * modules/unistr/u16-cpy-alloc-tests: Likewise.
34399         * modules/unistr/u16-cpy-tests: Likewise.
34400         * modules/unistr/u16-mblen-tests: Likewise.
34401         * modules/unistr/u16-mbsnlen-tests: Likewise.
34402         * modules/unistr/u16-mbtouc-tests: Likewise.
34403         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
34404         * modules/unistr/u16-mbtoucr-tests: Likewise.
34405         * modules/unistr/u16-move-tests: Likewise.
34406         * modules/unistr/u16-next-tests: Likewise.
34407         * modules/unistr/u16-prev-tests: Likewise.
34408         * modules/unistr/u16-set-tests: Likewise.
34409         * modules/unistr/u16-stpcpy-tests: Likewise.
34410         * modules/unistr/u16-stpncpy-tests: Likewise.
34411         * modules/unistr/u16-strcat-tests: Likewise.
34412         * modules/unistr/u16-strcmp-tests: Likewise.
34413         * modules/unistr/u16-strcoll-tests: Likewise.
34414         * modules/unistr/u16-strcpy-tests: Likewise.
34415         * modules/unistr/u16-strdup-tests: Likewise.
34416         * modules/unistr/u16-strlen-tests: Likewise.
34417         * modules/unistr/u16-strmblen-tests: Likewise.
34418         * modules/unistr/u16-strmbtouc-tests: Likewise.
34419         * modules/unistr/u16-strncat-tests: Likewise.
34420         * modules/unistr/u16-strncmp-tests: Likewise.
34421         * modules/unistr/u16-strncpy-tests: Likewise.
34422         * modules/unistr/u16-strnlen-tests: Likewise.
34423         * modules/unistr/u16-to-u32-tests: Likewise.
34424         * modules/unistr/u16-to-u8-tests: Likewise.
34425         * modules/unistr/u16-uctomb-tests: Likewise.
34426         * modules/unistr/u32-check-tests: Likewise.
34427         * modules/unistr/u32-chr-tests: Likewise.
34428         * modules/unistr/u32-cmp-tests: Likewise.
34429         * modules/unistr/u32-cmp2-tests: Likewise.
34430         * modules/unistr/u32-cpy-alloc-tests: Likewise.
34431         * modules/unistr/u32-cpy-tests: Likewise.
34432         * modules/unistr/u32-mblen-tests: Likewise.
34433         * modules/unistr/u32-mbsnlen-tests: Likewise.
34434         * modules/unistr/u32-mbtouc-tests: Likewise.
34435         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
34436         * modules/unistr/u32-mbtoucr-tests: Likewise.
34437         * modules/unistr/u32-move-tests: Likewise.
34438         * modules/unistr/u32-next-tests: Likewise.
34439         * modules/unistr/u32-prev-tests: Likewise.
34440         * modules/unistr/u32-set-tests: Likewise.
34441         * modules/unistr/u32-stpcpy-tests: Likewise.
34442         * modules/unistr/u32-stpncpy-tests: Likewise.
34443         * modules/unistr/u32-strcat-tests: Likewise.
34444         * modules/unistr/u32-strcmp-tests: Likewise.
34445         * modules/unistr/u32-strcoll-tests: Likewise.
34446         * modules/unistr/u32-strcpy-tests: Likewise.
34447         * modules/unistr/u32-strdup-tests: Likewise.
34448         * modules/unistr/u32-strlen-tests: Likewise.
34449         * modules/unistr/u32-strmblen-tests: Likewise.
34450         * modules/unistr/u32-strmbtouc-tests: Likewise.
34451         * modules/unistr/u32-strncat-tests: Likewise.
34452         * modules/unistr/u32-strncmp-tests: Likewise.
34453         * modules/unistr/u32-strncpy-tests: Likewise.
34454         * modules/unistr/u32-strnlen-tests: Likewise.
34455         * modules/unistr/u32-to-u16-tests: Likewise.
34456         * modules/unistr/u32-to-u8-tests: Likewise.
34457         * modules/unistr/u32-uctomb-tests: Likewise.
34458         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
34459         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
34460         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
34461         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
34462         * modules/uniwidth/u8-strwidth-tests: Likewise.
34463         * modules/uniwidth/u8-width-tests: Likewise.
34464         * modules/uniwidth/u16-strwidth-tests: Likewise.
34465         * modules/uniwidth/u16-width-tests: Likewise.
34466         * modules/uniwidth/u32-strwidth-tests: Likewise.
34467         * modules/uniwidth/u32-width-tests: Likewise.
34468         * modules/uniwidth/width-tests: Likewise.
34469
34470 2010-05-18  Richard Jones  <rjones@redhat.com>
34471
34472         doc: users.txt: list hivex
34473         * users.txt: Add hivex.
34474
34475 2010-05-18  Richard Jones  <rjones@redhat.com>
34476
34477         doc: users.txt: list febootstrap
34478         * users.txt: Add febootstrap.
34479
34480 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
34481
34482         bootstrap: fix an error when gnulib is not used as a git submodule
34483         * build-aux/bootstrap (gnulib_path): If its length is zero then
34484         assign "gnulib" to it.
34485         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
34486
34487 2010-05-16  Bruno Haible  <bruno@clisp.org>
34488
34489         Avoid autoconf warnings about AM_ICONV.
34490         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
34491         2.64.
34492
34493 2010-05-16  Bruno Haible  <bruno@clisp.org>
34494
34495         absolute-header: Make the macro usable in more situations.
34496         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
34497         from gl_ABSOLUTE_HEADER.
34498         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
34499
34500 2010-05-16  James Youngman  <jay@gnu.org>
34501
34502         doc: update users.txt
34503         * users.txt: Add CSSC.
34504
34505 2010-05-16  Jim Meyering  <meyering@redhat.com>
34506
34507         init.sh: fix an error in the previous change; add more comments
34508         * tests/init.sh: Compare exit code in loop against 9, not 2.
34509         Patch by Bruno Haible.
34510         Make the two tests more similar by adding an empty "then" clause.
34511         Add comments.
34512
34513         init.sh: avoid unnecessary shell re-exec
34514         * tests/init.sh: Improve the re-exec-required check to first test the
34515         current shell.  If it passes the test, do not search for a shell that
34516         does pass, and do not re-exec.  This test is particularly contorted to
34517         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34518         of $(...) evokes a syntax error and causes immediate shell exit with
34519         status 2.  Bruno Haible reported that the re-exec made it impossible
34520         to single-step through any init.sh-using script.
34521
34522 2010-05-16  Bruno Haible  <bruno@clisp.org>
34523
34524         Fix collision between gnulib's and libintl's printf replacements.
34525         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34526         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34527         (printf): When using GNU C, map the __printf__ function to rpl_printf
34528         via __asm__. When not using GNU C, define rpl_printf instead of
34529         __printf__.
34530         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34531         commit.
34532         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34533         commit.
34534         * m4/asm-underscore.m4: New file.
34535         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34536         * modules/stdio (Files): Add m4/asm-underscore.m4.
34537         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34538         Reported by Ben Pfaff.
34539
34540 2010-05-16  Bruno Haible  <bruno@clisp.org>
34541
34542         verify: Avoid skipping the test on openSUSE 11.0.
34543         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34544
34545 2010-05-13  Bruno Haible  <bruno@clisp.org>
34546
34547         Avoid useless warnings from G++.
34548         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34549         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34550         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34551
34552 2010-05-11  Jim Meyering  <meyering@redhat.com>
34553
34554         maint.mk: tweak preceding change
34555         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34556         regexps tighter by anchoring at EOL, and make the new group "shy"
34557         for slightly decreased overhead.
34558
34559 2010-05-11  Eric Blake  <eblake@redhat.com>
34560
34561         maint.mk: gnulib doesn't guarantee NSIG
34562         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34563
34564 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34565
34566         test-pwrite.c: Remove unused variable declaration.
34567         * tests/test-pwrite.c (main): Remove read_buf declaration.
34568
34569         Remove useless test-pwrite.sh file.
34570         * tests/test-pwrite.sh: Delete file.
34571         * modules/pwrite-tests: Remove references.
34572         Reported by Bruno Haible.
34573
34574 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34575
34576         init.sh: fix a typo
34577         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34578
34579 2010-05-10  Jim Meyering  <meyering@redhat.com>
34580
34581         maint.mk: avoid using a temporary file in the always-defined-macros check
34582         * top/maint.mk (.re-defmac): Remove rule.
34583         (gl_trap_): Remove definition.
34584         (sc_prohibit_always-defined_macros): Rewrite not to create and
34585         depend on a temporary file.  Instead, depend on GNU grep's ability
34586         to read a list of regular expressions from stdin when given "-f -".
34587
34588 2010-05-09  Bruno Haible  <bruno@clisp.org>
34589
34590         Update to GNU gettext 0.18, part 1.
34591         * m4/gettext.m4: Update to GNU gettext 0.18.
34592         * m4/intl.m4: Likewise.
34593         * m4/po.m4: Likewise.
34594         * modules/gettext (Files): Add m4/fcntl-o.m4.
34595         (configure.ac): Require gettext infrastructure from version 0.18.
34596
34597 2010-05-09  Jim Meyering  <meyering@redhat.com>
34598
34599         init.sh: enable MALLOC_PERTURB_
34600         * tests/init.sh: Enable glibc's malloc-perturbing option.
34601
34602         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34603         With my recent change in init.sh from the two-line form:
34604             -#   : ${srcdir=.}
34605             -#   . "$srcdir/init.sh"; path_prepend_ .
34606             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34607         I noticed that using the one-line form would cause this test
34608         to fail with a false-positive, or to stop working altogether,
34609         depending on whether help-version changed or all the tests did.
34610         * top/maint.mk (_hv_regex): Remove this definition.
34611         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34612         (_hv_regex_strong): Use a stronger regex to check for conformance.
34613         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34614         Give a separate diagnostic for lack of conforming use.
34615
34616         maint.mk: prohibit definition of symbols defined by gnulib
34617         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34618         definition of symbols defined by gnulib.
34619
34620 2010-05-09  Bruno Haible  <bruno@clisp.org>
34621
34622         acl: Avoid test failure on Cygwin-hosted mingw.
34623         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34624
34625 2010-05-09  Bruno Haible  <bruno@clisp.org>
34626
34627         error: Use system's fcntl function.
34628         * lib/error.c (fcntl): Undefine.
34629
34630 2010-05-09  Jim Meyering  <meyering@redhat.com>
34631
34632         verify: adjust formatting to be more consistent
34633         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34634         argument-list '('s, and after one comma.
34635
34636 2010-05-09  Bruno Haible  <bruno@clisp.org>
34637
34638         error: More reliable output on mingw.
34639         * lib/error.c: Include <windows.h>.
34640         (is_open): New function.
34641         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34642         defined.
34643
34644 2010-05-09  Bruno Haible  <bruno@clisp.org>
34645
34646         vasnprintf: Fix syntax errors in libintl build on mingw.
34647         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34648         pad_ourselves and prec_ourselves after use.
34649
34650 2010-05-08  Bruno Haible  <bruno@clisp.org>
34651
34652         * lib/config.charset: Update comments for Cygwin 1.7.
34653         * lib/localcharset.c: Likewise.
34654
34655 2010-05-07  Jim Meyering  <meyering@redhat.com>
34656
34657         init.sh: improve comments
34658         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34659         . "${srcdir=.}/init.sh"; path_prepend_ .
34660         Add a note about path_prepend_ and the alternative of using
34661         TESTS_ENVIRONMENT.
34662
34663 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34664
34665         exclude: Unescape hashed patterns in wildcard mode.
34666         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34667         to the hash list.
34668         * tests/test-exclude8.sh: New test case.
34669         * modules/exclude-tests: Add new test.
34670
34671 2010-05-05  Eric Blake  <eblake@redhat.com>
34672
34673         verify: automate tests
34674         * modules/verify-tests: New module.
34675         * tests/test-verify.sh: New file.
34676         * tests/test-verify.c: Guard each negative test with a unique id.
34677         Also avoid warning about unused left hand of comma expressions.
34678
34679 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34680
34681         Further improvements to verify.h, suggested by Eric Blake.
34682         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34683         the GL_* versions, to avoid collision with OpenGL.
34684         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34685         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34686         than testing merely whether it's defined.
34687
34688         Modify verify.h to pacify gcc -Wredundant_decls.
34689         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34690         These use the prefix "GL_" since they're likely to be useful elsewhere.
34691         We may need to break them out into a different .h file.
34692         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34693         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34694         of verify_function__.
34695
34696 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34697
34698         Tests for module pwrite.
34699         * modules/pwrite-tests: New file.
34700         * tests/test-pwrite.sh: New file.
34701         * tests/test-pwrite.c: New file.
34702
34703         New module pwrite.
34704         * lib/unistd.in.h (pwrite): New declaration.
34705         * lib/pwrite.c: New file, from glibc with modifications.
34706         * m4/pwrite.m4: New file.
34707         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34708         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34709         REPLACE_PWRITE.
34710         * modules/pwrite: New file.
34711         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34712         REPLACE_PWRITE.
34713         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34714         * doc/posix-functions/pwrite.texi: Mention the new module.
34715
34716 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34717
34718         pread: Update documentation.
34719         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34720
34721 2010-05-04  Eric Blake  <eblake@redhat.com>
34722
34723         docs: update cygwin progress
34724         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34725         this bug.
34726         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34727         Added in cygwin 1.7.2.
34728         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34729         Likewise.
34730         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34731         Likewise.
34732         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34733         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34734         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34735         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34736         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34737         Mention nproc module.
34738         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34739         bug in cygwin 1.7.5 addition.
34740         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34741         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34742         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34743         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34744         1.7.5.
34745         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34746         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34747         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34748         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34749         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34750         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34751         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34752         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34753         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34754         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34755         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34756         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34757         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34758         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34759         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34760         Likewise.
34761         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34762         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34763         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34764         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34765         Likewise.
34766         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34767         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34768         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34769         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34770         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34771         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34772         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34773         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34774         Likewise.
34775         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34776         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34777         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34778         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34779         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34780         Likewise.
34781         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34782         Likewise.
34783         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34784         Likewise.
34785         * doc/glibc-functions/xdrrec_endofrecord.texi
34786         (xdrrec_endofrecord): Likewise.
34787         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34788         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34789         Likewise.
34790         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34791         Likewise.
34792
34793 2010-05-04  Jim Meyering  <meyering@redhat.com>
34794
34795         gendocs.sh: make its "-s FILE" option more useful
34796         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34797         $PACKAGE to reflect the probably-different basename of "FILE".
34798
34799 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34800
34801         bootstrap: don't ignore download_po_files failure
34802         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34803         failure.
34804
34805 2010-05-03  Jim Meyering  <meyering@redhat.com>
34806
34807         maint.mk: allow to pass options to gendocs.sh
34808         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34809         (gendocs_options_): New overridable variable.
34810
34811         gnu-web-doc-update: don't ignore configure or build failure
34812         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34813
34814         announce-gen: backslash-escape '@'s in --help output
34815         * build-aux/announce-gen: Fix syntax errors.
34816
34817         maint.mk, announce-gen: allow project-specific announcement mail headers
34818         * top/maint.mk (translation_project_): Define default.
34819         (announcement_Cc_, announcement_mail_headers_): Likewise.
34820         (announcement): Invoke announce-gen with new --mail-headers option.
34821         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34822
34823         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34824         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34825         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34826         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34827         line in the "err2" output file when running "make check" in verbose
34828         mode (i.e., with set -x enabled).
34829
34830 2010-05-03  Bruno Haible  <bruno@clisp.org>
34831
34832         wctob: Fix for weird platforms.
34833         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34834         argument value.
34835
34836 2010-05-03  Jim Meyering  <meyering@redhat.com>
34837
34838         maint.mk: prohibit unwarranted use of <strings.h>
34839         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34840         strings.h in a file that does not also use strcasecmp, strncasecmp,
34841         ffs or ffsll.
34842
34843         maint.mk: remove obsolete comments
34844         * top/maint.mk: Remove stale, commented-out rules.
34845
34846 2010-05-02  Bruno Haible  <bruno@clisp.org>
34847
34848         wcwidth: Declare also when it's aliased.
34849         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34850         macro.
34851
34852 2010-05-02  Bruno Haible  <bruno@clisp.org>
34853
34854         Fix regression from 2010-04-25.
34855         * gnulib-tool (func_modules_transitive_closure): Check the status of
34856         all modules, not only of the tests that are of the form foo-tests where
34857         foo is a module.
34858
34859 2010-05-02  Bruno Haible  <bruno@clisp.org>
34860
34861         wctob: Work around nasty Cygwin 1.7.2 bug.
34862         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34863         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34864
34865 2010-05-01  Bruno Haible  <bruno@clisp.org>
34866
34867         fpurge: Sharper test.
34868         * tests/test-fpurge.c (main): Add one more ftell check.
34869         * modules/fpurge-tests (Depends-on): Add ftell.
34870         Suggested by Eric Blake.
34871
34872 2010-05-01  Bruno Haible  <bruno@clisp.org>
34873
34874         ftello: Another test.
34875         * tests/test-ftello3.c: New file.
34876         * modules/ftello-tests (Files): Add it.
34877         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34878         MOSTLYCLEANFILES.
34879
34880         ftell: Another test.
34881         * tests/test-ftell3.c: New file.
34882         * modules/ftell-tests (Files): Add it.
34883         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34884         MOSTLYCLEANFILES.
34885
34886 2010-05-01  Bruno Haible  <bruno@clisp.org>
34887
34888         ftell, ftello: Work around Solaris bug.
34889         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34890         * lib/ftello.c: Include stdio-impl.h.
34891         (ftello): On Solaris, when _IOWRT is set, compute the result without
34892         looking at _IOREAD.
34893         * modules/ftello (Files): Add lib/stdio-impl.h.
34894         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34895         * doc/posix-functions/ftello.texi: Likewise.
34896         Reported by Eric Blake.
34897
34898 2010-05-01  Bruno Haible  <bruno@clisp.org>
34899
34900         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34901         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34902         the _IOWRT flag is also set.
34903
34904 2010-05-01  Bruno Haible  <bruno@clisp.org>
34905
34906         Fix doc about a HP-UX stdio bug.
34907         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34908         * doc/posix-functions/ftello.texi: Likewise.
34909
34910 2010-05-01  Bruno Haible  <bruno@clisp.org>
34911
34912         lseek test: Fix failure on Solaris.
34913         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34914         output.
34915
34916 2010-04-30  Jim Meyering  <meyering@redhat.com>
34917
34918         bootstrap: don't ignore failure to generate po*/Makevars
34919         * build-aux/bootstrap (with_gettext): Don't ignore failure
34920         to create po/Makevars or runtime-po/Makevars.
34921
34922 2010-04-29  Eric Blake  <eblake@redhat.com>
34923
34924         headers: relax license to LGPLv2+
34925         * modules/fcntl-h (License): Relax license.
34926         * modules/getopt-posix (License): Likewise.
34927         * modules/locale (License): Likewise.
34928         * modules/math (License): Likewise.
34929         * modules/pty (License): Likewise.
34930         * modules/sched (License): Likewise.
34931         * modules/search (License): Likewise.
34932         * modules/spawn (License): Likewise.
34933         * modules/stdarg (License): Likewise.
34934         * modules/sysexits (License): Likewise.
34935
34936 2010-04-29  Jim Meyering  <meyering@redhat.com>
34937
34938         inttypes: relax license to LGPLv2+
34939         * modules/inttypes (License): Relax license.
34940
34941 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34942
34943         * top/maint.mk (indent): Run twice to produce idempotent results.
34944
34945 2010-04-28  Bruno Haible  <bruno@clisp.org>
34946
34947         getdate: Generate getdate.c in the source directory.
34948         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34949         MOSTLYCLEANFILES.
34950         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34951
34952 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34953
34954         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34955         is not declared as a const *; avoid warnings in that case.
34956
34957 2010-04-28  Eric Blake  <eblake@redhat.com>
34958
34959         canonicalize-lgpl: avoid compiler warning
34960         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34961         declaration' / 'extraneous semicolon' warning with some compilers.
34962         Reported by Andreas Gruenbacher.
34963
34964 2010-04-28  Jim Meyering  <meyering@redhat.com>
34965
34966         init.sh: ensure a more reliable exit status when exiting via trap
34967         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34968         Inspired by patches from Dmitry V. Levin.
34969         Also trap on signal 3 (SIGQUIT).
34970
34971 2010-04-27  Bruno Haible  <bruno@clisp.org>
34972
34973         Update doc about utimes().
34974         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34975         'utimens' module.
34976         Reported by Andreas Gruenbacher <agruen@suse.de>.
34977
34978 2010-04-27  Eric Blake  <eblake@redhat.com>
34979
34980         full-read, full-write: relax license
34981         * modules/full-read (License): Drop to LGPLv2+.
34982         * modules/full-write (License): Likewise.
34983         * modules/safe-read (License): Likewise.
34984         * modules/safe-write (License): Likewise.
34985
34986         pthread: mention library for linking
34987         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34988
34989 2010-04-27  Jim Meyering  <meyering@redhat.com>
34990
34991         maint.mk: fix a bug introduced in last change
34992         * top/maint.mk (gl_assured_headers_): Now that all names are on
34993         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34994         is not anchored to end of word, it should be adequate.
34995
34996         maint.mk: avoid side-effect in latest syntax-check
34997         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34998         to run commands via $(shell...), and hence to incur cost only when
34999         the new rule is actually run.
35000
35001         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
35002         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
35003         and use that to create a regexp used to detect all #if HAVE_..._H uses.
35004         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
35005         (gl_assured_headers_, az_, AZ_): Define.
35006         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
35007
35008 2010-04-26  Jim Meyering  <jim@meyering.net>
35009             Bruno Haible  <bruno@clisp.org>
35010
35011         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
35012         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
35013         Prompted by an exchange with Gilles Espinasse.
35014
35015 2010-04-26  Jim Meyering  <meyering@redhat.com>
35016
35017         git-version-gen: aesthetic tweak
35018         * build-aux/git-version-gen: Use "$nl" rather than a literal,
35019         so that the command remains on a single line.
35020
35021 2010-04-26  Eric Blake  <eblake@redhat.com>
35022
35023         git-version-gen: allow use on EBCDIC hosts
35024         * build-aux/git-version-gen (dirty): Use literal rather than tying
35025         ourselves to ascii.
35026         Reported by Steve Goetze.
35027
35028 2010-04-25  Bruno Haible  <bruno@clisp.org>
35029
35030         netdb: Add support for GNULIB_POSIXCHECK.
35031         * lib/netdb.in.h: Include warn-on-use.h.
35032         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
35033         functions are used when GNULIB_POSIXCHECK is defined and the
35034         getaddrinfo module is not in use.
35035         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
35036         freeaddrinfo, gai_strerror, getnameinfo are declared.
35037         * modules/netdb (Depends-on): Add warn-on-use.
35038         (Makefile.am): Include warn-on-use.h in netdb.h.
35039
35040 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
35041
35042         build: avoid "make check" failure without .git/ directory
35043         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
35044         there is no .git/ directory.
35045
35046 2010-04-25  Bruno Haible  <bruno@clisp.org>
35047
35048         ptsname: Fix misuse of ttyname_r.
35049         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
35050         of errno.
35051
35052 2010-04-25  Bruno Haible  <bruno@clisp.org>
35053
35054         ttyname_r: Make it work on Solaris 10.
35055         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
35056         if the system function has the POSIX declaration. Test whether the
35057         function fails if the buffer is less than 128 bytes large.
35058         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
35059         system's ttyname_r function. Provide a reasonably large buffer.
35060         * modules/ttyname_r (Depends-on): Add extensions.
35061         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
35062
35063 2010-04-25  Bruno Haible  <bruno@clisp.org>
35064
35065         Use the 'extensions' module for some more functions on Solaris.
35066         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
35067         module.
35068         * doc/posix-functions/ctime_r.texi: Likewise.
35069         * doc/posix-functions/getgrgid_r.texi: Likewise.
35070         * doc/posix-functions/getgrnam_r.texi: Likewise.
35071         * doc/posix-functions/getpwnam_r.texi: Likewise.
35072         * doc/posix-functions/getpwuid_r.texi: Likewise.
35073         * doc/posix-functions/readdir_r.texi: Likewise.
35074         * doc/posix-functions/sigwait.texi: Likewise.
35075         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
35076         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
35077
35078 2010-04-25  Bruno Haible  <bruno@clisp.org>
35079
35080         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
35081         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
35082         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
35083         * lib/ttyname_r.c: Include <limits.h>.
35084         (ttyname_r): Define using the system's ttyname_r function, if it exists
35085         and not on Solaris.
35086         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
35087         set.
35088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
35089         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
35090         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
35091         Reported by Simon Josefsson.
35092
35093 2010-04-25  Bruno Haible  <bruno@clisp.org>
35094
35095         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
35096         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
35097         * doc/posix-functions/ctime_r.texi: Likewise.
35098         * doc/posix-functions/getgrgid_r.texi: Likewise.
35099         * doc/posix-functions/getgrnam_r.texi: Likewise.
35100         * doc/posix-functions/getlogin_r.texi: Likewise.
35101         * doc/posix-functions/getpwnam_r.texi: Likewise.
35102         * doc/posix-functions/getpwuid_r.texi: Likewise.
35103         * doc/posix-functions/readdir_r.texi: Likewise.
35104         * doc/posix-functions/sigwait.texi: Likewise.
35105         * doc/posix-functions/ttyname_r.texi: Likewise.
35106         Reported by Simon Josefsson.
35107
35108 2010-04-25  Bruno Haible  <bruno@clisp.org>
35109
35110         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
35111         * gnulib-tool (func_usage): Document that --with-*-tests options apply
35112         also to --create-testdir.
35113         (func_acceptable): Don't consider the status of *-tests modules here.
35114         (func_modules_transitive_closure): Consider it here, before including a
35115         test module.
35116         (func_import, func_create_testdir): Set inc_all_direct_tests,
35117         inc_all_indirect_tests.
35118         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
35119         --create-testdir and --create-megatestdir.
35120
35121 2010-04-25  Bruno Haible  <bruno@clisp.org>
35122
35123         gnulib-tool: Add --without-*-tests options.
35124         * gnulib-tool (func_usage): Document the --without-*-tests options.
35125         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
35126         excl_unportable_tests): New variables.
35127         Fail if they are specified with --import or --update.
35128         (func_acceptable): Respect the excl_*_tests variables.
35129         (func_import): Set the excl_*_tests variables to empty.
35130
35131 2010-04-25  Simon Josefsson  <simon@josefsson.org>
35132             Bruno Haible  <bruno@clisp.org>
35133
35134         Work around a MacOS X 10.4 bug with openpty.
35135         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
35136         * tests/test-openpty.c (main): Close the master side explicitly.
35137
35138 2010-04-25  Bruno Haible  <bruno@clisp.org>
35139
35140         strnlen: Fix a C++ test error on MacOS X and Solaris.
35141         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
35142         the function is not declared.
35143         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
35144         Simon Josefsson.
35145
35146 2010-04-24  Bruno Haible  <bruno@clisp.org>
35147
35148         Avoid a gcc warning.
35149         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
35150         of correct type for %08lx directive.
35151         Reported by Eric Blake.
35152
35153 2010-04-24  Bruno Haible  <bruno@clisp.org>
35154
35155         vasnprintf: Correct errno value in case of out-of-memory.
35156         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
35157         or sprintf. Use the errno value from SNPRINTF or sprintf.
35158         Reported by Ian Beckwith <ianb@erislabs.net>.
35159
35160 2010-04-24  Bruno Haible  <bruno@clisp.org>
35161
35162         ansi-c++-opt: Find correct compiler when cross-compiling.
35163         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
35164         AC_CHECK_PROGS.
35165         Reported by Simon Josefsson.
35166
35167 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
35168
35169         vc-list-files: Add support for subversion
35170         * build-aux/vc-list-files: Use "svn list" to generate the list of
35171         files controlled by subversion.
35172
35173 2010-04-23  Jim Meyering  <meyering@redhat.com>
35174
35175         vc-list-files tests: convert to use init.sh
35176         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
35177         path_prepend_.
35178         Use Exit, not exit.
35179         Use skip_ rather than open coding it.
35180         Remove trap set-up and compare definitions.
35181         * tests/test-vc-list-files-git.sh: Likewise.
35182         * modules/vc-list-files-tests (Files): Add tests/init.sh.
35183
35184 2010-04-22  Simon Josefsson  <simon@josefsson.org>
35185
35186         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
35187         backup files.
35188
35189 2010-04-21  Simon Josefsson  <simon@josefsson.org>
35190
35191         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
35192
35193 2010-04-20  Eric Blake  <eblake@redhat.com>
35194
35195         tests: be robust to ignored SIGPIPE
35196         * tests/test-select-in.sh: Consume all output.
35197         * tests/test-lseek.sh: Check correct exit status, while avoiding
35198         EPIPE.
35199
35200 2010-04-20  Simon Josefsson  <simon@josefsson.org>
35201             Bruno Haible  <bruno@clisp.org>
35202
35203         visibility: Don't use -fvisibility if it leads to a warning.
35204         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
35205         yes, don't pretend that visibility works if it leads to a warning.
35206         Reported by Mike Gran <spk121@yahoo.com>.
35207
35208 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
35209
35210         * build-aux/bootstrap: Use "git -h" for testing for supported options
35211         instead of "git --help".  The short-form option only shows a summary,
35212         and doesn't layout the full man page.  Grep for the full option name
35213         in the summary, too.
35214
35215 2010-04-19  Bruno Haible  <bruno@clisp.org>
35216
35217         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
35218         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
35219         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
35220         mention of RELOCATABLE_STRIP.
35221         Reported by Sylvain Beucler <beuc@beuc.net>.
35222
35223 2010-04-19  Bruno Haible  <bruno@clisp.org>
35224
35225         * lib/diffseq.h: Fix typo in comment.
35226         Reported by Eric Blake.
35227
35228 2010-04-19  Bruno Haible  <bruno@clisp.org>
35229
35230         ioctl: Move autoconf macro to a .m4 file.
35231         * m4/ioctl.m4: New file, extracted from modules/ioctl.
35232         * modules/ioctl (Files): Add it.
35233         (configure.ac): Simply invoke gl_FUNC_IOCTL.
35234         Reported by Ian Beckwith <ianb@erislabs.net>.
35235
35236 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
35237             Bruno Haible  <bruno@clisp.org>
35238
35239         diffseq: Accommodate use-case with abstract arrays.
35240         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
35241         is not defined.
35242         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
35243         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
35244
35245 2010-04-18  Bruno Haible  <bruno@clisp.org>
35246
35247         * doc/posix-headers/stdbool.texi: More precise wording.
35248
35249 2010-04-17  Jim Meyering  <meyering@redhat.com>
35250
35251         maint.mk: use gnu-style indentation in an embedded perl script
35252         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
35253         Rename variable: s/two/last_two_bytes/
35254
35255 2010-04-16  Eric Blake  <eblake@redhat.com>
35256
35257         test-stdbool: skip test that fails with Solaris CC
35258         * tests/test-stdbool.c (f): Skip test that causes compilation
35259         error under buggy C++ compiler.
35260         * lib/stdbool.in.h: Document the limitation.
35261         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
35262
35263         setenv: allow compilation with C++
35264         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
35265         register keyword.
35266
35267         stdint: allow test to pass with C++
35268         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
35269
35270         getopt: allow compilation with C++
35271         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
35272         struct.
35273         * lib/getopt.c (_getopt_internal_r): Use correct type.
35274         Reported by Dagobert Michelson, via Joel E. Denny.
35275
35276 2010-04-16  Bruno Haible  <bruno@clisp.org>
35277
35278         Override netdb.h always.
35279         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
35280         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
35281         Reported by Ludovic Courtès <ludo@gnu.org>.
35282
35283 2010-04-15  Bruno Haible  <bruno@clisp.org>
35284
35285         openpty: Fix mistake from 2010-03-21.
35286         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
35287         Reported by Simon Josefsson.
35288
35289 2010-04-15  Eric Blake  <eblake@redhat.com>
35290
35291         test-forkpty: fix expected signature
35292         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
35293         Reported by Simon Josefsson.
35294
35295 2010-04-15  Jim Meyering  <meyering@redhat.com>
35296
35297         maint.mk: texinfo_suffix_re_: correct the default regexp
35298         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
35299
35300         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
35301         make it configurable via texinfo_suffix_re_.
35302
35303 2010-04-14  Eric Blake  <eblake@redhat.com>
35304
35305         strtok_r: relax license to LGPLv2+
35306         * modules/strtok_r (License): Relax license.
35307         Reported by Matthias Bolte.
35308
35309 2010-04-14  Simon Josefsson  <simon@josefsson.org>
35310
35311         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
35312         version 1.4.4 by default instead of requiring the libgcrypt
35313         version used during build.  This makes it possible to use the
35314         application with older but still binary compatible libgcrypt
35315         versions.
35316
35317 2010-04-13  Eric Blake  <eblake@redhat.com>
35318
35319         getopt-gnu: match recent glibc fixes and posix ruling
35320         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
35321         '+' handling, when requesting extensions.
35322         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
35323         'W;' handling.
35324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
35325         * doc/posix-functions/getopt.texi (getopt): Document this.
35326         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35327         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35328         Likewise.
35329
35330         getopt: merge bug fixes from glibc
35331         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
35332         diagnostics.  Honor '+:' correctly.  Reject ';'.
35333
35334         getopt-posix: detect MacOS bug
35335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
35336         optind when missing a required argument.
35337         * doc/posix-functions/getopt.texi (getopt): Document the bug.
35338         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35339         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35340         Likewise.
35341
35342         getopt-posix: avoid spurious failure on Solaris
35343         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
35344         an indicator that setting optind=1 is sufficient for reset.
35345
35346         getopt-posix: avoid spurious failure on FreeBSD
35347         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
35348         in POSIX mode, since the m4 test uses it.
35349
35350         gnulib-tool: silence warning on BSD sh
35351         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
35352
35353 2010-04-13  Jim Meyering  <meyering@redhat.com>
35354
35355         doc: users.txt: GNU patch now uses gnulib
35356         * users.txt: Add patch.
35357
35358 2010-04-12  Jim Meyering  <meyering@redhat.com>
35359
35360         maint.mk: generate more concise timing data for syntax-check rules
35361         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
35362         " done" from each line that reports a syntax-check test duration.
35363
35364 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
35365
35366         git-version-gen: use "git update-index..." rather than "git status"
35367         * build-aux/git-version-gen: Use git update-index --refresh, not
35368         "git status".  With some versions of git, "git status" would fail
35369         to update the index and result in an unwarranted "-dirty" suffix.
35370
35371 2010-04-11  Jim Meyering  <meyering@redhat.com>
35372
35373         openat: correct formatting (no semantic change)
35374         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
35375         Suggested by Bruno Haible.
35376
35377 2010-04-11  Bruno Haible  <bruno@clisp.org>
35378
35379         Stricter declaration checking in testdirs.
35380         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35381         If for_tests is true, augment AM_CPPFLAGS to define
35382         GNULIB_STRICT_CHECKING.
35383         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
35384         GNULIB_STRICT_CHECKING is defined, verify that the function is
35385         declared.
35386
35387 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
35388             Bruno Haible  <bruno@clisp.org>
35389
35390         libunistring: Improve configure output.
35391         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
35392         Don't say "consider installing GNU libunistring" when checking again
35393         with libiconv.
35394
35395 2010-04-11  Bruno Haible  <bruno@clisp.org>
35396
35397         libunistring: Correct value of $LTLIBUNISTRING.
35398         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
35399         correct the value of $LTLIBUNISTRING.
35400
35401 2010-04-11  Bruno Haible  <bruno@clisp.org>
35402
35403         havelib: Add static libraries to LIBS in the right order.
35404         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
35405         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
35406
35407 2010-04-11  Bruno Haible  <bruno@clisp.org>
35408
35409         libunistring: Detect libunistring also when it depends on libiconv.
35410         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
35411         the second AC_LIB_HAVE_LINKFLAGS invocation.
35412
35413 2010-04-11  James Youngman  <jay@gnu.org>
35414
35415         close-stream: declare local scalars to be "const"
35416         * lib/close-stream.c (close_stream): Make boolean variables const
35417         to document the fact that we set but do not change them.
35418
35419 2010-04-11  Bruno Haible  <bruno@clisp.org>
35420
35421         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
35422
35423 2010-04-11  Jim Meyering  <meyering@redhat.com>
35424
35425         maint.mk: don't include dist-check.mk
35426         * top/maint.mk: Remove bogus include directive.
35427
35428         maint.mk: improve empty-line-at-EOF check
35429         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
35430         solution, rather than tail+Perl-based one.  The latter would read
35431         a few kilobytes from the end of each file, and did not handle empty
35432         files properly.
35433
35434         maint.mk: print the elapsed time for each syntax-check rule
35435         * top/maint.mk (sc_m_rules_): Save start time in a file.
35436         (sc_z_rules_): New rules: remove temp file and print elapsed time.
35437         (local-check): Interpose the .z rules
35438
35439 2010-04-11  Jim Meyering  <meyering@redhat.com>
35440
35441         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
35442         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
35443         empty file with one that ends in an empty line.
35444
35445 2010-04-10  Bruno Haible  <bruno@clisp.org>
35446
35447         mkdir: Make it work on mingw64.
35448         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
35449         * lib/mkdir.c: Update comment.
35450         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
35451
35452 2010-04-10  Bruno Haible  <bruno@clisp.org>
35453
35454         Don't override improved macro from newer autoconf.
35455         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
35456         autoconf >= 2.62.
35457         Reported by Joel E. Denny <jdenny@clemson.edu>.
35458
35459 2010-04-10  Jim Meyering  <meyering@redhat.com>
35460
35461         maint.mk: new syntax-check rule: prohibit empty lines at end of file
35462         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
35463
35464         maint.mk: correct a diagnostic
35465         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
35466         in diagnostic; now use $prohibit.
35467
35468 2010-04-10  Bruno Haible  <address@hidden>
35469
35470         fchownat: Fix a C++ test error on Solaris 8.
35471         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
35472         the function does not exist.
35473
35474 2010-04-10  Bruno Haible  <bruno@clisp.org>
35475
35476         vasnprintf: Add more tests.
35477         * tests/test-vasnprintf-posix.c: Include <errno.h>.
35478         (test_function): Test converting an invalid wide string.
35479
35480         vasnprintf: Correct handling of unconvertible wide string arguments.
35481         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
35482         VASNPRINTF.
35483         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
35484         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
35485         smaller than the expected maximum need for the directive. Set errno to
35486         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
35487         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
35488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
35489         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
35490         * modules/vasnprintf (Files): Add m4/printf.m4.
35491         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35492
35493 2010-04-10  Bruno Haible  <bruno@clisp.org>
35494
35495         vasnprintf: Fix crash in %ls directive.
35496         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
35497         string is passed as argument to %ls, with no precision and no width.
35498         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35499
35500 2010-04-10  Bruno Haible  <bruno@clisp.org>
35501
35502         vasnprintf: Fix multiple test failures on mingw.
35503         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
35504         _snprintf, or snwprintf, not _snwprintf.
35505
35506 2010-04-10  Bruno Haible  <bruno@clisp.org>
35507
35508         write: Fix a C++ test error on mingw.
35509         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35510
35511 2010-04-10  Bruno Haible  <bruno@clisp.org>
35512
35513         vasnprintf test: Reduce code duplication.
35514         * tests/test-vasnprintf.c (test_function): New function, extracted from
35515         test_vasnprintf.
35516         (test_vasnprintf, test_asnprintf): Invoke it.
35517
35518 2010-04-10  Bruno Haible  <bruno@clisp.org>
35519
35520         strnlen: Fix warning in C++ mode on MacOS X.
35521         * lib/string.in.h (strnlen): Use the modern idiom.
35522         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35523         defining strnlen as a macro already in <config.h>.
35524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35525         REPLACE_STRNLEN.
35526         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35527         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35528
35529 2010-04-08  James Youngman  <jay@gnu.org>
35530
35531         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35532         the example.
35533
35534 2010-04-09  Jim Meyering  <meyering@redhat.com>
35535
35536         maint.mk: print better diagnostic when there is no $(_hv_file)
35537         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35538         announce that when $(_hv_file) (aka help-version) does not exist.
35539
35540         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35541         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35542         not try to interpret its random input bytes.  Jarno Rajahalme reported
35543         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35544         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35545         (mktempd_): Likewise, just in case.
35546
35547         ftruncate: add two years to projected module removal date: 2012
35548         * m4/ftruncate.m4: Adjust comments.
35549
35550         ftruncate: mark module as obsolete; even MinGW provides it, now
35551         * modules/ftruncate (Status): Obsolete.
35552         (Notice): Say that.
35553         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35554         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35555
35556 2010-04-08  Bruno Haible  <bruno@clisp.org>
35557
35558         Fix side effects from tests-related modules.
35559         * modules/dprintf-posix (Comment): New section.
35560         * modules/fprintf-posix (Comment): Likewise.
35561         * modules/obstack-printf-posix (Comment): Likewise.
35562         * modules/printf-posix (Comment): Likewise.
35563         * modules/snprintf-posix (Comment): Likewise.
35564         * modules/sprintf-posix (Comment): Likewise.
35565         * modules/vasnprintf-posix (Comment): Likewise.
35566         * modules/vasprintf-posix (Comment): Likewise.
35567         * modules/vdprintf-posix (Comment): Likewise.
35568         * modules/vfprintf-posix (Comment): Likewise.
35569         * modules/vprintf-posix (Comment): Likewise.
35570         * modules/vsnprintf-posix (Comment): Likewise.
35571         * modules/vsprintf-posix (Comment): Likewise.
35572         * modules/xprintf-posix (Comment): Likewise.
35573         * modules/xvasprintf-posix (Comment): Likewise.
35574         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35575         * modules/floorf-tests (Depends-on): Likewise.
35576         * modules/round-tests (Depends-on): Likewise.
35577         * modules/roundf-tests (Depends-on): Likewise.
35578         * modules/trunc-tests (Depends-on): Likewise.
35579         * modules/truncf-tests (Depends-on): Likewise.
35580         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35581         'fprintf-posix' module is not present.
35582         * tests/test-floorf2.c (check): Likewise.
35583         * tests/test-trunc2.c (check): Likewise.
35584         * tests/test-truncf2.c (check): Likewise.
35585         * tests/test-round2.c (equal): Likewise.
35586         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35587
35588 2010-04-07  Karl Berry  <karl@gnu.org>
35589
35590         * config/srclist.txt,
35591         * config/srclistvars.sh,
35592         * config/srclist-update: doc fixes.
35593
35594 2010-04-07  Jim Meyering  <meyering@redhat.com>
35595
35596         maint.mk: add a PATH crosschecking syntax-check rule
35597         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35598         Useful if you use a test like the one in help-version (coreutils,
35599         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35600         printed by prog --version.
35601
35602 2010-04-06  Bruno Haible  <bruno@clisp.org>
35603
35604         Fix link error on mingw.
35605         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35606         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35607
35608 2010-04-06  Bruno Haible  <bruno@clisp.org>
35609
35610         Assume rmdir exists.
35611         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35612
35613 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35614
35615         doc: update users.txt
35616         * users.txt: Add gcal.
35617
35618 2010-04-06  Jim Meyering  <meyering@redhat.com>
35619
35620         init.sh: simply unset TMPDIR rather than risking env -i
35621         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35622         although it probably works fine on all Unix-based systems, some
35623         systems (Cygwin?) cannot tolerate a totally cleared environment.
35624         Suggestion from Eric Blake.
35625
35626 2010-04-06  Jim Meyering  <meyering@redhat.com>
35627
35628         init.sh: portability fix: use env's POSIX-specified -i option not -u
35629         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35630         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35631
35632 2010-04-05  Bruno Haible  <bruno@clisp.org>
35633
35634         btowc: Work around Cygwin 1.7.2 bug.
35635         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35636         does not map NUL to 0.
35637         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35638
35639 2010-04-05  Bruno Haible  <bruno@clisp.org>
35640
35641         Make the multithread modules work on Cygwin 1.7.2.
35642         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35643         imported symbols can be declared weak, so that it returns "no" on
35644         Cygwin 1.7.2.
35645
35646 2010-04-05  Bruno Haible  <bruno@clisp.org>
35647
35648         Use the module 'strncat'.
35649         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35650
35651         Tests for module 'strncat'.
35652         * modules/strncat-tests: New file.
35653         * tests/test-strncat.c: New file.
35654
35655         New module 'strncat'.
35656         * lib/string.in.h (strncat): New declaration.
35657         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35658         * m4/strncat.m4: New file, based on m4/memchr.m4.
35659         * modules/strncat: New file.
35660         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35661         is declared.
35662         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35663         REPLACE_STRNCAT.
35664         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35665         REPLACE_STRNCAT.
35666         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35667         module.
35668         * tests/test-string-c++.cc: Check signature of strncat.
35669
35670 2010-04-05  Jim Meyering  <meyering@redhat.com>
35671
35672         xstrtoumax-tests: convert to use init.sh
35673         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35674         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35675         Use Exit, not exit.
35676         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35677
35678         xstrtoimax-tests: convert to use init.sh
35679         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35680         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35681         Use Exit, not exit.
35682         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35683
35684 2010-04-05  Bruno Haible  <bruno@clisp.org>
35685
35686         sys_socket: Avoid #define replacements in C++ mode.
35687         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35688         warning to the function if possible, rather than #defining the symbol
35689         to a dysfunctional alias.
35690
35691 2010-04-05  Bruno Haible  <bruno@clisp.org>
35692
35693         fseeko: Fix C++ test error on mingw.
35694         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35695         gl_FUNC_FSEEKO.
35696         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35697         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35698         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35699         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35700
35701 2010-04-05  Bruno Haible  <bruno@clisp.org>
35702
35703         duplocale: Improve test output.
35704         * tests/test-duplocale.c (main): Print reason for skipped test.
35705
35706 2010-04-05  Bruno Haible  <bruno@clisp.org>
35707
35708         Assume rmdir exists.
35709         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35710         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35711
35712 2010-04-05  Bruno Haible  <bruno@clisp.org>
35713
35714         Fix link error on Solaris 8 with cc.
35715         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35716
35717 2010-04-05  Bruno Haible  <bruno@clisp.org>
35718
35719         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35720         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35721
35722 2010-04-05  Bruno Haible  <bruno@clisp.org>
35723
35724         vasprintf: Update documentation.
35725         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35726
35727 2010-04-05  Bruno Haible  <bruno@clisp.org>
35728
35729         ptsname: Improve test.
35730         * tests/test-ptsname.c (main): Also try the various master names of BSD
35731         systems.
35732
35733 2010-04-05  Bruno Haible  <bruno@clisp.org>
35734
35735         memchr: Avoid a possible C++ test error.
35736         * lib/string.in.h (memchr): Provide declaration if function is missing.
35737         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35738         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35739         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35740         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35741
35742 2010-04-05  Bruno Haible  <bruno@clisp.org>
35743
35744         strtok_r: Improve idiom.
35745         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35746         AC_LIBOBJ is used.
35747
35748 2010-04-05  Bruno Haible  <bruno@clisp.org>
35749
35750         strdup: Improve idiom.
35751         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35752         AC_LIBOBJ is used.
35753         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35754         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35755         when AC_LIBOBJ is used.
35756
35757 2010-04-05  Bruno Haible  <bruno@clisp.org>
35758
35759         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35760         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35761         don't set REPLACE_MBSINIT to 1.
35762         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35763         don't set REPLACE_MBRTOWC to 1.
35764         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35765         exist, don't set REPLACE_MBSRTOWCS to 1.
35766         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35767         exist, don't set REPLACE_MBSNRTOWCS to 1.
35768         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35769         don't set REPLACE_WCRTOMB to 1.
35770         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35771         exist, don't set REPLACE_WCSRTOMBS to 1.
35772         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35773         exist, don't set REPLACE_WCSNRTOMBS to 1.
35774
35775 2010-04-05  Bruno Haible  <bruno@clisp.org>
35776
35777         ldexpl: Improve idiom.
35778         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35779         make sure to set HAVE_DECL_LDEXPL to 0.
35780
35781 2010-04-05  Jim Meyering  <meyering@redhat.com>
35782
35783         xstrtol-tests: convert to use init.sh
35784         * modules/xstrtol-tests (Files): Add tests/init.sh.
35785         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35786         Use Exit, not exit.
35787         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35788
35789         atexit-tests: convert to use init.sh
35790         * modules/atexit-tests (Files): Add tests/init.sh.
35791         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35792         Use Exit, not exit.
35793         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35794
35795         init.sh: fix typo
35796         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35797
35798         init.sh: make it easier for a test script to write to the tty, ...
35799         when using automake's parallel-tests mode.
35800         * tests/init.sh (stderr_fileno_): Define overridable variable.
35801         (warn_): New function, to use it.
35802         (fail_, skip_, framework_failure_): Use warn_.
35803
35804 2010-04-04  Bruno Haible  <bruno@clisp.org>
35805
35806         btowc: Avoid warning.
35807         * lib/btowc.c: Include <stdlib.h>.
35808         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35809
35810 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35811             Bruno Haible  <bruno@clisp.org>
35812
35813         wchar: Port to NetBSD 1.5.
35814         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35815         * lib/wctype.in.h (WEOF): Likewise.
35816
35817 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35818             Bruno Haible  <bruno@clisp.org>
35819
35820         Port extended stdio to NetBSD 1.5.
35821         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35822         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35823         older.
35824
35825 2010-04-04  Bruno Haible  <bruno@clisp.org>
35826
35827         string: Remove unused substitution.
35828         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35829         HAVE_DECL_STRERROR.
35830         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35831
35832 2010-04-04  Bruno Haible  <bruno@clisp.org>
35833
35834         strtod: Avoid a possible C++ test error.
35835         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35836         set REPLACE_STRTOD.
35837
35838 2010-04-04  Bruno Haible  <bruno@clisp.org>
35839
35840         strerror: Update documentation.
35841         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35842
35843 2010-04-04  Bruno Haible  <bruno@clisp.org>
35844
35845         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35846         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35847         _GL_CXXALIAS_SYS_CAST.
35848
35849 2010-04-04  Bruno Haible  <bruno@clisp.org>
35850
35851         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35852         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35853         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35854         REPLACE_FREXPL to 1.
35855         * doc/posix-functions/frexpl.texi: Update documentation.
35856
35857 2010-04-04  Bruno Haible  <bruno@clisp.org>
35858
35859         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35860         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35861
35862 2010-04-04  Bruno Haible  <bruno@clisp.org>
35863
35864         Implement nanosleep for native Windows.
35865         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35866
35867 2010-04-04  Bruno Haible  <bruno@clisp.org>
35868
35869         math: Fix some C++ test errors on Solaris 8.
35870         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35871
35872 2010-04-04  Bruno Haible  <bruno@clisp.org>
35873
35874         math: Fix some C++ test errors on Cygwin.
35875         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35876         truncl): Provide declaration if the system does not have it.
35877         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35878         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35879         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35880         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35881         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35882         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35883         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35884         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35885         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35886         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35887         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35888         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35889         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35890         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35891         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35892         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35894         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35895         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35896         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35897         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35898         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35899
35900 2010-04-04  Bruno Haible  <bruno@clisp.org>
35901
35902         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35903         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35904         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35905         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35906         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35907         * m4/isinf.m4 (gl_ISINF): Likewise.
35908         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35909
35910 2010-04-04  Bruno Haible  <bruno@clisp.org>
35911
35912         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35913         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35914
35915 2010-04-04  Bruno Haible  <bruno@clisp.org>
35916
35917         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35918         * modules/tmpfile (configure.ac): Update.
35919
35920         tmpfile: Fix C++ test error on mingw.
35921         * lib/stdio.in.h (tmpfile): New declaration.
35922         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35923         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35924         * modules/tmpfile (Depends-on): Add stdio.
35925         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35926         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35927         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35928         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35929         REPLACE_TMPFILE.
35930         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35931
35932 2010-04-04  Bruno Haible  <bruno@clisp.org>
35933
35934         ioctl: Fix C++ test error on mingw.
35935         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35936         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35937         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35938
35939 2010-04-03  Bruno Haible  <bruno@clisp.org>
35940
35941         wcwidth: Fix C++ test error on mingw.
35942         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35944         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35945
35946 2010-04-03  Bruno Haible  <bruno@clisp.org>
35947
35948         nanosleep: Fix C++ test error on mingw.
35949         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35950         * lib/time.in.h (nanosleep): Use modern idiom.
35951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35952         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35953         REPLACE_NANOSLEEP to 1.
35954         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35955         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35956
35957 2010-04-03  Bruno Haible  <bruno@clisp.org>
35958
35959         strptime: Fix C++ test error on mingw.
35960         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35961         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35962         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35963         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35964         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35965         not REPLACE_STRPTIME.
35966         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35967         REPLACE_STRPTIME.
35968
35969 2010-04-03  Bruno Haible  <bruno@clisp.org>
35970
35971         timegm: Fix C++ test error on mingw.
35972         * lib/time.in.h (timegm): Use modern idiom.
35973         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35974         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35975         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35976         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35977
35978 2010-04-03  Bruno Haible  <bruno@clisp.org>
35979
35980         timegm: Assume declaration if function exists.
35981         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35982         if it exists. Don't clobber ac_cv_func_timegm.
35983
35984 2010-04-03  Bruno Haible  <bruno@clisp.org>
35985
35986         time_r: Fix C++ test error on mingw.
35987         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35988         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35989         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35990         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35991         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35992
35993 2010-04-03  Bruno Haible  <bruno@clisp.org>
35994
35995         time_r: Minor updates.
35996         * modules/time_r (Description): Mention the provided functions.
35997         * lib/time_r.c: Don't include <string.h>.
35998         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35999         * doc/posix-functions/localtime_r.texi: Likewise.
36000
36001 2010-04-03  Bruno Haible  <bruno@clisp.org>
36002
36003         time: Fix regression introduced on 2010-03-08.
36004         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
36005         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
36006
36007 2010-04-03  Jim Meyering  <meyering@redhat.com>
36008
36009         maint.mk: don't silently disable project-specific syntax-check rules
36010         * top/maint.mk (_prohibit_regexp): Define, to help people realize
36011         that they need to convert their project-specific syntax-check rules
36012         to use the new _sc_search_regexp.
36013
36014 2010-04-03  Bruno Haible  <bruno@clisp.org>
36015
36016         fchdir: Fix regression introduced on 2010-03-08.
36017         * lib/unistd.in.h (fchdir): Fix declaration.
36018         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
36019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
36020         REPLACE_FCHDIR.
36021         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
36022         REPLACE_FCHDIR.
36023
36024 2010-04-03  Bruno Haible  <bruno@clisp.org>
36025
36026         getpagesize: Fix C++ test error on mingw.
36027         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
36028         system does not declare the function.
36029         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
36030         declared.
36031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36032         HAVE_DECL_GETPAGESIZE.
36033         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
36034
36035 2010-04-03  Bruno Haible  <bruno@clisp.org>
36036
36037         stdio: Make C++ tests work on mingw.
36038         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
36039         does not declare the function.
36040
36041 2010-04-03  Bruno Haible  <bruno@clisp.org>
36042
36043         ftello: Fix C++ test error on mingw.
36044         * lib/stdio.in.h (ftello): Use modern idiom.
36045         * lib/ftello.c (ftello): Renamed from rpl_ftello.
36046         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
36047         is missing and that it needs to be replaced.
36048         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
36049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
36050         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
36051
36052 2010-04-03  Bruno Haible  <bruno@clisp.org>
36053
36054         fseeko: Fix C++ test error on mingw.
36055         * lib/stdio.in.h (fseeko): Use modern idiom.
36056         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
36057         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
36058         is missing and that it needs to be replaced.
36059         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
36060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
36061         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
36062
36063 2010-04-03  Bruno Haible  <bruno@clisp.org>
36064
36065         mkstemp: Fix C++ test error on mingw.
36066         * lib/stdlib.in.h (mkstemp): Use modern idiom.
36067         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
36068         function is missing and that it needs to be replaced.
36069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
36070         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
36071
36072 2010-04-03  Bruno Haible  <bruno@clisp.org>
36073
36074         stpncpy: Fix C++ test error on mingw.
36075         * lib/string.in.h (stpncpy): Use modern idiom.
36076         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
36077         function is missing and that it needs to be replaced.
36078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36079         REPLACE_STPNCPY.
36080         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
36081
36082 2010-04-03  Bruno Haible  <bruno@clisp.org>
36083
36084         sys_stat: Fix C++ test error on mingw.
36085         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
36086         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
36087
36088 2010-04-03  Bruno Haible  <bruno@clisp.org>
36089
36090         pty: Update doc.
36091         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
36092
36093 2010-04-03  Bruno Haible  <bruno@clisp.org>
36094
36095         unistd: Fix C++ test error on mingw.
36096         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
36097
36098 2010-04-03  Bruno Haible  <bruno@clisp.org>
36099
36100         Update doc regarding mingw.
36101         * doc/glibc-functions/openpty.texi: Update regarding mingw.
36102         * doc/glibc-functions/login_tty.texi: Likewise.
36103         * doc/glibc-functions/forkpty.texi: Likewise.
36104
36105 2010-04-03  Bruno Haible  <bruno@clisp.org>
36106
36107         stdlib: Avoid compilation failure of c-strtold on mingw.
36108         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
36109
36110 2010-04-03  Bruno Haible  <bruno@clisp.org>
36111
36112         locale: Make C++ tests work on Cygwin and mingw.
36113         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
36114         cannot provide the function.
36115         Reported by Simon Josefsson.
36116
36117 2010-04-03  Bruno Haible  <bruno@clisp.org>
36118
36119         localename: Port to MacOS X 10.6.
36120         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
36121         memory layout of the locales in MacOS X 10.6 as well.
36122         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
36123
36124 2010-04-02  Bruno Haible  <bruno@clisp.org>
36125
36126         gnulib-tool: Ensure that long-running tests are executed last.
36127         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
36128         running tests after the one for the other tests.
36129
36130 2010-04-02  Bruno Haible  <bruno@clisp.org>
36131
36132         gnulib-tool: Ensure the tests in the main directory are executed first.
36133         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
36134         start with the current directory.
36135
36136 2010-04-02  Bruno Haible  <bruno@clisp.org>
36137
36138         Tests for module 'havelib', moved here from GNU gettext.
36139         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
36140         modifications.
36141         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
36142         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
36143         with modifications.
36144         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
36145         modifications.
36146         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
36147         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
36148         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
36149         with modifications.
36150         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
36151         with modifications.
36152         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
36153         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
36154         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
36155         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
36156         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
36157         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
36158         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
36159         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
36160         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
36161         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
36162         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
36163         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
36164         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
36165         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
36166         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
36167         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
36168         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
36169         with modifications.
36170         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
36171         with modifications.
36172         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
36173         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
36174         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
36175         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
36176         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
36177         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
36178         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
36179         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
36180         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
36181         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
36182         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
36183         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
36184         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
36185         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
36186         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
36187         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
36188         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
36189         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
36190         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
36191         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
36192         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
36193         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
36194         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
36195         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
36196         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
36197         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
36198         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
36199         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
36200         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
36201         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
36202         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
36203         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
36204         * tests/havelib/rpathx/rpathx.c: New file, from
36205         gettext/autoconf-lib-link.
36206         * tests/havelib/rpathx/Makefile.am: New file, from
36207         gettext/autoconf-lib-link.
36208         * tests/havelib/rpathx/configure.ac: New file, from
36209         gettext/autoconf-lib-link with modifications.
36210         * tests/havelib/rpathy/rpathy.c: New file, from
36211         gettext/autoconf-lib-link.
36212         * tests/havelib/rpathy/Makefile.am: New file, from
36213         gettext/autoconf-lib-link.
36214         * tests/havelib/rpathy/configure.ac: New file, from
36215         gettext/autoconf-lib-link with modifications.
36216         * tests/havelib/rpathz/rpathz.c: New file, from
36217         gettext/autoconf-lib-link.
36218         * tests/havelib/rpathz/Makefile.am: New file, from
36219         gettext/autoconf-lib-link.
36220         * tests/havelib/rpathz/configure.ac: New file, from
36221         gettext/autoconf-lib-link with modifications.
36222         * tests/havelib/rpathlx/usex.c: New file, from
36223         gettext/autoconf-lib-link.
36224         * tests/havelib/rpathlx/Makefile.am: New file, from
36225         gettext/autoconf-lib-link.
36226         * tests/havelib/rpathlx/configure.ac: New file, from
36227         gettext/autoconf-lib-link with modifications.
36228         * tests/havelib/rpathly/usey.c: New file, from
36229         gettext/autoconf-lib-link.
36230         * tests/havelib/rpathly/Makefile.am: New file, from
36231         gettext/autoconf-lib-link.
36232         * tests/havelib/rpathly/configure.ac: New file, from
36233         gettext/autoconf-lib-link with modifications.
36234         * tests/havelib/rpathlz/usez.c: New file, from
36235         gettext/autoconf-lib-link.
36236         * tests/havelib/rpathlz/Makefile.am: New file, from
36237         gettext/autoconf-lib-link.
36238         * tests/havelib/rpathlz/configure.ac: New file, from
36239         gettext/autoconf-lib-link with modifications.
36240         * tests/havelib/rpathlyx/usey.c: New file, from
36241         gettext/autoconf-lib-link.
36242         * tests/havelib/rpathlyx/Makefile.am: New file, from
36243         gettext/autoconf-lib-link.
36244         * tests/havelib/rpathlyx/configure.ac: New file, from
36245         gettext/autoconf-lib-link with modifications.
36246         * tests/havelib/rpathlzyx/usez.c: New file, from
36247         gettext/autoconf-lib-link.
36248         * tests/havelib/rpathlzyx/Makefile.am: New file, from
36249         gettext/autoconf-lib-link.
36250         * tests/havelib/rpathlzyx/configure.ac: New file, from
36251         gettext/autoconf-lib-link with modifications.
36252         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
36253         with modifications.
36254
36255 2010-04-02  Bruno Haible  <bruno@clisp.org>
36256
36257         gnulib-tool: Create distributed built sources also for the tests.
36258         * gnulib-tool (func_create_testdir): Also generate distributed built
36259         sources in the tests directory.
36260
36261 2010-04-02  Bruno Haible  <bruno@clisp.org>
36262
36263         gnulib-tool: Obey user's environment variables.
36264         * gnulib-tool (func_create_testdir): When creating built sources,
36265         respect the environment variables for autoconf, automake, etc. given by
36266         the user.
36267
36268 2010-04-02  Bruno Haible  <bruno@clisp.org>
36269
36270         gnulib-tool: Provide the value of --m4-base to modules.
36271         * gnulib-tool (func_import, func_create_testdir): Emit a definition
36272         of gl_m4_base.
36273
36274 2010-04-02  Eric Blake  <eblake@redhat.com>
36275
36276         maint.mk: fix some fallout
36277         * NEWS: Document the incompatible change, and its effect on cfg.mk.
36278         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
36279
36280 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36281
36282         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
36283         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
36284         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
36285         (sc_cast_of_x_alloc_return_value): Likewise.
36286         (sc_cast_of_alloca_return_value): Likewise.
36287         (sc_space_tab): Likewise.
36288         (sc_prohibit_atoi_atof): Likewise.
36289         (sc_prohibit_magic_number_exit): Likewise.
36290         (sc_error_exit_success): Likewise.
36291         (sc_file_system): Likewise.
36292         (sc_prohibit_have_config_h): Likewise.
36293         (sc_require_config_h): Likewise.
36294         (sc_prohibit_HAVE_MBRTOWC): Likewise.
36295         (sc_obsolete_symbols): Likewise.
36296         (sc_changelog): Likewise.
36297         (sc_program_name): Likewise.
36298         (sc_the_the): Likewise.
36299         (sc_trailing_blank): Likewise.
36300         (sc_two_space_separator_in_usage): Likewise.
36301         (sc_useless_cpp_parens): Likewise.
36302         (sc_GPL_version): Likewise.
36303         (sc_GFDL_version): Likewise.
36304         (sc_texinfo_acronym): Likewise.
36305         (sc_prohibit_cvs_keyword): Likewise.
36306         (sc_prohibit_stat_st_blocks): Likewise.
36307         (sc_prohibit_S_IS_definition): Likewise.
36308         (sc_redundant_const): Likewise.
36309         (sc_makefile_TAB_only_indentation): Likewise.
36310         (sc_m4_quote_check): Likewise.
36311         (sc_makefile_path_separator_check): Likewise.
36312         (sc_copyright_check): Likewise.
36313         (sc_Wundef_boolean): Likewise.
36314         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
36315
36316         maint.mk: match 0 or more whitespace-before-function-call '('
36317         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
36318         that have zero or two-and-more spaces between the function name
36319         and the open parenthesis.
36320         (sc_error_message_warn_fatal): Likewise.
36321         (sc_error_message_uppercase): Likewise.
36322         (sc_error_message_period): Likewise.
36323
36324 2010-03-31  Eric Blake  <eblake@redhat.com>
36325
36326         maint.mk: check for [ as well as test
36327         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
36328         Based on a libvirt report by Matthias Bolte.
36329
36330         gnumakefile: don't squelch _version output
36331         * top/GNUmakefile (_version): Create one-shot dependency rather
36332         than using $(shell) when version must be regenerated.
36333         (_autoreconf): Run verbosely, by default.
36334
36335         sys_time: avoid compiler warnings
36336         * lib/sys_time.in.h (includes): Ensure gcc pragma is
36337         unconditional, fixing regression from 2010-03-29.
36338         Reported by Simon Josefsson.
36339
36340 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36341
36342         maint.mk: s/_header_without_use/_sc_header_without_use/
36343         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
36344         (sc_prohibit_assert_without_use): Use the new name.
36345         (sc_prohibit_close_stream_without_use): Likewise.
36346         (sc_prohibit_getopt_without_use): Likewise.
36347         (sc_prohibit_quotearg_without_use): Likewise.
36348         (sc_prohibit_quote_without_use): Likewise.
36349         (sc_prohibit_long_options_without_use): Likewise.
36350         (sc_prohibit_inttostr_without_use): Likewise.
36351         (sc_prohibit_ignore_value_without_use): Likewise.
36352         (sc_prohibit_error_without_use): Likewise.
36353         (sc_prohibit_xalloc_without_use): Likewise.
36354         (sc_prohibit_hash_without_use): Likewise.
36355         (sc_prohibit_hash_pjw_without_use): Likewise.
36356         (sc_prohibit_safe_read_without_use): Likewise.
36357         (sc_prohibit_argmatch_without_use): Likewise.
36358         (sc_prohibit_canonicalize_without_use): Likewise.
36359         (sc_prohibit_root_dev_ino_without_use): Likewise.
36360         (sc_prohibit_openat_without_use): Likewise.
36361         (sc_prohibit_c_ctype_without_use): Likewise.
36362         (sc_prohibit_signal_without_use): Likewise.
36363         (sc_prohibit_intprops_without_use): Likewise.
36364
36365 2010-03-30  Eric Blake  <eblake@redhat.com>
36366
36367         maint: improve module indicators
36368         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
36369         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
36370         columns, and avoid extra macro expansion.
36371
36372         fdopendir: work around FreeBSD bug
36373         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36374         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
36375         * modules/dirent (Makefile.am): Substitute it.
36376         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
36377         declaration.
36378         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
36379         fix.
36380         Reported by Christian Weisgerber <naddy@mips.inka.de>.
36381
36382 2010-03-29  Bruno Haible  <bruno@clisp.org>
36383
36384         Emit #pragma system_header after the inclusion guard, not before.
36385         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
36386         guard that spans the entire file, not before. This enables an
36387         optimization in GCC's preprocessor.
36388         * lib/ctype.in.h: Likewise.
36389         * lib/dirent.in.h: Likewise.
36390         * lib/errno.in.h: Likewise.
36391         * lib/float.in.h: Likewise.
36392         * lib/getopt.in.h: Likewise.
36393         * lib/iconv.in.h: Likewise.
36394         * lib/langinfo.in.h: Likewise.
36395         * lib/locale.in.h: Likewise.
36396         * lib/math.in.h: Likewise.
36397         * lib/netdb.in.h: Likewise.
36398         * lib/netinet_in.in.h: Likewise.
36399         * lib/pty.in.h: Likewise.
36400         * lib/sched.in.h: Likewise.
36401         * lib/se-selinux.in.h: Likewise.
36402         * lib/search.in.h: Likewise.
36403         * lib/spawn.in.h: Likewise.
36404         * lib/stdarg.in.h: Likewise.
36405         * lib/stdint.in.h: Likewise.
36406         * lib/string.in.h: Likewise.
36407         * lib/strings.in.h: Likewise.
36408         * lib/sys_file.in.h: Likewise.
36409         * lib/sys_ioctl.in.h: Likewise.
36410         * lib/sys_time.in.h: Likewise.
36411         * lib/sys_times.in.h: Likewise.
36412         * lib/sys_utsname.in.h: Likewise.
36413         * lib/sys_wait.in.h: Likewise.
36414         * lib/sysexits.in.h: Likewise.
36415         * lib/wctype.in.h: Likewise.
36416
36417 2010-03-28  James Youngman  <jay@gnu.org>
36418
36419         save-cwd: don't leak a file descriptor when the caller execs.
36420         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
36421         saved file descriptor.
36422         * modules/save-cwd (Depends-on): Depend on cloexec.
36423
36424 2010-03-29  Bruno Haible  <bruno@clisp.org>
36425
36426         Remove vestiges of fts-lgpl module.
36427         * lib/fts_.h: Assume GNULIB_FTS is 1.
36428         * lib/fts.c: Likewise.
36429         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36430
36431 2010-03-28  Bruno Haible  <bruno@clisp.org>
36432
36433         Fix definition of tests witness macro.
36434         * gnulib-tool (func_import): Fix definition of witness macro.
36435
36436 2010-03-28  Bruno Haible  <bruno@clisp.org>
36437
36438         Fix ioctl's protoype on glibc systems.
36439         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
36440         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
36441         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
36442         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
36443         signature. If not, arrange to replace the ioctl function.
36444         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36445         REPLACE_IOCTL.
36446         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
36447         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
36448         Reported by Ludovic Courtès <ludo@gnu.org>.
36449
36450 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
36451
36452         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
36453         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
36454         made it so grep -r --include=GLOB* ... did not work.
36455
36456 2010-03-26  Jim Meyering  <meyering@redhat.com>
36457             Eric Blake  <eblake@redhat.com>
36458
36459         maint.mk: prohibit use of test's -o and -a operators
36460         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
36461
36462 2010-03-28  Bruno Haible  <bruno@clisp.org>
36463
36464         Remove unused GNULIB_XYZ macro definitions.
36465         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
36466         invocation.
36467
36468 2010-03-28  Bruno Haible  <bruno@clisp.org>
36469
36470         Mark privileged tests modules.
36471         * modules/idpriv-drop-tests (Status): New section.
36472         * modules/idpriv-droptemp-tests (Status): New section.
36473
36474 2010-03-28  Bruno Haible  <bruno@clisp.org>
36475
36476         Split C++ tests into separate tests modules.
36477         * modules/dirent-c++-tests: New file, extracted from
36478         modules/dirent-tests.
36479         * modules/dirent-tests: Depend on it.
36480         * modules/fcntl-h-c++-tests: New file, extracted from
36481         modules/fcntl-h-tests.
36482         * modules/fcntl-h-tests: Depend on it.
36483         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
36484         * modules/glob-tests: Depend on it.
36485         * modules/iconv-h-c++-tests: New file, extracted from
36486         modules/iconv-h-tests.
36487         * modules/iconv-h-tests: Depend on it.
36488         * modules/langinfo-c++-tests: New file, extracted from
36489         modules/langinfo-tests.
36490         * modules/langinfo-tests: Depend on it.
36491         * modules/locale-c++-tests: New file, extracted from
36492         modules/locale-tests.
36493         * modules/locale-tests: Depend on it.
36494         * modules/math-c++-tests: New file, extracted from modules/math-tests.
36495         * modules/math-tests: Depend on it.
36496         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
36497         * modules/pty-tests: Depend on it.
36498         * modules/search-c++-tests: New file, extracted from
36499         modules/search-tests.
36500         * modules/search-tests: Depend on it.
36501         * modules/signal-c++-tests: New file, extracted from
36502         modules/signal-tests.
36503         * modules/signal-tests: Depend on it.
36504         * modules/spawn-c++-tests: New file, extracted from
36505         modules/spawn-tests.
36506         * modules/spawn-tests: Depend on it.
36507         * modules/stdio-c++-tests: New file, extracted from
36508         modules/stdio-tests.
36509         * modules/stdio-tests: Depend on it.
36510         * modules/stdlib-c++-tests: New file, extracted from
36511         modules/stdlib-tests.
36512         * modules/stdlib-tests: Depend on it.
36513         * modules/string-c++-tests: New file, extracted from
36514         modules/string-tests.
36515         * modules/string-tests: Depend on it.
36516         * modules/sys_ioctl-c++-tests: New file, extracted from
36517         modules/sys_ioctl-tests.
36518         * modules/sys_ioctl-tests: Depend on it.
36519         * modules/sys_select-c++-tests: New file, extracted from
36520         modules/sys_select-tests.
36521         * modules/sys_select-tests: Depend on it.
36522         * modules/sys_socket-c++-tests: New file, extracted from
36523         modules/sys_socket-tests.
36524         * modules/sys_socket-tests: Depend on it.
36525         * modules/sys_stat-c++-tests: New file, extracted from
36526         modules/sys_stat-tests.
36527         * modules/sys_stat-tests: Depend on it.
36528         * modules/sys_time-c++-tests: New file, extracted from
36529         modules/sys_time-tests.
36530         * modules/sys_time-tests: Depend on it.
36531         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36532         * modules/time-tests: Depend on it.
36533         * modules/unistd-c++-tests: New file, extracted from
36534         modules/unistd-tests.
36535         * modules/unistd-tests: Depend on it.
36536         * modules/wchar-c++-tests: New file, extracted from
36537         modules/wchar-tests.
36538         * modules/wchar-tests: Depend on it.
36539         * modules/wctype-c++-tests: New file, extracted from
36540         modules/wctype-tests.
36541         * modules/wctype-tests: Depend on it.
36542         Reported by Simon Josefsson.
36543
36544 2010-03-28  Bruno Haible  <bruno@clisp.org>
36545
36546         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36547         * gnulib-tool (func_exists_module): New function, extracted from
36548         func_verify_module.
36549         (func_verify_module): Use it.
36550         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36551         'foo' only if 'foo' exists.
36552         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36553         module.
36554
36555 2010-03-28  Bruno Haible  <bruno@clisp.org>
36556
36557         gnulib-tool: Add support for special categories of tests.
36558         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36559         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36560         (func_usage): Document them.
36561         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36562         inc_unportable_tests, inc_all_tests): New variables.
36563         (func_acceptable): Consider these variables.
36564         (func_modules_transitive_closure): Make it work when the 'Status' field
36565         consists of multiple words.
36566         (func_import): Store and restore the values of inc_cxx_tests,
36567         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36568         inc_all_tests in gnulib-comp.m4.
36569         (func_create_testdir): Set inc_all_tests to true.
36570         * doc/gnulib.texi (Extra tests modules): New section.
36571         Suggested by Jim Meyering.
36572
36573 2010-03-28  Bruno Haible  <bruno@clisp.org>
36574
36575         ansi-c++-opt: Allow turning off the C++ build by default.
36576         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36577         gl_CXX_CHOICE_DEFAULT_NO is defined.
36578         Requested by Eric Blake.
36579
36580 2010-03-28  Bruno Haible  <bruno@clisp.org>
36581
36582         unistd: Avoid #define replacements in C++ mode.
36583         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36584         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36585         setsockopt, shutdown, select): In C++, attach a warning to the function
36586         if possible, rather than #defining the symbol to a dysfunctional alias.
36587         Reported by John W. Eaton <jwe@gnu.org>.
36588
36589 2010-03-28  Bruno Haible  <bruno@clisp.org>
36590
36591         Fix link errors on mingw.
36592         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36593         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36594         $(LIBSOCKET).
36595         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36596         $(LIBSOCKET).
36597
36598 2010-03-28  Bruno Haible  <bruno@clisp.org>
36599             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36600
36601         lib-ignore: Determine different options for different compilers.
36602         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36603         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36604         Add comments.
36605         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36606         * NEWS: Mention the change.
36607
36608 2010-03-27  Bruno Haible  <bruno@clisp.org>
36609
36610         Remove unused GNULIB_XYZ macro definitions.
36611         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36612         * modules/fseek (configure.ac): Likewise.
36613         * modules/ioctl (configure.ac): Likewise.
36614         * modules/open (configure.ac): Likewise.
36615         * modules/stdlib-safer (configure.ac): Likewise.
36616
36617 2010-03-27  Bruno Haible  <bruno@clisp.org>
36618
36619         Add a remark about certain modules.
36620         * modules/malloc (Comment): New section.
36621         * modules/realloc (Comment): Likewise.
36622         * modules/sigpipe (Comment): Likewise.
36623
36624 2010-03-27  Bruno Haible  <bruno@clisp.org>
36625
36626         Resolve conflict between the two kinds of module indicators.
36627         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36628         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36629         * modules/canonicalize (configure.ac): Invoke
36630         gl_MODULE_INDICATOR_FOR_TESTS.
36631         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36632         GNULIB_XYZ.
36633         * tests/test-dirent-c++.cc: Likewise.
36634         * tests/test-dirent-safer.c: Likewise.
36635         * tests/test-dup2.c: Likewise.
36636         * tests/test-fchdir.c: Likewise.
36637         * tests/test-fcntl-h-c++.cc: Likewise.
36638         * tests/test-getopt.c: Likewise.
36639         * tests/test-getopt.h: Likewise.
36640         * tests/test-langinfo-c++.cc: Likewise.
36641         * tests/test-locale-c++.cc: Likewise.
36642         * tests/test-math-c++.cc: Likewise.
36643         * tests/test-pty-c++.cc: Likewise.
36644         * tests/test-search-c++.cc: Likewise.
36645         * tests/test-signal-c++.cc: Likewise.
36646         * tests/test-spawn-c++.cc: Likewise.
36647         * tests/test-stdio-c++.cc: Likewise.
36648         * tests/test-stdlib-c++.cc: Likewise.
36649         * tests/test-string-c++.cc: Likewise.
36650         * tests/test-sys_ioctl-c++.cc: Likewise.
36651         * tests/test-sys_select-c++.cc: Likewise.
36652         * tests/test-sys_socket-c++.cc: Likewise.
36653         * tests/test-sys_stat-c++.cc: Likewise.
36654         * tests/test-sys_time-c++.cc: Likewise.
36655         * tests/test-time-c++.cc: Likewise.
36656         * tests/test-unistd-c++.cc: Likewise.
36657         * tests/test-wchar-c++.cc: Likewise.
36658         * tests/uninorm/test-u8-nfc.c: Likewise.
36659         * tests/uninorm/test-u8-nfd.c: Likewise.
36660         * tests/uninorm/test-u8-nfkc.c: Likewise.
36661         * tests/uninorm/test-u8-nfkd.c: Likewise.
36662         * tests/uninorm/test-u16-nfc.c: Likewise.
36663         * tests/uninorm/test-u16-nfd.c: Likewise.
36664         * tests/uninorm/test-u16-nfkc.c: Likewise.
36665         * tests/uninorm/test-u16-nfkd.c: Likewise.
36666         * tests/uninorm/test-u32-nfc.c: Likewise.
36667         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36668         * tests/uninorm/test-u32-nfd.c: Likewise.
36669         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36670         * tests/uninorm/test-u32-nfkc.c: Likewise.
36671         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36672         * tests/uninorm/test-u32-nfkd.c: Likewise.
36673         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36674         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36675
36676 2010-03-27  Bruno Haible  <bruno@clisp.org>
36677
36678         Distinguish two kinds of module indicators.
36679         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36680         gl_MODULE_INDICATOR.
36681         (gl_MODULE_INDICATOR): New macro.
36682         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36683         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36684         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36685         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36686         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36687         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36688         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36689         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36690         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36691         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36692         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36693         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36694         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36695         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36696         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36697         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36698         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36699         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36700         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36701         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36702         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36703         * modules/cloexec (configure.ac): Likewise.
36704         * modules/getopt-gnu (configure.ac): Likewise.
36705         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36706         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36707         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36708         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36709
36710 2010-03-27  Bruno Haible  <bruno@clisp.org>
36711
36712         New module description field 'Comment'.
36713         * gnulib-tool: New option --extract-comment.
36714         (func_usage): Document it.
36715         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36716         (func_get_comment): New function.
36717         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36718
36719 2010-03-27  Bruno Haible  <bruno@clisp.org>
36720
36721         Addendum to 2010-02-07 commit.
36722         * gnulib-tool (func_usage): Document --extract-applicability option.
36723
36724 2010-03-27  Bruno Haible  <bruno@clisp.org>
36725
36726         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36727         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36728         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36729         rather than link errors.
36730
36731 2010-03-27  Bruno Haible  <bruno@clisp.org>
36732
36733         Avoid side effects from tests-related modules on the compilation of lib.
36734         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36735         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36736         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36737         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36738         macro.
36739         (func_import): Define a witness macro. Assign it a value that depends
36740         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36741         tests-related modules.
36742         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36743         Reported by Jim Meyering.
36744
36745 2010-03-27  Bruno Haible  <bruno@clisp.org>
36746
36747         Factorize common .m4 code.
36748         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36749         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36750         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36751         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36752         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36753         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36754         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36755         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36756         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36757         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36758         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36759         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36760         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36761         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36762         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36763         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36764         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36765         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36767         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36768         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36769         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36770         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36771         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36772         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36773         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36774         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36775         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36776         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36777         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36778         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36779         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36780
36781 2010-03-27  Bruno Haible  <bruno@clisp.org>
36782
36783         Fix a compilation error on Cygwin with g++ >= 4.3.
36784         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36785         if it is undefined or if we alias it to chmod.
36786         (lstat): Don't warn about the use of this function if it is undefined
36787         or if we alias it to stat.
36788         Reported by Simon Josefsson.
36789
36790 2010-03-27  Bruno Haible  <bruno@clisp.org>
36791
36792         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36793         * modules/getlogin (configure.ac): Update.
36794
36795         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36796         * modules/getlogin_r (configure.ac): Update.
36797
36798         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36799         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36800         * modules/inet_ntop (configure.ac): Update.
36801
36802         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36803         * modules/inet_pton (configure.ac): Update.
36804
36805         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36806         * modules/mbslen (configure.ac): Update.
36807
36808         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36809         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36810         * modules/forkpty (configure.ac): Update.
36811         * modules/openpty (configure.ac): Update.
36812
36813 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36814
36815         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36816         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36817
36818 2010-03-25  Eric Blake  <eblake@redhat.com>
36819
36820         maint: use pragma consistently across replacement headers
36821         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36822         * lib/dirent.in.h (system_header): Likewise.
36823         * lib/errno.in.h (system_header): Likewise.
36824         * lib/float.in.h (system_header): Likewise.
36825         * lib/getopt.in.h (system_header): Likewise.
36826         * lib/iconv.in.h (system_header): Likewise.
36827         * lib/inttypes.in.h (system_header): Likewise.
36828         * lib/langinfo.in.h (system_header): Likewise.
36829         * lib/locale.in.h (system_header): Likewise.
36830         * lib/math.in.h (system_header): Likewise.
36831         * lib/netdb.in.h (system_header): Likewise.
36832         * lib/netinet_in.in.h (system_header): Likewise.
36833         * lib/pty.in.h (system_header): Likewise.
36834         * lib/sched.in.h (system_header): Likewise.
36835         * lib/se-selinux.in.h (system_header): Likewise.
36836         * lib/search.in.h (system_header): Likewise.
36837         * lib/spawn.in.h (system_header): Likewise.
36838         * lib/stdarg.in.h (system_header): Likewise.
36839         * lib/stdint.in.h (system_header): Likewise.
36840         * lib/string.in.h (system_header): Likewise.
36841         * lib/strings.in.h (system_header): Likewise.
36842         * lib/sys_file.in.h (system_header): Likewise.
36843         * lib/sys_ioctl.in.h (system_header): Likewise.
36844         * lib/sys_socket.in.h (system_header): Likewise.
36845         * lib/sys_times.in.h (system_header): Likewise.
36846         * lib/sys_utsname.in.h (system_header): Likewise.
36847         * lib/sys_wait.in.h (system_header): Likewise.
36848         * lib/sysexits.in.h (system_header): Likewise.
36849         * lib/unistd.in.h (system_header): Likewise.
36850         * lib/wctype.in.h (system_header): Likewise.
36851
36852         arpa/inet: fix mingw compilation warning
36853         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36854         Reported by Matthew Bolte.
36855
36856 2010-03-25  Bruno Haible  <bruno@clisp.org>
36857
36858         Avoid collision between gnulib wrapper and libintl wrapper.
36859         * lib/printf.c (printf): Don't define if a printf wrapper is already
36860         defined in intl/printf.c.
36861         Reported by Michel Boaventura <michel@michelboaventura.com>.
36862
36863 2010-03-25  Bruno Haible  <bruno@clisp.org>
36864
36865         Use ANSI C.
36866         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36867
36868 2010-03-25  Bruno Haible  <bruno@clisp.org>
36869
36870         Minor formatting changes.
36871         * lib/acosl.c: Insert space before function argument list.
36872         * lib/argz.c: Likewise.
36873         * lib/asinl.c: Likewise.
36874         * lib/expl.c: Likewise.
36875         * lib/gen-uni-tables.c: Likewise.
36876         * lib/gettext.h: Likewise.
36877         * lib/glthread/lock.h: Likewise.
36878         * lib/tanl.c: Likewise.
36879         * lib/uniname/uniname.c: Likewise.
36880         * tests/test-idpriv-drop.c: Likewise.
36881         * tests/test-idpriv-droptemp.c: Likewise.
36882         * tests/test-lock.c: Likewise.
36883         * tests/test-tls.c: Likewise.
36884         * lib/argp-help.c: Insert space before function-like macro argument
36885         list.
36886         * lib/memcmp.c: Likewise.
36887         * tests/test-base64.c: Likewise.
36888         * lib/localename.c: Insert space before sizeof's argument list.
36889         * lib/safe-alloc.h: Likewise.
36890         * lib/file-set.h: Insert space before macro argument list.
36891         * tests/test-argp.c: Likewise.
36892         * lib/argp-namefrob.h: Insert space before function parameter list.
36893         * lib/getaddrinfo.c: Likewise.
36894         * lib/netdb.in.h: Likewise.
36895         * lib/parse-duration.h: Likewise.
36896         * lib/parse-duration.c: Likewise.
36897         * lib/poll.c: Likewise.
36898         * lib/select.c: Likewise.
36899         * lib/trim.h: Likewise.
36900         * tests/test-usleep.c: Likewise.
36901         * lib/ldexpl.c: Insert space before function parameter list and before
36902         function argument list.
36903         * lib/logl.c: Likewise.
36904         * lib/sqrtl.c: Likewise.
36905         * lib/trim.c: Likewise.
36906         * lib/cosl.c: Use GNU style indentation. Insert space before function
36907         argument list.
36908         * lib/sinl.c: Likewise.
36909         * lib/tsearch.c: Insert space after 'for'.
36910         Reported by Jim Meyering.
36911
36912 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36913
36914         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36915         config header before grepping, as it's not present before
36916         autoreconf/configure are run.  Reported by Simon Josefsson.
36917
36918 2010-03-23  Bruno Haible  <bruno@clisp.org>
36919
36920         pt_chown: Make it work with automake < 1.11.
36921         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36922         Reported by Simon Josefsson.
36923
36924 2010-03-23  Bruno Haible  <bruno@clisp.org>
36925
36926         pt_chown: Don't depend on GPLed modules.
36927         * lib/pt_chown.c: Don't include idpriv.h.
36928         (main): Don't drop privileges.
36929         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36930         Reported by Simon Josefsson.
36931
36932 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36933
36934         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36935         suggestions from karl@freefriends.org (Karl Berry).
36936
36937 2010-03-22  Eric Blake  <eblake@redhat.com>
36938
36939         gethostname: further tweaks
36940         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36941         are overriding gethostname.
36942         Suggested by Bruno Haible.
36943
36944 2010-03-21  Bruno Haible  <bruno@clisp.org>
36945
36946         Fix comments.
36947         * lib/forkpty.c (rpl_forkpty): Fix comment.
36948         * lib/openpty.c (rpl_openpty): Likewise.
36949         Reported by Eric Blake.
36950
36951 2010-03-22  Eric Blake  <eblake@redhat.com>
36952
36953         gethostname: fix build on mingw
36954         * lib/unistd.in.h (includes): Work around fact that mingw
36955         <winsock2.h> re-includes <unistd.h>, by avoiding any
36956         redeclarations if we are being included by <winsock2.h>.
36957         Reported by Matthias Bolte.
36958
36959 2010-03-21  Bruno Haible  <bruno@clisp.org>
36960
36961         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36962         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36963         modifications.
36964         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36965         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36966         provide the replacement.
36967         * modules/forkpty (Depends-on): Add openpty, login_tty.
36968         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36969         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36970         * doc/glibc-functions/forkpty.texi: More supported platforms.
36971         * config/srclist.txt: Add forkpty.c (commented).
36972
36973 2010-03-21  Bruno Haible  <bruno@clisp.org>
36974
36975         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36976         (Makefile.am): Verify that PTY_LIB is defined.
36977
36978         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36979
36980 2010-03-21  Bruno Haible  <bruno@clisp.org>
36981
36982         Tests for module 'login_tty'.
36983         * modules/login_tty-tests: New file.
36984         * tests/test-login_tty.c: New file.
36985
36986         New module 'login_tty'.
36987         * lib/login_tty.c: New file.
36988         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36989         * modules/login_tty: New file.
36990         * doc/glibc-functions/login_tty.texi: Mention the new module.
36991
36992 2010-03-21  Bruno Haible  <bruno@clisp.org>
36993
36994         login_tty: Documentation.
36995         * doc/glibc-functions/login_tty.texi: New file.
36996         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36997
36998 2010-03-21  Bruno Haible  <bruno@clisp.org>
36999
37000         pty: Consistent macro naming.
37001         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
37002         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
37003         * modules/pty (configure.ac): Update.
37004
37005 2010-03-21  Bruno Haible  <bruno@clisp.org>
37006
37007         Tests for openpty: Make stricter.
37008         * tests/test-openpty.c (main): Add test of canonical processing and
37009         erase.
37010         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
37011
37012         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
37013         * lib/openpty.c (openpty): New replacement function.
37014         * lib/pty.in.h: Include <termios.h>.
37015         (openpty): Update declaration. Add comments.
37016         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
37017         is not declared, arrange to provide the replacement. Check for _getpty
37018         and posix_openpt.
37019         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
37020         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
37021         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
37022         * modules/pty-tests (test_pty_c___LDADD): New variable.
37023         * doc/glibc-functions/openpty.texi: More supported platforms.
37024
37025 2010-03-21  Bruno Haible  <bruno@clisp.org>
37026
37027         setenv: Tweaks.
37028         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
37029         the test program.
37030         * doc/posix-functions/setenv.texi: Update platforms list.
37031
37032 2010-03-21  Bruno Haible  <bruno@clisp.org>
37033
37034         New module 'unlockpt'.
37035         * lib/unlockpt.c: New file, from glibc with modifications.
37036         * m4/unlockpt.m4: New file.
37037         * modules/unlockpt: New file.
37038         * lib/stdlib.in.h (unlockpt): New declaration.
37039         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
37040         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
37041         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
37042         HAVE_UNLOCKPT.
37043         * doc/posix-functions/unlockpt.texi: Mention the new module.
37044         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
37045         * config/srclist.txt: Add unlockpt.c (commented).
37046
37047 2010-03-21  Jim Meyering  <meyering@redhat.com>
37048
37049         maint.mk: prohibit inclusion of "intprops.h" without use
37050         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
37051
37052 2010-03-21  Bruno Haible  <bruno@clisp.org>
37053
37054         New module 'grantpt'.
37055         * lib/grantpt.c: New file, from glibc with modifications.
37056         * m4/grantpt.m4: New file.
37057         * modules/grantpt: New file.
37058         * lib/stdlib.in.h (grantpt): New declaration.
37059         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
37060         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
37061         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
37062         HAVE_GRANTPT.
37063         * doc/posix-functions/grantpt.texi: Mention the new module.
37064         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
37065         * config/srclist.txt: Add grantpt.c (commented).
37066
37067 2010-03-21  Bruno Haible  <bruno@clisp.org>
37068
37069         New module 'pt_chown'.
37070         * lib/pt_chown.c: New file, from glibc with modifications.
37071         * lib/pty-private.h: New file, from glibc with modifications.
37072         * modules/pt_chown: New file.
37073         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
37074
37075 2010-03-21  Bruno Haible  <bruno@clisp.org>
37076
37077         Tests for module 'ptsname'.
37078         * modules/ptsname-tests: New file.
37079         * tests/test-ptsname.c: New file.
37080
37081         New module 'ptsname'.
37082         * lib/ptsname.c: New file, from glibc with modifications.
37083         * m4/ptsname.m4: New file.
37084         * modules/ptsname: New file.
37085         * lib/stdlib.in.h (ptsname): New declaration.
37086         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
37087         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
37088         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
37089         HAVE_PTSNAME.
37090         * doc/posix-functions/ptsname.texi: Mention the new module.
37091         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
37092         * config/srclist.txt: Add ptsname.c (commented).
37093
37094 2010-03-21  Bruno Haible  <bruno@clisp.org>
37095
37096         Tests for module 'ttyname_r'.
37097         * modules/ttyname_r-tests: New file.
37098         * tests/test-ttyname_r.c: New file.
37099
37100         New module 'ttyname_r'.
37101         * lib/ttyname_r.c: New file.
37102         * m4/ttyname_r.m4: New file.
37103         * modules/ttyname_r: New file.
37104         * lib/unistd.in.h (ttyname_r): New declaration.
37105         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
37106         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
37107         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
37108         HAVE_TTYNAME_R.
37109         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
37110         * doc/posix-functions/ttyname_r.texi: Mention the new module.
37111
37112 2010-03-20  Bruno Haible  <bruno@clisp.org>
37113
37114         signal: Undefine macro definitions in C++ mode.
37115         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
37116         sigfillset): Undefine macro definitions from the system header in C++
37117         mode.
37118         Reported by John W. Eaton <jwe@gnu.org>.
37119
37120 2010-03-20  Bruno Haible  <bruno@clisp.org>
37121
37122         Ensure no #include statements inside extern "C" { ... }.
37123         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
37124         contain #include statements.
37125         * lib/time.in.h: Likewise.
37126
37127 2010-03-20  Bruno Haible  <bruno@clisp.org>
37128
37129         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
37130         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
37131         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
37132         Reported by John W. Eaton <jwe@gnu.org>.
37133
37134 2010-03-20  Bruno Haible  <bruno@clisp.org>
37135
37136         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
37137         Reported by Jim Meyering.
37138
37139 2010-03-20  Bruno Haible  <bruno@clisp.org>
37140
37141         pipe: Set errno upon failure.
37142         * lib/pipe.h: Specify that when -1 is returned, errno is set.
37143         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
37144         errno value in error message.
37145
37146 2010-03-20  Bruno Haible  <bruno@clisp.org>
37147             Jim Meyering  <meyering@redhat.com>
37148
37149         lchown: Avoid "unused variable" warning.
37150         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
37151
37152 2010-03-20  Bruno Haible  <bruno@clisp.org>
37153
37154         Work around unlink() bug on MacOS X 10.5.6.
37155         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
37156         attempting to unlink a parent directory.
37157         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
37158         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
37159         activate for the replacement function.
37160         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
37161
37162 2010-03-20  Bruno Haible  <bruno@clisp.org>
37163
37164         Fix link errors on Solaris 8.
37165         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
37166         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
37167
37168 2010-03-19  Jim Meyering  <meyering@redhat.com>
37169
37170         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
37171         The _LIBC implementation of build_range_exp correctly honors the
37172         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
37173         However, the non-_LIBC implementation would ignore that syntax-bit
37174         flag and return REG_ERANGE unconditionally.
37175         This change makes it honor that flag.
37176         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
37177         Make two pointer parameters "const".
37178         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
37179         (parse_bracket_exp): Update caller.
37180
37181         regex.m4: correct the reversed range endpoint ([b-a]) test
37182         * m4/regex.m4: When requiring that [b-a] evoke failure,
37183         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
37184         test pass once again for x86-based systems.
37185
37186 2010-03-19  Bruno Haible  <bruno@clisp.org>
37187
37188         scandir: Fix link error on Solaris 8.
37189         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
37190         macros.
37191
37192 2010-03-19  Bruno Haible  <bruno@clisp.org>
37193
37194         getusershell: Fix documentation.
37195         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
37196         module.
37197         * doc/glibc-functions/setusershell.texi: Likewise.
37198
37199         getusershell: Provide declaration, missing on Solaris 9.
37200         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
37201         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
37202         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
37203         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
37204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37205         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
37206         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
37207         HAVE_GETUSERSHELL.
37208         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
37209
37210 2010-03-19  Bruno Haible  <bruno@clisp.org>
37211
37212         wctype: Provide iswblank function.
37213         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
37214         exists and is fine.
37215         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
37216         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
37217         * tests/test-wctype.c (main): Re-enable the iswblank tests.
37218         * doc/posix-functions/iswblank.texi: Update.
37219
37220 2010-03-19  Bruno Haible  <bruno@clisp.org>
37221
37222         Tests of module 'pty' in C++ mode.
37223         * modules/pty-tests: New file.
37224         * tests/test-pty-c++.cc: New file.
37225         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37226
37227 2010-03-19  Eric Blake  <eblake@redhat.com>
37228
37229         logb: fix documentation
37230         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
37231         1.5 declaration bug.
37232
37233         forkpty, openpty: prefer glibc's const-safe prototype
37234         * lib/forkpty.c (rpl_forkpty): New file.
37235         * lib/openpty.c (rpl_openpty): Likewise.
37236         * modules/forkpty (Files): Distribute it.
37237         * modules/openpty (Files): Likewise.
37238         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
37239         check...
37240         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
37241         replacement for for non-const BSD signature.
37242         * modules/pty (Makefile.am): Substitute witnesses.
37243         * lib/pty.in.h (forkpty, openpty): Declare replacements.
37244         * tests/test-forkpty.c: Update signature check.
37245         * tests/test-openpty.c: Likewise.
37246         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
37247         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37248
37249         forkpty, openpty: split functions into new modules
37250         * modules/pty (Makefile.am): Substitute new witnesses.
37251         (Libraries): Move library detection...
37252         * modules/forkpty: ...into new module.
37253         * modules/openpty: Another new module.
37254         * modules/pty-tests: Rename and split...
37255         * modules/forkpty-tests: ...to this...
37256         * modules/openpty-tests: ...and this.
37257         * tests/test-pty.c: Rename and split...
37258         * tests/test-forkpty.c: ...to this...
37259         * tests/test-openpty.c: ...and this.
37260         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
37261         (gl_PTY): Split library searching...
37262         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
37263         (gl_FORKPTY, gl_OPENPTY): New macros.
37264         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
37265         * NEWS: Mention the split.
37266         * MODULES.html.sh (Misc): Document the modules.
37267         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
37268         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37269
37270         pty: improve replacement header
37271         * lib/pty.in.h: New file.
37272         * modules/pty (Files): Ship it.
37273         (Makefile.am): Always build replacement.
37274         * m4/pty.m4: Rename...
37275         * m4/pty_h.m4: ...to this.
37276         (gl_PTY): Modernize setting of witness macros; update check of
37277         forkpty to take proper advantage of cache.
37278         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
37279
37280         getopt: avoid compiler warning
37281         * lib/getopt.c (attribute_hidden): Remove unused macro.
37282
37283 2010-03-18  Bruno Haible  <bruno@clisp.org>
37284
37285         Fix link errors on Solaris 8.
37286         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
37287         * modules/search-tests (test_search_c___LDADD): Likewise.
37288         * modules/signal-tests (test_signal_c___LDADD): Likewise.
37289         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
37290         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
37291         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
37292         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
37293         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
37294         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
37295
37296 2010-03-18  Bruno Haible  <bruno@clisp.org>
37297
37298         Fix bug introduced on 2010-03-14.
37299         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
37300         (gl_SPAWN_H): Require it.
37301         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
37302         Reported by Simon Josefsson.
37303
37304 2010-03-18  Bruno Haible  <bruno@clisp.org>
37305
37306         Fix typo introduced on 2009-12-31.
37307         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
37308         posix_spawn_file_actions_adddup2.
37309
37310 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
37311         and Eric Blake  <eblake@redhat.com>
37312
37313         test-vc-list-files-git: make more robust
37314         * tests/test-vc-list-files-git.sh: Unset problematic environment
37315         variables.  Chain commands together.
37316
37317 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
37318
37319         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
37320         `AC_CHECK_DECL' invocation.
37321
37322 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
37323
37324         * lib/inttostr.c (inttostr): Make sure the invocation of verify
37325         appears before executable statements. Suggested by Petr Sumbera
37326         <Petr.Sumbera@Sun.COM>.
37327
37328 2010-03-14  Bruno Haible  <bruno@clisp.org>
37329
37330         * tests/test-flock.c (test_exclusive): Comment out a test that causes
37331         portability problems. Instead use a simpler test.
37332         (main): Check that invalid arguments are rejected only on Linux.
37333
37334 2010-03-14  Bruno Haible  <bruno@clisp.org>
37335
37336         Fix bug introduced on 2009-12-31.
37337         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37338         gl_PREREQ_SYS_H_WINSOCK2 always.
37339         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
37340         SYS_SOCKET_H variable.
37341         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
37342         Update comments.
37343         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
37344         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37345         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37346         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37347         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
37348
37349 2010-03-14  Bruno Haible  <bruno@clisp.org>
37350
37351         Fix values returned by sinl, cosl.
37352         * lib/trigl.h: Add specification comments.
37353         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
37354         that combines the values from the precomputed table with the values of
37355         the Chebyshev polynomials.
37356
37357 2010-03-14  Bruno Haible  <bruno@clisp.org>
37358
37359         Fix compilation error when modules 'posix_spawn[p]' are not used.
37360         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
37361         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
37362
37363 2010-03-14  Bruno Haible  <bruno@clisp.org>
37364
37365         Fix compilation error on mingw when module 'time_r' is not used.
37366         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
37367         is 1.
37368         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
37369         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37370         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
37371         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
37372
37373 2010-03-14  Bruno Haible  <bruno@clisp.org>
37374
37375         Fix compilation error with Sun C.
37376         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
37377         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
37378         instead of GCC specific ULONG_LONG_MAX.
37379         * lib/xstrtoll.c: Likewise.
37380         * lib/xstrtoull.c: Likewise.
37381
37382 2010-03-13  Bruno Haible  <bruno@clisp.org>
37383
37384         Allow the user to disable C++ code and tests.
37385         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
37386         (gl_PROG_ANSI_CXX): Require it.
37387
37388 2010-03-13  Bruno Haible  <bruno@clisp.org>
37389
37390         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
37391         cases.
37392
37393 2010-03-13  Bruno Haible  <bruno@clisp.org>
37394
37395         Test that gnulib does not break the standard C++ headers.
37396         * tests/test-locale-c++2.cc: New file.
37397         * modules/locale-tests (Files): Add it.
37398         (Makefile.am): Compile it for test-locale-c++.
37399         * tests/test-math-c++2.cc: New file.
37400         * modules/math-tests (Files): Add it.
37401         (Makefile.am): Compile it for test-math-c++.
37402         * tests/test-signal-c++2.cc: New file.
37403         * modules/signal-tests (Files): Add it.
37404         (Makefile.am): Compile it for test-signal-c++.
37405         * tests/test-stdio-c++2.cc: New file.
37406         * modules/stdio-tests (Files): Add it.
37407         (Makefile.am): Compile it for test-stdio-c++.
37408         * tests/test-stdlib-c++2.cc: New file.
37409         * modules/stdlib-tests (Files): Add it.
37410         (Makefile.am): Compile it for test-stdlib-c++.
37411         * tests/test-string-c++2.cc: New file.
37412         * modules/string-tests (Files): Add it.
37413         (Makefile.am): Compile it for test-string-c++.
37414         * tests/test-time-c++2.cc: New file.
37415         * modules/time-tests (Files): Add it.
37416         (Makefile.am): Compile it for test-time-c++.
37417         Reported by John W. Eaton <jwe@gnu.org>.
37418
37419 2010-03-13  Bruno Haible  <bruno@clisp.org>
37420
37421         * gnulib-tool (func_usage): Clarify which options are available for
37422         --create-testdir and --create-megatestdir.
37423
37424 2010-03-13  Bruno Haible  <bruno@clisp.org>
37425
37426         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
37427         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
37428         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
37429         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
37430         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
37431         when appropriate.
37432         Reported by Jim Meyering.
37433
37434 2010-03-12  Simon Josefsson  <simon@josefsson.org>
37435
37436         * gnulib-tool (func_import): Explain origin of code.
37437
37438 2010-03-12  Bruno Haible  <bruno@clisp.org>
37439
37440         Fix problem with automake's definition of CXXLINK.
37441         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
37442         Reported by Simon Josefsson and Ludovic Courtès.
37443
37444 2010-03-12  Bruno Haible  <bruno@clisp.org>
37445
37446         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
37447         stable releases.
37448
37449 2010-03-11  Bruno Haible  <bruno@clisp.org>
37450
37451         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
37452         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
37453         whether the system provides one variant or multiple variants of the
37454         function.
37455         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
37456         C++ compilers.
37457         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
37458         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
37459         Reported by Jim Meyering.
37460
37461 2010-03-09  Simon Josefsson  <simon@josefsson.org>
37462
37463         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
37464
37465 2010-03-08  Bruno Haible  <bruno@clisp.org>
37466
37467         gnulib-tool: Add support for --libtool in --create-testdir.
37468         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
37469         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
37470
37471 2010-03-08  Eric Blake  <eblake@redhat.com>
37472
37473         gnulib-tool.texi: mention possibility of git submodule
37474         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
37475         submodules.
37476         * doc/.gitignore: Ignore another generated file.
37477
37478 2010-03-08  Karl Berry  <karl@gnu.org>
37479
37480         * doc/gnulib-tool.texi (VCS Issues): Mention third option
37481         of committing gnulib files while skipping others.
37482
37483 2010-03-07  Bruno Haible  <bruno@clisp.org>
37484
37485         Tests of module 'wctype' in C++ mode.
37486         * tests/test-wctype-c++.cc: New file.
37487         * modules/wctype-tests (Files): Add it and tests/signature.h.
37488         (Depends-on): Add ansi-c++-opt.
37489         (Makefile.am): Arrange to compile and run test-wctype-c++.
37490
37491         Tests of module 'wchar' in C++ mode.
37492         * tests/test-wchar-c++.cc: New file.
37493         * modules/wchar-tests (Files): Add it and tests/signature.h.
37494         (Depends-on): Add ansi-c++-opt.
37495         (Makefile.am): Arrange to compile and run test-wchar-c++.
37496         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
37497         gl_MODULE_INDICATOR.
37498
37499         Tests of module 'unistd' in C++ mode.
37500         * tests/test-unistd-c++.cc: New file.
37501         * modules/unistd-tests (Files): Add it and tests/signature.h.
37502         (Depends-on): Add ansi-c++-opt.
37503         (Makefile.am): Arrange to compile and run test-unistd-c++.
37504         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
37505         gl_MODULE_INDICATOR.
37506
37507         Tests of module 'time' in C++ mode.
37508         * tests/test-time-c++.cc: New file.
37509         * modules/time-tests (Files): Add it and tests/signature.h.
37510         (Depends-on): Add ansi-c++-opt.
37511         (Makefile.am): Arrange to compile and run test-time-c++.
37512         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37513
37514         Tests of module 'sys_time' in C++ mode.
37515         * tests/test-sys_time-c++.cc: New file.
37516         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37517         (Depends-on): Add ansi-c++-opt.
37518         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37519         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37520         gl_MODULE_INDICATOR.
37521
37522         Tests of module 'sys_stat' in C++ mode.
37523         * tests/test-sys_stat-c++.cc: New file.
37524         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37525         (Depends-on): Add ansi-c++-opt.
37526         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37527         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37528         gl_MODULE_INDICATOR.
37529
37530         Tests of module 'sys_socket' in C++ mode.
37531         * tests/test-sys_socket-c++.cc: New file.
37532         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37533         (Depends-on): Add ansi-c++-opt.
37534         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37535         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37536         gl_MODULE_INDICATOR.
37537
37538         Tests of module 'sys_select' in C++ mode.
37539         * tests/test-sys_select-c++.cc: New file.
37540         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37541         (Depends-on): Add ansi-c++-opt.
37542         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37543         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37544         gl_MODULE_INDICATOR.
37545
37546         Tests of module 'sys_ioctl' in C++ mode.
37547         * tests/test-sys_ioctl-c++.cc: New file.
37548         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37549         (Depends-on): Add ansi-c++-opt.
37550         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37551         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37552         gl_MODULE_INDICATOR.
37553
37554         Tests of module 'string' in C++ mode.
37555         * tests/test-string-c++.cc: New file.
37556         * modules/string-tests (Files): Add it and tests/signature.h.
37557         (Depends-on): Add ansi-c++-opt.
37558         (Makefile.am): Arrange to compile and run test-string-c++.
37559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37560         gl_MODULE_INDICATOR.
37561
37562         Tests of module 'stdlib' in C++ mode.
37563         * tests/test-stdlib-c++.cc: New file.
37564         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37565         (Depends-on): Add ansi-c++-opt.
37566         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37567         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37568         gl_MODULE_INDICATOR.
37569
37570         Tests of module 'stdio' in C++ mode.
37571         * tests/test-stdio-c++.cc: New file.
37572         * modules/stdio-tests (Files): Add it and tests/signature.h.
37573         (Depends-on): Add ansi-c++-opt.
37574         (Makefile.am): Arrange to compile and run test-stdio-c++.
37575         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37576         gl_MODULE_INDICATOR.
37577
37578         Tests of module 'spawn' in C++ mode.
37579         * tests/test-spawn-c++.cc: New file.
37580         * modules/spawn-tests (Files): Add it and tests/signature.h.
37581         (Depends-on): Add ansi-c++-opt.
37582         (Makefile.am): Arrange to compile and run test-spawn-c++.
37583         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37584         gl_MODULE_INDICATOR.
37585
37586         Tests of module 'signal' in C++ mode.
37587         * tests/test-signal-c++.cc: New file.
37588         * modules/signal-tests (Files): Add it and tests/signature.h.
37589         (Depends-on): Add ansi-c++-opt.
37590         (Makefile.am): Arrange to compile and run test-signal-c++.
37591         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37592         gl_MODULE_INDICATOR.
37593
37594         Tests of module 'search' in C++ mode.
37595         * tests/test-search-c++.cc: New file.
37596         * modules/search-tests (Files): Add it and tests/signature.h.
37597         (Depends-on): Add ansi-c++-opt.
37598         (Makefile.am): Arrange to compile and run test-search-c++.
37599         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37600         gl_MODULE_INDICATOR.
37601
37602         Tests of module 'math' in C++ mode.
37603         * tests/test-math-c++.cc: New file.
37604         * modules/math-tests (Files): Add it and tests/signature.h.
37605         (Depends-on): Add ansi-c++-opt.
37606         (Makefile.am): Arrange to compile and run test-math-c++.
37607         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37608
37609         Tests of module 'locale' in C++ mode.
37610         * tests/test-locale-c++.cc: New file.
37611         * modules/locale-tests (Files): Add it and tests/signature.h.
37612         (Depends-on): Add ansi-c++-opt.
37613         (Makefile.am): Arrange to compile and run test-locale-c++.
37614         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37615         gl_MODULE_INDICATOR.
37616
37617         Tests of module 'langinfo' in C++ mode.
37618         * tests/test-langinfo-c++.cc: New file.
37619         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37620         (Depends-on): Add ansi-c++-opt.
37621         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37622         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37623         gl_MODULE_INDICATOR.
37624
37625         Tests of module 'iconv-h' in C++ mode.
37626         * tests/test-iconv-h-c++.cc: New file.
37627         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37628         (Depends-on): Add ansi-c++-opt.
37629         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37630
37631         Tests of module 'glob' in C++ mode.
37632         * tests/test-glob-c++.cc: New file.
37633         * modules/glob-tests (Files): Add it.
37634         (Depends-on): Add ansi-c++-opt.
37635         (Makefile.am): Arrange to compile and run test-glob-c++.
37636
37637         Tests of module 'fcntl-h' in C++ mode.
37638         * tests/test-fcntl-h-c++.cc: New file.
37639         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37640         (Depends-on): Add ansi-c++-opt.
37641         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37642         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37643         gl_MODULE_INDICATOR.
37644
37645         Tests of module 'dirent' in C++ mode.
37646         * tests/test-dirent-c++.cc: New file.
37647         * modules/dirent-tests (Files): Add it and tests/signature.h.
37648         (Depends-on): Add ansi-c++-opt.
37649         (Makefile.am): Arrange to compile and run test-dirent-c++.
37650         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37651         gl_MODULE_INDICATOR.
37652
37653         New module 'ansi-c++-opt'.
37654         * modules/ansi-c++-opt: New file.
37655         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37656
37657         Document C++ namespace mode.
37658         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37659
37660         wctype: Avoid #define replacements in C++ mode.
37661         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37662         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37663         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37664         In C++, define a namespaced alias symbol.
37665         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37666         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37667         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37668         rule.
37669
37670         wchar: Avoid #define replacements in C++ mode.
37671         * lib/wchar.in.h: Include c++defs.h.
37672         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37673         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37674         symbol.
37675         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37676         * modules/wchar (Depends-on): Add c++defs.
37677         (Makefile.am): Update wchar.h rule.
37678
37679         unistd: Avoid #define replacements in C++ mode.
37680         * lib/unistd.in.h: Include c++defs.h.
37681         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37682         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37683         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37684         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37685         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37686         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37687         symbol.
37688         (environ): Update.
37689         * modules/unistd (Depends-on): Add c++defs.
37690         (Makefile.am): Update unistd.h rule.
37691
37692         time: Avoid #define replacements in C++ mode.
37693         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37694         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37695         define a namespaced alias symbol.
37696         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37697         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37698         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37699         * modules/time (Depends-on): Add c++defs, warn-on-use.
37700         (Makefile.am): Update time.h rule.
37701         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37702         * modules/nanosleep (configure.ac): Likewise.
37703         * modules/strptime (configure.ac): Likewise.
37704         * modules/timegm (configure.ac): Likewise.
37705
37706         sys_time: Avoid #define replacements in C++ mode.
37707         * lib/sys_time.in.h: Include c++defs.h.
37708         (gettimeofday): In C++, define a namespaced alias symbol.
37709         * modules/sys_time (Depends-on): Add c++defs.
37710         (Makefile.am): Update sys/time.h rule.
37711
37712         sys_stat: Avoid #define replacements in C++ mode.
37713         * lib/sys_stat.in.h: Include c++defs.h.
37714         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37715         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37716         namespaced alias symbol.
37717         In C++, define a namespaced alias symbol.
37718         * modules/sys_stat (Depends-on): Add c++defs.
37719         (Makefile.am): Update sys/stat.h rule.
37720
37721         sys_socket: Avoid #define replacements in C++ mode.
37722         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37723         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37724         definitions also when the system has a <sys/socket.h>.
37725         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37726         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37727         In C++, define a namespaced alias symbol.
37728         * modules/sys_socket (Depends-on): Add c++defs.
37729         (Makefile.am): Update sys/socket.h rule.
37730
37731         sys_select: Avoid #define replacements in C++ mode.
37732         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37733         definitions also when the system has a <sys/select.h>.
37734         (select): In C++, define a namespaced alias symbol.
37735         * modules/sys_select (Depends-on): Add c++defs.
37736         (Makefile.am): Update sys/select.h rule.
37737
37738         sys_ioctl: Avoid #define replacements in C++ mode.
37739         * lib/sys_ioctl.in.h: Include c++defs.h.
37740         (ioctl): In C++, define a namespaced alias symbol.
37741         * modules/sys_ioctl (Depends-on): Add c++defs.
37742         (Makefile.am): Update sys/ioctl.h rule.
37743
37744         string: Avoid #define replacements in C++ mode.
37745         * lib/string.in.h: Include c++defs.h.
37746         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37747         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37748         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37749         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37750         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37751         * modules/string (Depends-on): Add c++defs.
37752         (Makefile.am): Update string.h rule.
37753
37754         stdlib: Avoid #define replacements in C++ mode.
37755         * lib/stdlib.in.h: Include c++defs.h.
37756         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37757         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37758         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37759         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37760         symbol.
37761         * modules/stdlib (Depends-on): Add c++defs.
37762         (Makefile.am): Update stdlib.h rule.
37763
37764         stdio: Avoid #define replacements in C++ mode.
37765         * lib/stdio.in.h: Include c++defs.h.
37766         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37767         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37768         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37769         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37770         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37771         namespaced alias symbol.
37772         * modules/stdio (Depends-on): Add c++defs.
37773         (Makefile.am): Update stdio.h rule.
37774
37775         spawn: Avoid #define replacements in C++ mode.
37776         * lib/spawn.in.h: Include c++defs.h.
37777         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37778         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37779         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37780         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37781         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37782         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37783         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37784         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37785         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37786         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37787         In C++, define a namespaced alias symbol.
37788         * modules/spawn (Depends-on): Add c++defs.
37789         (Makefile.am): Update spawn.h rule.
37790
37791         signal: Avoid #define replacements in C++ mode.
37792         * lib/signal.in.h: Include c++defs.h.
37793         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37794         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37795         namespaced alias symbol.
37796         * modules/signal (Depends-on): Add c++defs.
37797         (Makefile.am): Update signal.h rule.
37798
37799         search: Avoid #define replacements in C++ mode.
37800         * lib/search.in.h: Include c++defs.h.
37801         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37802         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37803         symbol.
37804         * modules/search (Depends-on): Add c++defs.
37805         (Makefile.am): Update search.h rule.
37806
37807         math: Avoid #define replacements in C++ mode.
37808         * lib/math.in.h: Include c++defs.h.
37809         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37810         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37811         trunc, truncl): In C++, define a namespaced alias symbol.
37812         * modules/math (Depends-on): Add c++defs.
37813         (Makefile.am): Update math.h rule.
37814
37815         locale: Avoid #define replacements in C++ mode.
37816         * lib/locale.in.h: Include c++defs.h.
37817         (duplocale): In C++, define a namespaced alias symbol.
37818         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37819         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37820         * modules/locale (Depends-on): Add c++defs.
37821         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37822
37823         langinfo: Avoid #define replacements in C++ mode.
37824         * lib/langinfo.in.h: Include c++defs.h.
37825         (nl_langinfo): In C++, define a namespaced alias symbol.
37826         * modules/langinfo (Depends-on): Add c++defs.
37827         (Makefile.am): Update langinfo.h rule.
37828
37829         iconv-h: Avoid #define replacements in C++ mode.
37830         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37831         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37832         symbol.
37833         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37834         whenever iconv is present.
37835         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37836         (Makefile.am): Update iconv.h rule.
37837
37838         glob: Avoid #define replacements in C++ mode.
37839         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37840         (_gl_glob_errfunc_fn): New type.
37841         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37842         symbol.
37843         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37844         (Makefile.am): Update glob.h rule.
37845
37846         fcntl-h: Avoid #define replacements in C++ mode.
37847         * lib/fcntl.in.h: Include c++defs.h.
37848         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37849         * modules/fcntl-h (Depends-on): Add c++defs.
37850         (Makefile.am): Update fcntl.h rule.
37851
37852         dirent: Avoid #define replacements in C++ mode.
37853         * lib/dirent.in.h: Include c++defs.h.
37854         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37855         namespaced alias symbol.
37856         (dirfd): Update declaration.
37857         * modules/dirent (Depends-on): Add c++defs.
37858         (Makefile.am): Update dirent.h rule.
37859
37860         ctype: Make it usable in C++ code.
37861         * lib/ctype.in.h: Include c++defs.h.
37862         (isblank): Declare as extern "C".
37863         * modules/ctype (Depends-on): Add c++defs.
37864         (Makefile.am): Update ctype.h rule.
37865
37866         New module 'c++defs'.
37867         * modules/c++defs: New file.
37868         * build-aux/c++defs.h: New file.
37869         Reported by John W. Eaton <jwe@gnu.org>.
37870
37871 2010-03-07  Bruno Haible  <bruno@clisp.org>
37872
37873         logb: Provide missing declaration for Cygwin.
37874         * lib/math.in.h (logb): New declaration.
37875         * m4/logb.m4: New file.
37876         * modules/logb (Files): Add m4/logb.m4.
37877         (Depends-on): Add math.
37878         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37879         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37881         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37882         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37883
37884 2010-03-07  Bruno Haible  <bruno@clisp.org>
37885
37886         Fix test-cond link error.
37887         * tests/test-cond.c: Include <stdio.h>.
37888
37889 2010-03-07  Bruno Haible  <bruno@clisp.org>
37890
37891         Fix test-dirent-safer link error.
37892         * modules/dirent-safer-tests (Makefile.am): Define
37893         test_dirent_safer_LDADD.
37894
37895 2010-03-07  Bruno Haible  <bruno@clisp.org>
37896
37897         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37898         among default module list.
37899
37900 2010-03-07  Bruno Haible  <bruno@clisp.org>
37901
37902         Fix link error on platforms with GNU libiconv.
37903         * modules/unistr/u8-strcoll-tests (Makefile): Define
37904         test_u8_strcoll_LDADD.
37905         * modules/unistr/u16-strcoll-tests (Makefile): Define
37906         test_u16_strcoll_LDADD.
37907         * modules/unistr/u32-strcoll-tests (Makefile): Define
37908         test_u32_strcoll_LDADD.
37909
37910 2010-03-07  Bruno Haible  <bruno@clisp.org>
37911
37912         Use POSIX declarations for socket functions.
37913         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37914         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37915         rpl_sendto): Change declaration to match POSIX.
37916         * lib/connect.c (rpl_connect): Likewise.
37917         * lib/accept.c (rpl_accept): Likewise.
37918         * lib/bind.c (rpl_bind): Likewise.
37919         * lib/getpeername.c (rpl_getpeername): Likewise.
37920         * lib/getsockname.c (rpl_getsockname): Likewise.
37921         * lib/recv.c (rpl_recv): Likewise.
37922         * lib/send.c (rpl_send): Likewise.
37923         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37924         * lib/sendto.c (rpl_sendto): Likewise.
37925
37926 2010-03-06  Bruno Haible  <bruno@clisp.org>
37927
37928         Clarify access, euidaccess, faccessat.
37929         * doc/posix-functions/faccessat.texi: Mention security problem under
37930         "Other problems", not "Portability problems".
37931         * doc/posix-functions/access.texi: Likewise. Mention a related security
37932         problem.
37933         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37934         * lib/euidaccess.c: Add comments about platforms.
37935         * lib/unistd.in.h (access, euidaccess): Add warnings.
37936
37937 2010-03-07  Bruno Haible  <bruno@clisp.org>
37938
37939         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37940         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37941         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37942         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37943         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37944         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37945         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37946         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37947         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37948         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37949         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37950         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37951         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37952         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37953         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37954         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37955         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37956         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37957         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37958         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37959         Likewise.
37960         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37961         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37962         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37963         Likewise.
37964         * tests/test-spawn.c (main): Make it work when
37965         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37966
37967 2010-03-07  Bruno Haible  <bruno@clisp.org>
37968
37969         Fix incorrect Makefile.am generation in German locale.
37970         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37971         Execute sed command with character range in C locale.
37972
37973 2010-03-06  Bruno Haible  <bruno@clisp.org>
37974
37975         Tests for module 'iconv-h'.
37976         * modules/iconv-h-tests: New file.
37977         * tests/test-iconv-h.c: New file.
37978
37979         New module 'iconv-h'.
37980         * modules/iconv-h: New file.
37981         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37982         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37983         (configure.ac): Remove gl_ICONV_H.
37984         (Makefile.am): Remove rule for iconv.h.
37985
37986 2010-03-06  Bruno Haible  <bruno@clisp.org>
37987
37988         More consistent naming of *.m4 files.
37989         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37990         * modules/wctype (Files): Update.
37991
37992         More consistent naming of *.m4 files.
37993         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37994         * modules/wchar (Files): Update.
37995
37996 2010-03-06  Jim Meyering  <meyering@redhat.com>
37997
37998         euidaccess: relax license to LGPLv2+
37999         * modules/euidaccess (License): Relax to LGPLv2+.
38000
38001 2010-03-06  Bruno Haible  <bruno@clisp.org>
38002
38003         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
38004         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
38005         (Makefile.am): Augment lib_SOURCES instead.
38006
38007 2010-03-04  Jim Meyering  <meyering@redhat.com>
38008
38009         utime: remove obsolete module
38010         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
38011         unnecessary for years, and has been marked as obsolete for 10 months.
38012         * modules/utime: Remove file.
38013         * lib/utime.c: Remove file.
38014         * m4/utime.m4: Remove file.
38015         * m4/utimes-null.m4: Remove file.
38016         * doc/posix-functions/utime.texi (utime): Remove reference to
38017         the module.  Move the sole "fixed by gnulib" item into the
38018         "problems not fixed by Gnulib" list.
38019         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
38020
38021 2010-03-05  Simon Josefsson  <simon@josefsson.org>
38022
38023         * modules/exit (License): Relax license to LGPLv2+.
38024         (Status): Mark as obsolete.
38025         * NEWS: Mention deprecated 'exit' module.
38026         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
38027         of now obsolete 'exit'.
38028
38029 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38030
38031         fts-lgpl: remove unused module
38032         * modules/fts-lgpl: Remove.
38033         * MODULES.html.sh (func_all_modules): Adjust.
38034         * check-module (find_included_lib_files): Adjust.
38035         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
38036
38037 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
38038
38039         copy-acl: enhance Solaris ACL error handling
38040         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
38041         * lib/set-mode-acl.c (qset_acl): Likewise.
38042
38043 2010-03-02  Bruno Haible  <bruno@clisp.org>
38044
38045         spawn: Don't override the system defined values on FreeBSD 8.
38046         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
38047         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
38048         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
38049         if HAVE_POSIX_SPAWN is 1.
38050         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
38051
38052 2010-03-01  Bruno Haible  <bruno@clisp.org>
38053
38054         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
38055         regarding Automake.
38056
38057 2010-02-25  Bruno Haible  <bruno@clisp.org>
38058
38059         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
38060         * gnulib-tool: Define 'echo' as a function only before the ksh alias
38061         setting, not afterwards.
38062         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
38063
38064 2010-02-24  Eric Blake  <eblake@redhat.com>
38065
38066         bootstrap, git-version-gen: use timestamp
38067         * build-aux/git-version-gen (scriptversion): Force UTC.
38068         * build-aux/bootstrap (scriptversion): New variable.
38069
38070         bootstrap: allow older git
38071         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
38072         older than 1.6.4.  Requested by the libvirt project.
38073
38074 2010-02-23  Eric Blake  <eblake@redhat.com>
38075
38076         warn-on-use: work with old autoconf
38077         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
38078         AS_VAR semantics of autoconf 2.60.
38079         Reported by Bruno Haible.
38080
38081         bootstrap: improve some comments
38082         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
38083         clarification comments.
38084
38085         gettimeofday: provide correct function
38086         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
38087         when replacement is declared, otherwise provide gettimeofday.
38088         Reported by Michael Goffioul.
38089
38090 2010-02-23  Jim Meyering  <meyering@redhat.com>
38091
38092         lib-ignore: relax license to "unlimited", not LGPLv2+
38093         * modules/lib-ignore (License): Relax to "unlimited".
38094
38095 2010-02-23  Jim Meyering  <meyering@redhat.com>
38096
38097         lib-ignore: relax license to LGPLv2+
38098         * modules/lib-ignore (License): Relax to LGPLv2+.
38099
38100 2010-02-22  Eric Blake  <eblake@redhat.com>
38101
38102         lseek: avoid bash 3.2 broken pipe bug
38103         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
38104         warning from bash 3.2.
38105         Reported by Ben Pfaff, with analysis from Bruno Haible.
38106
38107         bootstrap: support non-FSF copyright holder
38108         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
38109         bootstrap.conf override of COPYRIGHT_HOLDER.
38110         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
38111
38112         bootstrap: interoperate with gettext 0.14.1
38113         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
38114
38115         bootstrap: allow for alternate submodule location
38116         * build-aux/bootstrap (gnulib_path): New variable; use instead of
38117         hardcoding submodule location.
38118         (gnulib_mk): Allow direct use of Makefile.am.
38119
38120         bootstrap: use GNULIB_SRCDIR to reduce disk usage
38121         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
38122         rather than reconfiguring where the submodule points.
38123
38124         gettimeofday: restore support for platforms that lack function
38125         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
38126         replacement if function is missing.
38127         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
38128         * modules/sys_time (Makefile.am): Substitute it.
38129         * lib/sys_time.in.h (gettimeofday): Check it.
38130         Reported by Michael Goffioul.
38131
38132 2010-02-21  Bruno Haible  <bruno@clisp.org>
38133
38134         * lib/stdio.in.h (obstack_printf): Fix typo.
38135
38136 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
38137
38138         vc-list-files: use bzr ls's -R option
38139         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
38140         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
38141
38142 2010-02-21  Jim Meyering  <meyering@redhat.com>
38143
38144         init.sh: fix EXEEXT shims to work also for names like test-prog
38145         * tests/init.sh: Re-exec a better shell, when needed.
38146         If the current shell lacks support for posix $(...), an init.sh-using
38147         test will now try to find a shell that supports that.  If EXEEXT is
38148         nonempty, we also require support for hyphen-in-alias-name and shell
38149         substitutions like ${var#glob}.  Failure to find such a shell results
38150         in a skipped test.
38151
38152 2010-02-21  Bruno Haible  <bruno@clisp.org>
38153
38154         Really work around around "broken pipe" error message from bash 3.2.
38155         * gnulib-tool (func_reset_sigpipe): Remove function.
38156         (echo): In bash 3.2, define to a function that uses printf.
38157         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
38158
38159 2010-02-20  Bruno Haible  <bruno@clisp.org>
38160
38161         Restore support for automake 1.9.6 with autoconf 2.61.
38162         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
38163         Reported by James Youngman <jay@gnu.org>.
38164
38165 2010-02-20  Bruno Haible  <bruno@clisp.org>
38166
38167         Improve *printf warning condition.
38168         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
38169         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
38170         and the function is overridden due to SIGPIPE emulation.
38171
38172 2010-02-20  Bruno Haible  <bruno@clisp.org>
38173
38174         * lib/stdio.in.h: Tweak comments.
38175
38176 2010-02-19  Bruno Haible  <bruno@clisp.org>
38177
38178         Make it easier to find modules. New gnulib-tool option '--find'.
38179         * gnulib-tool: New option --find.
38180         (func_usage): Document it.
38181         (func_sanitize_modulelist): New function, extracted from
38182         func_all_modules.
38183         (func_all_modules): Invoke it.
38184         * doc/gnulib-tool.texi (Which modules?): New node.
38185
38186 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
38187
38188         * lib/sys_select.in.h: Provide select replacement even if
38189         sys/select.h exists on a system, for Interix.
38190
38191 2010-02-18  Jim Meyering  <meyering@redhat.com>
38192
38193         init.sh: don't use $(...) just yet
38194         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
38195         to accommodate e.g., Solaris' /bin/sh.
38196
38197 2010-02-17  Bruno Haible  <bruno@clisp.org>
38198
38199         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
38200         Reported by Ludovic Courtès <ludo@gnu.org>.
38201
38202 2010-02-16  Simon Josefsson  <simon@josefsson.org>
38203
38204         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
38205         linking with -lintl.
38206
38207 2010-02-17  Simon Josefsson  <simon@josefsson.org>
38208
38209         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
38210         if not provided by the system's netdb.h.  Reported by
38211         ludo@gnu.org (Ludovic Courtès).
38212
38213 2010-02-15  Jim Meyering  <meyering@redhat.com>
38214
38215         init.sh: improve portability and efficiency
38216         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
38217         "dummy" in a for loop.
38218         Use '!', not '^' to select the complement of a character set used
38219         in a "case" statement.
38220         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
38221         Suggestions from Eric Blake.
38222
38223         init.sh: automatically accommodate programs with the .exe suffix
38224         Automatically arrange for an invocation of "prog" to execute the
38225         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
38226         may use the simpler "prog", yet still work when built on a system
38227         that requires specifying the added suffix.
38228         Do this by constructing a function named "prog" that invokes
38229         "prog.exe" for each .exe file in selected directories.
38230         * tests/init.sh (find_exe_basenames_): New function.
38231         (create_exe_shim_functions_): New function.
38232         (path_prepend_): Use it.
38233
38234         maint.mk: mark syntax-check sc_*.m rules as .PHONY
38235         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
38236         "make -t syntax-check" doesn't create a ton of sc_*.m files.
38237
38238 2010-02-14  Jim Meyering  <meyering@redhat.com>
38239
38240         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
38241         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
38242         (sc_prohibit_hash_pjw_without_use): New rule.
38243
38244         maint.mk: allow the default upload destination dir to be overridden
38245         * top/maint.mk (upload_dest_dir_): Define with a default that
38246         preserves the status quo.
38247         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
38248         Reported by Peter Simons.
38249
38250         maint.mk: prohibit inclusion of "hash.h" without_use
38251         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
38252
38253 2010-02-10  Jim Meyering  <meyering@redhat.com>
38254
38255         maint.mk: prohibit inclusion of "ignore-value.h" without_use
38256         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
38257
38258 2010-02-09  Eric Blake  <ebb9@byu.net>
38259         and Bruno Haible  <bruno@clisp.org>
38260
38261         obstack-printf-posix: ensure declaration
38262         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
38263         extracted from gl_FUNC_OBSTACK_PRINTF.
38264         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
38265         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38266         Likewise.
38267         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
38268         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
38269         0.
38270
38271 2010-02-08  Bruno Haible  <bruno@clisp.org>
38272
38273         gnulib-tool: Fix typo in 2010-02-07 commit.
38274         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
38275         Reported by Eric Blake.
38276
38277 2010-02-07  Bruno Haible  <bruno@clisp.org>
38278
38279         gnulib-tool: Fix up caching patches.
38280         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
38281         option --no-cache. Use associative arrays when supported by the shell.
38282         (sed_comments): New variable.
38283         (modcache): Renamed from do_cache.
38284         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
38285         abbreviate unnecessarily.
38286         (have_associative): New variable.
38287         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
38288         way also for ksh and zsh.
38289         (func_init_sed_convert_to_cache_statements): New function, extracted
38290         from func_cache_lookup_module. Add support for associative arrays.
38291         Don't set the c_MODULE_cached variable here. Ignore all lines before
38292         the first field header. Remove only the final newline, not all trailing
38293         newlines. Support empty fields correctly. Limit the use of 'eval' to
38294         assignments.
38295         (func_get_description, func_get_status, func_get_notice,
38296         func_get_applicability, func_get_filelist, func_get_dependencies,
38297         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
38298         func_get_automake_snippet, func_get_include_directive,
38299         func_get_link_directive, func_get_license, func_get_maintainer):
38300         Update documentation. List the unoptimized code first. Add support for
38301         associative arrays. Limit the use of 'eval' to assignments.
38302         (func_get_applicability): Undo stylistic pessimisations.
38303         (func_get_automake_snippet, func_get_include_directive): Reduce code
38304         duplication.
38305         (func_modules_transitive_closure, func_modules_add_dummy,
38306         func_modules_notice, func_modules_to_filelist, func_add_file,
38307         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
38308         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
38309         func_create_testdir, func_create_megatestdir): Update documentation.
38310
38311 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38312
38313         * gnulib-tool (func_cache_lookup_module): Store the module name
38314         belonging to the cache variable; error out if two different
38315         module names map to the same cache variable name.
38316
38317 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38318
38319         gnulib-tool: Make caching optional.
38320         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
38321         Update matching short versions of --no-changelog.
38322         (func_usage): Update.
38323         (sed_extract_cache_prog): Renamed from ...
38324         (sed_extract_prog): ... this; revert to old extraction script.
38325         (func_get_description, func_get_status)
38326         (func_get_notice, func_get_applicability, func_get_filelist)
38327         (func_get_dependencies, func_get_autoconf_early_snippet)
38328         (func_get_autoconf_snippet, func_get_automake_snippet)
38329         (func_get_include_directive, func_get_link_directive)
38330         (func_get_license, func_get_maintainer): If $do_cache is false,
38331         use old, non-caching extraction scripts.
38332         Suggestion by Bruno Haible.
38333
38334 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38335
38336         gnulib-tool: cache module metainformation.
38337         * gnulib-tool (sed_extract_prog): Match newline before each
38338         header, and rewrite header to a shell variable suffix.
38339         (func_cache_var, func_cache_lookup_module): New functions,
38340         to turn a module name into a cache variable prefix, and to
38341         look up and cache module metainformation.
38342         (func_get_description, func_get_status)
38343         (func_get_notice, func_get_applicability, func_get_filelist)
38344         (func_get_dependencies, func_get_autoconf_early_snippet)
38345         (func_get_autoconf_snippet, func_get_automake_snippet)
38346         (func_get_include_directive, func_get_link_directive)
38347         (func_get_license, func_get_maintainer): Use
38348         func_cache_lookup_module.
38349
38350 2010-02-07  Bruno Haible  <bruno@clisp.org>
38351
38352         fnctl: Fix missing dependency.
38353         * modules/fcntl (Depends-on): Add getdtablesize.
38354         Reported by John W. Eaton <jwe@gnu.org>.
38355
38356 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38357
38358         Argp: fix recognition of short alias options.
38359
38360         * lib/argp-parse.c (convert_options): Fix improper use of
38361         `|' between character values.
38362         * tests/test-argp.c (group1_option): New alias option
38363         --read (-r).
38364         (group1_parser): Special handling for 'r'.
38365         (test15): New test case.
38366         (test_fun): Add test15.
38367         * tests/test-argp-2.sh: Update expected --help and --usage
38368         outputs.
38369
38370 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38371
38372         * tests/test-argp.c: Fix indentation.
38373
38374 2010-02-04  Eric Blake  <ebb9@byu.net>
38375
38376         gettimeofday: expose type of second argument
38377         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
38378         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
38379         * tests/test-gettimeofday.c: Use it to silence warning.
38380         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
38381         the issue.
38382
38383 2010-02-03  Jim Meyering  <meyering@redhat.com>
38384
38385         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
38386         * lib/regcomp.c (TYPE_SIGNED): Define.
38387         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
38388
38389         regcomp.c: avoid a new -Wshadow warning
38390         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
38391
38392 2010-02-01  Jim Meyering  <meyering@redhat.com>
38393
38394         removing useless parentheses in cpp #define directives
38395         For motivation, see commit c0221df4, "define STREQ(a,b)
38396         consistently, removing useless parentheses"
38397         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
38398         * lib/mountlist.c (MNT_IGNORE): Likewise.
38399         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
38400
38401 2010-02-01  Eric Blake  <ebb9@byu.net>
38402
38403         sys_time: use link-warning
38404         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
38405         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
38406         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
38407         * modules/sys_time (Depends-on): Add warn-on-use.
38408         (Makefile.am): Always build replacement.
38409         (configure.ac): Update substitutions.
38410         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
38411         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
38412         bother with SYS_TIME_H.
38413         * modules/gettimeofday (configure.ac): Declare indicator.
38414         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
38415         in use.
38416
38417         closein-tests: silence compiler warning
38418         * tests/test-closein.c (main): Ignore fread result.
38419         * modules/closein-tests (Depends-on): Add ignore-value.
38420
38421         tests: silence warning about system return
38422         * tests/test-areadlink-with-size.c (main): Ignore system result.
38423         * tests/test-areadlink.c (main): Likewise.
38424         * tests/test-areadlinkat-with-size.c (main): Likewise.
38425         * tests/test-areadlinkat.c (main): Likewise.
38426         * tests/test-canonicalize-lgpl.c (main): Likewise.
38427         * tests/test-canonicalize.c (main): Likewise.
38428         * tests/test-chown.c (main): Likewise.
38429         * tests/test-fchownat.c (main): Likewise.
38430         * tests/test-fdutimensat.c (main): Likewise.
38431         * tests/test-fstatat.c (main): Likewise.
38432         * tests/test-futimens.c (main): Likewise.
38433         * tests/test-lchown.c (main): Likewise.
38434         * tests/test-link.c (main): Likewise.
38435         * tests/test-linkat.c (main): Likewise.
38436         * tests/test-lstat.c (main): Likewise.
38437         * tests/test-mkdir.c (main): Likewise.
38438         * tests/test-mkdirat.c (main): Likewise.
38439         * tests/test-mkfifo.c (main): Likewise.
38440         * tests/test-mkfifoat.c (main): Likewise.
38441         * tests/test-mknod.c (main): Likewise.
38442         * tests/test-readlink.c (main): Likewise.
38443         * tests/test-remove.c (main): Likewise.
38444         * tests/test-rename.c (main): Likewise.
38445         * tests/test-renameat.c (main): Likewise.
38446         * tests/test-rmdir.c (main): Likewise.
38447         * tests/test-symlink.c (main): Likewise.
38448         * tests/test-symlinkat.c (main): Likewise.
38449         * tests/test-unlink.c (main): Likewise.
38450         * tests/test-unlinkat.c (main): Likewise.
38451         * tests/test-utimens.c (main): Likewise.
38452         * tests/test-utimensat.c (main): Likewise.
38453         * modules/areadlink-tests (Depends-on): Add ignore-value.
38454         * modules/areadlink-with-size-tests (Depends-on): Likewise.
38455         * modules/areadlinkat-tests (Depends-on): Likewise.
38456         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
38457         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38458         * modules/canonicalize-tests (Depends-on): Likewise.
38459         * modules/chown-tests (Depends-on): Likewise.
38460         * modules/fdutimensat-tests (Depends-on): Likewise.
38461         * modules/futimens-tests (Depends-on): Likewise.
38462         * modules/lchown-tests (Depends-on): Likewise.
38463         * modules/link-tests (Depends-on): Likewise.
38464         * modules/linkat-tests (Depends-on): Likewise.
38465         * modules/lstat-tests (Depends-on): Likewise.
38466         * modules/mkdir-tests (Depends-on): Likewise.
38467         * modules/mkfifo-tests (Depends-on): Likewise.
38468         * modules/mkfifoat-tests (Depends-on): Likewise.
38469         * modules/mknod-tests (Depends-on): Likewise.
38470         * modules/openat-tests (Depends-on): Likewise.
38471         * modules/readlink-tests (Depends-on): Likewise.
38472         * modules/remove-tests (Depends-on): Likewise.
38473         * modules/rename-tests (Depends-on): Likewise.
38474         * modules/renameat-tests (Depends-on): Likewise.
38475         * modules/rmdir-tests (Depends-on): Likewise.
38476         * modules/symlink-tests (Depends-on): Likewise.
38477         * modules/symlinkat-tests (Depends-on): Likewise.
38478         * modules/unlink-tests (Depends-on): Likewise.
38479         * modules/utimens-tests (Depends-on): Likewise.
38480         * modules/utimensat-tests (Depends-on): Likewise.
38481
38482 2010-01-31  Bruno Haible  <bruno@clisp.org>
38483
38484         Perform the same test for many <math.h> functions.
38485         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
38486         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
38487         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
38488         of gl_MATHFUNC.
38489         * modules/acos (configure.ac): Likewise.
38490         * modules/asin (configure.ac): Likewise.
38491         * modules/atan (configure.ac): Likewise.
38492         * modules/atan2 (configure.ac): Likewise.
38493         * modules/cbrt (configure.ac): Likewise.
38494         * modules/copysign (configure.ac): Likewise.
38495         * modules/cos (configure.ac): Likewise.
38496         * modules/cosh (configure.ac): Likewise.
38497         * modules/erf (configure.ac): Likewise.
38498         * modules/erfc (configure.ac): Likewise.
38499         * modules/exp (configure.ac): Likewise.
38500         * modules/fmod (configure.ac): Likewise.
38501         * modules/hypot (configure.ac): Likewise.
38502         * modules/j0 (configure.ac): Likewise.
38503         * modules/j1 (configure.ac): Likewise.
38504         * modules/jn (configure.ac): Likewise.
38505         * modules/lgamma (configure.ac): Likewise.
38506         * modules/log (configure.ac): Likewise.
38507         * modules/log10 (configure.ac): Likewise.
38508         * modules/log1p (configure.ac): Likewise.
38509         * modules/pow (configure.ac): Likewise.
38510         * modules/remainder (configure.ac): Likewise.
38511         * modules/sin (configure.ac): Likewise.
38512         * modules/sinh (configure.ac): Likewise.
38513         * modules/tan (configure.ac): Likewise.
38514         * modules/tanh (configure.ac): Likewise.
38515         * modules/y0 (configure.ac): Likewise.
38516         * modules/y1 (configure.ac): Likewise.
38517         * modules/yn (configure.ac): Likewise.
38518         Suggested by Paolo Bonzini.
38519
38520 2010-01-31  Bruno Haible  <bruno@clisp.org>
38521
38522         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38523
38524 2010-01-31  Bruno Haible  <bruno@clisp.org>
38525
38526         Work around getdelim() bug on FreeBSD 8.0.
38527         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38528         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38529         not work.
38530         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38531         is 1.
38532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38533         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38534         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38535         a non-zero size.
38536         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38537
38538 2010-01-31  Bruno Haible  <bruno@clisp.org>
38539
38540         Work around getline() bug on FreeBSD 8.0.
38541         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38542         and a non-zero size.
38543         * tests/test-getline.c (main): Likewise.
38544         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38545         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38546
38547 2010-01-28  Eric Blake  <ebb9@byu.net>
38548
38549         regex: fix build failure
38550         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38551         platforms.
38552
38553 2010-01-28  Jim Meyering  <meyering@redhat.com>
38554
38555         regex: do not ignore memory allocation failure
38556         * lib/regex_internal.c (create_cd_newstate): Detect
38557         re_node_set_init_copy failure.   Extracted from glibc commit
38558         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38559
38560         regex: sync more white-space changes from libc
38561         * lib/regex_internal.c: White-space only changes.
38562         * lib/regexec.c: Likewise.
38563
38564         regex: add many uses of __attribute_warn_unused_result__
38565         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38566         * lib/regexec.c: Likewise.
38567         Extracted from a messy glibc commit.
38568
38569         regcomp.c: spelling and merge-artifact from glibc
38570         * lib/regcomp.c: Merge remainder of glibc's
38571         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38572
38573         regcomp.c: sync white-space changes from glibc
38574         * lib/regcomp.c: Merge to accommodate white space
38575         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38576
38577         regcomp.c: do not ignore internal return values
38578         * lib/regcomp.c: Do not ignore internal return values.
38579         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38580         but without its white-space changes and spelling fixes.
38581
38582         regex_internal.h: define __attribute_warn_unused_result__
38583         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38584
38585         maint: add a syntax-check rule to check for vulnerable Makefile.in
38586         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38587
38588 2010-01-27  Jim Meyering  <meyering@redhat.com>
38589
38590         ncftpput-ftp: clean up spaces
38591         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38592         Remove trailing blanks.
38593
38594 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38595
38596         * build-aux/git-version-gen: Fix copyright statement.
38597         * build-aux/gnupload: Likewise.
38598         * tests/test-arcfour.c: Likewise.
38599         * tests/test-arctwo.c: Likewise.
38600         * tests/test-count-one-bits.c: Likewise.
38601         * tests/test-crc.c: Likewise.
38602         * tests/test-des.c: Likewise.
38603         * tests/test-gc-arcfour.c: Likewise.
38604         * tests/test-gc-arctwo.c: Likewise.
38605         * tests/test-gc-des.c: Likewise.
38606         * tests/test-gc-hmac-md5.c: Likewise.
38607         * tests/test-gc-hmac-sha1.c: Likewise.
38608         * tests/test-gc-md2.c: Likewise.
38609         * tests/test-gc-md4.c: Likewise.
38610         * tests/test-gc-md5.c: Likewise.
38611         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38612         * tests/test-gc-rijndael.c: Likewise.
38613         * tests/test-gc-sha1.c: Likewise.
38614         * tests/test-gc.c: Likewise.
38615         * tests/test-gethostname.c: Likewise.
38616         * tests/test-gettimeofday.c: Likewise.
38617         * tests/test-hash.c: Likewise.
38618         * tests/test-hmac-md5.c: Likewise.
38619         * tests/test-hmac-sha1.c: Likewise.
38620         * tests/test-md2.c: Likewise.
38621         * tests/test-md4.c: Likewise.
38622         * tests/test-md5.c: Likewise.
38623         * tests/test-memchr.c: Likewise.
38624         * tests/test-memchr2.c: Likewise.
38625         * tests/test-memcmp.c: Likewise.
38626         * tests/test-memmem.c: Likewise.
38627         * tests/test-memrchr.c: Likewise.
38628         * tests/test-rawmemchr.c: Likewise.
38629         * tests/test-read-file.c: Likewise.
38630         * tests/test-rijndael.c: Likewise.
38631         * tests/test-sockets.c: Likewise.
38632         * tests/test-strchrnul.c: Likewise.
38633         * tests/test-strstr.c: Likewise.
38634         * tests/test-strtod.c: Likewise.
38635         * build-aux/ncftpput-ftp: Likewise.
38636
38637 2010-01-26  Eric Blake  <ebb9@byu.net>
38638
38639         ignore-value: update recommended header name
38640         * modules/ignore-value (Include): Only use <> for headers that
38641         exist in glibc.
38642
38643 2010-01-26  Jim Meyering  <meyering@redhat.com>
38644
38645         test-userspec.c: avoid compiler warnings
38646         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38647         and "initialization discards qualifiers..." warnings.
38648         Put the first "uid" in its own scope, and make char* members "const".
38649
38650 2010-01-25  Bruno Haible  <bruno@clisp.org>
38651
38652         gnulib-tool: Make warning diagnostics consistent.
38653         * gnulib-tool (func_warning): New function.
38654         Use it everywhere where gnulib-tool produces output to stderr and it is
38655         not a fatal error.
38656
38657 2010-01-25  Bruno Haible  <bruno@clisp.org>
38658
38659         Fix test dependencies.
38660         * modules/xstrtol-tests (Depends-on): Add inttypes.
38661         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38662
38663 2010-01-25 Pádraig Brady <P@draigBrady.com>
38664
38665         syntax-check: detect incorrect boolean macro values in config.h
38666         * modules/maintainer-makefile (configure.ac): Parameterize the location
38667         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38668         The logic is from Eric Blake and the location indicated by Jim Meyering.
38669         Note the more natural CONFIG_HEADER name is prohibited by automake
38670         for backwards compatibility reasons.
38671         * top/maint.mk (sc_Wundef_boolean): New rule.
38672
38673 2010-01-25  Jim Meyering  <meyering@redhat.com>
38674
38675         bootstrap: detect MacOS 10.6's shasum, too
38676         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38677         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38678
38679 2010-01-23  Jim Meyering  <meyering@redhat.com>
38680
38681         xstrtoll: new module
38682         * modules/xstrtoll: New file.
38683         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38684         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38685         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38686         ./configure fails if you use this module and lack "long long".
38687         * modules/xstrtoll-tests: New module.
38688         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38689         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38690         new init.sh-based test framework.
38691
38692 2010-01-24  Bruno Haible  <bruno@clisp.org>
38693
38694         Tests for module 'yn'.
38695         * modules/yn-tests: New file.
38696         * tests/test-yn.c: New file.
38697
38698         Tests for module 'y1'.
38699         * modules/y1-tests: New file.
38700         * tests/test-y1.c: New file.
38701
38702         Tests for module 'y0'.
38703         * modules/y0-tests: New file.
38704         * tests/test-y0.c: New file.
38705
38706         Tests for module 'tanh'.
38707         * modules/tanh-tests: New file.
38708         * tests/test-tanh.c: New file.
38709
38710         Tests for module 'tan'.
38711         * modules/tan-tests: New file.
38712         * tests/test-tan.c: New file.
38713
38714         Tests for module 'sqrt'.
38715         * modules/sqrt-tests: New file.
38716         * tests/test-sqrt.c: New file.
38717
38718         Tests for module 'sinh'.
38719         * modules/sinh-tests: New file.
38720         * tests/test-sinh.c: New file.
38721
38722         Tests for module 'sin'.
38723         * modules/sin-tests: New file.
38724         * tests/test-sin.c: New file.
38725
38726         Tests for module 'rint'.
38727         * modules/rint-tests: New file.
38728         * tests/test-rint.c: New file.
38729
38730         Tests for module 'remainder'.
38731         * modules/remainder-tests: New file.
38732         * tests/test-remainder.c: New file.
38733
38734         Tests for module 'pow'.
38735         * modules/pow-tests: New file.
38736         * tests/test-pow.c: New file.
38737
38738         Tests for module 'nextafter'.
38739         * modules/nextafter-tests: New file.
38740         * tests/test-nextafter.c: New file.
38741
38742         Tests for module 'modf'.
38743         * modules/modf-tests: New file.
38744         * tests/test-modf.c: New file.
38745
38746         Tests for module 'logb'.
38747         * modules/logb-tests: New file.
38748         * tests/test-logb.c: New file.
38749
38750         Tests for module 'log1p'.
38751         * modules/log1p-tests: New file.
38752         * tests/test-log1p.c: New file.
38753
38754         Tests for module 'log10'.
38755         * modules/log10-tests: New file.
38756         * tests/test-log10.c: New file.
38757
38758         Tests for module 'log'.
38759         * modules/log-tests: New file.
38760         * tests/test-log.c: New file.
38761
38762         Tests for module 'lgamma'.
38763         * modules/lgamma-tests: New file.
38764         * tests/test-lgamma.c: New file.
38765
38766         Tests for module 'ldexp'.
38767         * modules/ldexp-tests: New file.
38768         * tests/test-ldexp.c: New file.
38769
38770         Tests for module 'jn'.
38771         * modules/jn-tests: New file.
38772         * tests/test-jn.c: New file.
38773
38774         Tests for module 'j1'.
38775         * modules/j1-tests: New file.
38776         * tests/test-j1.c: New file.
38777
38778         Tests for module 'j0'.
38779         * modules/j0-tests: New file.
38780         * tests/test-j0.c: New file.
38781
38782         Tests for module 'hypot'.
38783         * modules/hypot-tests: New file.
38784         * tests/test-hypot.c: New file.
38785
38786         Tests for module 'fmod'.
38787         * modules/fmod-tests: New file.
38788         * tests/test-fmod.c: New file.
38789
38790         Tests for module 'fabs'.
38791         * modules/fabs-tests: New file.
38792         * tests/test-fabs.c: New file.
38793
38794         Tests for module 'exp'.
38795         * modules/exp-tests: New file.
38796         * tests/test-exp.c: New file.
38797
38798         Tests for module 'erfc'.
38799         * modules/erfc-tests: New file.
38800         * tests/test-erfc.c: New file.
38801
38802         Tests for module 'erf'.
38803         * modules/erf-tests: New file.
38804         * tests/test-erf.c: New file.
38805
38806         Tests for module 'cosh'.
38807         * modules/cosh-tests: New file.
38808         * tests/test-cosh.c: New file.
38809
38810         Tests for module 'cos'.
38811         * modules/cos-tests: New file.
38812         * tests/test-cos.c: New file.
38813
38814         Tests for module 'copysign'.
38815         * modules/copysign-tests: New file.
38816         * tests/test-copysign.c: New file.
38817
38818         Tests for module 'cbrt'.
38819         * modules/cbrt-tests: New file.
38820         * tests/test-cbrt.c: New file.
38821
38822         Tests for module 'atan2'.
38823         * modules/atan2-tests: New file.
38824         * tests/test-atan2.c: New file.
38825
38826         Tests for module 'atan'.
38827         * modules/atan-tests: New file.
38828         * tests/test-atan.c: New file.
38829
38830         Tests for module 'asin'.
38831         * modules/asin-tests: New file.
38832         * tests/test-asin.c: New file.
38833
38834         Tests for module 'acos'.
38835         * modules/acos-tests: New file.
38836         * tests/test-acos.c: New file.
38837
38838 2010-01-24  Bruno Haible  <bruno@clisp.org>
38839
38840         Fix tests for common <math.h> functions.
38841         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38842         code snippet that references the function pointer, rather than merely
38843         calling the function. Substitute the FUNC_LIBM variable.
38844         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38845         * modules/acos (configure.ac): Likewise.
38846         * modules/asin (configure.ac): Likewise.
38847         * modules/atan (configure.ac): Likewise.
38848         * modules/atan2 (configure.ac): Likewise.
38849         * modules/cbrt (configure.ac): Likewise.
38850         * modules/copysign (configure.ac): Likewise.
38851         * modules/cos (configure.ac): Likewise.
38852         * modules/cosh (configure.ac): Likewise.
38853         * modules/erf (configure.ac): Likewise.
38854         * modules/erfc (configure.ac): Likewise.
38855         * modules/exp (configure.ac): Likewise.
38856         * modules/fabs (configure.ac): Likewise.
38857         * modules/fmod (configure.ac): Likewise.
38858         * modules/hypot (configure.ac): Likewise.
38859         * modules/j0 (configure.ac): Likewise.
38860         * modules/j1 (configure.ac): Likewise.
38861         * modules/jn (configure.ac): Likewise.
38862         * modules/ldexp (configure.ac): Likewise.
38863         * modules/lgamma (configure.ac): Likewise.
38864         * modules/log (configure.ac): Likewise.
38865         * modules/log10 (configure.ac): Likewise.
38866         * modules/log1p (configure.ac): Likewise.
38867         * modules/logb (configure.ac): Likewise.
38868         * modules/modf (configure.ac): Likewise.
38869         * modules/nextafter (configure.ac): Likewise.
38870         * modules/pow (configure.ac): Likewise.
38871         * modules/remainder (configure.ac): Likewise.
38872         * modules/rint (configure.ac): Likewise.
38873         * modules/sin (configure.ac): Likewise.
38874         * modules/sinh (configure.ac): Likewise.
38875         * modules/tan (configure.ac): Likewise.
38876         * modules/tanh (configure.ac): Likewise.
38877         * modules/y0 (configure.ac): Likewise.
38878         * modules/y1 (configure.ac): Likewise.
38879         * modules/yn (configure.ac): Likewise.
38880
38881 2010-01-24  Bruno Haible  <bruno@clisp.org>
38882
38883         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38884         * tests/test-acosl.c (x): New variable.
38885         (main): Store argument in x and fetch it from x.
38886         * tests/test-asinl.c (x): New variable.
38887         (main): Store argument in x and fetch it from x.
38888         * tests/test-atanl.c (x): New variable.
38889         (main): Store argument in x and fetch it from x.
38890         * tests/test-cosl.c (x): New variable.
38891         (main): Store argument in x and fetch it from x.
38892         * tests/test-expl.c (x): New variable.
38893         (main): Store argument in x and fetch it from x.
38894         * tests/test-logl.c (x): New variable.
38895         (main): Store argument in x and fetch it from x.
38896         * tests/test-sinl.c (x): New variable.
38897         (main): Store argument in x and fetch it from x.
38898         * tests/test-sqrtl.c (x): New variable.
38899         (main): Store argument in x and fetch it from x.
38900         * tests/test-tanl.c (x): New variable.
38901         (main): Store argument in x and fetch it from x.
38902
38903 2010-01-24  Bruno Haible  <bruno@clisp.org>
38904
38905         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38906         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38907         assignments to the initial TESTS_ENVIRONMENT.
38908         * doc/gnulib.texi (Unit test modules): Document it.
38909         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38910         TESTS_ENVIRONMENT.
38911         * modules/btowc-tests (Makefile.am): Likewise.
38912         * modules/c-stack-tests (Makefile.am): Likewise.
38913         * modules/c-strcase-tests (Makefile.am): Likewise.
38914         * modules/copy-file-tests (Makefile.am): Likewise.
38915         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38916         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38917         * modules/mbrtowc-tests (Makefile.am): Likewise.
38918         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38919         * modules/mbscasestr-tests (Makefile.am): Likewise.
38920         * modules/mbschr-tests (Makefile.am): Likewise.
38921         * modules/mbscspn-tests (Makefile.am): Likewise.
38922         * modules/mbsinit-tests (Makefile.am): Likewise.
38923         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38924         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38925         * modules/mbspbrk-tests (Makefile.am): Likewise.
38926         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38927         * modules/mbsrchr-tests (Makefile.am): Likewise.
38928         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38929         * modules/mbsspn-tests (Makefile.am): Likewise.
38930         * modules/mbsstr-tests (Makefile.am): Likewise.
38931         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38932         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38933         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38934         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38935         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38936         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38937         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38938         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38939         * modules/wcrtomb-tests (Makefile.am): Likewise.
38940         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38941         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38942         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38943         assignments from TESTS_ENVIRONMENT.
38944         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38945         augmentation.
38946         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38947         * modules/atexit-tests (Makefile.am): Likewise.
38948         * modules/binary-io-tests (Makefile.am): Likewise.
38949         * modules/closein-tests (Makefile.am): Likewise.
38950         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38951         * modules/exclude-tests (Makefile.am): Likewise.
38952         * modules/fflush-tests (Makefile.am): Likewise.
38953         * modules/fpending-tests (Makefile.am): Likewise.
38954         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38955         * modules/freadahead-tests (Makefile.am): Likewise.
38956         * modules/freadptr-tests (Makefile.am): Likewise.
38957         * modules/freadseek-tests (Makefile.am): Likewise.
38958         * modules/fseek-tests (Makefile.am): Likewise.
38959         * modules/fseeko-tests (Makefile.am): Likewise.
38960         * modules/ftell-tests (Makefile.am): Likewise.
38961         * modules/ftello-tests (Makefile.am): Likewise.
38962         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38963         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38964         * modules/lseek-tests (Makefile.am): Likewise.
38965         * modules/parse-duration-tests (Makefile.am): Likewise.
38966         * modules/perror-tests (Makefile.am): Likewise.
38967         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38968         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38969         * modules/pipe-tests (Makefile.am): Likewise.
38970         * modules/pread-tests (Makefile.am): Likewise.
38971         * modules/printf-posix-tests (Makefile.am): Likewise.
38972         * modules/select-tests (Makefile.am): Likewise.
38973         * modules/sigpipe-tests (Makefile.am): Likewise.
38974         * modules/tsearch-tests (Makefile.am): Likewise.
38975         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38976         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38977         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38978         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38979         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38980         * modules/version-etc-tests (Makefile.am): Likewise.
38981         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38982         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38983         * modules/xalloc-die-tests (Makefile.am): Likewise.
38984         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38985         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38986         * modules/xstrtol-tests (Makefile.am): Likewise.
38987         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38988         * modules/yesno-tests (Makefile.am): Likewise.
38989         Suggested by Jim Meyering.
38990
38991 2010-01-24  Bruno Haible  <bruno@clisp.org>
38992
38993         More documentation.
38994         * doc/gnulib.texi (Writing modules): New chapter.
38995         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38996         the new chapter.
38997
38998 2010-01-24  Jim Meyering  <meyering@redhat.com>
38999
39000         maint.mk: do not prepend "./" after filtering
39001         * top/maint.mk (_prepend_srcdir_prefix): New variable
39002         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
39003         "./" when $(srcdir) is ".".
39004
39005         define STREQ(a,b) consistently, removing useless parentheses
39006         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
39007         since the only risk is that "a" or "b" contains an unparenthesized
39008         comma, but if either did that, STREQ would have 3 or more arguments.
39009         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
39010         * lib/fts.c (STREQ): Remove unnecessary parentheses.
39011         * lib/hash-triple.c (STREQ): Likewise.
39012         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
39013         * lib/getugroups.c (STREQ): Likewise.
39014
39015 2010-01-23  Jim Meyering  <meyering@redhat.com>
39016
39017         maint.mk: fix syntax-check in a non-srcdir build directory
39018         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
39019         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
39020
39021 2010-01-22  Jim Meyering  <meyering@redhat.com>
39022
39023         userspec: add unit tests
39024         * tests/test-userspec.c: New file.
39025         * modules/userspec-tests: Likewise.
39026
39027 2010-01-21  Jim Meyering  <meyering@redhat.com>
39028
39029         maint.mk: handle source file names containing "." robustly
39030         * top/maint.mk (_dot_escaped_srcdir): Define.
39031         (VC_LIST): Use it in LHS of sed substitution.
39032
39033 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
39034
39035         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
39036         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
39037         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
39038         from a non-srcdir build.
39039
39040 2010-01-20  Eric Blake  <ebb9@byu.net>
39041
39042         warn-on-use: use instead of link-warning
39043         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
39044         * modules/unistd (Depends-on, Makefile.am): Likewise.
39045         * modules/arpa_inet (Depends-on): Replace link-warning with
39046         warn-on-use.
39047         (Makefile.am): Update rules accordingly.
39048         * modules/ctype (Depends-on, Makefile.am): Likewise.
39049         * modules/dirent (Depends-on, Makefile.am): Likewise.
39050         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
39051         * modules/inttypes (Depends-on, Makefile.am): Likewise.
39052         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39053         * modules/locale (Depends-on, Makefile.am): Likewise.
39054         * modules/math (Depends-on, Makefile.am): Likewise.
39055         * modules/search (Depends-on, Makefile.am): Likewise.
39056         * modules/signal (Depends-on, Makefile.am): Likewise.
39057         * modules/spawn (Depends-on, Makefile.am): Likewise.
39058         * modules/stdlib (Depends-on, Makefile.am): Likewise.
39059         * modules/string (Depends-on, Makefile.am): Likewise.
39060         * modules/strings (Depends-on, Makefile.am): Likewise.
39061         * modules/sys_file (Depends-on, Makefile.am): Likewise.
39062         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
39063         * modules/sys_select (Depends-on, Makefile.am): Likewise.
39064         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
39065         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
39066         * modules/sys_times (Depends-on, Makefile.am): Likewise.
39067         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39068         * modules/wchar (Depends-on, Makefile.am): Likewise.
39069         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
39070         should be poisoned.
39071         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
39072         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
39073         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
39074         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39075         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39076         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
39077         * m4/math_h.m4 (gl_MATH_H): Likewise.
39078         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39079         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39080         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39081         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
39082         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
39083         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
39084         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
39085         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
39086         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
39087         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39088         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39089         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
39090         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39091         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
39092         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39093         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39094         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
39095         GL_LINK_WARNING.
39096         * lib/ctype.in.h: Likewise.
39097         * lib/dirent.in.h: Likewise.
39098         * lib/fcntl.in.h: Likewise.
39099         * lib/inttypes.in.h: Likewise.
39100         * lib/langinfo.in.h: Likewise.
39101         * lib/locale.in.h: Likewise.
39102         * lib/math.in.h: Likewise.
39103         * lib/search.in.h: Likewise.
39104         * lib/signal.in.h: Likewise.
39105         * lib/spawn.in.h: Likewise.
39106         * lib/stdio.in.h: Likewise.
39107         * lib/stdlib.in.h: Likewise.
39108         * lib/string.in.h: Likewise.
39109         * lib/strings.in.h: Likewise.
39110         * lib/sys_file.in.h: Likewise.
39111         * lib/sys_ioctl.in.h: Likewise.
39112         * lib/sys_select.in.h: Likewise.
39113         * lib/sys_socket.in.h: Likewise.
39114         * lib/sys_stat.in.h: Likewise.
39115         * lib/sys_times.in.h: Likewise.
39116         * lib/sys_utsname.in.h: Likewise.
39117         * lib/unistd.in.h: Likewise.
39118         * lib/wchar.in.h: Likewise.
39119
39120 2010-01-20  Bruno Haible  <bruno@clisp.org>
39121
39122         Avoid duplicate -lm.
39123         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
39124         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
39125         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
39126         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
39127         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
39128         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
39129         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
39130         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
39131         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
39132         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
39133         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
39134         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
39135         Reported by Paolo Bonzini.
39136
39137 2010-01-19  Bruno Haible  <bruno@clisp.org>
39138
39139         langinfo, nl_langinfo: Relicense under LGPLv2+.
39140         * modules/langinfo (License): Change to LGPLv2+.
39141         * modules/nl_langinfo (License): Likewise.
39142         Patch by David Lutterkort <lutter@redhat.com>.
39143
39144 2010-01-19  Bruno Haible  <bruno@clisp.org>
39145
39146         Avoid compilation error with cc on OSF/1 5.1.
39147         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
39148         statement, not before.
39149         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39150
39151 2010-01-18  Bruno Haible  <bruno@clisp.org>
39152
39153         Avoid a link error due to the __printf__ symbol.
39154         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
39155         and 2.6.x.
39156         (__format__, __printf__): Remove definitions.
39157         * lib/argp-fmtstream.h: Likewise.
39158         * lib/argp.h: Likewise.
39159         * lib/error.h: Likewise.
39160         * lib/vasnprintf.h: Likewise.
39161         * lib/xprintf.h: Likewise.
39162         * lib/xvasprintf.h: Likewise.
39163         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39164
39165 2010-01-18  Bruno Haible  <bruno@clisp.org>
39166
39167         Tests for module 'tanl'.
39168         * modules/tanl-tests: New file.
39169         * tests/test-tanl.c: New file.
39170
39171         Tests for module 'sqrtl'.
39172         * modules/sqrtl-tests: New file.
39173         * tests/test-sqrtl.c: New file.
39174
39175         Tests for module 'sinl'.
39176         * modules/sinl-tests: New file.
39177         * tests/test-sinl.c: New file.
39178
39179         Tests for module 'logl'.
39180         * modules/logl-tests: New file.
39181         * tests/test-logl.c: New file.
39182
39183         Tests for module 'expl'.
39184         * modules/expl-tests: New file.
39185         * tests/test-expl.c: New file.
39186
39187         Tests for module 'cosl'.
39188         * modules/cosl-tests: New file.
39189         * tests/test-cosl.c: New file.
39190
39191         Tests for module 'atanl'.
39192         * modules/atanl-tests: New file.
39193         * tests/test-atanl.c: New file.
39194
39195         Tests for module 'asinl'.
39196         * modules/asinl-tests: New file.
39197         * tests/test-asinl.c: New file.
39198
39199         Tests for module 'acosl'.
39200         * modules/acosl-tests: New file.
39201         * tests/test-acosl.c: New file.
39202
39203         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39204         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
39205         tanl): Use the standard gnulib idiom.
39206         * lib/cosl.c: Don't include trigl.c and sincosl.c.
39207         * lib/sinl.c: Likewise.
39208         * lib/tanl.c: Don't include trigl.c.
39209         (kernel_tanl): Make static.
39210         * lib/sincosl.c: Include trigl.h first.
39211         * lib/trigl.c: Likewise.
39212         * m4/acosl.m4: New file.
39213         * m4/asinl.m4: New file.
39214         * m4/atanl.m4: New file.
39215         * m4/cosl.m4: New file.
39216         * m4/expl.m4: New file.
39217         * m4/logl.m4: New file.
39218         * m4/sinl.m4: New file.
39219         * m4/sqrtl.m4: New file.
39220         * m4/tanl.m4: New file.
39221         * m4/mathl.m4: Remove file.
39222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
39223         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39224         Don't initialize GNULIB_MATHL.
39225         * modules/acosl: New file.
39226         * modules/asinl: New file.
39227         * modules/atanl: New file.
39228         * modules/cosl: New file.
39229         * modules/expl: New file.
39230         * modules/logl: New file.
39231         * modules/sinl: New file.
39232         * modules/sqrtl: New file.
39233         * modules/tanl: New file.
39234         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
39235         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
39236         substitute GNULIB_MATHL.
39237         * modules/mathl: Rewritten.
39238         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
39239         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
39240         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
39241         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
39242         * doc/posix-functions/expl.texi: Mention the 'expl' module.
39243         * doc/posix-functions/logl.texi: Mention the 'logl' module.
39244         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
39245         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
39246         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
39247
39248 2010-01-18  Bruno Haible  <bruno@clisp.org>
39249
39250         sqrt: Make gl_FUNC_SQRT requirable.
39251         * m4/sqrt.m4: New file.
39252         * modules/sqrt (Files): Add it.
39253         (configure.ac): Invoke gl_FUNC_SQRT.
39254
39255 2010-01-18  Bruno Haible  <bruno@clisp.org>
39256
39257         New modules for common <math.h> functions.
39258         * m4/mathfunc.m4: New file.
39259         * modules/acos: New file.
39260         * modules/asin: New file.
39261         * modules/atan: New file.
39262         * modules/atan2: New file.
39263         * modules/cbrt: New file.
39264         * modules/copysign: New file.
39265         * modules/cos: New file.
39266         * modules/cosh: New file.
39267         * modules/erf: New file.
39268         * modules/erfc: New file.
39269         * modules/exp: New file.
39270         * modules/fabs: New file.
39271         * modules/fmod: New file.
39272         * modules/hypot: New file.
39273         * modules/j0: New file.
39274         * modules/j1: New file.
39275         * modules/jn: New file.
39276         * modules/ldexp: New file.
39277         * modules/lgamma: New file.
39278         * modules/log: New file.
39279         * modules/log10: New file.
39280         * modules/log1p: New file.
39281         * modules/logb: New file.
39282         * modules/modf: New file.
39283         * modules/nextafter: New file.
39284         * modules/pow: New file.
39285         * modules/remainder: New file.
39286         * modules/rint: New file.
39287         * modules/sin: New file.
39288         * modules/sinh: New file.
39289         * modules/sqrt: New file.
39290         * modules/tan: New file.
39291         * modules/tanh: New file.
39292         * modules/y0: New file.
39293         * modules/y1: New file.
39294         * modules/yn: New file.
39295         * doc/posix-functions/acos.texi: Mention the 'acos' module.
39296         * doc/posix-functions/asin.texi: Mention the 'asin' module.
39297         * doc/posix-functions/atan.texi: Mention the 'atan' module.
39298         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
39299         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
39300         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
39301         * doc/posix-functions/cos.texi: Mention the 'cos' module.
39302         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
39303         * doc/posix-functions/erf.texi: Mention the 'erf' module.
39304         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
39305         * doc/posix-functions/exp.texi: Mention the 'exp' module.
39306         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
39307         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
39308         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
39309         * doc/posix-functions/j0.texi: Mention the 'j0' module.
39310         * doc/posix-functions/j1.texi: Mention the 'j1' module.
39311         * doc/posix-functions/jn.texi: Mention the 'jn' module.
39312         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
39313         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
39314         * doc/posix-functions/log.texi: Mention the 'log' module.
39315         * doc/posix-functions/log10.texi: Mention the 'log10' module.
39316         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
39317         * doc/posix-functions/logb.texi: Mention the 'logb' module.
39318         * doc/posix-functions/modf.texi: Mention the 'modf' module.
39319         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
39320         * doc/posix-functions/pow.texi: Mention the 'pow' module.
39321         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
39322         * doc/posix-functions/rint.texi: Mention the 'rint' module.
39323         * doc/posix-functions/sin.texi: Mention the 'sin' module.
39324         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
39325         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
39326         * doc/posix-functions/tan.texi: Mention the 'tan' module.
39327         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
39328         * doc/posix-functions/y0.texi: Mention the 'y0' module.
39329         * doc/posix-functions/y1.texi: Mention the 'y1' module.
39330         * doc/posix-functions/yn.texi: Mention the 'yn' module.
39331
39332 2010-01-18  Jim Meyering  <meyering@redhat.com>
39333
39334         ignore-value: relax license to LGPLv2+
39335         * modules/ignore-value (License): Relax to LGPLv2+.
39336
39337         getdate: don't leak when TZ contains two or more '"'s
39338         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
39339         double quote in TZ after the first one.
39340
39341         readtokens: do not leak internal token_lengths buffer
39342         * lib/readtokens.c (readtokens): Free the local, lengths,
39343         when the supplied "token_lengths" parameter is NULL.
39344
39345 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39346
39347         Fix a couple of missing LIBTHREAD link failures on AIX.
39348         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
39349         $(LIBTHREAD).
39350         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
39351
39352         Link test-poll against INET_PTON_LIB.
39353         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
39354         for inet_pton on Solaris 10.
39355
39356 2010-01-17  Bruno Haible  <bruno@clisp.org>
39357
39358         unistdio/*-sprintf: Fix typo in module description.
39359         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
39360         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
39361         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
39362         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
39363         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
39364         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
39365         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
39366         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39367
39368 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39369
39370         gnulib-tool: fix filelist for AIX, HP-UX ksh.
39371         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
39372         variables in shell case patterns, for AIX and HP-UX ksh.
39373
39374         Split large sed scripts, for HP-UX sed.
39375         * modules/stdio: Split sed scripts around 50 sed commands,
39376         to avoid HP-UX limit of 99 commands, in the near future.
39377         * modules/string: Likewise.
39378         * modules/unistd: Likewise.
39379
39380         gnulib-tool: avoid writing in the current directory.
39381         * gnulib-tool (func_emit_lib_Makefile_am)
39382         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
39383         not in the current directory, so concurrent gnulib-tool
39384         instances do not interfere.
39385
39386 2010-01-16  Jim Meyering  <meyering@redhat.com>
39387
39388         doc: update users.txt
39389         * users.txt: Add grep.
39390         (diffutils, gzip): Update URLs.
39391
39392 2010-01-12  Bruno Haible  <bruno@clisp.org>
39393
39394         posix_spawn: Avoid test failure on Cygwin.
39395         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
39396         characters.
39397         Reported by Simon Josefsson.
39398
39399 2010-01-12  Bruno Haible  <bruno@clisp.org>
39400
39401         * tests/test-cond.c (main): When skipping the test, show the reason.
39402
39403 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39404
39405         * lib/striconv.c (str_cd_iconv): Avoid if before free.
39406
39407 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39408
39409         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
39410         VC_LIST_ALWAYS_EXCLUDE_REGEX.
39411
39412 2010-01-12  Eric Blake  <ebb9@byu.net>
39413
39414         build: guarantee AS_VAR_IF
39415         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
39416         (gl_AS_VAR_IF): Move...
39417         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
39418         Reported by Simon Josefsson.
39419
39420 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39421
39422         * lib/stdio.in.h: Fix typo.
39423
39424 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39425
39426         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
39427         libgpg-error.
39428
39429 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39430
39431         * tests/test-xalloc-die.sh: Use $EXEEXT.
39432
39433 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39434             Bruno Haible  <bruno@clisp.org>
39435
39436         getlogin, getlogin_r: Avoid test failure.
39437         * tests/test-getlogin.c: Include <stdio.h>.
39438         (main): Skip the test when the function fails because stdin is not a
39439         tty.
39440         * tests/test-getlogin_r.c: Include <stdio.h>.
39441         (main): Skip the test when the function fails because stdin is not a
39442         tty.
39443
39444 2010-01-11  Eric Blake  <ebb9@byu.net>
39445
39446         tests: avoid more large file warnings
39447         * tests/test-fflush.c: Avoid warning about ftell use.
39448         * tests/test-fseek.c: Avoid warning about fseek use.
39449
39450 2010-01-10  Bruno Haible  <bruno@clisp.org>
39451
39452         nproc: Work better on Linux when /proc and /sys are not mounted.
39453         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
39454         as lower bound when, on glibc/Linux systems,
39455         sysconf (_SC_NPROCESSORS_CONF) returns 1.
39456         Suggested by Pádraig Brady <P@draigbrady.com>.
39457         Reported by Dmitry V. Levin <ldv@altlinux.org>.
39458
39459         nproc: Refactor.
39460         * lib/nproc.c (num_processors_via_affinity_mask): New function,
39461         extracted from num_processors.
39462         (num_processors): Call it.
39463
39464 2010-01-11  Jim Meyering  <meyering@redhat.com>
39465
39466         utimecmp: avoid new warning from upcoming gcc-4.5.0
39467         * lib/utimecmp.c (BILLION): Define using #define rather than an
39468         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
39469
39470 2010-01-11  Eric Blake  <ebb9@byu.net>
39471
39472         math: add portability warnings for classification macros
39473         * modules/math (Depends-on): Add warn-on-use.
39474         (Makefile.am): Provide new substitutions.
39475         * m4/math_h.m4 (gl_MATH_H): Require inline.
39476         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
39477         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
39478         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
39479         implement warnings.
39480
39481         unistd: warn on use of environ without module
39482         * modules/unistd (Depends-on): Add warn-on-use.
39483         (Makefile.am): Provide new substitutions.
39484         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
39485         * lib/unistd.in.h (environ): Wrap with a warning helper function.
39486
39487         stdio: warn on suspicious uses
39488         * modules/stdio (Depends-on): Add warn-on-use.
39489         (Makefile.am): Provide new substitutions.
39490         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
39491         fseeko.
39492         * lib/stdio.in.h (gets): Always warn on use.
39493         (fseek, ftell): Adjust when warnings are issued, and honor
39494         _GL_NO_LARGE_FILES as a way to silence the warning.
39495         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
39496         any warning about large file offsets.
39497         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
39498         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
39499         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
39500         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
39501         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
39502         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
39503         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
39504         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
39505
39506         warn-on-use: new module
39507         * modules/warn-on-use: New file.
39508         * build-aux/warn-on-use.h: Likewise.
39509         * m4/warn-on-use.m4: Likewise.
39510         * MODULES.html.sh (Support for building): Mention it.
39511
39512 2010-01-10  Bruno Haible  <bruno@clisp.org>
39513
39514         Tests for module 'unistr/u32-strdup'.
39515         * modules/unistr/u32-strdup-tests: New file.
39516         * tests/unistr/test-u32-strdup.c: New file.
39517
39518         Tests for module 'unistr/u16-strdup'.
39519         * modules/unistr/u16-strdup-tests: New file.
39520         * tests/unistr/test-u16-strdup.c: New file.
39521
39522         Tests for module 'unistr/u8-strdup'.
39523         * modules/unistr/u8-strdup-tests: New file.
39524         * tests/unistr/test-u8-strdup.c: New file.
39525         * tests/unistr/test-strdup.h: New file.
39526
39527         Tests for module 'unistr/u32-strncmp'.
39528         * modules/unistr/u32-strncmp-tests: New file.
39529         * tests/unistr/test-u32-strncmp.c: New file.
39530
39531         Tests for module 'unistr/u16-strncmp'.
39532         * modules/unistr/u16-strncmp-tests: New file.
39533         * tests/unistr/test-u16-strncmp.c: New file.
39534
39535         Tests for module 'unistr/u8-strncmp'.
39536         * modules/unistr/u8-strncmp-tests: New file.
39537         * tests/unistr/test-u8-strncmp.c: New file.
39538         * tests/unistr/test-strncmp.h: New file.
39539
39540         Tests for module 'unistr/u32-strcoll'.
39541         * modules/unistr/u32-strcoll-tests: New file.
39542         * tests/unistr/test-u32-strcoll.c: New file.
39543
39544         Tests for module 'unistr/u16-strcoll'.
39545         * modules/unistr/u16-strcoll-tests: New file.
39546         * tests/unistr/test-u16-strcoll.c: New file.
39547
39548         Tests for module 'unistr/u8-strcoll'.
39549         * modules/unistr/u8-strcoll-tests: New file.
39550         * tests/unistr/test-u8-strcoll.c: New file.
39551
39552         Tests for module 'unistr/u32-strcmp'.
39553         * modules/unistr/u32-strcmp-tests: New file.
39554         * tests/unistr/test-u32-strcmp.c: New file.
39555         * tests/unistr/test-u32-strcmp.h: New file.
39556
39557         Tests for module 'unistr/u16-strcmp'.
39558         * modules/unistr/u16-strcmp-tests: New file.
39559         * tests/unistr/test-u16-strcmp.c: New file.
39560         * tests/unistr/test-u16-strcmp.h: New file.
39561
39562         Tests for module 'unistr/u8-strcmp'.
39563         * modules/unistr/u8-strcmp-tests: New file.
39564         * tests/unistr/test-u8-strcmp.c: New file.
39565         * tests/unistr/test-u8-strcmp.h: New file.
39566         * tests/unistr/test-strcmp.h: New file.
39567
39568         Tests for module 'unistr/u32-strncat'.
39569         * modules/unistr/u32-strncat-tests: New file.
39570         * tests/unistr/test-u32-strncat.c: New file.
39571
39572         Tests for module 'unistr/u16-strncat'.
39573         * modules/unistr/u16-strncat-tests: New file.
39574         * tests/unistr/test-u16-strncat.c: New file.
39575
39576         Tests for module 'unistr/u8-strncat'.
39577         * modules/unistr/u8-strncat-tests: New file.
39578         * tests/unistr/test-u8-strncat.c: New file.
39579         * tests/unistr/test-strncat.h: New file.
39580
39581         Tests for module 'unistr/u32-strcat'.
39582         * modules/unistr/u32-strcat-tests: New file.
39583         * tests/unistr/test-u32-strcat.c: New file.
39584
39585         Tests for module 'unistr/u16-strcat'.
39586         * modules/unistr/u16-strcat-tests: New file.
39587         * tests/unistr/test-u16-strcat.c: New file.
39588
39589         Tests for module 'unistr/u8-strcat'.
39590         * modules/unistr/u8-strcat-tests: New file.
39591         * tests/unistr/test-u8-strcat.c: New file.
39592         * tests/unistr/test-strcat.h: New file.
39593
39594         Tests for module 'unistr/u32-stpncpy'.
39595         * modules/unistr/u32-stpncpy-tests: New file.
39596         * tests/unistr/test-u32-stpncpy.c: New file.
39597
39598         Tests for module 'unistr/u16-stpncpy'.
39599         * modules/unistr/u16-stpncpy-tests: New file.
39600         * tests/unistr/test-u16-stpncpy.c: New file.
39601
39602         Tests for module 'unistr/u8-stpncpy'.
39603         * modules/unistr/u8-stpncpy-tests: New file.
39604         * tests/unistr/test-u8-stpncpy.c: New file.
39605         * tests/unistr/test-stpncpy.h: New file.
39606
39607         Tests for module 'unistr/u32-strncpy'.
39608         * modules/unistr/u32-strncpy-tests: New file.
39609         * tests/unistr/test-u32-strncpy.c: New file.
39610
39611         Tests for module 'unistr/u16-strncpy'.
39612         * modules/unistr/u16-strncpy-tests: New file.
39613         * tests/unistr/test-u16-strncpy.c: New file.
39614
39615         Tests for module 'unistr/u8-strncpy'.
39616         * modules/unistr/u8-strncpy-tests: New file.
39617         * tests/unistr/test-u8-strncpy.c: New file.
39618         * tests/unistr/test-strncpy.h: New file.
39619
39620         Tests for module 'unistr/u32-stpcpy'.
39621         * modules/unistr/u32-stpcpy-tests: New file.
39622         * tests/unistr/test-u32-stpcpy.c: New file.
39623
39624         Tests for module 'unistr/u16-stpcpy'.
39625         * modules/unistr/u16-stpcpy-tests: New file.
39626         * tests/unistr/test-u16-stpcpy.c: New file.
39627
39628         Tests for module 'unistr/u8-stpcpy'.
39629         * modules/unistr/u8-stpcpy-tests: New file.
39630         * tests/unistr/test-u8-stpcpy.c: New file.
39631         * tests/unistr/test-stpcpy.h: New file.
39632
39633         Tests for module 'unistr/u32-strcpy'.
39634         * modules/unistr/u32-strcpy-tests: New file.
39635         * tests/unistr/test-u32-strcpy.c: New file.
39636
39637         Tests for module 'unistr/u16-strcpy'.
39638         * modules/unistr/u16-strcpy-tests: New file.
39639         * tests/unistr/test-u16-strcpy.c: New file.
39640
39641         Tests for module 'unistr/u8-strcpy'.
39642         * modules/unistr/u8-strcpy-tests: New file.
39643         * tests/unistr/test-u8-strcpy.c: New file.
39644         * tests/unistr/test-strcpy.h: New file.
39645
39646         Tests for module 'unistr/u32-strnlen'.
39647         * modules/unistr/u32-strnlen-tests: New file.
39648         * tests/unistr/test-u32-strnlen.c: New file.
39649
39650         Tests for module 'unistr/u16-strnlen'.
39651         * modules/unistr/u16-strnlen-tests: New file.
39652         * tests/unistr/test-u16-strnlen.c: New file.
39653
39654         Tests for module 'unistr/u8-strnlen'.
39655         * modules/unistr/u8-strnlen-tests: New file.
39656         * tests/unistr/test-u8-strnlen.c: New file.
39657         * tests/unistr/test-strnlen.h: New file.
39658
39659         Tests for module 'unistr/u32-strlen'.
39660         * modules/unistr/u32-strlen-tests: New file.
39661         * tests/unistr/test-u32-strlen.c: New file.
39662
39663         Tests for module 'unistr/u16-strlen'.
39664         * modules/unistr/u16-strlen-tests: New file.
39665         * tests/unistr/test-u16-strlen.c: New file.
39666
39667         Tests for module 'unistr/u8-strlen'.
39668         * modules/unistr/u8-strlen-tests: New file.
39669         * tests/unistr/test-u8-strlen.c: New file.
39670
39671         Tests for module 'unistr/u32-prev'.
39672         * modules/unistr/u32-prev-tests: New file.
39673         * tests/unistr/test-u32-prev.c: New file.
39674
39675         Tests for module 'unistr/u16-prev'.
39676         * modules/unistr/u16-prev-tests: New file.
39677         * tests/unistr/test-u16-prev.c: New file.
39678
39679         Tests for module 'unistr/u8-prev'.
39680         * modules/unistr/u8-prev-tests: New file.
39681         * tests/unistr/test-u8-prev.c: New file.
39682
39683         Tests for module 'unistr/u32-next'.
39684         * modules/unistr/u32-next-tests: New file.
39685         * tests/unistr/test-u32-next.c: New file.
39686
39687         Tests for module 'unistr/u16-next'.
39688         * modules/unistr/u16-next-tests: New file.
39689         * tests/unistr/test-u16-next.c: New file.
39690
39691         Tests for module 'unistr/u8-next'.
39692         * modules/unistr/u8-next-tests: New file.
39693         * tests/unistr/test-u8-next.c: New file.
39694
39695         Tests for module 'unistr/u32-strmbtouc'.
39696         * modules/unistr/u32-strmbtouc-tests: New file.
39697         * tests/unistr/test-u32-strmbtouc.c: New file.
39698
39699         Tests for module 'unistr/u16-strmbtouc'.
39700         * modules/unistr/u16-strmbtouc-tests: New file.
39701         * tests/unistr/test-u16-strmbtouc.c: New file.
39702
39703         Tests for module 'unistr/u8-strmbtouc'.
39704         * modules/unistr/u8-strmbtouc-tests: New file.
39705         * tests/unistr/test-u8-strmbtouc.c: New file.
39706
39707         Tests for module 'unistr/u32-strmblen'.
39708         * modules/unistr/u32-strmblen-tests: New file.
39709         * tests/unistr/test-u32-strmblen.c: New file.
39710
39711         Tests for module 'unistr/u16-strmblen'.
39712         * modules/unistr/u16-strmblen-tests: New file.
39713         * tests/unistr/test-u16-strmblen.c: New file.
39714
39715         Tests for module 'unistr/u8-strmblen'.
39716         * modules/unistr/u8-strmblen-tests: New file.
39717         * tests/unistr/test-u8-strmblen.c: New file.
39718
39719         Tests for module 'unistr/u32-cpy-alloc'.
39720         * modules/unistr/u32-cpy-alloc-tests: New file.
39721         * tests/unistr/test-u32-cpy-alloc.c: New file.
39722
39723         Tests for module 'unistr/u16-cpy-alloc'.
39724         * modules/unistr/u16-cpy-alloc-tests: New file.
39725         * tests/unistr/test-u16-cpy-alloc.c: New file.
39726
39727         Tests for module 'unistr/u8-cpy-alloc'.
39728         * modules/unistr/u8-cpy-alloc-tests: New file.
39729         * tests/unistr/test-u8-cpy-alloc.c: New file.
39730         * tests/unistr/test-cpy-alloc.h: New file.
39731
39732         Tests for module 'unistr/u32-mbsnlen'.
39733         * modules/unistr/u32-mbsnlen-tests: New file.
39734         * tests/unistr/test-u32-mbsnlen.c: New file.
39735
39736         Tests for module 'unistr/u16-mbsnlen'.
39737         * modules/unistr/u16-mbsnlen-tests: New file.
39738         * tests/unistr/test-u16-mbsnlen.c: New file.
39739
39740         Tests for module 'unistr/u8-mbsnlen'.
39741         * modules/unistr/u8-mbsnlen-tests: New file.
39742         * tests/unistr/test-u8-mbsnlen.c: New file.
39743
39744         Tests for module 'unistr/u32-chr'.
39745         * modules/unistr/u32-chr-tests: New file.
39746         * tests/unistr/test-u32-chr.c: New file.
39747
39748         Tests for module 'unistr/u16-chr'.
39749         * modules/unistr/u16-chr-tests: New file.
39750         * tests/unistr/test-u16-chr.c: New file.
39751
39752         Tests for module 'unistr/u8-chr'.
39753         * modules/unistr/u8-chr-tests: New file.
39754         * tests/unistr/test-u8-chr.c: New file.
39755         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39756
39757         Tests for module 'unistr/u32-cmp2'.
39758         * modules/unistr/u32-cmp2-tests: New file.
39759         * tests/unistr/test-u32-cmp2.c: New file.
39760
39761         Tests for module 'unistr/u16-cmp2'.
39762         * modules/unistr/u16-cmp2-tests: New file.
39763         * tests/unistr/test-u16-cmp2.c: New file.
39764
39765         Tests for module 'unistr/u8-cmp2'.
39766         * modules/unistr/u8-cmp2-tests: New file.
39767         * tests/unistr/test-u8-cmp2.c: New file.
39768         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39769
39770         Tests for module 'unistr/u32-cmp'.
39771         * modules/unistr/u32-cmp-tests: New file.
39772         * tests/unistr/test-u32-cmp.c: New file.
39773
39774         Tests for module 'unistr/u16-cmp'.
39775         * modules/unistr/u16-cmp-tests: New file.
39776         * tests/unistr/test-u16-cmp.c: New file.
39777
39778         Tests for module 'unistr/u8-cmp'.
39779         * modules/unistr/u8-cmp-tests: New file.
39780         * tests/unistr/test-u8-cmp.c: New file.
39781         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39782
39783         Tests for module 'unistr/u32-set'.
39784         * modules/unistr/u32-set-tests: New file.
39785         * tests/unistr/test-u32-set.c: New file.
39786
39787         Tests for module 'unistr/u16-set'.
39788         * modules/unistr/u16-set-tests: New file.
39789         * tests/unistr/test-u16-set.c: New file.
39790
39791         Tests for module 'unistr/u8-set'.
39792         * modules/unistr/u8-set-tests: New file.
39793         * tests/unistr/test-u8-set.c: New file.
39794         * tests/unistr/test-set.h: New file.
39795
39796         Tests for module 'unistr/u32-move'.
39797         * modules/unistr/u32-move-tests: New file.
39798         * tests/unistr/test-u32-move.c: New file.
39799
39800         Tests for module 'unistr/u16-move'.
39801         * modules/unistr/u16-move-tests: New file.
39802         * tests/unistr/test-u16-move.c: New file.
39803
39804         Tests for module 'unistr/u8-move'.
39805         * modules/unistr/u8-move-tests: New file.
39806         * tests/unistr/test-u8-move.c: New file.
39807         * tests/unistr/test-move.h: New file.
39808
39809         Tests for module 'unistr/u32-cpy'.
39810         * modules/unistr/u32-cpy-tests: New file.
39811         * tests/unistr/test-u32-cpy.c: New file.
39812
39813         Tests for module 'unistr/u16-cpy'.
39814         * modules/unistr/u16-cpy-tests: New file.
39815         * tests/unistr/test-u16-cpy.c: New file.
39816
39817         Tests for module 'unistr/u8-cpy'.
39818         * modules/unistr/u8-cpy-tests: New file.
39819         * tests/unistr/test-u8-cpy.c: New file.
39820         * tests/unistr/test-cpy.h: New file.
39821
39822 2010-01-09  Bruno Haible  <bruno@clisp.org>
39823
39824         Tests for module 'unistr/u32-uctomb'.
39825         * modules/unistr/u32-uctomb-tests: New file.
39826         * tests/unistr/test-u32-uctomb.c: New file.
39827
39828         Tests for module 'unistr/u16-uctomb'.
39829         * modules/unistr/u16-uctomb-tests: New file.
39830         * tests/unistr/test-u16-uctomb.c: New file.
39831
39832         Tests for module 'unistr/u8-uctomb'.
39833         * modules/unistr/u8-uctomb-tests: New file.
39834         * tests/unistr/test-u8-uctomb.c: New file.
39835
39836         Tests for module 'unistr/u32-mbtoucr'.
39837         * modules/unistr/u32-mbtoucr-tests: New file.
39838         * tests/unistr/test-u32-mbtoucr.c: New file.
39839
39840         Tests for module 'unistr/u16-mbtoucr'.
39841         * modules/unistr/u16-mbtoucr-tests: New file.
39842         * tests/unistr/test-u16-mbtoucr.c: New file.
39843
39844         Tests for module 'unistr/u8-mbtoucr'.
39845         * modules/unistr/u8-mbtoucr-tests: New file.
39846         * tests/unistr/test-u8-mbtoucr.c: New file.
39847
39848         Tests for module 'unistr/u32-mbtouc'.
39849         * modules/unistr/u32-mbtouc-tests: New file.
39850         * tests/unistr/test-u32-mbtouc.c: New file.
39851
39852         Tests for module 'unistr/u16-mbtouc'.
39853         * modules/unistr/u16-mbtouc-tests: New file.
39854         * tests/unistr/test-u16-mbtouc.c: New file.
39855
39856         Tests for module 'unistr/u8-mbtouc'.
39857         * modules/unistr/u8-mbtouc-tests: New file.
39858         * tests/unistr/test-u8-mbtouc.c: New file.
39859
39860         Tests for module 'unistr/u32-mbtouc-unsafe'.
39861         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39862         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39863         * tests/unistr/test-u32-mbtouc.h: New file.
39864
39865         Tests for module 'unistr/u16-mbtouc-unsafe'.
39866         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39867         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39868         * tests/unistr/test-u16-mbtouc.h: New file.
39869
39870         Tests for module 'unistr/u8-mbtouc-unsafe'.
39871         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39872         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39873         * tests/unistr/test-u8-mbtouc.h: New file.
39874
39875         Tests for module 'unistr/u32-mblen'.
39876         * modules/unistr/u32-mblen-tests: New file.
39877         * tests/unistr/test-u32-mblen.c: New file.
39878
39879         Tests for module 'unistr/u16-mblen'.
39880         * modules/unistr/u16-mblen-tests: New file.
39881         * tests/unistr/test-u16-mblen.c: New file.
39882
39883         Tests for module 'unistr/u8-mblen'.
39884         * modules/unistr/u8-mblen-tests: New file.
39885         * tests/unistr/test-u8-mblen.c: New file.
39886
39887         Tests for module 'unistr/u32-to-u16'.
39888         * modules/unistr/u32-to-u16-tests: New file.
39889         * tests/unistr/test-u32-to-u16.c: New file.
39890
39891         Tests for module 'unistr/u32-to-u8'.
39892         * modules/unistr/u32-to-u8-tests: New file.
39893         * tests/unistr/test-u32-to-u8.c: New file.
39894
39895         Tests for module 'unistr/u16-to-u32'.
39896         * modules/unistr/u16-to-u32-tests: New file.
39897         * tests/unistr/test-u16-to-u32.c: New file.
39898
39899         Tests for module 'unistr/u16-to-u8'.
39900         * modules/unistr/u16-to-u8-tests: New file.
39901         * tests/unistr/test-u16-to-u8.c: New file.
39902
39903         Tests for module 'unistr/u8-to-u32'.
39904         * modules/unistr/u8-to-u32-tests: New file.
39905         * tests/unistr/test-u8-to-u32.c: New file.
39906
39907         Tests for module 'unistr/u8-to-u16'.
39908         * modules/unistr/u8-to-u16-tests: New file.
39909         * tests/unistr/test-u8-to-u16.c: New file.
39910
39911         Tests for module 'unistr/u32-check'.
39912         * modules/unistr/u32-check-tests: New file.
39913         * tests/unistr/test-u32-check.c: New file.
39914
39915         Tests for module 'unistr/u16-check'.
39916         * modules/unistr/u16-check-tests: New file.
39917         * tests/unistr/test-u16-check.c: New file.
39918
39919         Tests for module 'unistr/u8-check'.
39920         * modules/unistr/u8-check-tests: New file.
39921         * tests/unistr/test-u8-check.c: New file.
39922
39923         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39924         (category_equals): New function.
39925         (main): Add more tests.
39926         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39927
39928         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39929
39930 2010-01-10  Bruno Haible  <bruno@clisp.org>
39931
39932         unistr/u*-strcoll: Try harder to distinguish different strings.
39933         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39934         compare s1 and s2 to see if they are different.
39935
39936 2010-01-10  Bruno Haible  <bruno@clisp.org>
39937
39938         unistr/u*-stpncpy: Fix the return value.
39939         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39940         description of the return value consistent with stpncpy in glibc.
39941         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39942         written non-NUL unit.
39943
39944 2010-01-10  Bruno Haible  <bruno@clisp.org>
39945
39946         unistr/u*-next: Add missing dependencies.
39947         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39948         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39949         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39950
39951 2010-01-10  Bruno Haible  <bruno@clisp.org>
39952
39953         unistr/u8-mbsnlen: Fix return value for incomplete character.
39954         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39955         u8_mblen.
39956         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39957         Remove unistr/u8-mblen.
39958         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39959         u16_mblen.
39960         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39961         Remove unistr/u16-mblen.
39962
39963 2010-01-10  Bruno Haible  <bruno@clisp.org>
39964
39965         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39966         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39967         Reported by Brian Gough <bjg@gnu.org> and
39968         Chris Clayton <chris2553@googlemail.com> via
39969         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39970
39971 2010-01-09  Bruno Haible  <bruno@clisp.org>
39972
39973         unistr/u16-to-u32: Reject invalid input.
39974         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39975         u16_mbtouc.
39976         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39977         Remove unistr/u16-mbtouc.
39978
39979         unistr/u16-to-u8: Reject invalid input.
39980         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39981         u16_mbtouc.
39982         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39983         Remove unistr/u16-mbtouc.
39984
39985         unistr/u8-to-u32: Reject invalid input.
39986         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39987         u8_mbtouc.
39988         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39989         Remove unistr/u8-mbtouc.
39990
39991         unistr/u8-to-u16: Reject invalid input.
39992         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39993         u8_mbtouc.
39994         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39995         Remove unistr/u8-mbtouc.
39996
39997 2010-01-09  Bruno Haible  <bruno@clisp.org>
39998
39999         Tests for module 'getlogin'.
40000         * modules/getlogin-tests: New file.
40001         * tests/test-getlogin.c: New file.
40002
40003         New module 'getlogin'.
40004         * lib/unistd.in.h (getlogin): New declaration.
40005         * lib/getlogin.c: New file.
40006         * m4/getlogin.m4: New file.
40007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
40008         HAVE_GETLOGIN.
40009         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
40010         HAVE_GETLOGIN.
40011         * modules/getlogin: New file.
40012         * doc/posix-functions/getlogin.texi: Mention the new module.
40013         Reported by John W. Eaton <jwe@gnu.org>.
40014
40015 2010-01-09  Bruno Haible  <bruno@clisp.org>
40016
40017         getlogin_r: Support for native Windows.
40018         * lib/getlogin_r.c: Include <windows.h>
40019         (getlogin_r): Implement for native Windows.
40020         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
40021         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
40022         via John W. Eaton <jwe@gnu.org>.
40023
40024 2010-01-09  Bruno Haible  <bruno@clisp.org>
40025
40026         getlogin_r: Small fixes.
40027         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
40028         succeeds.
40029         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
40030         before testing whether getlogin_r is declared. No need to set
40031         HAVE_DECL_GETLOGIN_R to 1.
40032         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
40033
40034 2010-01-09  Bruno Haible  <bruno@clisp.org>
40035
40036         * lib/unistd.in.h (getlogin_r): Add comment.
40037
40038 2010-01-09  Bruno Haible  <bruno@clisp.org>
40039
40040         Tests for module 'getlogin_r'.
40041         * modules/getlogin_r-tests: New file.
40042         * tests/test-getlogin_r.c: New file.
40043
40044 2010-01-09  Jim Meyering  <meyering@redhat.com>
40045
40046         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
40047         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
40048         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
40049
40050 2010-01-08  Simon Josefsson  <simon@josefsson.org>
40051
40052         * lib/dup2.c (rpl_dup2): Improve comment.
40053
40054 2010-01-08  Eric Blake  <ebb9@byu.net>
40055
40056         maint.mk: allow packages to add makefile @@ exceptions
40057         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
40058         (sc_makefile_check): Rename...
40059         (sc_makefile_at_at_check): ...to this, and use hook.
40060
40061         dup2: work around mingw bug
40062         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
40063         Reported by Simon Josefsson.
40064
40065 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
40066
40067         glob: Fix C++ compilation.
40068         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
40069         C++.
40070
40071 2010-01-07  Bruno Haible  <bruno@clisp.org>
40072
40073         Fix indentation of wctype.in.h, broken since 2007-01-06.
40074         * lib/wctype.in.h: Fix indentation of preprocessor directives.
40075
40076 2010-01-07  Bruno Haible  <bruno@clisp.org>
40077
40078         mbslen: Avoid collision with system function.
40079         * lib/string.in.h [MirBSD]: Include <wchar.h>.
40080         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
40081         * m4/mbslen.m4: New file.
40082         * modules/mbslen (Files): Add it.
40083         (configure.ac): Invoke gl_MBSLEN.
40084         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
40085         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
40086         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
40087         via Ian Beckwith <ianb@erislabs.net>.
40088
40089 2010-01-07  Bruno Haible  <bruno@clisp.org>
40090
40091         dirent: Document the last fix.
40092         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
40093
40094 2010-01-07  Bruno Haible  <bruno@clisp.org>
40095
40096         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
40097         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
40098         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
40099         va_list are defined.
40100         * doc/posix-headers/stdio.texi: Document the bug of missing types.
40101         Reported by Eric Blake.
40102
40103 2010-01-07  Bruno Haible  <bruno@clisp.org>
40104
40105         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
40106         * modules/xlist (Depends-on): Add 'list',
40107         * modules/xoset (Depends-on): Add 'oset'.
40108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40109
40110 2010-01-07  Bruno Haible  <bruno@clisp.org>
40111
40112         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
40113         * doc/posix-functions/strncasecmp.texi: Likewise.
40114
40115 2010-01-07  Bruno Haible  <bruno@clisp.org>
40116
40117         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
40118
40119 2010-01-07  John W. Eaton  <jwe@octave.org>
40120
40121         wctype: allow C++ use
40122         * lib/wctype.in.h: Add extern "C" block for C++.
40123
40124 2010-01-06  Eric Blake  <ebb9@byu.net>
40125
40126         maint.mk: detect incorrect GFDL usage
40127         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
40128
40129 2010-01-06  Jim Meyering  <meyering@redhat.com>
40130         and Eric Blake  <ebb9@byu.net>
40131
40132         maint.mk: ignore multi-line copyright in NEWS
40133         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
40134
40135 2010-01-06  Eric Blake  <ebb9@byu.net>
40136
40137         select: add missing dependency
40138         * modules/select-tests (Depends-on): Move sockets dependency...
40139         * modules/select (Depends-on): ...here.
40140         Reported by Ian Beckwith.
40141
40142         doc: regenerate INSTALL
40143         * doc/INSTALL: Reflect recent autoconf update.
40144         * doc/INSTALL.ISO: Likewise.
40145         * doc/INSTALL.UTF-8: Likewise.
40146
40147         pread: fix compilation on glibc
40148         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
40149         Reported by Ralf Wildenhues.
40150
40151         dirent: fix test failure
40152         * lib/dirent.in.h (includes): Guarantee ino_t.
40153         Reported by Ralf Wildenhues.
40154
40155 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
40156
40157         linkat, renameat: avoid bad free
40158         * lib/at-func2.c (at_func2): Fix typo.
40159         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
40160
40161 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40162
40163         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
40164         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
40165         to avoid failure of symlink test later.
40166
40167 2010-01-06  Eric Blake  <ebb9@byu.net>
40168
40169         stdio, unistd: guarantee ssize_t
40170         * lib/unistd.in.h (includes): Ensure that types required by POSIX
40171         2008 are exposed when needed.
40172         * lib/stdio.in.h (includes): Likewise.
40173         Reported by Ralf Wildenhues.
40174
40175 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
40176
40177         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
40178         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
40179         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
40180
40181 2010-01-06  Jim Meyering  <meyering@redhat.com>
40182
40183         readtokens: this module *does* require xalloc.h
40184         It uses only functions that were omitted by the old syntax-check rule.
40185         * lib/readtokens.c: Include "xalloc.h" once again.
40186         * modules/readtokens (Depends-on): Add xalloc.
40187         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
40188
40189 2010-01-05  Eric Blake  <ebb9@byu.net>
40190
40191         maint: support 'make announcement' from a VPATH build
40192         * top/maint.mk (announcement): Look for correct NEWS file.
40193
40194 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
40195
40196         utimens (fdutimens): ignore a negative FD, per contract
40197         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
40198         when we have a valid file descriptor.  Otherwise, using a brand
40199         new glibc (with just-patched futimens that now fails with EBADF)
40200         would cause this function to fail with ENOSYS.
40201         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
40202         See also http://bugzilla.redhat.com/552320.
40203
40204 2010-01-05  Eric Blake  <ebb9@byu.net>
40205
40206         strcase: document what it provides
40207         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
40208         gnulib module.
40209         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
40210         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
40211
40212 2010-01-05  Jim Meyering  <meyering@redhat.com>
40213
40214         maint: remove useless inclusions of "xalloc.h"
40215         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
40216         * lib/readtokens.c: Likewise.
40217         * lib/same.c: Likewise.
40218         * modules/getloadavg (Depends-on): Remove xalloc.
40219         * modules/readtokens: Likewise.
40220         * modules/same: Likewise.
40221
40222         maint.mk: include 4 more function names in alloca.h-checking regexp
40223         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
40224         regexp.  Before, we would give a false-positive (saying alloca.h
40225         is included unnecessarily) when the only uses involved omitted symbols.
40226
40227         xalloc.h: use consistent formatting
40228         * lib/xalloc.h: Move declarations to start in the first column.
40229
40230 2010-01-05  Eric Blake  <ebb9@byu.net>
40231
40232         mkdir: avoid xalloc
40233         * lib/mkdir.c (includes): Drop unused header.
40234         Reported by John W. Eaton.
40235
40236 2010-01-04  Jim Meyering  <meyering@redhat.com>
40237
40238         nl_langinfo: avoid configure-time syntax error
40239         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
40240         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
40241         the empty string.  Don't let that provoke a shell syntax error.
40242
40243         regcomp, regexec, fnmatch: avoid array bounds read error
40244         * lib/regcomp.c (build_equiv_class): From glibc:
40245         Use only the low 24 bits of a findidx return value as an index
40246         into the weights array.  Patch by Ulrich Drepper:
40247         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
40248         * lib/regexec.c (check_node_accept_bytes): Likewise.
40249         * lib/fnmatch_loop.c (FCT): Likewise.
40250
40251         regcomp: skip collseq lookup when there are no rules
40252         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
40253         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
40254
40255         regcomp: recognize ill-formed { } expressions
40256         * lib/regcomp.c (parse_dup_op): From glibc:
40257         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
40258
40259         regcomp: fix typo in comment
40260         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
40261         s/satisfy/satisfies/.
40262
40263         regcomp: sync from glibc: remove dead store
40264         * lib/regcomp.c (duplicate_node_closure): Remove useless
40265         search_duplicated_node call and dead store.
40266
40267         regcomp: sync from glibc; always use nl_langinfo
40268         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
40269         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
40270         * modules/regex (Depends-on): Add nl_langinfo.
40271
40272 2010-01-04  Eric Blake  <ebb9@byu.net>
40273
40274         fdopendir: fix configure test
40275         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
40276
40277 2010-01-01  Bruno Haible  <bruno@clisp.org>
40278
40279         wchar: Remove unused configure check.
40280         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
40281
40282 2010-01-01  Eric Blake  <ebb9@byu.net>
40283
40284         headers: make check of system header explicit
40285         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
40286         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
40287         ourselves.
40288         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40289         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40290         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40291         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
40292         internals.
40293         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
40294         missing.
40295         Suggested by Bruno Haible.
40296
40297 2010-01-01  Jim Meyering  <meyering@redhat.com>
40298
40299         ChangeLog: tweak to eliminate unnecessary copyright line
40300         * ChangeLog: Remove a copyright line that was mistakenly updated
40301         by today's update-copyright run.  Reported by Eric Blake.
40302
40303         test-update-copyright: don't let envvar setting cause test failure
40304         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40305
40306 2010-01-01  Bruno Haible  <bruno@clisp.org>
40307
40308         localename: Avoid gcc warning.
40309         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
40310         function if it is not used.
40311
40312 2010-01-01  Jim Meyering  <meyering@redhat.com>
40313
40314         update nearly all FSF copyright year lists to include 2010
40315         Use the same procedure as for 2009, outlined in
40316         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
40317
40318         version-etc: set COPYRIGHT_YEAR to 2010
40319         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
40320
40321 2009-12-31  Eric Blake  <ebb9@byu.net>
40322
40323         doc: correct availability of cygwin 1.5.x getopt
40324         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
40325         variables.
40326         * doc/posix-functions/opterr.texi (opterr): Likewise.
40327         * doc/posix-functions/optind.texi (optind): Likewise.
40328         * doc/posix-functions/optopt.texi (optopt): Likewise.
40329         * doc/posix-functions/tzname.texi (tzname): Likewise.
40330
40331         openat: update maintainer
40332         * modules/openat (Maintainer): Add myself.
40333
40334         utimens: avoid shadowing warning
40335         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
40336         buffers into one, to avoid shadowing, as well as avoiding a
40337         redundant stat.
40338         Reported by Jim Meyering.
40339
40340         test-dup2: avoid compiler warning
40341         * tests/test-dup2.c (is_inheritable): Only define if used.
40342
40343 2010-01-01  Bruno Haible  <bruno@clisp.org>
40344
40345         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
40346         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
40347         defined, use wctomb instead of wcrtomb.
40348
40349 2010-01-01  Bruno Haible  <bruno@clisp.org>
40350
40351         iconv: Reject native Solaris iconv.
40352         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
40353         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
40354
40355 2009-12-31  Bruno Haible  <bruno@clisp.org>
40356
40357         * tests/test-signal.c (main): Remove test of 'SIG'.
40358
40359 2009-12-31  Bruno Haible  <bruno@clisp.org>
40360
40361         spawn: Fix incomplete fix.
40362         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40363         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40364         warnings for GNULIB_POSIXCHECK again.
40365         Reported by Eric Blake.
40366
40367 2009-12-31  Bruno Haible  <bruno@clisp.org>
40368
40369         Avoid namespace pollution on glibc systems.
40370         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
40371         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
40372         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
40373         glibc systems.
40374
40375 2009-12-31  Bruno Haible  <bruno@clisp.org>
40376
40377         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
40378         (gl_REPLACE_WCHAR_H): Turn into a no-op.
40379         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
40380         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40381         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40382         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40383         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40384
40385 2009-12-31  Bruno Haible  <bruno@clisp.org>
40386
40387         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
40388         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
40389         afterwards.
40390
40391 2009-12-31  Bruno Haible  <bruno@clisp.org>
40392
40393         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
40394         SYS_UTSNAME_H.
40395
40396 2009-12-31  Bruno Haible  <bruno@clisp.org>
40397
40398         spawn: Fix misapplied patch.
40399         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40400         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40401         warnings for GNULIB_POSIXCHECK.
40402
40403 2009-12-31  Bruno Haible  <bruno@clisp.org>
40404
40405         times: Update after sys_times changed.
40406         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
40407         * modules/times (Files): Add it.
40408         (configure.ac): Invoke gl_FUNC_TIMES.
40409
40410 2009-12-31  Bruno Haible  <bruno@clisp.org>
40411
40412         Use AC_C_INLINE where necessary.
40413         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
40414         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40415         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40416         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40417         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40418         * m4/mbiter.m4 (gl_MBITER): Likewise.
40419         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40420         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40421         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
40422         * modules/u64 (configure.ac): Likewise.
40423
40424 2009-12-31  Bruno Haible  <bruno@clisp.org>
40425
40426         Use AC_C_INLINE instead of module 'inline' where possible.
40427         * modules/inline (Description): Clarify purpose.
40428         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
40429         * modules/count-one-bits (Depends-on): Remove inline.
40430         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
40431         * modules/openat (Depends-on): Remove inline.
40432         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
40433         instead of depending on module 'inline'.
40434         * modules/filevercmp (Depends-on, configure.ac): Likewise.
40435         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
40436         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
40437         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
40438         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
40439         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
40440         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
40441         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
40442         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
40443         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
40444         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
40445         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
40446         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
40447         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
40448         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
40449         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
40450         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
40451         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
40452         Likewise.
40453         * modules/unictype/property-ascii-hex-digit (Depends-on,
40454         configure.ac): Likewise.
40455         * modules/unictype/property-bidi-arabic-digit (Depends-on,
40456         configure.ac): Likewise.
40457         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
40458         configure.ac): Likewise.
40459         * modules/unictype/property-bidi-block-separator (Depends-on,
40460         configure.ac): Likewise.
40461         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
40462         configure.ac): Likewise.
40463         * modules/unictype/property-bidi-common-separator (Depends-on,
40464         configure.ac): Likewise.
40465         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
40466         Likewise.
40467         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
40468         configure.ac): Likewise.
40469         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
40470         configure.ac): Likewise.
40471         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
40472         configure.ac): Likewise.
40473         * modules/unictype/property-bidi-european-digit (Depends-on,
40474         configure.ac): Likewise.
40475         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
40476         configure.ac): Likewise.
40477         * modules/unictype/property-bidi-left-to-right (Depends-on,
40478         configure.ac): Likewise.
40479         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
40480         configure.ac): Likewise.
40481         * modules/unictype/property-bidi-other-neutral (Depends-on,
40482         configure.ac): Likewise.
40483         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
40484         Likewise.
40485         * modules/unictype/property-bidi-segment-separator (Depends-on,
40486         configure.ac): Likewise.
40487         * modules/unictype/property-bidi-whitespace (Depends-on,
40488         configure.ac): Likewise.
40489         * modules/unictype/property-combining (Depends-on, configure.ac):
40490         Likewise.
40491         * modules/unictype/property-composite (Depends-on, configure.ac):
40492         Likewise.
40493         * modules/unictype/property-currency-symbol (Depends-on,
40494         configure.ac): Likewise.
40495         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
40496         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
40497         Likewise.
40498         * modules/unictype/property-default-ignorable-code-point (Depends-on,
40499         configure.ac): Likewise.
40500         * modules/unictype/property-deprecated (Depends-on, configure.ac):
40501         Likewise.
40502         * modules/unictype/property-diacritic (Depends-on, configure.ac):
40503         Likewise.
40504         * modules/unictype/property-extender (Depends-on, configure.ac):
40505         Likewise.
40506         * modules/unictype/property-format-control (Depends-on, configure.ac):
40507         Likewise.
40508         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40509         Likewise.
40510         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40511         Likewise.
40512         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40513         Likewise.
40514         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40515         Likewise.
40516         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40517         Likewise.
40518         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40519         Likewise.
40520         * modules/unictype/property-id-start (Depends-on, configure.ac):
40521         Likewise.
40522         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40523         Likewise.
40524         * modules/unictype/property-ids-binary-operator (Depends-on,
40525         configure.ac): Likewise.
40526         * modules/unictype/property-ids-trinary-operator (Depends-on,
40527         configure.ac): Likewise.
40528         * modules/unictype/property-ignorable-control (Depends-on,
40529         configure.ac): Likewise.
40530         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40531         Likewise.
40532         * modules/unictype/property-join-control (Depends-on, configure.ac):
40533         Likewise.
40534         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40535         Likewise.
40536         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40537         Likewise.
40538         * modules/unictype/property-logical-order-exception (Depends-on,
40539         configure.ac): Likewise.
40540         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40541         Likewise.
40542         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40543         * modules/unictype/property-non-break (Depends-on, configure.ac):
40544         Likewise.
40545         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40546         Likewise.
40547         * modules/unictype/property-numeric (Depends-on, configure.ac):
40548         Likewise.
40549         * modules/unictype/property-other-alphabetic (Depends-on,
40550         configure.ac): Likewise.
40551         * modules/unictype/property-other-default-ignorable-code-point
40552         (Depends-on, configure.ac): Likewise.
40553         * modules/unictype/property-other-grapheme-extend (Depends-on,
40554         configure.ac): Likewise.
40555         * modules/unictype/property-other-id-continue (Depends-on,
40556         configure.ac): Likewise.
40557         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40558         Likewise.
40559         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40560         Likewise.
40561         * modules/unictype/property-other-math (Depends-on, configure.ac):
40562         Likewise.
40563         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40564         Likewise.
40565         * modules/unictype/property-paired-punctuation (Depends-on,
40566         configure.ac): Likewise.
40567         * modules/unictype/property-paragraph-separator (Depends-on,
40568         configure.ac): Likewise.
40569         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40570         Likewise.
40571         * modules/unictype/property-pattern-white-space (Depends-on,
40572         configure.ac): Likewise.
40573         * modules/unictype/property-private-use (Depends-on, configure.ac):
40574         Likewise.
40575         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40576         Likewise.
40577         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40578         Likewise.
40579         * modules/unictype/property-radical (Depends-on, configure.ac):
40580         Likewise.
40581         * modules/unictype/property-sentence-terminal (Depends-on,
40582         configure.ac): Likewise.
40583         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40584         Likewise.
40585         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40586         * modules/unictype/property-terminal-punctuation (Depends-on,
40587         configure.ac): Likewise.
40588         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40589         Likewise.
40590         * modules/unictype/property-unassigned-code-value (Depends-on,
40591         configure.ac): Likewise.
40592         * modules/unictype/property-unified-ideograph (Depends-on,
40593         configure.ac): Likewise.
40594         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40595         Likewise.
40596         * modules/unictype/property-variation-selector (Depends-on,
40597         configure.ac): Likewise.
40598         * modules/unictype/property-white-space (Depends-on, configure.ac):
40599         Likewise.
40600         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40601         Likewise.
40602         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40603         Likewise.
40604         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40605         Likewise.
40606         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40607         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40608         Likewise.
40609
40610 2009-12-31  Bruno Haible  <bruno@clisp.org>
40611
40612         Remove unnecessary AC_C_INLINE invocation.
40613         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40614         since 2009-08-21.
40615
40616 2009-12-31  Jim Meyering  <meyering@redhat.com>
40617
40618         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40619         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40620         With this change, we can all remove the gpg_key_ID = ... definition
40621         from our respective cfg.mk files.
40622
40623         maint.mk: create announcement template in ~/, not in /tmp
40624         * top/maint.mk (emit_upload_commands): Adjust.
40625         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40626         Remove temporary file, .ci-msg.
40627
40628 2009-12-31  Eric Blake  <ebb9@byu.net>
40629
40630         link-warning: always build headers with link warnings
40631         * modules/arpa_inet (Makefile.am): Always build replacement
40632         header.
40633         * modules/ctype (Makefile.am): Likewise.
40634         * modules/dirent (Makefile.am): Likewise.
40635         * modules/inttypes (Makefile.am): Likewise.
40636         * modules/langinfo (Makefile.am): Likewise.
40637         * modules/locale (Makefile.am): Likewise.
40638         * modules/spawn (Makefile.am): Likewise.
40639         * modules/sys_file (Makefile.am): Likewise.
40640         * modules/sys_ioctl (Makefile.am): Likewise.
40641         * modules/sys_select (Makefile.am): Likewise.
40642         * modules/sys_socket (Makefile.am): Likewise.
40643         * modules/sys_times (Makefile.am): Likewise.
40644         * modules/sys_utsname (Makefile.am): Likewise.
40645         * modules/sys_wait (Makefile.am): Likewise.
40646         * modules/wchar (Makefile.am): Likewise.
40647         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40648         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40649         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40650         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40651         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40652         Likewise.
40653         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40654         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40655         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40656         Likewise.
40657         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40658         Likewise.
40659         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40660         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40661         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40662         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40663         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40664         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40665         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40666         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40667         (gl_WCHAR_H_DEFAULTS): Likewise.
40668
40669 2009-12-31  Eric Blake  <ebb9@byu.net>
40670
40671         signal, spawn: use link warnings
40672         * lib/signal.in.h (sigset_t): Make unconditional.
40673         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40674         (sigpending, sigprocmask, sigaction): Add link warnings.
40675         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40676         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40677         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40678         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40679         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40680         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40681         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40682         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40683         (posix_spawn_file_actions_destroy)
40684         (posix_spawn_file_actions_addopen)
40685         (posix_spawn_file_actions_addclose)
40686         (posix_spawn_file_actions_adddup2): Likewise.
40687         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40688         * tests/test-signal.c (main): Enhance test.
40689
40690         spawn: improve wrapper support
40691         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40692         (gl_SPAWN_H_DEFAULTS): New defaults.
40693         * modules/spawn (Makefile.am): Substitute them.
40694         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40695         Only declare if missing or broken.
40696
40697         sys_times, sys_utsname: use include_next
40698         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40699         header.
40700         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40701         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40702         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40703         * modules/sys_times (Depends-on): Add include_next.
40704         (Makefile.am): Substitute additional values.
40705         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40706         * lib/sys_times.in.h (includes): Include native header, if
40707         available.
40708         * lib/sys_utsname.in.h (includes): Likewise.
40709         * tests/test-sys_times.c (main): Enhance test.
40710
40711         fdutimensat: revert prior patch
40712         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40713         utimens.h.
40714         Reported by Bruno Haible.
40715
40716 2009-12-30  Eric Blake  <ebb9@byu.net>
40717
40718         sys_wait: drop link-warning dependency
40719         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40720         link-warning efforts.
40721         * lib/sys_wait.in.h: Likewise.
40722
40723         fdutimensat: remove bogus dependency
40724         * modules/fdutimensat (Depends-on): Drop inline.
40725
40726         unistd: fix typo
40727         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40728
40729 2009-12-30  Bruno Haible  <bruno@clisp.org>
40730
40731         Fix compilation error with Solaris cc.
40732         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40733         * lib/unicase/u16-is-invariant.c: Likewise.
40734         * lib/unicase/u32-is-invariant.c: Likewise.
40735         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40736
40737 2009-12-30  Bruno Haible  <bruno@clisp.org>
40738
40739         Fix test crash.
40740         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40741         locales.
40742         Reported by Simon Josefsson <simon@josefsson.org>.
40743
40744 2009-12-30  Bruno Haible  <bruno@clisp.org>
40745
40746         Fix compilation error on most platforms.
40747         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40748         Reported by Simon Josefsson <simon@josefsson.org>
40749         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40750
40751 2009-12-30  Eric Blake  <ebb9@byu.net>
40752
40753         futimens, utimensat: work around ntfs-3g bug
40754         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40755         a ctime bug is present, and expand workaround to cover ntfs-3g.
40756         * lib/utimens.c (fdutimens, lutimens): Likewise.
40757         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40758         (validate_timespec): Adjust return value.
40759         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40760         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40761         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40762
40763 2009-12-29  Eric Blake  <ebb9@byu.net>
40764
40765         link-warning: make usage consistent
40766         * modules/ctype (Depends-on): Add link-warning.
40767         (Makefile.am): Update rules accordingly.
40768         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40769         * modules/locale (Depends-on, Makefile.am): Likewise.
40770         * modules/sys_file (Makefile.am): Likewise.
40771         * modules/getopt-posix (Makefile.am): Delete unused link warning
40772         efforts.
40773         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40774         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40775         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40776         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40777
40778         stdio: remove unused variables
40779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40780         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40781         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40782
40783         tests: test more substitute headers
40784         * modules/ctype-tests: New file.
40785         * modules/dirent-tests: Likewise.
40786         * modules/spawn-tests: Likewise.
40787         * modules/sys_file-tests: Likewise.
40788         * modules/sys_ioctl-tests: Likewise.
40789         * modules/sys_wait-tests: Likewise.
40790         * tests/test-ctype.c: Likewise.
40791         * tests/test-dirent.c: Likewise.
40792         * tests/test-spawn.c: Likewise.
40793         * tests/test-sys_file.c: Likewise.
40794         * tests/test-sys_ioctl.c: Likewise.
40795         * tests/test-sys_wait.c: Likewise.
40796         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40797         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40798         whether or not flock is in use.
40799
40800         tests: remove License section from module
40801         * modules/arpa_inet-tests: Remove unneeded section.
40802         * modules/byteswap-tests: Likewise.
40803         * modules/ceilf-tests: Likewise.
40804         * modules/ceill-tests: Likewise.
40805         * modules/crypto/des-tests: Likewise.
40806         * modules/crypto/gc-arcfour-tests: Likewise.
40807         * modules/crypto/gc-arctwo-tests: Likewise.
40808         * modules/crypto/gc-des-tests: Likewise.
40809         * modules/crypto/gc-hmac-md5-tests: Likewise.
40810         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40811         * modules/crypto/gc-md2-tests: Likewise.
40812         * modules/crypto/gc-md4-tests: Likewise.
40813         * modules/crypto/gc-md5-tests: Likewise.
40814         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40815         * modules/crypto/gc-rijndael-tests: Likewise.
40816         * modules/crypto/gc-sha1-tests: Likewise.
40817         * modules/crypto/gc-tests: Likewise.
40818         * modules/crypto/md2-tests: Likewise.
40819         * modules/crypto/md4-tests: Likewise.
40820         * modules/fcntl-h-tests: Likewise.
40821         * modules/floorf-tests: Likewise.
40822         * modules/floorl-tests: Likewise.
40823         * modules/frexp-nolibm-tests: Likewise.
40824         * modules/frexp-tests: Likewise.
40825         * modules/frexpl-nolibm-tests: Likewise.
40826         * modules/frexpl-tests: Likewise.
40827         * modules/getaddrinfo-tests: Likewise.
40828         * modules/inttypes-tests: Likewise.
40829         * modules/isfinite-tests: Likewise.
40830         * modules/isinf-tests: Likewise.
40831         * modules/ldexpl-tests: Likewise.
40832         * modules/locale-tests: Likewise.
40833         * modules/math-tests: Likewise.
40834         * modules/netdb-tests: Likewise.
40835         * modules/netinet_in-tests: Likewise.
40836         * modules/printf-frexp-tests: Likewise.
40837         * modules/printf-frexpl-tests: Likewise.
40838         * modules/priv-set-tests: Likewise.
40839         * modules/random_r-tests: Likewise.
40840         * modules/round-tests: Likewise.
40841         * modules/roundf-tests: Likewise.
40842         * modules/roundl-tests: Likewise.
40843         * modules/search-tests: Likewise.
40844         * modules/select-tests: Likewise.
40845         * modules/signal-tests: Likewise.
40846         * modules/stdbool-tests: Likewise.
40847         * modules/stddef-tests: Likewise.
40848         * modules/stdint-tests: Likewise.
40849         * modules/stdio-tests: Likewise.
40850         * modules/stdlib-tests: Likewise.
40851         * modules/string-tests: Likewise.
40852         * modules/strings-tests: Likewise.
40853         * modules/sys_select-tests: Likewise.
40854         * modules/sys_socket-tests: Likewise.
40855         * modules/sys_stat-tests: Likewise.
40856         * modules/sys_time-tests: Likewise.
40857         * modules/sys_utsname-tests: Likewise.
40858         * modules/sysexits-tests: Likewise.
40859         * modules/time-tests: Likewise.
40860         * modules/trunc-tests: Likewise.
40861         * modules/truncf-tests: Likewise.
40862         * modules/truncl-tests: Likewise.
40863         * modules/tsearch-tests: Likewise.
40864         * modules/unistd-tests: Likewise.
40865         * modules/wchar-tests: Likewise.
40866         * modules/wctype-tests: Likewise.
40867
40868         tests: fix license on several tests
40869         * tests/test-des.c: Update to GPLv3+.
40870         * tests/test-flock.c: Likewise.
40871         * tests/test-fsync.c: Likewise.
40872         * tests/test-futimens.h: Likewise.
40873         * tests/test-gc-arcfour.c: Likewise.
40874         * tests/test-gc-arctwo.c: Likewise.
40875         * tests/test-gc-des.c: Likewise.
40876         * tests/test-gc-hmac-md5.c: Likewise.
40877         * tests/test-gc-hmac-sha1.c: Likewise.
40878         * tests/test-gc-md2.c: Likewise.
40879         * tests/test-gc-md4.c: Likewise.
40880         * tests/test-gc-md5.c: Likewise.
40881         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40882         * tests/test-gc-rijndael.c: Likewise.
40883         * tests/test-gc-sha1.c: Likewise.
40884         * tests/test-gc.c: Likewise.
40885         * tests/test-getcwd.c: Likewise.
40886         * tests/test-link.c: Likewise.
40887         * tests/test-link.h: Likewise.
40888         * tests/test-lutimens.h: Likewise.
40889         * tests/test-md2.c: Likewise.
40890         * tests/test-md4.c: Likewise.
40891         * tests/test-mkdir.h: Likewise.
40892         * tests/test-rename.c: Likewise.
40893         * tests/test-rename.h: Likewise.
40894         * tests/test-safe-alloc.c: Likewise.
40895         * tests/test-utimens-common.h: Likewise.
40896         * tests/test-utimens.h: Likewise.
40897
40898         maint: sync license texts
40899         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40900         * doc/gpl-3.0.texi: Revert copyright year update.
40901         * doc/lgpl-3.0.texi: Likewise.
40902
40903 2009-12-29  Jim Meyering  <meyering@redhat.com>
40904
40905         update nearly all FSF copyright year lists to include 2009
40906         The files named by the following are exempted:
40907             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40908               test -f "$dst" && { echo "$dst"; continue; }
40909               test -d "$dst" || continue
40910               echo "$dst"/$(basename "$src")
40911             done > exempt
40912             git ls-files tests/unictype >> exempt
40913         In the remaining files, convert to all-interval notation if
40914         - there is already at least one year interval like 2000-2003
40915         - the file is maintained by me
40916         - the file is in lib/uni*/, where that style already prevails
40917         Otherwise, use update-copyright's default.
40918
40919 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40920         and Eric Blake  <ebb9@byu.net>
40921
40922         tests: don't require debug system() to pass
40923         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40924         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40925         * tests/test-unlink.h (test_unlink_func): Likewise.
40926         * tests/test-fstatat.c (main): ...into callers.
40927         * tests/test-lstat.c (main): Likewise.
40928         * tests/test-rmdir.c (main): Likewise.
40929         * tests/test-unlink.c (main): Likewise.
40930         * tests/test-unlinkat.c (main): Likewise.
40931         * tests/test-areadlink-with-size.c (main): Don't require a
40932         debug-only system call to pass, aiding cross-testing to mingw.
40933         * tests/test-areadlink.c (main): Likewise.
40934         * tests/test-areadlinkat-with-size.c (main): Likewise.
40935         * tests/test-areadlinkat.c (main): Likewise.
40936         * tests/test-canonicalize-lgpl.c (main): Likewise.
40937         * tests/test-canonicalize.c (main): Likewise.
40938         * tests/test-chown.c (main): Likewise.
40939         * tests/test-fchownat.c (main): Likewise.
40940         * tests/test-lchown.c (main): Likewise.
40941         * tests/test-fdutimensat.c (main): Likewise.
40942         * tests/test-futimens.c (main): Likewise.
40943         * tests/test-link.c (main): Likewise.
40944         * tests/test-linkat.c (main): Likewise.
40945         * tests/test-mkdir.c (main): Likewise.
40946         * tests/test-mkdirat.c (main): Likewise.
40947         * tests/test-mkfifo.c (main): Likewise.
40948         * tests/test-mkfifoat.c (main): Likewise.
40949         * tests/test-mknod.c (main): Likewise.
40950         * tests/test-readlink.c (main): Likewise.
40951         * tests/test-remove.c (main): Likewise.
40952         * tests/test-rename.c (main): Likewise.
40953         * tests/test-renameat.c (main): Likewise.
40954         * tests/test-symlink.c (main): Likewise.
40955         * tests/test-symlinkat.c (main): Likewise.
40956         * tests/test-utimens.c (main): Likewise.
40957         * tests/test-utimensat.c (main): Likewise.
40958
40959 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40960
40961         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40962         on $(UNUSED_PARAMETER_H) to avoid build failure.
40963
40964 2009-12-28  Jim Meyering  <meyering@redhat.com>
40965
40966         update-copyright: you may specify a max. line length other than 72
40967         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40968
40969         maint: use consistent FSF copyright line syntax
40970         * lib/posixtm.c: Add missing comma in FSF copyright line.
40971         * lib/posixtm.h: Likewise.
40972         * lib/getugroups.c: Add missing ", Inc.".
40973
40974         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40975         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40976         FSF copyright line.  Remove trailing blanks.
40977
40978 2009-12-28  Eric Blake  <ebb9@byu.net>
40979
40980         test-dup2: reduce dependencies
40981         * modules/cloexec (Configure.ac): Set witness.
40982         * modules/dup2-tests (Depends-on): Drop cloexec.
40983         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40984         not present.
40985         Suggested by Bruno Haible.
40986
40987 2009-12-26  Bruno Haible  <bruno@clisp.org>
40988
40989         Remove an unneeded dependency.
40990         * modules/fseterr (Depends-on): Remove dup2.
40991
40992 2009-12-26  Eric Blake  <ebb9@byu.net>
40993
40994         tests: use macros.h in more places
40995         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40996         (ASSERT_STREAM): Provide default of stderr.
40997         * tests/test-dirent-safer.c: Include macros.h, using alternate
40998         stream for assertions.
40999         * tests/test-dup-safer.c: Likewise.
41000         * tests/test-freopen-safer.c: Likewise.
41001         * tests/test-getopt.c: Likewise.
41002         * tests/test-openat-safer.c: Likewise.
41003         * tests/test-pipe.c: Likewise.
41004         * tests/test-popen-safer.c: Likewise.
41005         * modules/dirent-safer-tests (Files): Include macros.h.
41006         * modules/unistd-safer-tests (Files): Likewise.
41007         * modules/freopen-safer-tests (Files): Likewise.
41008         * modules/getopt-posix-tests (Files): Likewise.
41009         * modules/openat-safer-tests (Files): Likewise.
41010         * modules/pipe-tests (Files): Likewise.
41011
41012 2009-12-26  Bruno Haible  <bruno@clisp.org>
41013
41014         javacomp: Portability fix.
41015         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
41016         that it also works on Solaris.
41017
41018 2009-12-26  Bruno Haible  <bruno@clisp.org>
41019
41020         localename: Fix storage allocation of gl_locale_name_thread's result.
41021         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
41022         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
41023         all platforms that have 'uselocale'.
41024         (gl_locale_name_thread_unsafe): New function, extracted from
41025         gl_locale_name_thread.
41026         (gl_locale_name_thread): Call struniq on all platforms that have
41027         'uselocale'.
41028         * tests/test-localename.c (test_locale_name_thread): Check that the
41029         resulting strings are permanently allocated.
41030         * modules/localename-tests (Depends-on): Add strdup.
41031
41032 2009-12-26  Bruno Haible  <bruno@clisp.org>
41033
41034         * tests/test-localename.c (categories): Fill in the strings.
41035
41036 2009-12-26  Jim Meyering  <meyering@redhat.com>
41037
41038         isdir: complete the removal of m4/isdir.m4
41039         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
41040
41041         isdir: clean up, since at least grep still uses it
41042         * lib/isdir.c: Include "isdir.h".
41043         (S_ISDIR): Remove now-unneeded definition.
41044         * modules/isdir (Files): Add lib/isdir.h.
41045         * lib/isdir.h: New file, with declaration.
41046         * m4/isdir.m4: Remove file -- unneeded.
41047
41048 2009-12-25  Bruno Haible  <bruno@clisp.org>
41049
41050         selinux-h: Make generated .h files standalone.
41051         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
41052         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
41053         * lib/se-selinux.in.h: Likewise.
41054         * modules/selinux-h (Depends-on): Add unused-parameter.
41055         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
41056         selinux/selinux.h and selinux/context.h.
41057         Suggested by Eric Blake.
41058
41059 2009-12-25  Bruno Haible  <bruno@clisp.org>
41060
41061         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
41062         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
41063         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
41064         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
41065         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
41066
41067 2009-12-24  Bruno Haible  <bruno@clisp.org>
41068
41069         openat: Fix warning.
41070         * lib/openat-proc.c: Include <unistd.h>.
41071
41072 2009-12-24  Bruno Haible  <bruno@clisp.org>
41073
41074         New module 'unused-parameter'.
41075         * build-aux/unused-parameter.h: New file, extracted from earlier
41076         gnulib-common.m4.
41077         * modules/unused-parameter: New file.
41078         * lib/unistr.h: Include unused-parameter.h.
41079         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
41080         _GL_UNUSED.
41081         * modules/unistr/base (Depends-on): Add unused-parameter.
41082
41083 2009-12-24  Bruno Haible  <bruno@clisp.org>
41084
41085         Add missing dependencies to 'extensions' module.
41086         * m4/extensions.m4: Add comment.
41087         * modules/accept4 (Depends-on): Add extensions.
41088         * modules/dup3 (Depends-on): Likewise.
41089         * modules/fcntl (Depends-on): Likewise.
41090         * modules/futimens (Depends-on): Likewise.
41091         * modules/mknod (Depends-on): Likewise.
41092         * modules/pipe2 (Depends-on): Likewise.
41093         * modules/stat-time (Depends-on): Likewise.
41094         * modules/strcasestr-simple (Depends-on): Likewise.
41095         * modules/strsignal (Depends-on): Likewise.
41096         * modules/utimensat (Depends-on): Likewise.
41097         * modules/localcharset (Depends-on): Likewise. Needed because of
41098         gl_FCNTL_O_FLAGS.
41099         * modules/wcrtomb (Depends-on): Likewise. Needed because of
41100         AC_TYPE_MBSTATE_T.
41101         * modules/wcsnrtombs (Depends-on): Likewise.
41102         * modules/wcsrtombs (Depends-on): Likewise.
41103
41104 2009-12-24  Bruno Haible  <bruno@clisp.org>
41105
41106         binary-io: Avoid gcc warning due to SET_BINARY.
41107         * lib/binary-io.h (SET_BINARY): Cast the result to void.
41108         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
41109
41110 2009-12-24  Bruno Haible  <bruno@clisp.org>
41111
41112         Avoid future namespace pollution on glibc systems.
41113         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
41114         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
41115         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
41116         glibc systems.
41117
41118 2009-12-24  Bruno Haible  <bruno@clisp.org>
41119
41120         Refactor common macros used in tests.
41121         * tests/macros.h: New file.
41122         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
41123         and/or <stdlib.h>, if appropriate.
41124         (ASSERT, SIZEOF): Remove macros.
41125         * tests/test-areadlink-with-size.c: Likewise.
41126         * tests/test-areadlinkat.c: Likewise.
41127         * tests/test-areadlinkat-with-size.c: Likewise.
41128         * tests/test-argmatch.c: Likewise.
41129         * tests/test-argv-iter.c: Likewise.
41130         * tests/test-array-mergesort.c: Likewise.
41131         * tests/test-array_list.c: Likewise.
41132         * tests/test-array_oset.c: Likewise.
41133         * tests/test-avltree_list.c: Likewise.
41134         * tests/test-avltree_oset.c: Likewise.
41135         * tests/test-avltreehash_list.c: Likewise.
41136         * tests/test-base64.c: Likewise.
41137         * tests/test-binary-io.c: Likewise.
41138         * tests/test-bitrotate.c: Likewise.
41139         * tests/test-btowc.c: Likewise.
41140         * tests/test-byteswap.c: Likewise.
41141         * tests/test-c-ctype.c: Likewise.
41142         * tests/test-c-stack.c: Likewise.
41143         * tests/test-c-strcasecmp.c: Likewise.
41144         * tests/test-c-strcasestr.c: Likewise.
41145         * tests/test-c-strncasecmp.c: Likewise.
41146         * tests/test-c-strstr.c: Likewise.
41147         * tests/test-canonicalize-lgpl.c: Likewise.
41148         * tests/test-canonicalize.c: Likewise.
41149         * tests/test-carray_list.c: Likewise.
41150         * tests/test-ceilf1.c: Likewise.
41151         * tests/test-ceilf2.c: Likewise.
41152         * tests/test-ceill.c: Likewise.
41153         * tests/test-chown.c: Likewise.
41154         * tests/test-cloexec.c: Likewise.
41155         * tests/test-copy-acl.c: Likewise.
41156         * tests/test-copy-file.c: Likewise.
41157         * tests/test-count-one-bits.c: Likewise.
41158         * tests/test-dprintf-posix.c: Likewise.
41159         * tests/test-dup2.c: Likewise.
41160         * tests/test-dup3.c: Likewise.
41161         * tests/test-duplocale.c: Likewise.
41162         * tests/test-fbufmode.c: Likewise.
41163         * tests/test-fchdir.c: Likewise.
41164         * tests/test-fchownat.c: Likewise.
41165         * tests/test-fcntl-safer.c: Likewise.
41166         * tests/test-fcntl.c: Likewise.
41167         * tests/test-fdopendir.c: Likewise.
41168         * tests/test-fdutimensat.c: Likewise.
41169         * tests/test-fflush2.c: Likewise.
41170         * tests/test-file-has-acl.c: Likewise.
41171         * tests/test-filevercmp.c: Likewise.
41172         * tests/test-flock.c: Likewise.
41173         * tests/test-floorf1.c: Likewise.
41174         * tests/test-floorf2.c: Likewise.
41175         * tests/test-floorl.c: Likewise.
41176         * tests/test-fnmatch.c: Likewise.
41177         * tests/test-fopen.h: Likewise.
41178         * tests/test-fpending.c: Likewise.
41179         * tests/test-fprintf-posix.c: Likewise.
41180         * tests/test-fpurge.c: Likewise.
41181         * tests/test-freadable.c: Likewise.
41182         * tests/test-freadahead.c: Likewise.
41183         * tests/test-freading.c: Likewise.
41184         * tests/test-freadptr.c: Likewise.
41185         * tests/test-freadptr2.c: Likewise.
41186         * tests/test-freadseek.c: Likewise.
41187         * tests/test-freopen.c: Likewise.
41188         * tests/test-frexp.c: Likewise.
41189         * tests/test-frexpl.c: Likewise.
41190         * tests/test-fseek.c: Likewise.
41191         * tests/test-fseeko.c: Likewise.
41192         * tests/test-fstatat.c: Likewise.
41193         * tests/test-fstrcmp.c: Likewise.
41194         * tests/test-fsync.c: Likewise.
41195         * tests/test-ftell.c: Likewise.
41196         * tests/test-ftello.c: Likewise.
41197         * tests/test-func.c: Likewise.
41198         * tests/test-futimens.c: Likewise.
41199         * tests/test-fwritable.c: Likewise.
41200         * tests/test-fwriting.c: Likewise.
41201         * tests/test-getcwd.c: Likewise.
41202         * tests/test-getdate.c: Likewise.
41203         * tests/test-getdelim.c: Likewise.
41204         * tests/test-getdtablesize.c: Likewise.
41205         * tests/test-getgroups.c: Likewise.
41206         * tests/test-getline.c: Likewise.
41207         * tests/test-getndelim2.c: Likewise.
41208         * tests/test-glob.c: Likewise.
41209         * tests/test-hash.c: Likewise.
41210         * tests/test-i-ring.c: Likewise.
41211         * tests/test-iconv-utf.c: Likewise.
41212         * tests/test-iconv.c: Likewise.
41213         * tests/test-idpriv-drop.c: Likewise.
41214         * tests/test-idpriv-droptemp.c: Likewise.
41215         * tests/test-inet_ntop.c: Likewise.
41216         * tests/test-inet_pton.c: Likewise.
41217         * tests/test-isblank.c: Likewise.
41218         * tests/test-isfinite.c: Likewise.
41219         * tests/test-isinf.c: Likewise.
41220         * tests/test-isnan.c: Likewise.
41221         * tests/test-isnand.h: Likewise.
41222         * tests/test-isnanf.h: Likewise.
41223         * tests/test-isnanl.h: Likewise.
41224         * tests/test-lchown.c: Likewise.
41225         * tests/test-ldexpl.c: Likewise.
41226         * tests/test-link.c: Likewise.
41227         * tests/test-linkat.c: Likewise.
41228         * tests/test-linked_list.c: Likewise.
41229         * tests/test-linkedhash_list.c: Likewise.
41230         * tests/test-localename.c: Likewise.
41231         * tests/test-lseek.c: Likewise.
41232         * tests/test-lstat.c: Likewise.
41233         * tests/test-mbmemcasecmp.c: Likewise.
41234         * tests/test-mbmemcasecoll.c: Likewise.
41235         * tests/test-mbrtowc.c: Likewise.
41236         * tests/test-mbscasecmp.c: Likewise.
41237         * tests/test-mbscasestr1.c: Likewise.
41238         * tests/test-mbscasestr2.c: Likewise.
41239         * tests/test-mbscasestr3.c: Likewise.
41240         * tests/test-mbscasestr4.c: Likewise.
41241         * tests/test-mbschr.c: Likewise.
41242         * tests/test-mbscspn.c: Likewise.
41243         * tests/test-mbsinit.c: Likewise.
41244         * tests/test-mbsncasecmp.c: Likewise.
41245         * tests/test-mbsnrtowcs.c: Likewise.
41246         * tests/test-mbspbrk.c: Likewise.
41247         * tests/test-mbspcasecmp.c: Likewise.
41248         * tests/test-mbsrchr.c: Likewise.
41249         * tests/test-mbsrtowcs.c: Likewise.
41250         * tests/test-mbsspn.c: Likewise.
41251         * tests/test-mbsstr1.c: Likewise.
41252         * tests/test-mbsstr2.c: Likewise.
41253         * tests/test-mbsstr3.c: Likewise.
41254         * tests/test-memchr.c: Likewise.
41255         * tests/test-memchr2.c: Likewise.
41256         * tests/test-memcmp.c: Likewise.
41257         * tests/test-memmem.c: Likewise.
41258         * tests/test-memrchr.c: Likewise.
41259         * tests/test-mkdir.c: Likewise.
41260         * tests/test-mkdirat.c: Likewise.
41261         * tests/test-mkfifo.c: Likewise.
41262         * tests/test-mkfifoat.c: Likewise.
41263         * tests/test-mknod.c: Likewise.
41264         * tests/test-nanosleep.c: Likewise.
41265         * tests/test-nl_langinfo.c: Likewise.
41266         * tests/test-obstack-printf.c: Likewise.
41267         * tests/test-open.c: Likewise.
41268         * tests/test-openat.c: Likewise.
41269         * tests/test-pipe-filter-gi1.c: Likewise.
41270         * tests/test-pipe-filter-gi2-main.c: Likewise.
41271         * tests/test-pipe-filter-ii1.c: Likewise.
41272         * tests/test-pipe-filter-ii2-main.c: Likewise.
41273         * tests/test-pipe2.c: Likewise.
41274         * tests/test-popen.h: Likewise.
41275         * tests/test-posixtm.c: Likewise.
41276         * tests/test-pread.c: Likewise.
41277         * tests/test-printf-frexp.c: Likewise.
41278         * tests/test-printf-frexpl.c: Likewise.
41279         * tests/test-printf-posix.c: Likewise.
41280         * tests/test-priv-set.c: Likewise.
41281         * tests/test-quotearg.c: Likewise.
41282         * tests/test-random_r.c: Likewise.
41283         * tests/test-rawmemchr.c: Likewise.
41284         * tests/test-rbtree_list.c: Likewise.
41285         * tests/test-rbtree_oset.c: Likewise.
41286         * tests/test-rbtreehash_list.c: Likewise.
41287         * tests/test-readlink.c: Likewise.
41288         * tests/test-remove.c: Likewise.
41289         * tests/test-rename.c: Likewise.
41290         * tests/test-renameat.c: Likewise.
41291         * tests/test-rmdir.c: Likewise.
41292         * tests/test-round1.c: Likewise.
41293         * tests/test-roundf1.c: Likewise.
41294         * tests/test-roundl.c: Likewise.
41295         * tests/test-safe-alloc.c: Likewise.
41296         * tests/test-sameacls.c: Likewise.
41297         * tests/test-set-mode-acl.c: Likewise.
41298         * tests/test-setenv.c: Likewise.
41299         * tests/test-sigaction.c: Likewise.
41300         * tests/test-signbit.c: Likewise.
41301         * tests/test-sleep.c: Likewise.
41302         * tests/test-snprintf-posix.c: Likewise.
41303         * tests/test-snprintf.c: Likewise.
41304         * tests/test-sprintf-posix.c: Likewise.
41305         * tests/test-stat-time.c: Likewise.
41306         * tests/test-stat.c: Likewise.
41307         * tests/test-strcasestr.c: Likewise.
41308         * tests/test-strchrnul.c: Likewise.
41309         * tests/test-strerror.c: Likewise.
41310         * tests/test-striconv.c: Likewise.
41311         * tests/test-striconveh.c: Likewise.
41312         * tests/test-striconveha.c: Likewise.
41313         * tests/test-strsignal.c: Likewise.
41314         * tests/test-strstr.c: Likewise.
41315         * tests/test-strtod.c: Likewise.
41316         * tests/test-strverscmp.c: Likewise.
41317         * tests/test-symlink.c: Likewise.
41318         * tests/test-symlinkat.c: Likewise.
41319         * tests/test-trunc1.c: Likewise.
41320         * tests/test-trunc2.c: Likewise.
41321         * tests/test-truncf1.c: Likewise.
41322         * tests/test-truncf2.c: Likewise.
41323         * tests/test-truncl.c: Likewise.
41324         * tests/test-uname.c: Likewise.
41325         * tests/test-unlink.c: Likewise.
41326         * tests/test-unlinkat.c: Likewise.
41327         * tests/test-unsetenv.c: Likewise.
41328         * tests/test-usleep.c: Likewise.
41329         * tests/test-utimens.c: Likewise.
41330         * tests/test-utimensat.c: Likewise.
41331         * tests/test-vasnprintf-posix.c: Likewise.
41332         * tests/test-vasnprintf-posix2.c: Likewise.
41333         * tests/test-vasnprintf.c: Likewise.
41334         * tests/test-vasprintf-posix.c: Likewise.
41335         * tests/test-vasprintf.c: Likewise.
41336         * tests/test-vdprintf-posix.c: Likewise.
41337         * tests/test-vfprintf-posix.c: Likewise.
41338         * tests/test-vprintf-posix.c: Likewise.
41339         * tests/test-vsnprintf-posix.c: Likewise.
41340         * tests/test-vsnprintf.c: Likewise.
41341         * tests/test-vsprintf-posix.c: Likewise.
41342         * tests/test-wcrtomb.c: Likewise.
41343         * tests/test-wcsnrtombs.c: Likewise.
41344         * tests/test-wcsrtombs.c: Likewise.
41345         * tests/test-wctype.c: Likewise.
41346         * tests/test-wcwidth.c: Likewise.
41347         * tests/test-xfprintf-posix.c: Likewise.
41348         * tests/test-xmemdup0.c: Likewise.
41349         * tests/test-xprintf-posix.c: Likewise.
41350         * tests/test-xvasprintf.c: Likewise.
41351         * tests/unicase/test-locale-language.c: Likewise.
41352         * tests/unicase/test-mapping-part1.h: Likewise.
41353         * tests/unicase/test-predicate-part1.h: Likewise.
41354         * tests/unicase/test-u8-casecmp.c: Likewise.
41355         * tests/unicase/test-u8-casecoll.c: Likewise.
41356         * tests/unicase/test-u8-casefold.c: Likewise.
41357         * tests/unicase/test-u8-is-cased.c: Likewise.
41358         * tests/unicase/test-u8-is-casefolded.c: Likewise.
41359         * tests/unicase/test-u8-is-lowercase.c: Likewise.
41360         * tests/unicase/test-u8-is-titlecase.c: Likewise.
41361         * tests/unicase/test-u8-is-uppercase.c: Likewise.
41362         * tests/unicase/test-u8-tolower.c: Likewise.
41363         * tests/unicase/test-u8-totitle.c: Likewise.
41364         * tests/unicase/test-u8-toupper.c: Likewise.
41365         * tests/unicase/test-u16-casecmp.c: Likewise.
41366         * tests/unicase/test-u16-casecoll.c: Likewise.
41367         * tests/unicase/test-u16-casefold.c: Likewise.
41368         * tests/unicase/test-u16-is-cased.c: Likewise.
41369         * tests/unicase/test-u16-is-casefolded.c: Likewise.
41370         * tests/unicase/test-u16-is-lowercase.c: Likewise.
41371         * tests/unicase/test-u16-is-titlecase.c: Likewise.
41372         * tests/unicase/test-u16-is-uppercase.c: Likewise.
41373         * tests/unicase/test-u16-tolower.c: Likewise.
41374         * tests/unicase/test-u16-totitle.c: Likewise.
41375         * tests/unicase/test-u16-toupper.c: Likewise.
41376         * tests/unicase/test-u32-casecmp.c: Likewise.
41377         * tests/unicase/test-u32-casecoll.c: Likewise.
41378         * tests/unicase/test-u32-casefold.c: Likewise.
41379         * tests/unicase/test-u32-is-cased.c: Likewise.
41380         * tests/unicase/test-u32-is-casefolded.c: Likewise.
41381         * tests/unicase/test-u32-is-lowercase.c: Likewise.
41382         * tests/unicase/test-u32-is-titlecase.c: Likewise.
41383         * tests/unicase/test-u32-is-uppercase.c: Likewise.
41384         * tests/unicase/test-u32-tolower.c: Likewise.
41385         * tests/unicase/test-u32-totitle.c: Likewise.
41386         * tests/unicase/test-u32-toupper.c: Likewise.
41387         * tests/unicase/test-ulc-casecmp.c: Likewise.
41388         * tests/unicase/test-ulc-casecoll.c: Likewise.
41389         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41390         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41391         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41392         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41393         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41394         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41395         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41396         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41397         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41398         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41399         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41400         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41401         * tests/unictype/test-bidi_byname.c: Likewise.
41402         * tests/unictype/test-bidi_name.c: Likewise.
41403         * tests/unictype/test-bidi_of.c: Likewise.
41404         * tests/unictype/test-bidi_test.c: Likewise.
41405         * tests/unictype/test-block_list.c: Likewise.
41406         * tests/unictype/test-block_of.c: Likewise.
41407         * tests/unictype/test-block_test.c: Likewise.
41408         * tests/unictype/test-categ_and.c: Likewise.
41409         * tests/unictype/test-categ_and_not.c: Likewise.
41410         * tests/unictype/test-categ_byname.c: Likewise.
41411         * tests/unictype/test-categ_name.c: Likewise.
41412         * tests/unictype/test-categ_none.c: Likewise.
41413         * tests/unictype/test-categ_of.c: Likewise.
41414         * tests/unictype/test-categ_or.c: Likewise.
41415         * tests/unictype/test-categ_test_withtable.c: Likewise.
41416         * tests/unictype/test-combining.c: Likewise.
41417         * tests/unictype/test-decdigit.c: Likewise.
41418         * tests/unictype/test-digit.c: Likewise.
41419         * tests/unictype/test-mirror.c: Likewise.
41420         * tests/unictype/test-numeric.c: Likewise.
41421         * tests/unictype/test-pr_byname.c: Likewise.
41422         * tests/unictype/test-pr_test.c: Likewise.
41423         * tests/unictype/test-predicate-part1.h: Likewise.
41424         * tests/unictype/test-scripts.c: Likewise.
41425         * tests/unictype/test-sy_c_ident.c: Likewise.
41426         * tests/unictype/test-sy_java_ident.c: Likewise.
41427         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
41428         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
41429         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
41430         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
41431         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
41432         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
41433         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
41434         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
41435         * tests/uninorm/test-canonical-decomposition.c: Likewise.
41436         * tests/uninorm/test-compat-decomposition.c: Likewise.
41437         * tests/uninorm/test-composition.c: Likewise.
41438         * tests/uninorm/test-decomposing-form.c: Likewise.
41439         * tests/uninorm/test-decomposition.c: Likewise.
41440         * tests/uninorm/test-u8-nfc.c: Likewise.
41441         * tests/uninorm/test-u8-nfd.c: Likewise.
41442         * tests/uninorm/test-u8-nfkc.c: Likewise.
41443         * tests/uninorm/test-u8-nfkd.c: Likewise.
41444         * tests/uninorm/test-u8-normcmp.c: Likewise.
41445         * tests/uninorm/test-u8-normcoll.c: Likewise.
41446         * tests/uninorm/test-u16-nfc.c: Likewise.
41447         * tests/uninorm/test-u16-nfd.c: Likewise.
41448         * tests/uninorm/test-u16-nfkc.c: Likewise.
41449         * tests/uninorm/test-u16-nfkd.c: Likewise.
41450         * tests/uninorm/test-u16-normcmp.c: Likewise.
41451         * tests/uninorm/test-u16-normcoll.c: Likewise.
41452         * tests/uninorm/test-u32-nfc.c: Likewise.
41453         * tests/uninorm/test-u32-nfd.c: Likewise.
41454         * tests/uninorm/test-u32-nfkc.c: Likewise.
41455         * tests/uninorm/test-u32-nfkd.c: Likewise.
41456         * tests/uninorm/test-u32-normalize-big.c: Likewise.
41457         * tests/uninorm/test-u32-normcmp.c: Likewise.
41458         * tests/uninorm/test-u32-normcoll.c: Likewise.
41459         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
41460         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41461         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41462         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41463         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41464         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41465         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41466         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41467         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41468         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41469         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41470         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41471         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41472         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41473         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41474         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41475         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41476         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41477         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41478         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41479         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41480         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41481         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41482         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41483         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41484         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41485         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41486         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41487         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41488         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
41489         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
41490         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
41491         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
41492         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41493         * tests/uniwidth/test-u8-width.c: Likewise.
41494         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41495         * tests/uniwidth/test-u16-width.c: Likewise.
41496         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41497         * tests/uniwidth/test-u32-width.c: Likewise.
41498         * tests/uniwidth/test-uc_width.c: Likewise.
41499         * tests/uniwidth/test-uc_width2.c: Likewise.
41500         * modules/acl-tests (Files): Add tests/macros.h.
41501         * modules/areadlink-tests (Files): Likewise.
41502         * modules/areadlink-with-size-tests (Files): Likewise.
41503         * modules/areadlinkat-tests (Files): Likewise.
41504         * modules/areadlinkat-with-size-tests (Files): Likewise.
41505         * modules/argmatch-tests (Files): Likewise.
41506         * modules/argv-iter-tests (Files): Likewise.
41507         * modules/array-list-tests (Files): Likewise.
41508         * modules/array-mergesort-tests (Files): Likewise.
41509         * modules/array-oset-tests (Files): Likewise.
41510         * modules/avltree-list-tests (Files): Likewise.
41511         * modules/avltree-oset-tests (Files): Likewise.
41512         * modules/avltreehash-list-tests (Files): Likewise.
41513         * modules/base64-tests (Files): Likewise.
41514         * modules/binary-io-tests (Files): Likewise.
41515         * modules/bitrotate-tests (Files): Likewise.
41516         * modules/btowc-tests (Files): Likewise.
41517         * modules/byteswap-tests (Files): Likewise.
41518         * modules/c-ctype-tests (Files): Likewise.
41519         * modules/c-stack-tests (Files): Likewise.
41520         * modules/c-strcase-tests (Files): Likewise.
41521         * modules/c-strcasestr-tests (Files): Likewise.
41522         * modules/c-strstr-tests (Files): Likewise.
41523         * modules/canonicalize-lgpl-tests (Files): Likewise.
41524         * modules/canonicalize-tests (Files): Likewise.
41525         * modules/carray-list-tests (Files): Likewise.
41526         * modules/ceilf-tests (Files): Likewise.
41527         * modules/ceill-tests (Files): Likewise.
41528         * modules/chown-tests (Files): Likewise.
41529         * modules/cloexec-tests (Files): Likewise.
41530         * modules/copy-file-tests (Files): Likewise.
41531         * modules/count-one-bits-tests (Files): Likewise.
41532         * modules/dprintf-posix-tests (Files): Likewise.
41533         * modules/dup2-tests (Files): Likewise.
41534         * modules/dup3-tests (Files): Likewise.
41535         * modules/duplocale-tests (Files): Likewise.
41536         * modules/fbufmode-tests (Files): Likewise.
41537         * modules/fchdir-tests (Files): Likewise.
41538         * modules/fcntl-safer-tests (Files): Likewise.
41539         * modules/fcntl-tests (Files): Likewise.
41540         * modules/fdopendir-tests (Files): Likewise.
41541         * modules/fdutimensat-tests (Files): Likewise.
41542         * modules/fflush-tests (Files): Likewise.
41543         * modules/filevercmp-tests (Files): Likewise.
41544         * modules/flock-tests (Files): Likewise.
41545         * modules/floorf-tests (Files): Likewise.
41546         * modules/floorl-tests (Files): Likewise.
41547         * modules/fnmatch-tests (Files): Likewise.
41548         * modules/fopen-safer-tests (Files): Likewise.
41549         * modules/fopen-tests (Files): Likewise.
41550         * modules/fpending-tests (Files): Likewise.
41551         * modules/fprintf-posix-tests (Files): Likewise.
41552         * modules/fpurge-tests (Files): Likewise.
41553         * modules/freadable-tests (Files): Likewise.
41554         * modules/freadahead-tests (Files): Likewise.
41555         * modules/freading-tests (Files): Likewise.
41556         * modules/freadptr-tests (Files): Likewise.
41557         * modules/freadseek-tests (Files): Likewise.
41558         * modules/freopen-tests (Files): Likewise.
41559         * modules/frexp-nolibm-tests (Files): Likewise.
41560         * modules/frexp-tests (Files): Likewise.
41561         * modules/frexpl-nolibm-tests (Files): Likewise.
41562         * modules/frexpl-tests (Files): Likewise.
41563         * modules/fseek-tests (Files): Likewise.
41564         * modules/fseeko-tests (Files): Likewise.
41565         * modules/fstrcmp-tests (Files): Likewise.
41566         * modules/fsync-tests (Files): Likewise.
41567         * modules/ftell-tests (Files): Likewise.
41568         * modules/ftello-tests (Files): Likewise.
41569         * modules/func-tests (Files): Likewise.
41570         * modules/futimens-tests (Files): Likewise.
41571         * modules/fwritable-tests (Files): Likewise.
41572         * modules/fwriting-tests (Files): Likewise.
41573         * modules/getcwd-tests (Files): Likewise.
41574         * modules/getdate-tests (Files): Likewise.
41575         * modules/getdelim-tests (Files): Likewise.
41576         * modules/getdtablesize-tests (Files): Likewise.
41577         * modules/getgroups-tests (Files): Likewise.
41578         * modules/getline-tests (Files): Likewise.
41579         * modules/getndelim2-tests (Files): Likewise.
41580         * modules/glob-tests (Files): Likewise.
41581         * modules/hash-tests (Files): Likewise.
41582         * modules/i-ring-tests (Files): Likewise.
41583         * modules/iconv-tests (Files): Likewise.
41584         * modules/iconv_open-utf-tests (Files): Likewise.
41585         * modules/idpriv-drop-tests (Files): Likewise.
41586         * modules/idpriv-droptemp-tests (Files): Likewise.
41587         * modules/inet_ntop-tests (Files): Likewise.
41588         * modules/inet_pton-tests (Files): Likewise.
41589         * modules/isblank-tests (Files): Likewise.
41590         * modules/isfinite-tests (Files): Likewise.
41591         * modules/isinf-tests (Files): Likewise.
41592         * modules/isnan-tests (Files): Likewise.
41593         * modules/isnand-nolibm-tests (Files): Likewise.
41594         * modules/isnand-tests (Files): Likewise.
41595         * modules/isnanf-nolibm-tests (Files): Likewise.
41596         * modules/isnanf-tests (Files): Likewise.
41597         * modules/isnanl-nolibm-tests (Files): Likewise.
41598         * modules/isnanl-tests (Files): Likewise.
41599         * modules/lchown-tests (Files): Likewise.
41600         * modules/ldexpl-tests (Files): Likewise.
41601         * modules/link-tests (Files): Likewise.
41602         * modules/linkat-tests (Files): Likewise.
41603         * modules/linked-list-tests (Files): Likewise.
41604         * modules/linkedhash-list-tests (Files): Likewise.
41605         * modules/localename-tests (Files): Likewise.
41606         * modules/lseek-tests (Files): Likewise.
41607         * modules/lstat-tests (Files): Likewise.
41608         * modules/mbmemcasecmp-tests (Files): Likewise.
41609         * modules/mbmemcasecoll-tests (Files): Likewise.
41610         * modules/mbrtowc-tests (Files): Likewise.
41611         * modules/mbscasecmp-tests (Files): Likewise.
41612         * modules/mbscasestr-tests (Files): Likewise.
41613         * modules/mbschr-tests (Files): Likewise.
41614         * modules/mbscspn-tests (Files): Likewise.
41615         * modules/mbsinit-tests (Files): Likewise.
41616         * modules/mbsncasecmp-tests (Files): Likewise.
41617         * modules/mbsnrtowcs-tests (Files): Likewise.
41618         * modules/mbspbrk-tests (Files): Likewise.
41619         * modules/mbspcasecmp-tests (Files): Likewise.
41620         * modules/mbsrchr-tests (Files): Likewise.
41621         * modules/mbsrtowcs-tests (Files): Likewise.
41622         * modules/mbsspn-tests (Files): Likewise.
41623         * modules/mbsstr-tests (Files): Likewise.
41624         * modules/memchr-tests (Files): Likewise.
41625         * modules/memchr2-tests (Files): Likewise.
41626         * modules/memcmp-tests (Files): Likewise.
41627         * modules/memmem-tests (Files): Likewise.
41628         * modules/memrchr-tests (Files): Likewise.
41629         * modules/mkdir-tests (Files): Likewise.
41630         * modules/mkfifo-tests (Files): Likewise.
41631         * modules/mkfifoat-tests (Files): Likewise.
41632         * modules/mknod-tests (Files): Likewise.
41633         * modules/nanosleep-tests (Files): Likewise.
41634         * modules/nl_langinfo-tests (Files): Likewise.
41635         * modules/obstack-printf-tests (Files): Likewise.
41636         * modules/open-tests (Files): Likewise.
41637         * modules/openat-tests (Files): Likewise.
41638         * modules/pipe-filter-gi-tests (Files): Likewise.
41639         * modules/pipe-filter-ii-tests (Files): Likewise.
41640         * modules/pipe2-tests (Files): Likewise.
41641         * modules/popen-safer-tests (Files): Likewise.
41642         * modules/popen-tests (Files): Likewise.
41643         * modules/posixtm-tests (Files): Likewise.
41644         * modules/pread-tests (Files): Likewise.
41645         * modules/printf-frexp-tests (Files): Likewise.
41646         * modules/printf-frexpl-tests (Files): Likewise.
41647         * modules/printf-posix-tests (Files): Likewise.
41648         * modules/priv-set-tests (Files): Likewise.
41649         * modules/quotearg-tests (Files): Likewise.
41650         * modules/random_r-tests (Files): Likewise.
41651         * modules/rawmemchr-tests (Files): Likewise.
41652         * modules/rbtree-list-tests (Files): Likewise.
41653         * modules/rbtree-oset-tests (Files): Likewise.
41654         * modules/rbtreehash-list-tests (Files): Likewise.
41655         * modules/readlink-tests (Files): Likewise.
41656         * modules/remove-tests (Files): Likewise.
41657         * modules/rename-tests (Files): Likewise.
41658         * modules/renameat-tests (Files): Likewise.
41659         * modules/rmdir-tests (Files): Likewise.
41660         * modules/round-tests (Files): Likewise.
41661         * modules/roundf-tests (Files): Likewise.
41662         * modules/roundl-tests (Files): Likewise.
41663         * modules/safe-alloc-tests (Files): Likewise.
41664         * modules/setenv-tests (Files): Likewise.
41665         * modules/sigaction-tests (Files): Likewise.
41666         * modules/signbit-tests (Files): Likewise.
41667         * modules/sleep-tests (Files): Likewise.
41668         * modules/snprintf-posix-tests (Files): Likewise.
41669         * modules/snprintf-tests (Files): Likewise.
41670         * modules/sprintf-posix-tests (Files): Likewise.
41671         * modules/stat-tests (Files): Likewise.
41672         * modules/stat-time-tests (Files): Likewise.
41673         * modules/strcasestr-tests (Files): Likewise.
41674         * modules/strchrnul-tests (Files): Likewise.
41675         * modules/strerror-tests (Files): Likewise.
41676         * modules/striconv-tests (Files): Likewise.
41677         * modules/striconveh-tests (Files): Likewise.
41678         * modules/striconveha-tests (Files): Likewise.
41679         * modules/strsignal-tests (Files): Likewise.
41680         * modules/strstr-tests (Files): Likewise.
41681         * modules/strtod-tests (Files): Likewise.
41682         * modules/strverscmp-tests (Files): Likewise.
41683         * modules/symlink-tests (Files): Likewise.
41684         * modules/symlinkat-tests (Files): Likewise.
41685         * modules/trunc-tests (Files): Likewise.
41686         * modules/truncf-tests (Files): Likewise.
41687         * modules/truncl-tests (Files): Likewise.
41688         * modules/uname-tests (Files): Likewise.
41689         * modules/unicase/cased-tests (Files): Likewise.
41690         * modules/unicase/ignorable-tests (Files): Likewise.
41691         * modules/unicase/locale-language-tests (Files): Likewise.
41692         * modules/unicase/tolower-tests (Files): Likewise.
41693         * modules/unicase/totitle-tests (Files): Likewise.
41694         * modules/unicase/toupper-tests (Files): Likewise.
41695         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41696         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41697         * modules/unicase/u8-casefold-tests (Files): Likewise.
41698         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41699         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41700         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41701         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41702         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41703         * modules/unicase/u8-tolower-tests (Files): Likewise.
41704         * modules/unicase/u8-totitle-tests (Files): Likewise.
41705         * modules/unicase/u8-toupper-tests (Files): Likewise.
41706         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41707         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41708         * modules/unicase/u16-casefold-tests (Files): Likewise.
41709         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41710         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41711         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41712         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41713         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41714         * modules/unicase/u16-tolower-tests (Files): Likewise.
41715         * modules/unicase/u16-totitle-tests (Files): Likewise.
41716         * modules/unicase/u16-toupper-tests (Files): Likewise.
41717         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41718         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41719         * modules/unicase/u32-casefold-tests (Files): Likewise.
41720         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41721         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41722         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41723         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41724         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41725         * modules/unicase/u32-tolower-tests (Files): Likewise.
41726         * modules/unicase/u32-totitle-tests (Files): Likewise.
41727         * modules/unicase/u32-toupper-tests (Files): Likewise.
41728         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41729         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41730         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41731         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41732         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41733         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41734         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41735         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41736         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41737         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41738         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41739         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41740         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41741         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41742         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41743         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41744         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41745         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41746         * modules/unictype/block-list-tests (Files): Likewise.
41747         * modules/unictype/block-of-tests (Files): Likewise.
41748         * modules/unictype/block-test-tests (Files): Likewise.
41749         * modules/unictype/category-C-tests (Files): Likewise.
41750         * modules/unictype/category-Cc-tests (Files): Likewise.
41751         * modules/unictype/category-Cf-tests (Files): Likewise.
41752         * modules/unictype/category-Cn-tests (Files): Likewise.
41753         * modules/unictype/category-Co-tests (Files): Likewise.
41754         * modules/unictype/category-Cs-tests (Files): Likewise.
41755         * modules/unictype/category-L-tests (Files): Likewise.
41756         * modules/unictype/category-Ll-tests (Files): Likewise.
41757         * modules/unictype/category-Lm-tests (Files): Likewise.
41758         * modules/unictype/category-Lo-tests (Files): Likewise.
41759         * modules/unictype/category-Lt-tests (Files): Likewise.
41760         * modules/unictype/category-Lu-tests (Files): Likewise.
41761         * modules/unictype/category-M-tests (Files): Likewise.
41762         * modules/unictype/category-Mc-tests (Files): Likewise.
41763         * modules/unictype/category-Me-tests (Files): Likewise.
41764         * modules/unictype/category-Mn-tests (Files): Likewise.
41765         * modules/unictype/category-N-tests (Files): Likewise.
41766         * modules/unictype/category-Nd-tests (Files): Likewise.
41767         * modules/unictype/category-Nl-tests (Files): Likewise.
41768         * modules/unictype/category-No-tests (Files): Likewise.
41769         * modules/unictype/category-P-tests (Files): Likewise.
41770         * modules/unictype/category-Pc-tests (Files): Likewise.
41771         * modules/unictype/category-Pd-tests (Files): Likewise.
41772         * modules/unictype/category-Pe-tests (Files): Likewise.
41773         * modules/unictype/category-Pf-tests (Files): Likewise.
41774         * modules/unictype/category-Pi-tests (Files): Likewise.
41775         * modules/unictype/category-Po-tests (Files): Likewise.
41776         * modules/unictype/category-Ps-tests (Files): Likewise.
41777         * modules/unictype/category-S-tests (Files): Likewise.
41778         * modules/unictype/category-Sc-tests (Files): Likewise.
41779         * modules/unictype/category-Sk-tests (Files): Likewise.
41780         * modules/unictype/category-Sm-tests (Files): Likewise.
41781         * modules/unictype/category-So-tests (Files): Likewise.
41782         * modules/unictype/category-Z-tests (Files): Likewise.
41783         * modules/unictype/category-Zl-tests (Files): Likewise.
41784         * modules/unictype/category-Zp-tests (Files): Likewise.
41785         * modules/unictype/category-Zs-tests (Files): Likewise.
41786         * modules/unictype/category-and-not-tests (Files): Likewise.
41787         * modules/unictype/category-and-tests (Files): Likewise.
41788         * modules/unictype/category-byname-tests (Files): Likewise.
41789         * modules/unictype/category-name-tests (Files): Likewise.
41790         * modules/unictype/category-none-tests (Files): Likewise.
41791         * modules/unictype/category-of-tests (Files): Likewise.
41792         * modules/unictype/category-or-tests (Files): Likewise.
41793         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41794         * modules/unictype/combining-class-tests (Files): Likewise.
41795         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41796         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41797         * modules/unictype/ctype-blank-tests (Files): Likewise.
41798         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41799         * modules/unictype/ctype-digit-tests (Files): Likewise.
41800         * modules/unictype/ctype-graph-tests (Files): Likewise.
41801         * modules/unictype/ctype-lower-tests (Files): Likewise.
41802         * modules/unictype/ctype-print-tests (Files): Likewise.
41803         * modules/unictype/ctype-punct-tests (Files): Likewise.
41804         * modules/unictype/ctype-space-tests (Files): Likewise.
41805         * modules/unictype/ctype-upper-tests (Files): Likewise.
41806         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41807         * modules/unictype/decimal-digit-tests (Files): Likewise.
41808         * modules/unictype/digit-tests (Files): Likewise.
41809         * modules/unictype/mirror-tests (Files): Likewise.
41810         * modules/unictype/numeric-tests (Files): Likewise.
41811         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41812         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41813         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41814         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41815         Likewise.
41816         * modules/unictype/property-bidi-block-separator-tests (Files):
41817         Likewise.
41818         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41819         Likewise.
41820         * modules/unictype/property-bidi-common-separator-tests (Files):
41821         Likewise.
41822         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41823         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41824         Likewise.
41825         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41826         Likewise.
41827         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41828         Likewise.
41829         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41830         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41831         Likewise.
41832         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41833         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41834         Likewise.
41835         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41836         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41837         * modules/unictype/property-bidi-segment-separator-tests (Files):
41838         Likewise.
41839         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41840         * modules/unictype/property-byname-tests (Files): Likewise.
41841         * modules/unictype/property-combining-tests (Files): Likewise.
41842         * modules/unictype/property-composite-tests (Files): Likewise.
41843         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41844         * modules/unictype/property-dash-tests (Files): Likewise.
41845         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41846         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41847         Likewise.
41848         * modules/unictype/property-deprecated-tests (Files): Likewise.
41849         * modules/unictype/property-diacritic-tests (Files): Likewise.
41850         * modules/unictype/property-extender-tests (Files): Likewise.
41851         * modules/unictype/property-format-control-tests (Files): Likewise.
41852         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41853         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41854         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41855         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41856         * modules/unictype/property-hyphen-tests (Files): Likewise.
41857         * modules/unictype/property-id-continue-tests (Files): Likewise.
41858         * modules/unictype/property-id-start-tests (Files): Likewise.
41859         * modules/unictype/property-ideographic-tests (Files): Likewise.
41860         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41861         * modules/unictype/property-ids-trinary-operator-tests (Files):
41862         Likewise.
41863         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41864         * modules/unictype/property-iso-control-tests (Files): Likewise.
41865         * modules/unictype/property-join-control-tests (Files): Likewise.
41866         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41867         * modules/unictype/property-line-separator-tests (Files): Likewise.
41868         * modules/unictype/property-logical-order-exception-tests (Files):
41869         Likewise.
41870         * modules/unictype/property-lowercase-tests (Files): Likewise.
41871         * modules/unictype/property-math-tests (Files): Likewise.
41872         * modules/unictype/property-non-break-tests (Files): Likewise.
41873         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41874         * modules/unictype/property-numeric-tests (Files): Likewise.
41875         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41876         * modules/unictype/property-other-default-ignorable-code-point-tests
41877         (Files): Likewise.
41878         * modules/unictype/property-other-grapheme-extend-tests (Files):
41879         Likewise.
41880         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41881         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41882         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41883         * modules/unictype/property-other-math-tests (Files): Likewise.
41884         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41885         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41886         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41887         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41888         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41889         * modules/unictype/property-private-use-tests (Files): Likewise.
41890         * modules/unictype/property-punctuation-tests (Files): Likewise.
41891         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41892         * modules/unictype/property-radical-tests (Files): Likewise.
41893         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41894         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41895         * modules/unictype/property-space-tests (Files): Likewise.
41896         * modules/unictype/property-terminal-punctuation-tests (Files):
41897         Likewise.
41898         * modules/unictype/property-test-tests (Files): Likewise.
41899         * modules/unictype/property-titlecase-tests (Files): Likewise.
41900         * modules/unictype/property-unassigned-code-value-tests (Files):
41901         Likewise.
41902         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41903         * modules/unictype/property-uppercase-tests (Files): Likewise.
41904         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41905         * modules/unictype/property-white-space-tests (Files): Likewise.
41906         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41907         * modules/unictype/property-xid-start-tests (Files): Likewise.
41908         * modules/unictype/property-zero-width-tests (Files): Likewise.
41909         * modules/unictype/scripts-tests (Files): Likewise.
41910         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41911         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41912         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41913         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41914         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41915         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41916         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41917         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41918         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41919         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41920         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41921         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41922         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41923         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41924         * modules/uninorm/composition-tests (Files): Likewise.
41925         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41926         * modules/uninorm/decomposition-tests (Files): Likewise.
41927         * modules/uninorm/filter-tests (Files): Likewise.
41928         * modules/uninorm/nfc-tests (Files): Likewise.
41929         * modules/uninorm/nfd-tests (Files): Likewise.
41930         * modules/uninorm/nfkc-tests (Files): Likewise.
41931         * modules/uninorm/nfkd-tests (Files): Likewise.
41932         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41933         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41934         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41935         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41936         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41937         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41938         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41939         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41940         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41941         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41942         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41943         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41944         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41945         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41946         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41947         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41948         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41949         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41950         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41951         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41952         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41953         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41954         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41955         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41956         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41957         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41958         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41959         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41960         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41961         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41962         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41963         * modules/uniwidth/u8-width-tests (Files): Likewise.
41964         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41965         * modules/uniwidth/u16-width-tests (Files): Likewise.
41966         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41967         * modules/uniwidth/u32-width-tests (Files): Likewise.
41968         * modules/uniwidth/width-tests (Files): Likewise.
41969         * modules/unlink-tests (Files): Likewise.
41970         * modules/unsetenv-tests (Files): Likewise.
41971         * modules/usleep-tests (Files): Likewise.
41972         * modules/utimens-tests (Files): Likewise.
41973         * modules/utimensat-tests (Files): Likewise.
41974         * modules/vasnprintf-posix-tests (Files): Likewise.
41975         * modules/vasnprintf-tests (Files): Likewise.
41976         * modules/vasprintf-posix-tests (Files): Likewise.
41977         * modules/vasprintf-tests (Files): Likewise.
41978         * modules/vdprintf-posix-tests (Files): Likewise.
41979         * modules/vfprintf-posix-tests (Files): Likewise.
41980         * modules/vprintf-posix-tests (Files): Likewise.
41981         * modules/vsnprintf-posix-tests (Files): Likewise.
41982         * modules/vsnprintf-tests (Files): Likewise.
41983         * modules/vsprintf-posix-tests (Files): Likewise.
41984         * modules/wcrtomb-tests (Files): Likewise.
41985         * modules/wcsnrtombs-tests (Files): Likewise.
41986         * modules/wcsrtombs-tests (Files): Likewise.
41987         * modules/wctype-tests (Files): Likewise.
41988         * modules/wcwidth-tests (Files): Likewise.
41989         * modules/xmemdup0-tests (Files): Likewise.
41990         * modules/xprintf-posix-tests (Files): Likewise.
41991         * modules/xvasprintf-tests (Files): Likewise.
41992
41993 2009-12-24  Eric Blake  <ebb9@byu.net>
41994
41995         test-nanosleep: fix typo
41996         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41997         patch.
41998         Reported by Bruno Haible.
41999
42000 2009-12-24  Bruno Haible  <bruno@clisp.org>
42001
42002         Reduce namespace pollution on glibc systems.
42003         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
42004         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
42005         systems.
42006         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
42007         <getopt.h> on glibc systems.
42008         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
42009         systems.
42010         * lib/fcntl.c: Include <unistd.h> here instead.
42011
42012 2009-12-24  Bruno Haible  <bruno@clisp.org>
42013
42014         * lib/stdlib.in.h (includes): Fix typo in today's commit.
42015
42016 2009-12-24  Eric Blake  <ebb9@byu.net>
42017
42018         tests: add signature checks
42019         * tests/signature.h (SIGNATURE_CHECK): New file.
42020         * modules/atexit-tests (Files): Use it.
42021         * modules/btowc-tests (Files): Likewise.
42022         * modules/canonicalize-lgpl-tests (Files): Likewise.
42023         * modules/ceilf-tests (Files): Likewise.
42024         * modules/ceill-tests (Files): Likewise.
42025         * modules/chown-tests (Files): Likewise.
42026         * modules/dprintf-posix-tests (Files): Likewise.
42027         * modules/dup2-tests (Files): Likewise.
42028         * modules/dup3-tests (Files): Likewise.
42029         * modules/duplocale-tests (Files): Likewise.
42030         * modules/fchdir-tests (Files): Likewise.
42031         * modules/fcntl-tests (Files): Likewise.
42032         * modules/fdopendir-tests (Files): Likewise.
42033         * modules/fflush-tests (Files): Likewise.
42034         * modules/flock-tests (Files): Likewise.
42035         * modules/floorf-tests (Files): Likewise.
42036         * modules/floorl-tests (Files): Likewise.
42037         * modules/fnmatch-tests (Files): Likewise.
42038         * modules/fopen-tests (Files): Likewise.
42039         * modules/fprintf-posix-tests (Files): Likewise.
42040         * modules/freopen-tests (Files): Likewise.
42041         * modules/frexp-nolibm-tests (Files): Likewise.
42042         * modules/frexp-tests (Files): Likewise.
42043         * modules/frexpl-nolibm-tests (Files): Likewise.
42044         * modules/frexpl-tests (Files): Likewise.
42045         * modules/fseek-tests (Files): Likewise.
42046         * modules/fseeko-tests (Files): Likewise.
42047         * modules/fsync-tests (Files): Likewise.
42048         * modules/ftell-tests (Files): Likewise.
42049         * modules/ftello-tests (Files): Likewise.
42050         * modules/futimens-tests (Files): Likewise.
42051         * modules/getaddrinfo-tests (Files): Likewise.
42052         * modules/getcwd-tests (Files): Likewise.
42053         * modules/getdelim-tests (Files): Likewise.
42054         * modules/getdtablesize-tests (Files): Likewise.
42055         * modules/getgroups-tests (Files): Likewise.
42056         * modules/gethostname-tests (Files): Likewise.
42057         * modules/getline-tests (Files): Likewise.
42058         * modules/getopt-posix-tests (Files): Likewise.
42059         * modules/gettimeofday-tests (Files): Likewise.
42060         * modules/glob-tests (Files): Likewise.
42061         * modules/iconv-tests (Files): Likewise.
42062         * modules/inet_ntop-tests (Files): Likewise.
42063         * modules/inet_pton-tests (Files): Likewise.
42064         * modules/isblank-tests (Files): Likewise.
42065         * modules/lchown-tests (Files): Likewise.
42066         * modules/ldexpl-tests (Files): Likewise.
42067         * modules/link-tests (Files): Likewise.
42068         * modules/linkat-tests (Files): Likewise.
42069         * modules/lseek-tests (Files): Likewise.
42070         * modules/lstat-tests (Files): Likewise.
42071         * modules/mbrtowc-tests (Files): Likewise.
42072         * modules/mbsinit-tests (Files): Likewise.
42073         * modules/mbsnrtowcs-tests (Files): Likewise.
42074         * modules/mbsrtowcs-tests (Files): Likewise.
42075         * modules/memchr-tests (Files): Likewise.
42076         * modules/memcmp-tests (Files): Likewise.
42077         * modules/memmem-tests (Files): Likewise.
42078         * modules/memrchr-tests (Files): Likewise.
42079         * modules/mkdir-tests (Files): Likewise.
42080         * modules/mkfifo-tests (Files): Likewise.
42081         * modules/mkfifoat-tests (Files): Likewise.
42082         * modules/mknod-tests (Files): Likewise.
42083         * modules/nanosleep-tests (Files): Likewise.
42084         * modules/nl_langinfo-tests (Files): Likewise.
42085         * modules/obstack-printf-tests (Files): Likewise.
42086         * modules/open-tests (Files): Likewise.
42087         * modules/openat-tests (Files): Likewise.
42088         * modules/perror-tests (Files): Likewise.
42089         * modules/pipe2-tests (Files): Likewise.
42090         * modules/poll-tests (Files): Likewise.
42091         * modules/popen-tests (Files): Likewise.
42092         * modules/posix_spawn-tests (Files): Likewise.
42093         * modules/posix_spawnp-tests (Files): Likewise.
42094         * modules/pread-tests (Files): Likewise.
42095         * modules/printf-posix-tests (Files): Likewise.
42096         * modules/pty-tests (Files): Likewise.
42097         * modules/random_r-tests (Files): Likewise.
42098         * modules/rawmemchr-tests (Files): Likewise.
42099         * modules/readlink-tests (Files): Likewise.
42100         * modules/remove-tests (Files): Likewise.
42101         * modules/rename-tests (Files): Likewise.
42102         * modules/renameat-tests (Files): Likewise.
42103         * modules/rmdir-tests (Files): Likewise.
42104         * modules/round-tests (Files): Likewise.
42105         * modules/roundf-tests (Files): Likewise.
42106         * modules/roundl-tests (Files): Likewise.
42107         * modules/select-tests (Files): Likewise.
42108         * modules/setenv-tests (Files): Likewise.
42109         * modules/sigaction-tests (Files): Likewise.
42110         * modules/sleep-tests (Files): Likewise.
42111         * modules/snprintf-posix-tests (Files): Likewise.
42112         * modules/snprintf-tests (Files): Likewise.
42113         * modules/sprintf-posix-tests (Files): Likewise.
42114         * modules/stat-tests (Files): Likewise.
42115         * modules/strcasestr-tests (Files): Likewise.
42116         * modules/strchrnul-tests (Files): Likewise.
42117         * modules/strerror-tests (Files): Likewise.
42118         * modules/strsignal-tests (Files): Likewise.
42119         * modules/strstr-tests (Files): Likewise.
42120         * modules/strtod-tests (Files): Likewise.
42121         * modules/strverscmp-tests (Files): Likewise.
42122         * modules/symlink-tests (Files): Likewise.
42123         * modules/symlinkat-tests (Files): Likewise.
42124         * modules/times-tests (Files): Likewise.
42125         * modules/trunc-tests (Files): Likewise.
42126         * modules/truncf-tests (Files): Likewise.
42127         * modules/truncl-tests (Files): Likewise.
42128         * modules/tsearch-tests (Files): Likewise.
42129         * modules/uname-tests (Files): Likewise.
42130         * modules/unlink-tests (Files): Likewise.
42131         * modules/unsetenv-tests (Files): Likewise.
42132         * modules/usleep-tests (Files): Likewise.
42133         * modules/utimensat-tests (Files): Likewise.
42134         * modules/vasprintf-tests (Files): Likewise.
42135         * modules/vdprintf-posix-tests (Files): Likewise.
42136         * modules/vfprintf-posix-tests (Files): Likewise.
42137         * modules/vprintf-posix-tests (Files): Likewise.
42138         * modules/vsnprintf-posix-tests (Files): Likewise.
42139         * modules/vsnprintf-tests (Files): Likewise.
42140         * modules/vsprintf-posix-tests (Files): Likewise.
42141         * modules/wcrtomb-tests (Files): Likewise.
42142         * modules/wcsnrtombs-tests (Files): Likewise.
42143         * modules/wcsrtombs-tests (Files): Likewise.
42144         * modules/wcwidth-tests (Files): Likewise.
42145         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
42146         * tests/test-isinf.c (isinf): Likewise.
42147         * tests/test-isnan.c (isnan): Likewise.
42148         * tests/test-signbit.c (signbit): Likewise.
42149         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
42150         declaration, either as macro or with correct signature.
42151         (select): Ensure function under test is declared with correct
42152         signature in correct header.
42153         * tests/test-atexit.c (atexit): Likewise.
42154         * tests/test-btowc.c (btowc): Likewise.
42155         * tests/test-canonicalize-lgpl.c (realpath)
42156         (canonicalize_file_name): Likewise.
42157         * tests/test-ceilf1.c (ceilf): Likewise.
42158         * tests/test-ceill.c (ceill): Likewise.
42159         * tests/test-chown.c (chown): Likewise.
42160         * tests/test-dprintf-posix.c (dprintf): Likewise.
42161         * tests/test-dup2.c (dup2): Likewise.
42162         * tests/test-dup3.c (dup3): Likewise.
42163         * tests/test-duplocale.c (duplocale): Likewise.
42164         * tests/test-fchdir.c (fchdir): Likewise.
42165         * tests/test-fchownat.c (fchownat): Likewise.
42166         * tests/test-fcntl.c (fcntl): Likewise.
42167         * tests/test-fdopendir.c (fdopendir): Likewise.
42168         * tests/test-fflush.c (fflush): Likewise.
42169         * tests/test-flock.c (flock): Likewise.
42170         * tests/test-floorf1.c (floorf): Likewise.
42171         * tests/test-floorl.c (floorl): Likewise.
42172         * tests/test-fnmatch.c (fnmatch): Likewise.
42173         * tests/test-fopen.c (fopen): Likewise.
42174         * tests/test-fprintf-posix.c (fprintf): Likewise.
42175         * tests/test-freopen.c (freopen): Likewise.
42176         * tests/test-frexp.c (frexp): Likewise.
42177         * tests/test-frexpl.c (frexpl): Likewise.
42178         * tests/test-fseek.c (fseek): Likewise.
42179         * tests/test-fseeko.c (fseeko): Likewise.
42180         * tests/test-fstatat.c (fstatat): Likewise.
42181         * tests/test-fsync.c (fsync): Likewise.
42182         * tests/test-ftell.c (ftell): Likewise.
42183         * tests/test-ftello.c (ftello): Likewise.
42184         * tests/test-futimens.c (futimens): Likewise.
42185         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
42186         (gai_strerror): Likewise.
42187         * tests/test-getcwd.c (getcwd): Likewise.
42188         * tests/test-getdelim.c (getdelim): Likewise.
42189         * tests/test-getdtablesize.c (getdtablesize): Likewise.
42190         * tests/test-getgroups.c (getgroups): Likewise.
42191         * tests/test-gethostname.c (gethostname): Likewise.
42192         * tests/test-getline.c (getline): Likewise.
42193         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
42194         Likewise.
42195         * tests/test-gettimeofday.c (gettimeofday): Likewise.
42196         * tests/test-glob.c (glob, globfree): Likewise.
42197         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
42198         * tests/test-inet_ntop.c (inet_ntop): Likewise.
42199         * tests/test-inet_pton.c (inet_pton): Likewise.
42200         * tests/test-isblank.c (isblank): Likewise.
42201         * tests/test-lchown.c (lchown): Likewise.
42202         * tests/test-ldexpl.c (ldexpl): Likewise.
42203         * tests/test-link.c (link): Likewise.
42204         * tests/test-linkat.c (linkat): Likewise.
42205         * tests/test-lseek.c (lseek): Likewise.
42206         * tests/test-lstat.c (lstat): Likewise.
42207         * tests/test-mbrtowc.c (mbrtowc): Likewise.
42208         * tests/test-mbsinit.c (mbsinit): Likewise.
42209         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
42210         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
42211         * tests/test-memchr.c (memchr): Likewise.
42212         * tests/test-memcmp.c (memcmp): Likewise.
42213         * tests/test-memmem.c (memmem): Likewise.
42214         * tests/test-memrchr.c (memrchr): Likewise.
42215         * tests/test-mkdir.c (mkdir): Likewise.
42216         * tests/test-mkdirat.c (mkdirat): Likewise.
42217         * tests/test-mkfifo.c (mkfifo): Likewise.
42218         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
42219         * tests/test-mknod.c (mknod): Likewise.
42220         * tests/test-nanosleep.c (nanosleep): Likewise.
42221         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
42222         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
42223         Likewise.
42224         * tests/test-open.c (open): Likewise.
42225         * tests/test-openat.c (openat): Likewise.
42226         * tests/test-perror.c (perror): Likewise.
42227         * tests/test-pipe2.c (pipe2): Likewise.
42228         * tests/test-poll.c (poll): Likewise.
42229         * tests/test-popen.c (popen, pclose): Likewise.
42230         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
42231         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
42232         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
42233         (posix_spawn_file_actions_destroy)
42234         (posix_spawn_file_actions_addclose)
42235         (posix_spawn_file_actions_addopen)
42236         (posix_spawn_file_actions_adddup2): Likewise.
42237         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
42238         * tests/test-pread.c (pread): Likewise.
42239         * tests/test-printf-posix.c (printf): Likewise.
42240         * tests/test-pty.c (openpty, forkpty): Likewise.
42241         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
42242         (random_r): Likewise.
42243         * tests/test-rawmemchr.c (rawmemchr): Likewise.
42244         * tests/test-readlink.c (readlink): Likewise.
42245         * tests/test-remove.c (remove): Likewise.
42246         * tests/test-rename.c (rename): Likewise.
42247         * tests/test-renameat.c (renameat): Likewise.
42248         * tests/test-rmdir.c (rmdir): Likewise.
42249         * tests/test-round1.c (round): Likewise.
42250         * tests/test-roundf1.c (roundf): Likewise.
42251         * tests/test-roundl.c (roundl): Likewise.
42252         * tests/test-setenv.c (setenv): Likewise.
42253         * tests/test-sigaction.c (sigaction): Likewise.
42254         * tests/test-sleep.c (sleep): Likewise.
42255         * tests/test-snprintf.c (snprintf): Likewise.
42256         * tests/test-sprintf-posix.c (sprintf): Likewise.
42257         * tests/test-stat.c (stat): Likewise.
42258         * tests/test-stpncpy.c (stpncpy): Likewise.
42259         * tests/test-strcasestr.c (strcasestr): Likewise.
42260         * tests/test-strchrnul.c (strchrnul): Likewise.
42261         * tests/test-strerror.c (strerror): Likewise.
42262         * tests/test-strsignal.c (strsignal): Likewise.
42263         * tests/test-strstr.c (strstr): Likewise.
42264         * tests/test-strtod.c (strtod): Likewise.
42265         * tests/test-strverscmp.c (strverscmp): Likewise.
42266         * tests/test-symlink.c (symlink): Likewise.
42267         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
42268         * tests/test-times.c (times): Likewise.
42269         * tests/test-trunc1.c (trunc): Likewise.
42270         * tests/test-truncf1.c (truncf): Likewise.
42271         * tests/test-truncl.c (truncl): Likewise.
42272         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
42273         Likewise.
42274         * tests/test-uname.c (uname): Likewise.
42275         * tests/test-unlink.c (unlink): Likewise.
42276         * tests/test-unlinkat.c (unlinkat): Likewise.
42277         * tests/test-unsetenv.c (unsetenv): Likewise.
42278         * tests/test-usleep.c (usleep): Likewise.
42279         * tests/test-utimensat.c (utimensat): Likewise.
42280         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
42281         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
42282         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
42283         * tests/test-vprintf-posix.c (vprintf): Likewise.
42284         * tests/test-vsnprintf.c (vsnprintf): Likewise.
42285         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
42286         * tests/test-wcrtomb.c (wcrtomb): Likewise.
42287         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
42288         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
42289         * tests/test-wcwidth.c (wcwidth): Likewise.
42290
42291         build: pull in conditional headers during GNULIB_POSIXCHECK
42292         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
42293         definitions from any conditionally-included headers.
42294         * lib/stdlib.in.h (includes): Likewise.
42295         * lib/unistd.in.h (includes): Likewise.
42296
42297 2009-12-24  Bruno Haible  <bruno@clisp.org>
42298
42299         * tests/test-argv-iter.c: Include header file being tested immediately
42300         after config.h.
42301         * tests/test-base64.c: Likewise.
42302         * tests/test-flock.c: Likewise.
42303         * tests/test-fsync.c: Likewise.
42304         * tests/test-getdate.c: Likewise.
42305         * tests/test-getndelim2.c: Likewise.
42306         * tests/test-isfinite.c: Likewise.
42307         * tests/test-isinf.c: Likewise.
42308         * tests/test-strerror.c: Likewise.
42309         * tests/test-strsignal.c: Likewise.
42310
42311 2009-12-23  Eric Blake  <ebb9@byu.net>
42312
42313         unistd: work around cygwin bug
42314         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
42315         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
42316         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42317
42318 2009-12-23  Bruno Haible  <bruno@clisp.org>
42319
42320         localename: More tests.
42321         * tests/test-localename.c (SIZEOF): New macro.
42322         (categories): New variable.
42323         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
42324         test_locale_name_default): Add test w.r.t. thread locale.
42325         (test_locale_name_thread): New function.
42326         (main): Invoke it.
42327
42328         localename: Make aware of thread locale.
42329         * lib/localename.h (gl_locale_name_thread): New declaration.
42330         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
42331         behaviour with respect to thread locale.
42332         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
42333         <langinfo.h>, glthread/lock.h.
42334         (SIZE_BITS): New macro.
42335         (string_hash): New function.
42336         (struct hash_node): New type.
42337         (HASH_TABLE_SIZE): New macro.
42338         (struniq_hash_table, struniq_lock): New variables.
42339         (struniq): New function.
42340         (gl_locale_name_thread): New function.
42341         (gl_locale_name): Invoke it.
42342         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
42343         * modules/localename (Depends-on): Add lock.
42344         Reported by Mike Gran <spk121@yahoo.com>.
42345
42346 2009-12-23  Eric Blake  <ebb9@byu.net>
42347
42348         va-args: new module
42349         * modules/va-args: New file.
42350         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
42351         * MODULES.html.sh (Core language properties): Mention it.
42352
42353         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
42354         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
42355         named alias for __attribute__((__unused__)).
42356         * lib/chown.c: Update client.
42357         * lib/fchmodat.c: Likewise.
42358         * lib/fts.c: Likewise.
42359         * lib/getdate.y: Likewise.
42360         * lib/getgroups.c: Likewise.
42361         * lib/getopt.c: Likewise.
42362         * lib/getugroups.c: Likewise.
42363         * lib/mkdir.c: Likewise.
42364         * lib/mkfifo.c: Likewise.
42365         * lib/mkfifoat.c: Likewise.
42366         * lib/mknod.c: Likewise.
42367         * lib/mknodat.c: Likewise.
42368         * lib/readlink.c: Likewise.
42369         * lib/se-context.in.h: Likewise.
42370         * lib/se-selinux.in.h: Likewise.
42371         * lib/sockets.c: Likewise.
42372         * lib/symlink.c: Likewise.
42373         * lib/symlinkat.c: Likewise.
42374         * lib/unicodeio.c: Likewise.
42375         * lib/unistr.h: Likewise.
42376         * tests/test-areadlink.c: Likewise.
42377         * tests/test-areadlinkat.c: Likewise.
42378         * tests/test-filenamecat.c: Likewise.
42379         * tests/test-fseeko.c: Likewise.
42380         * tests/test-ftello.c: Likewise.
42381         * tests/test-getdate.c: Likewise.
42382         * tests/test-getgroups.c: Likewise.
42383         * tests/test-gethostname.c: Likewise.
42384         * tests/test-quotearg.c: Likewise.
42385         * tests/test-version-etc.c: Likewise.
42386         * tests/test-xalloc-die.c: Likewise.
42387         * tests/test-xfprintf-posix.c: Likewise.
42388         * tests/test-xprintf-posix.c: Likewise.
42389         * tests/test-xvasprintf.c: Likewise.
42390
42391         tests: avoid compiler warnings
42392         * tests/test-fcntl.c (main): Delete unused parameters.
42393         * tests/test-freopen-safer.c (main): Likewise.
42394         * tests/test-xalloc-die.c (main): Mark unused parameters.
42395         * tests/test-fseeko.c (main): Likewise.
42396         * tests/test-ftello.c (main): Likewise.
42397         * tests/test-nanosleep.c (main): Avoid declaration warning.
42398         * tests/test-sleep.c (main): Likewise.
42399         * tests/test-unsetenv.c (main): Silence warning about string
42400         literal.
42401         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
42402
42403 2009-12-23  Bruno Haible  <bruno@clisp.org>
42404
42405         * tests/test-localename.c (test_locale_name): New function, extracted
42406         from main. Also test mixed situations.
42407         (test_locale_name_posix, test_locale_name_environ,
42408         test_locale_name_default): New functions.
42409         (main): Invoke them all.
42410         * modules/localename-tests (configure.ac): Test for newlocale.
42411
42412 2009-12-23  Bruno Haible  <bruno@clisp.org>
42413
42414         unistd: Ensure getcwd gets declared before being overridden.
42415         * lib/unistd.in.h: Conditionally include <io.h>.
42416
42417 2009-12-22  Bruno Haible  <bruno@clisp.org>
42418
42419         wchar: Diagnose broken combination of glibc and gcc versions and flags.
42420         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
42421         (gl_WCHAR_H): Invoke it.
42422         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
42423         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
42424         Reported by Karl Berry <karl@freefriends.org>.
42425
42426 2009-12-22  Eric Blake  <ebb9@byu.net>
42427
42428         math, unistd: avoid redundant includes
42429         * lib/math.in.h (isnan): No need to re-include <math.h>.
42430         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
42431
42432         getsubopt: work around cygwin bug
42433         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
42434         avoid conflicting with system getsubopt.
42435         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
42436         bug.
42437
42438         getopt: synchronize from glibc
42439         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
42440         parameter order.  Adjust all callers.
42441         (_getopt_internal_r, main): Adjust quoting in error messages.
42442         Drop considerations for outdated POSIX 1003.2 error message.
42443         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
42444         callers.
42445         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
42446
42447         test-getopt: test stderr behavior
42448         * modules/getopt-posix-tests (Depends-on): Add dup2.
42449         * tests/test-getopt.c (ASSERT): Avoid stderr.
42450         (main): Move stderr to a temporary file.
42451         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
42452         Instead, add parameter to inform caller if output occurred.
42453         (test_getopt): Adjust all existing tests to expect silence, and
42454         add new tests of leading ":".
42455         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42456         glibc shortcomings with leading "-:" or "+:" in optstring.
42457         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42458         Likewise.
42459         * doc/posix-functions/getopt.texi (getopt): Likewise.
42460
42461         test-getopt: enhance test
42462         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
42463         supports optind=0.
42464         * tests/test-getopt.c (OPTIND_MIN): Move...
42465         * tests/test-getopt.h (OPTIND_MIN): ...here.
42466         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
42467         Require that optind=0 works, since modern BSD supports it in
42468         addition to optreset, and since coreutils expects it.
42469         (test_getopt_long_only): New test.
42470         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42471         glibc shortcomings with 'W;', and enforcement of optind=0.
42472         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42473         Likewise.
42474
42475 2009-12-21  Bruno Haible  <bruno@clisp.org>
42476
42477         localename: Improvements for MacOS X and Cygwin.
42478         * lib/localename.h (gl_locale_name_environ): New declaration.
42479         * lib/localename.c (gl_locale_name_environ): New function, extracted from
42480         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
42481         (gl_locale_name_posix): Invoke it.
42482         (gl_locale_name_default): Add comments. Use Windows native API also on
42483         Cygwin.
42484
42485 2009-12-21  Bruno Haible  <bruno@clisp.org>
42486
42487         Update list of Win32 locale ids.
42488         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
42489         (LANG_SAMI): Renamed from LANG_SAAMI.
42490         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
42491         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
42492         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
42493         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
42494         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
42495         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
42496         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
42497         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
42498         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
42499         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
42500         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
42501         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
42502         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
42503         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
42504         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
42505         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42506         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42507         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42508         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42509         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42510         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42511         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42512         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42513         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42514         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42515         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42516         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42517         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42518         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42519         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42520         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42521         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42522         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42523         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42524         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42525         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42526         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42527         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42528         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42529         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42530         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42531         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42532         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42533         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42534         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42535         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42536         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42537         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42538         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42539         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42540         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42541         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42542         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42543         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42544         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42545         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42546         Add more languages and countries for Sami, Sorbian. Add more countries
42547         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42548         for Pashto. Change country for Syriac, Tswana.
42549
42550 2009-12-21  Eric Blake  <ebb9@byu.net>
42551
42552         test-utimens: avoid spurious failure
42553         * tests/test-chown.h (nap): Factor...
42554         * tests/nap.h: ...into new file.
42555         * tests/test-lchown.h (nap): Avoid duplication.
42556         * tests/test-utimens-common.h (nap): Use shared implementation,
42557         necessary on file systems with 1-second resolution.
42558         * modules/chown-tests (Files): Include new file.
42559         * modules/fdutimensat-tests (Files): Likewise.
42560         * modules/futimens-tests (Files): Likewise.
42561         * modules/lchown-tests (Files): Likewise.
42562         * modules/openat-tests (Files): Likewise.
42563         * modules/utimens-tests (Files): Likewise.
42564         * modules/utimensat-tests (Files): Likewise.
42565
42566 2009-12-19  Eric Blake  <ebb9@byu.net>
42567
42568         futimens, utimensat: work around Linux bug
42569         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42570         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42571         * lib/utimensat.c (rpl_utimensat): Work around it.
42572         * lib/futimens.c (rpl_futimens): Adjust comment.
42573
42574         utimens: work around Linux ctime bug
42575         * lib/utimens.c (detect_ctime_bug): New helper function.
42576         (update_timespec): Differentiate between workaround needed for
42577         this bug vs. what is needed for systems that lack utimensat.
42578         (fdutimens, lutimens): Work around bug.
42579
42580         utimens: check for ctime update
42581         * tests/test-utimens-common.h (check_ctime): Define.
42582         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42583         * tests/test-futimens.h (test_futimens): Likewise.
42584         * tests/test-lutimens.h (test_lutimens): Likewise.
42585         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42586         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42587
42588 2009-12-19  Bruno Haible  <bruno@clisp.org>
42589
42590         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42591         * tests/test-dprintf-posix2.sh: New file.
42592         * tests/test-dprintf-posix2.c: New file.
42593         * modules/dprintf-posix-tests (Files): Add them.
42594         (configure.ac): Check for getrlimit and setrlimit.
42595         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42596
42597 2009-12-19  Bruno Haible  <bruno@clisp.org>
42598
42599         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42600         * tests/test-fprintf-posix3.sh: New file.
42601         * tests/test-fprintf-posix3.c: New file.
42602         * modules/fprintf-posix-tests (Files): Add them.
42603         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42604
42605 2009-12-19  Eric Blake  <ebb9@byu.net>
42606
42607         dirfd: fix prototype
42608         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42609         * lib/dirfd.c (dirfd): Likewise.
42610
42611         canonicalize: reduce memory usage
42612         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42613         allocation to size.
42614         Reported by Solar Designer <solar@openwall.com>.
42615
42616 2009-12-19  Bruno Haible  <bruno@clisp.org>
42617
42618         New module attribute 'Applicability'.
42619         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42620         * gnulib-tool: New option --extract-applicability.
42621         (func_usage): Document it.
42622         (sed_extract_prog): Recognize it.
42623         (func_get_applicability): New function.
42624         (func_import): Generalize handling of 'link-warning' module.
42625         * modules/link-warning (Applicability): New section.
42626         * modules/arg-nonnull (Applicability): New section.
42627         Repoted by Simon Josefsson <simon@josefsson.org>.
42628
42629 2009-12-19  Bruno Haible  <bruno@clisp.org>
42630
42631         fflush: tweak
42632         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42633         * lib/fseeko.c (rpl_fseeko): Likewise.
42634
42635 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42636
42637         * lib/gl_list.h: Fix typo in comment.
42638
42639 2009-12-16  Eric Blake  <ebb9@byu.net>
42640
42641         fcntl: use to simplify other modules
42642         * modules/cloexec (Depends-on): Add fcntl.
42643         * modules/fchdir (Depends-on): Likewise.
42644         * modules/fd-safer-flag (Depends-on): Likewise.
42645         * modules/unistd-safer (Depends-on): Likewise.
42646         * modules/dup3 (configure.ac): Set module indicator.
42647         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42648         missing.
42649         * lib/fchdir.c (_gl_register_dup): Fix comment.
42650         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42651         * lib/dup-safer.c (dup_safer): Likewise.
42652         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42653         * lib/dup3.c (dup3): Likewise.
42654         * tests/test-fchdir.c (main): Enhance test.
42655         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42656
42657         fcntl: port portions of fcntl to mingw
42658         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42659         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42660         replacement for mingw.
42661         * modules/fcntl (Description): Update.
42662         (Depends-on): Add dup2.
42663         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42664         * modules/fcntl-h (Makefile.am): Substitute it.
42665         * lib/fcntl.in.h (fcntl): Update declaration.
42666         (F_DUPFD, F_GETFD): New macros, when needed.
42667         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42668         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42669         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42670         we now guarantee.
42671
42672         fcntl: work around cygwin bug in F_DUPFD
42673         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42674         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42675         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42676         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42677         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42678
42679         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42680         * modules/fcntl (Files): List new files.
42681         (configure.ac): Run a test.
42682         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42683         * lib/fcntl.c (rpl_fcntl): Likewise.
42684         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42685         (gl_FCNTL_H): Always replace fcntl.h.
42686         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42687         * lib/fcntl.in.h (fcntl): Declare replacement.
42688         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42689         needed, plus a witness.
42690         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42691         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42692         * tests/test-fcntl.c: New file.
42693         * modules/fcntl-tests: Likewise.
42694
42695         binary-io: avoid potential compilation warning
42696         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42697         directives.
42698
42699         fflush: avoid compilation error on NetBSD
42700         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42701         between off_t and fpos_t, since the latter is sometimes a struct.
42702         * lib/fseeko.c (rpl_fseeko): Likewise.
42703         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42704
42705 2009-12-15  Eric Blake  <ebb9@byu.net>
42706
42707         fcntl-h, stdio, sys_ioctl: fix declarations
42708         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42709         function must not take arguments.
42710         * lib/sys_ioctl.in.h (ioctl): Likewise.
42711         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42712         (open): Add a link warning.
42713
42714 2009-12-15  Jim Meyering  <meyering@redhat.com>
42715
42716         areadlink, areadlink-with-size: relax license to LGPLv2+
42717         * modules/areadlink (License): Relax to LGPLv2+.
42718         * modules/areadlink-with-size (License): Likewise.
42719
42720 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42721             Bruno Haible  <bruno@clisp.org>
42722
42723         *printf: Fix memory leak.
42724         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42725         * lib/vfprintf.c (vfprintf): Likewise.
42726         * lib/dprintf.c (dprintf): Likewise.
42727         * lib/vdprintf.c (vdprintf): Likewise.
42728
42729 2009-12-14  Eric Blake  <ebb9@byu.net>
42730
42731         accept4: adjust module dependencies
42732         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42733
42734         utimens: one more try at avoiding compiler warning
42735         * lib/utimens.c (lutimens): Lower scope of result.
42736
42737 2009-12-13  Bruno Haible  <bruno@clisp.org>
42738
42739         Move the malloc checking from module 'list' to new module 'xlist'.
42740         * modules/xlist: New file.
42741         * lib/gl_xlist.h: New file.
42742         * lib/gl_xlist.c: New file.
42743         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42744         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42745         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42746         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42747         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42748         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42749         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42750         gl_sortedlist_nx_add): New declarations.
42751         (struct gl_list_implementation): Rename and change methods accordingly.
42752         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42753         (gl_list_nx_create): Renamed from gl_list_create.
42754         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42755         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42756         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42757         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42758         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42759         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42760         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42761         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42762         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42763         gl_list_create_empty.
42764         (gl_list_nx_create): Renamed from gl_list_create.
42765         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42766         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42767         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42768         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42769         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42770         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42771         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42772         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42773         * lib/gl_array_list.c: Don't include xalloc.h.
42774         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42775         NULL upon out-of-memory.
42776         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42777         out-of-memory.
42778         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42779         Change return type to 'int'.
42780         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42781         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42782         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42783         upon out-of-memory.
42784         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42785         upon out-of-memory.
42786         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42787         upon out-of-memory.
42788         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42789         upon out-of-memory.
42790         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42791         out-of-memory.
42792         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42793         Update.
42794         (gl_array_list_implementation): Update.
42795         * lib/gl_carray_list.c: Don't include xalloc.h.
42796         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42797         Return NULL upon out-of-memory.
42798         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42799         out-of-memory.
42800         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42801         Change return type to 'int'.
42802         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42803         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42804         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42805         upon out-of-memory.
42806         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42807         upon out-of-memory.
42808         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42809         out-of-memory.
42810         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42811         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42812         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42813         Update.
42814         (gl_carray_list_implementation): Update.
42815         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42816         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42817         gl_linked_create_empty. Return NULL upon out-of-memory.
42818         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42819         out-of-memory.
42820         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42821         Change return type to 'int'. Return -1 upon out-of-memory.
42822         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42823         out-of-memory.
42824         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42825         upon out-of-memory.
42826         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42827         upon out-of-memory.
42828         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42829         NULL upon out-of-memory.
42830         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42831         upon out-of-memory.
42832         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42833         out-of-memory.
42834         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42835         Update.
42836         * lib/gl_linked_list.c: Don't include xalloc.h.
42837         (gl_linked_list_implementation): Update.
42838         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42839         (add_to_bucket): Change return type to 'int'.
42840         (gl_linkedhash_list_implementation): Update.
42841         * lib/gl_anytree_list1.h (free_subtree): New function.
42842         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42843         gl_tree_create_empty. Return NULL upon out-of-memory.
42844         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42845         Change return type to 'int'. Return -1 upon out-of-memory.
42846         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42847         out-of-memory.
42848         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42849         (gl_tree_remove_node): New function, moved here from
42850         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42851         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42852         Update.
42853         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42854         malloc, not xmalloc. Return NULL upon out-of-memory.
42855         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42856         out-of-memory.
42857         (gl_tree_remove_node_from_tree): New function, extracted from
42858         gl_tree_remove_node.
42859         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42860         upon out-of-memory.
42861         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42862         out-of-memory.
42863         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42864         upon out-of-memory.
42865         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42866         upon out-of-memory.
42867         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42868         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42869         not xmalloc. Return NULL upon out-of-memory.
42870         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42871         out-of-memory.
42872         (gl_tree_remove_node_from_tree): New function, extracted from
42873         gl_tree_remove_node.
42874         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42875         upon out-of-memory.
42876         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42877         out-of-memory.
42878         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42879         upon out-of-memory.
42880         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42881         upon out-of-memory.
42882         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42883         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42884         gl_anytree_list1.h before gl_anyavltree_list2.h.
42885         (gl_avltree_list_implementation): Update.
42886         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42887         gl_anytree_list1.h before gl_anyavltree_list2.h.
42888         (gl_rbtree_list_implementation): Update.
42889         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42890         Change return type to 'int'. Return -1 upon out-of-memory. Use
42891         __builtin_expect.
42892         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42893         (gl_avltreehash_list_implementation): Update.
42894         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42895         (gl_rbtreehash_list_implementation): Update.
42896         * modules/array-list (Depends-on): Remove xalloc.
42897         * modules/carray-list (Depends-on): Likewise.
42898         * modules/linked-list (Depends-on): Likewise.
42899         * modules/linkedhash-list (Depends-on): Likewise.
42900         * modules/avltree-list (Depends-on): Likewise.
42901         * modules/rbtree-list (Depends-on): Likewise.
42902         * modules/avltreehash-list (Depends-on): Likewise.
42903         * modules/rbtreehash-list (Depends-on): Likewise.
42904
42905         * modules/xsublist: New file.
42906         * lib/gl_xsublist.h: New file.
42907         * lib/gl_xsublist.c: New file.
42908         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42909         (gl_sublist_nx_create): New declaration.
42910         * lib/gl_sublist.c: Don't include xalloc.h.
42911         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42912         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42913         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42914         Change return type to 'int'. Return -1 upon out-of-memory.
42915         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42916         upon out-of-memory.
42917         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42918         NULL upon out-of-memory.
42919         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42920         upon out-of-memory.
42921         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42922         NULL upon out-of-memory.
42923         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42924         NULL upon out-of-memory.
42925         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42926         upon out-of-memory.
42927         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42928         (gl_sublist_list_implementation): Update.
42929         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42930         upon out-of-memory.
42931         * modules/sublist (Depends-on): Remove xalloc.
42932
42933         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42934         * tests/test-carray_list.c: Likewise.
42935         * tests/test-linked_list.c: Likewise.
42936         * tests/test-linkedhash_list.c: Likewise.
42937         * tests/test-avltree_list.c: Likewise.
42938         * tests/test-rbtree_list.c: Likewise.
42939         * tests/test-avltreehash_list.c: Likewise.
42940         * tests/test-rbtreehash_list.c: Likewise.
42941         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42942         * modules/carray-list-tests (Makefile.am): Likewise.
42943         * modules/linked-list-tests (Makefile.am): Likewise.
42944         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42945         * modules/avltree-list-tests (Makefile.am): Likewise.
42946         * modules/rbtree-list-tests (Makefile.am): Likewise.
42947         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42948         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42949
42950         * NEWS: Mention the changes.
42951
42952         * lib/clean-temp.c: Include gl_xlist.h.
42953         * modules/clean-temp (Depends-on): Add xlist.
42954
42955         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42956         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42957
42958         * tests/test-array_oset.c: Include gl_xlist.h.
42959         * modules/array-oset-tests (Depends-on): Add xlist.
42960
42961         Reported by José E. Marchesi <jemarch@gnu.org>.
42962
42963 2009-12-13  Bruno Haible  <bruno@clisp.org>
42964
42965         Move the malloc checking from module 'oset' to new module 'xoset'.
42966         * modules/xoset: New file.
42967         * lib/gl_xoset.h: New file.
42968         * lib/gl_xoset.c: New file.
42969         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42970         declarations.
42971         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42972         (struct gl_oset_implementation): Rename and change methods accordingly.
42973         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42974         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42975         'int'. Mark as __warn_unused_result__.
42976         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42977         gl_oset_create_empty.
42978         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42979         'int'.
42980         * lib/gl_array_oset.c: Don't include xalloc.h.
42981         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42982         malloc, not xmalloc.
42983         (grow): Change return type to 'int'. Don't call xalloc_die.
42984         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42985         to 'int'.
42986         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42987         'int'.
42988         (gl_array_oset_implementation): Update.
42989         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42990         gl_tree_create_empty.
42991         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42992         'int'.
42993         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42994         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42995         xmalloc.
42996         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42997         not xmalloc.
42998         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42999         xmalloc.
43000         (gl_avltree_oset_implementation): Update.
43001         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
43002         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
43003         xmalloc.
43004         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
43005         not xmalloc.
43006         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
43007         xmalloc.
43008         (gl_rbtree_oset_implementation): Update.
43009         * modules/array-oset (Depends-on): Remove xalloc.
43010         * modules/avltree-oset (Depends-on): Likewise.
43011         * modules/rbtree-oset (Depends-on): Likewise.
43012         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
43013         * tests/test-avltree_oset.c: Likewise.
43014         * tests/test-rbtree_oset.c: Likewise.
43015         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
43016         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
43017         * modules/rbtree-oset-tests (Makefile.am): Likewise.
43018         * NEWS: Mention the change.
43019
43020 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
43021
43022         maint.mk: allow a project to override release-prep commands
43023         * top/maint.mk (alpha, beta, stable): Move release-preparatory
43024         commands into a new rule.
43025         (release-prep): New rule.
43026         (release-prep-hook): New overridable variable.
43027
43028 2009-12-13  Bruno Haible  <bruno@clisp.org>
43029
43030         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
43031
43032 2009-12-13  Jim Meyering  <meyering@redhat.com>
43033
43034         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
43035         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
43036
43037 2009-12-12  Bruno Haible  <bruno@clisp.org>
43038
43039         duplocale: Tweak.
43040         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
43041
43042 2009-12-12  Karl Berry  <karl@gnu.org>
43043
43044         * config/srclist.txt (strtoll.c): tab changes, no more sync.
43045
43046 2009-12-12  Bruno Haible  <bruno@clisp.org>
43047
43048         * m4/po.m4: Undo incorrect untabification.
43049
43050 2009-12-12  Bruno Haible  <bruno@clisp.org>
43051
43052         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
43053         * modules/c-strtod (Depends-on): Add locale.
43054         * modules/c-strtold (Depends-on): Likewise.
43055
43056 2009-12-12  Bruno Haible  <bruno@clisp.org>
43057
43058         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
43059
43060 2009-12-11  Eric Blake  <ebb9@byu.net>
43061
43062         setenv: relax requirement in light of POSIX ruling
43063         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
43064         not NULL.
43065         * tests/test-setenv.c (main): Relax test.
43066         * tests/test-unsetenv.c (main): Likewise.
43067         * doc/posix-functions/setenv.texi (setenv): Document this.
43068         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43069
43070 2009-12-11  Bruno Haible  <bruno@clisp.org>
43071
43072         New module 'fd-safer-flag'.
43073         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
43074         * lib/dup-safer.c (dup_safer_flag): Remove function.
43075         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
43076         * lib/fd-safer.c (fd_safer_flag): Remove function.
43077         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
43078         * modules/cloexec (configure.ac): Drop indicator macro.
43079         * modules/fd-safer-flag: New file.
43080         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
43081         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
43082         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
43083
43084 2009-12-11  Bruno Haible  <bruno@clisp.org>
43085
43086         Tests for module 'nl_langinfo'.
43087         * modules/nl_langinfo-tests: New file.
43088         * tests/test-nl_langinfo.sh: New file.
43089         * tests/test-nl_langinfo.c: New file.
43090
43091         New module 'nl_langinfo'.
43092         * lib/nl_langinfo.c: New file.
43093         * m4/nl_langinfo.m4: New file.
43094         * modules/nl_langinfo: New file.
43095         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
43096
43097 2009-12-11  Bruno Haible  <bruno@clisp.org>
43098
43099         Tests for module 'langinfo'.
43100         * modules/langinfo-tests: New file.
43101         * tests/test-langinfo.c: New file.
43102
43103         New module 'langinfo'.
43104         * lib/langinfo.in.h: New file.
43105         * m4/langinfo_h.m4: New file.
43106         * modules/langinfo: New file.
43107         * doc/posix-headers/langinfo.texi: Mention the new module.
43108
43109 2009-12-11  Bruno Haible  <bruno@clisp.org>
43110
43111         * lib/config.charset: Untabify.
43112
43113 2009-12-11  Bruno Haible  <bruno@clisp.org>
43114
43115         * modules/unistd-safer (configure.ac): Drop indicator macro.
43116
43117 2009-12-11  Bruno Haible  <bruno@clisp.org>
43118
43119         Move pipe2-safer code to its own file.
43120         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
43121         * lib/pipe-safer.c (pipe2_safer): Remove function.
43122         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
43123         (Makefile.am): Add it to lib_SOURCES.
43124
43125 2009-12-10  Bruno Haible  <bruno@clisp.org>
43126
43127         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
43128
43129 2009-12-10  Bruno Haible  <bruno@clisp.org>
43130
43131         Declare which arguments expect non-NULL values, for GCC and clang.
43132         * build-aux/arg-nonnull.h: New file.
43133         * modules/arg-nonnull: New file.
43134         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
43135         (inet_ntop, inet_pton): Use it.
43136         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
43137         (closedir, dirfd, opendir, scandir, alphasort): Use it.
43138         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
43139         (open, openat): Use it.
43140         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
43141         (fnmatch): Use it.
43142         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
43143         (getopt, getopt_long, getopt_long_only): Use it.
43144         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
43145         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
43146         Use it.
43147         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
43148         (iconv_open): Use it.
43149         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
43150         (strtoimax, strtoumax): Use it.
43151         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
43152         (duplocale): Use it.
43153         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
43154         (frexp, frexpl): Use it.
43155         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
43156         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
43157         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
43158         (tsearch, tfind, tdelete, twalk): Use it.
43159         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
43160         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
43161         sigpending): Use it.
43162         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
43163         (posix_spawn, posix_spawnp, posix_spawnattr_init,
43164         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
43165         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
43166         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
43167         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
43168         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
43169         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
43170         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
43171         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
43172         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
43173         Use it.
43174         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
43175         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
43176         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
43177         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
43178         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
43179         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
43180         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
43181         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
43182         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
43183         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
43184         strtoull, unsetenv): Use it.
43185         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
43186         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
43187         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
43188         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
43189         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
43190         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
43191         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
43192         (strcasecmp, strncasecmp): Use it.
43193         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
43194         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
43195         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
43196         rpl_setsockopt): Use it.
43197         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
43198         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
43199         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
43200         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
43201         (gettimeofday): Use it.
43202         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
43203         (times): Use it.
43204         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
43205         (uname): Use it.
43206         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
43207         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
43208         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
43209         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
43210         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
43211         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
43212         unlinkat, write): Use it.
43213         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
43214         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
43215         * lib/argv-iter.h: Include arg-nonnull.h.
43216         (_ATTRIBUTE_NONNULL_): Remove macro.
43217         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
43218         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
43219         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
43220         optimization.
43221         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
43222         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
43223         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
43224         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
43225         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
43226         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
43227         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
43228         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
43229         * modules/arpa_inet (Depends-on): Add arg-nonnull.
43230         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
43231         * modules/dirent (Depends-on): Add arg-nonnull.
43232         (Makefile.am): Insert arg-nonnull.h into dirent.h.
43233         * modules/fcntl-h (Depends-on): Add arg-nonnull.
43234         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
43235         * modules/fnmatch (Depends-on): Add arg-nonnull.
43236         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
43237         * modules/getopt-posix (Depends-on): Add arg-nonnull.
43238         (Makefile.am): Insert arg-nonnull.h into getopt.h.
43239         * modules/glob (Depends-on): Add arg-nonnull.
43240         (Makefile.am): Insert arg-nonnull.h into glob.h.
43241         * modules/iconv_open (Depends-on): Add arg-nonnull.
43242         (Makefile.am): Insert arg-nonnull.h into iconv.h.
43243         * modules/inttypes (Depends-on): Add arg-nonnull.
43244         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
43245         * modules/locale (Depends-on): Add arg-nonnull.
43246         (Makefile.am): Insert arg-nonnull.h into locale.h.
43247         * modules/math (Depends-on): Add arg-nonnull.
43248         (Makefile.am): Insert arg-nonnull.h into math.h.
43249         * modules/netdb (Depends-on): Add arg-nonnull.
43250         (Makefile.am): Insert arg-nonnull.h into netdb.h.
43251         * modules/search (Depends-on): Add arg-nonnull.
43252         (Makefile.am): Insert arg-nonnull.h into search.h.
43253         * modules/signal (Depends-on): Add arg-nonnull.
43254         (Makefile.am): Insert arg-nonnull.h into signal.h.
43255         * modules/spawn (Depends-on): Add arg-nonnull.
43256         (Makefile.am): Insert arg-nonnull.h into spawn.h.
43257         * modules/stdio (Depends-on): Add arg-nonnull.
43258         (Makefile.am): Insert arg-nonnull.h into stdio.h.
43259         * modules/stdlib (Depends-on): Add arg-nonnull.
43260         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
43261         * modules/string (Depends-on): Add arg-nonnull.
43262         (Makefile.am): Insert arg-nonnull.h into string.h.
43263         * modules/strings (Depends-on): Add arg-nonnull.
43264         (Makefile.am): Insert arg-nonnull.h into strings.h.
43265         * modules/sys_socket (Depends-on): Add arg-nonnull.
43266         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
43267         * modules/sys_stat (Depends-on): Add arg-nonnull.
43268         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
43269         * modules/sys_time (Depends-on): Add arg-nonnull.
43270         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
43271         * modules/sys_times (Depends-on): Add arg-nonnull.
43272         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
43273         * modules/sys_utsname (Depends-on): Add arg-nonnull.
43274         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
43275         * modules/time (Depends-on): Add arg-nonnull.
43276         (Makefile.am): Insert arg-nonnull.h into time.h.
43277         * modules/unistd (Depends-on): Add arg-nonnull.
43278         (Makefile.am): Insert arg-nonnull.h into unistd.h.
43279         * modules/wchar (Depends-on): Add arg-nonnull.
43280         (Makefile.am): Insert arg-nonnull.h into wchar.h.
43281         * modules/argv-iter (Depends-on): Add arg-nonnull.
43282         * tests/test-canonicalize.c (null_ptr): New function.
43283         (main): Use it.
43284         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
43285         (main): Use it.
43286         * tests/test-memmem.c (null_ptr): New function.
43287         (main): Use it.
43288         Reported by Jim Meyering.
43289
43290 2009-12-10  Bruno Haible  <bruno@clisp.org>
43291
43292         Use spaces for indentation, not tabs.
43293         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
43294         * m4/*.m4: Untabify.
43295         * build-aux/*.h: Untabify.
43296         * tests/**/*.[hc]: Untabify.
43297         * README: New section "Indent with spaces, not TABs", based on
43298         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
43299         * NEWS: Mention the change.
43300
43301 2009-12-10  Bruno Haible  <bruno@clisp.org>
43302
43303         pty test: Fix link error.
43304         * modules/pty-tests (Makefile.am): Add the default LDADD value to
43305         test_pty_LDADD.
43306
43307 2009-12-07  Simon Josefsson  <simon@josefsson.org>
43308
43309         * modules/pty: New file.
43310         * modules/pty-tests: New file.
43311         * m4/pty.m4: New file.
43312         * tests/test-pty.c: New file.
43313         * doc/glibc-headers/pty.texi: Modified.
43314         * doc/glibc-functions/forkpty.texi: Modified.
43315         * doc/glibc-functions/openpty.texi: Modified.
43316
43317 2009-12-10  Bruno Haible  <bruno@clisp.org>
43318
43319         Avoid syntax error in C++ mode.
43320         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
43321
43322 2009-12-10  Bruno Haible  <bruno@clisp.org>
43323
43324         Use sed with option -e.
43325         * gnulib-tool (func_version, func_emit_copyright_notice,
43326         func_emit_initmacro_end, func_import, func_create_testdir): Pass
43327         option -e to sed.
43328         * modules/link-warning (Makefile.am): Likewise.
43329
43330 2009-12-10  Jim Meyering  <meyering@redhat.com>
43331
43332         mgetgroups: do not write bytes beyond end of malloc'd buffer
43333         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
43334         username, we call getgroups with a one-element-shorter buffer,
43335         but still told it the length was original, max_n_groups.
43336
43337 2009-12-09  Eric Blake  <ebb9@byu.net>
43338
43339         cloexec: relax license
43340         * modules/cloexec (Maintainer): Add myself.
43341         (License): Use LGPL, not GPL.
43342
43343         link-warning: optimize generation
43344         * modules/link-warning (Makefile.am): Reduce process usage.
43345
43346 2009-12-09  Bruno Haible  <bruno@clisp.org>
43347
43348         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
43349         workaround was added on 2009-11-17.
43350
43351 2009-12-09  Jim Meyering  <meyering@redhat.com>
43352             Bruno Haible  <bruno@clisp.org>
43353
43354         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
43355         * modules/link-warning (Makefile.am): Make the comment-removing sed
43356         command more robust in the face of bootstrap-prepended comment lines.
43357
43358 2009-12-09  Bruno Haible  <bruno@clisp.org>
43359
43360         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
43361         most one group.
43362
43363 2009-12-09  Simon Josefsson <simon@josefsson.org>
43364             Bruno Haible  <bruno@clisp.org>
43365
43366         * build-aux/link-warning.h: Add copyright notice.
43367         * modules/link-warning (Makefile.am): Generate link-warning.h from
43368         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
43369         * NEWS: Mention change in link-warning module.
43370         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
43371         * modules/dirent (Makefile.am): Add dependency to dirent.h.
43372         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
43373         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
43374         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
43375         * modules/math (Makefile.am): Add dependency to math.h.
43376         * modules/search (Makefile.am): Add dependency to search.h.
43377         * modules/signal (Makefile.am): Add dependency to signal.h.
43378         * modules/spawn (Makefile.am): Add dependency to spawn.h.
43379         * modules/stdio (Makefile.am): Add dependency to stdio.h.
43380         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
43381         * modules/string (Makefile.am): Add dependency to string.h.
43382         * modules/strings (Makefile.am): Add dependency to strings.h.
43383         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
43384         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
43385         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
43386         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
43387         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
43388         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
43389         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
43390         * modules/unistd (Makefile.am): Add dependency to unistd.h.
43391         * modules/wchar (Makefile.am): Add dependency to wchar.h.
43392
43393 2009-12-09  Bruno Haible  <bruno@clisp.org>
43394
43395         fchdir: Optimize away rpl_fstat when possible.
43396         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
43397         REPLACE_OPEN_DIRECTORY.
43398         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
43399
43400 2009-12-09  Bruno Haible  <bruno@clisp.org>
43401
43402         * lib/fchdir.c: Update comment.
43403
43404 2009-12-09  Bruno Haible  <bruno@clisp.org>
43405
43406         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
43407
43408 2009-12-08  Eric Blake  <ebb9@byu.net>
43409
43410         fchdir: avoid memory leak on re-registration.
43411         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
43412
43413 2009-12-08  Jim Meyering  <meyering@redhat.com>
43414
43415         init.sh: avoid Solaris 10 /bin/sh portability problem
43416         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
43417         sourced script:
43418           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
43419           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
43420           bar
43421         tests/init.sh relied on that, accepting a --set-path=DIR argument,
43422         and two tests used that idiom.
43423         * tests/init.sh: Update suggested usage comments.
43424         (path_prepend_): New function, to be used in place
43425         of the --src-path=DIR option.
43426         (setup_): Move PATH-prepending code into path_prepend_.
43427         * tests/test-pread.sh: Adapt to new usage.
43428         * tests/test-xalloc-die.sh: Likewise.
43429
43430 2009-12-08  Simon Josefsson  <simon@josefsson.org>
43431
43432         * doc/gnulib.texi (Glibc pty.h): Add.
43433         * doc/glibc-functions/forkpty.texi: Add.
43434         * doc/glibc-functions/openpty.texi: Add.
43435         Suggested by Bruno Haible.
43436
43437 2009-12-08  Eric Blake  <ebb9@byu.net>
43438
43439         fchdir: fix logic bugs
43440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
43441         * tests/test-fchdir.c (main): Enhance test.
43442         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
43443         is in use.
43444
43445         dup2: fix logic bugs
43446         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
43447         REPLACE_DUP2 to decide when rpl_dup2 is needed.
43448         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
43449         exists.
43450         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
43451
43452 2009-12-07  Eric Blake  <ebb9@byu.net>
43453
43454         unlink: fix m4 detection
43455         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
43456
43457         unistd-safer: add unit test
43458         * modules/unistd-safer-tests: New file.
43459         * tests/test-dup-safer.c: Likewise.
43460         * tests/test-cloexec.c (setmode): Avoid compiler warning.
43461         * tests/test-dup2.c (setmode): Likewise.
43462         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
43463
43464         cloexec: preserve text vs. binary across dup_cloexec
43465         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
43466         mode.
43467         * modules/dup2-tests (Depends-on): Add binary-io.
43468         * modules/cloexec-tests (Depends-on): Likewise.
43469         * tests/test-dup2.c (setmode, is_mode): New helpers.
43470         (main): Add tests that translation mode is preserved.
43471         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
43472         Reported by Bruno Haible.
43473
43474         mgetgroups: reduce duplicate listings
43475         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
43476         resulting array.
43477         * tests/test-chown.h (test_chown): Simplify client.
43478         * tests/test-lchown.h (test_lchown): Likewise.
43479
43480 2009-12-06  Bruno Haible  <bruno@clisp.org>
43481
43482         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
43483         value.
43484
43485 2009-12-06  Bruno Haible  <bruno@clisp.org>
43486
43487         * lib/progname.c: Include stdio.h, stdlib.h.
43488         (set_program_name): Reject a NULL argument.
43489
43490 2009-12-05  Eric Blake  <ebb9@byu.net>
43491
43492         pipe2-safer: new module
43493         * modules/pipe2-safer: New file.
43494         * lib/unistd-safer.h (pipe2_safer): New prototype.
43495         * lib/unistd--.h (pipe2): New wrapper.
43496         * lib/pipe-safer.c (pipe2_safer): New function.
43497         * modules/pipe (Depends-on): Add pipe2-safer.
43498         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
43499
43500         stdlib-safer: preserve cloexec flag for mkostemp[s]
43501         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
43502         fd_safer_flag.
43503
43504         unistd-safer: allow preservation of cloexec status via flag
43505         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43506         prototypes.
43507         * lib/dup-safer.c (dup_safer_flag): New function.
43508         * lib/fd-safer.c (fd_safer_flag): Likewise.
43509         * modules/cloexec (configure.ac): Set witness.
43510
43511         test-dup2: enhance test
43512         * modules/dup2-tests (Depends-on): Add cloexec.
43513         * tests/test-dup2.c (main): Enhance test.
43514
43515         cloexec: add dup_cloexec
43516         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43517         header and comments.
43518         * lib/cloexec.c (set_cloexec_flag): Add comments.
43519         (dup_cloexec): New function, with mingw implementation borrowed
43520         from...
43521         * lib/w32spawn.h (dup_noinherit): ...here.
43522         * modules/execute (Depends-on): Add cloexec.
43523         * modules/pipe (Depends-on): Likewise.
43524         * modules/cloexec (Depends-on): Add dup2.
43525         * modules/cloexec-tests (Files): New file.
43526         * tests/test-cloexec.c: Likewise.
43527
43528         test-xalloc-die: fix test for mingw
43529         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43530         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43531         directory and .exe suffix off argv[0] output.
43532
43533         test-fseeko: fix test for mingw
43534         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43535         than undefining fseek, so test will pass on mingw.
43536
43537 2009-12-05  Bruno Haible  <bruno@clisp.org>
43538
43539         * lib/progname.h (set_program_name): Clarify specification.
43540         * lib/progname.c (set_program_name): Likewise.
43541         Reported by Jim Meyering.
43542
43543 2009-12-05  Jim Meyering  <meyering@redhat.com>
43544
43545         maint.mk: backslash-escape parens in default regexp
43546         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43547         backslash-escape the literal parentheses.
43548
43549         maint.mk: news-date-check: use grep -E
43550         * top/maint.mk (today): Define a Make variable, not a...
43551         (news-date-check): ...shell variable.
43552         (news-date-regexp): Use the Make variable.
43553         Use grep's -E option.  Change the failing diagnostic to mention
43554         the variable, $(news-date-regexp).
43555
43556 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43557
43558         maintainer-makefile: allow customization of NEWS entry format
43559         * top/maint.mk (news-date-regexp): New overridable variable.
43560         (news-date-check): Use it.
43561
43562 2009-12-04  Eric Blake  <ebb9@byu.net>
43563
43564         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43565         * lib/mgetgroups.h (xgetgroups): New prototype.
43566         * lib/mgetgroups.c (xgetgroups): New wrapper.
43567         (mgetgroups): Handle ENOSYS.
43568         * modules/mgetgroups (Depends-on): Add realloc.
43569         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43570
43571         mgetgroups: avoid argument promotion issues with -1
43572         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43573         for invalid gid_t.
43574         * tests/test-chown.h (getegid, test_chown): Likewise.
43575         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43576
43577 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43578
43579         exclude: Fix header file problems.
43580         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43581
43582 2009-12-01  Jim Meyering  <meyering@redhat.com>
43583
43584         fts: fts_open: do not let an empty string cause immediate failure
43585         This is required in support of GNU rm, for which the command
43586         "rm A '' B" must process and remove both A and B, in spite of
43587         the empty string argument.
43588         * lib/fts.c (fts_open): Do not let the presence of an empty string
43589         cause fts_open to fail immediately.  Most fts-using tools must be
43590         able to process all arguments, in order, and can be expected to
43591         diagnose such arguments themselves.
43592
43593 2009-11-30  Eric Blake  <ebb9@byu.net>
43594
43595         utimens: fix compilation error
43596         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43597         Declare variable at right scope.
43598
43599 2009-11-29  Jim Meyering  <meyering@redhat.com>
43600
43601         bootstrap: handle perl-5.11's changed --version output
43602         * build-aux/bootstrap (get_version): Handle perl separately,
43603         since perl-5.11's --version output is different.
43604
43605 2009-11-28  Jim Meyering  <meyering@redhat.com>
43606
43607         userspec: depend on the inttostr module, too
43608         * modules/userspec (Depends-on): Add inttostr.
43609
43610         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43611         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43612         number of MAXUID when it evaluates to (uid_t) -1.
43613         Likewise for group ID.  Reported by Matt McCutchen in
43614         <http://savannah.gnu.org/bugs/?28113>
43615
43616         userspec: reformat to use spaces, not TABs
43617         * lib/userspec.c: Expand TABs to spaces.
43618         Add Emacs' "indent-tabs-mode: nil" hint.
43619
43620 2009-11-27  Eric Blake  <ebb9@byu.net>
43621
43622         getopt-gnu: flush out another BSD bug
43623         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43624         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43625         flush out BSD bug.
43626         * tests/test-getopt.h (test_getopt): End lists with NULL.
43627         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43628         (test_getopt_long_posix): Enhance test.
43629         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43630         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43631         getopt-gnu.
43632         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43633         Likewise.
43634
43635 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43636
43637         * modules/idpriv-droptemp-tests (Notice): Fix text.
43638
43639 2009-11-27  Jim Meyering  <meyering@redhat.com>
43640
43641         test-xalloc-die: avoid spurious failure due to libtool argv difference
43642         In a libtool-enabled project, this test would fail due to a difference
43643         in the emitted program name, e.g.,
43644         -test-xalloc-die: memory exhausted
43645         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43646         Use program to avoid that.
43647         * modules/xalloc-die-tests (Depends-on): Add progname.
43648         * tests/test-xalloc-die.c: Include progname.h".
43649         (program_name): Remove decl.
43650         (main): Call set_program_name.
43651         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43652
43653 2009-11-26  Richard Jones  <rjones@redhat.com>
43654
43655         w32sock: leave win32 error in place.
43656         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43657
43658 2009-11-26  Eric Blake  <ebb9@byu.net>
43659
43660         init.sh: suggest to use skip_ and fail_ functions in comments
43661         * tests/init.sh: Add a sentence.
43662
43663 2009-11-25  Bruno Haible  <bruno@clisp.org>
43664
43665         init.sh: add documentation in comments
43666         * tests/init.sh: Add some developer and user documentation.
43667
43668 2009-11-26  Jim Meyering  <meyering@redhat.com>
43669
43670         init.sh: accommodate even those who specify bogus srcdir manually
43671         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43672         configure-time tests to be sanitized, so that there is no need to
43673         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43674         (with no double quotes) suffices.  However, since tests may be
43675         invoked manually, and since you may explicitly set srcdir to the
43676         name of a directory containing spaces, do quote its uses here.
43677         * tests/test-pread.sh: Likewise.
43678         Suggested by Bruno Haible.
43679
43680         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43681         * tests/test-pread.sh: Write no data into the pipe, because
43682         test-pread actually reads none.  This avoids a diagnostic,
43683         "bash: echo: write error: Broken pipe", that arises in the unusual
43684         event something is ignoring SIGPIPE, and might be interpreted
43685         as some sort of failure.  Reported by Bruno Haible.
43686
43687 2009-11-25  Jim Meyering  <meyering@redhat.com>
43688
43689         test-pread: cover failure with ESPIPE and EINVAL
43690         * tests/test-pread.c (main): Test for failure, too.
43691         * tests/test-pread.sh: Invoke with stdin on a pipe.
43692         Suggested by Eric Blake.
43693
43694         pread: improvement and fix
43695         * modules/pread (Depends-on): Depend on lseek, for portability to
43696         e.g., mingw.  Suggested by Eric Blake.
43697         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43698
43699         unistd.in.h: correct declaration of pread
43700         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43701         Reported by Richard W.M. Jones.
43702
43703         test-pread.sh: distribute the test script
43704         * modules/pread-tests (Files): Include test-pread.sh.
43705
43706         test-pread.sh: clean up
43707         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43708         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43709         That is unnecessary, since it's always ".".
43710         Suggestion from Eric Blake.
43711
43712         test-pread.sh: make executable
43713         * tests/test-pread.sh: Set executable bit.
43714         Reported by Eric Blake.
43715
43716         correct typo in test-pread.sh
43717         * tests/test-pread.sh: Add #! line.
43718
43719         test pread
43720         * tests/test-pread.c: New file.
43721         * tests/test-pread.sh: Likewise.
43722         * modules/pread-tests: Likewise.
43723
43724         pread: new module
43725         * modules/pread: New file.
43726         * lib/unistd.in.h (pread): Define/declare.
43727         * lib/pread.c (pread): New file.
43728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43729         * modules/unistd (Makefile.am): Substitute witnesses.
43730         * doc/posix-functions/pread.texi (pread): Update.
43731         * MODULES.html.sh: Add pread.
43732
43733 2009-11-25  Jim Meyering  <meyering@redhat.com>
43734
43735         tests/init.sh: new file to be used via most *.sh tests
43736         * tests/init.sh: New file.
43737
43738 2009-11-25  Eric Blake  <ebb9@byu.net>
43739
43740         utimens: work around older Linux failure with symlinks
43741         * lib/utimens.c (lutimensat_works_really): New variable.
43742         (fdutimens, lutimens): Use it to manage kernels that support
43743         nanosecond times on files, but not on symlinks.
43744         Reported by Ondřej Vašík.
43745
43746         utimes: fix configure grammar
43747         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43748
43749 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43750
43751         regex: Fix fastmap for multibyte character ranges.
43752         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43753         characters when a multibyte character range is included.
43754
43755 2009-11-22  Andy Wingo  <wingo@pobox.com>
43756
43757         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43758         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43759
43760 2009-11-24  Bruno Haible  <bruno@clisp.org>
43761
43762         doc: Most *_l functions exist in MacOS X 10.5.
43763         * doc/posix-functions/duplocale.texi: Update platforms list.
43764         * doc/posix-functions/freelocale.texi: Likewise.
43765         * doc/posix-functions/newlocale.texi: Likewise.
43766         * doc/posix-functions/uselocale.texi: Likewise.
43767         * doc/posix-functions/isalnum_l.texi: Likewise.
43768         * doc/posix-functions/isalpha_l.texi: Likewise.
43769         * doc/posix-functions/isblank_l.texi: Likewise.
43770         * doc/posix-functions/iscntrl_l.texi: Likewise.
43771         * doc/posix-functions/isdigit_l.texi: Likewise.
43772         * doc/posix-functions/isgraph_l.texi: Likewise.
43773         * doc/posix-functions/islower_l.texi: Likewise.
43774         * doc/posix-functions/isprint_l.texi: Likewise.
43775         * doc/posix-functions/ispunct_l.texi: Likewise.
43776         * doc/posix-functions/isspace_l.texi: Likewise.
43777         * doc/posix-functions/isupper_l.texi: Likewise.
43778         * doc/posix-functions/iswalnum_l.texi: Likewise.
43779         * doc/posix-functions/iswalpha_l.texi: Likewise.
43780         * doc/posix-functions/iswblank_l.texi: Likewise.
43781         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43782         * doc/posix-functions/iswctype_l.texi: Likewise.
43783         * doc/posix-functions/iswdigit_l.texi: Likewise.
43784         * doc/posix-functions/iswgraph_l.texi: Likewise.
43785         * doc/posix-functions/iswlower_l.texi: Likewise.
43786         * doc/posix-functions/iswprint_l.texi: Likewise.
43787         * doc/posix-functions/iswpunct_l.texi: Likewise.
43788         * doc/posix-functions/iswspace_l.texi: Likewise.
43789         * doc/posix-functions/iswupper_l.texi: Likewise.
43790         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43791         * doc/posix-functions/isxdigit_l.texi: Likewise.
43792         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43793         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43794         * doc/posix-functions/strcoll_l.texi: Likewise.
43795         * doc/posix-functions/strfmon_l.texi: Likewise.
43796         * doc/posix-functions/strftime_l.texi: Likewise.
43797         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43798         * doc/posix-functions/strxfrm_l.texi: Likewise.
43799         * doc/posix-functions/tolower_l.texi: Likewise.
43800         * doc/posix-functions/toupper_l.texi: Likewise.
43801         * doc/posix-functions/towctrans_l.texi: Likewise.
43802         * doc/posix-functions/towlower_l.texi: Likewise.
43803         * doc/posix-functions/towupper_l.texi: Likewise.
43804         * doc/posix-functions/wcscoll_l.texi: Likewise.
43805         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43806         * doc/posix-functions/wctrans_l.texi: Likewise.
43807         * doc/posix-functions/wctype_l.texi: Likewise.
43808         * doc/glibc-functions/strptime_l.texi: Likewise.
43809         * doc/glibc-functions/strtod_l.texi: Likewise.
43810         * doc/glibc-functions/strtof_l.texi: Likewise.
43811         * doc/glibc-functions/strtol_l.texi: Likewise.
43812         * doc/glibc-functions/strtold_l.texi: Likewise.
43813         * doc/glibc-functions/strtoll_l.texi: Likewise.
43814         * doc/glibc-functions/strtoul_l.texi: Likewise.
43815         * doc/glibc-functions/strtoull_l.texi: Likewise.
43816         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43817         * doc/glibc-functions/wcstod_l.texi: Likewise.
43818         * doc/glibc-functions/wcstof_l.texi: Likewise.
43819         * doc/glibc-functions/wcstol_l.texi: Likewise.
43820         * doc/glibc-functions/wcstold_l.texi: Likewise.
43821         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43822         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43823         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43824
43825 2009-11-24  Bruno Haible  <bruno@clisp.org>
43826
43827         duplocale: Fix logic bug.
43828         * lib/duplocale.c: Don't include <langinfo.h>.
43829         (_NL_LOCALE_NAME): Remove macro.
43830         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43831         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43832
43833 2009-11-23  Jim Meyering  <meyering@redhat.com>
43834
43835         test-update-copyright: don't hard-code /usr/bin/perl
43836         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43837         perl to print the current year.  Gilles Espinasse reported that
43838         the replaced use of perl was hard-coded as /usr/bin/perl.
43839
43840 2009-11-23  Bruno Haible  <bruno@clisp.org>
43841
43842         duplocale: Add support for glibc 2.3.x.
43843         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43844
43845 2009-11-22  Bruno Haible  <bruno@clisp.org>
43846
43847         vasnprintf: Tiny optimization.
43848         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43849         MacOS X.
43850
43851 2009-11-22  Bruno Haible  <bruno@clisp.org>
43852
43853         Tests for module 'duplocale'.
43854         * modules/duplocale-tests: New file.
43855         * tests/test-duplocale.c: New file.
43856
43857         New module 'duplocale'.
43858         * m4/duplocale.m4: New file.
43859         * lib/locale.in.h (duplocale): New declaration.
43860         * lib/duplocale.c: New file.
43861         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43862         gl_LOCALE_H_DEFAULTS): New macros.
43863         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43864         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43865         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43866         REPLACE_DUPLOCALE.
43867         * modules/duplocale: New file.
43868         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43869
43870 2009-11-22  Bruno Haible  <bruno@clisp.org>
43871
43872         * modules/locale-tests (configure.ac): Test for newlocale function.
43873         * tests/test-locale.c: When the system has extended locale functions,
43874         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43875
43876         locale: Make locale_t available when possible.
43877         * lib/locale.in.h: Include <xlocale.h> when it exists.
43878         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43879         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43880         * modules/locale (Depends-on): Add extensions.
43881         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43882         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43883
43884 2009-11-22  Bruno Haible  <bruno@clisp.org>
43885
43886         Add comments.
43887         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43888         invocation.
43889         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43890         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43891         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43892
43893 2009-11-22  Bruno Haible  <bruno@clisp.org>
43894
43895         error: account for the possibility of freopen (stdout).
43896         * lib/error.c: Include <unistd.h>.
43897         (flush_stdout): New function, extracted from error and error_at_line.
43898         Determine stdout's fd dynamically.
43899         (error, error_at_line): Invoke flush_stdout.
43900         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43901         * modules/error (Depends-on): Add unistd.
43902
43903 2009-11-22  Bruno Haible  <bruno@clisp.org>
43904
43905         diffseq: Add comment.
43906         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43907
43908 2009-11-22  Jim Meyering  <meyering@redhat.com>
43909
43910         c-stack: avoid defining an unused static function
43911         * lib/c-stack.c (find_stack_direction): Do not define this function
43912         when it will not be used.
43913
43914         diffseq: avoid spurious gcc warnings
43915         * lib/diffseq.h (IF_LINT2): Define.
43916         (compareseq): Use it to initialize two members of "part".
43917         This avoids two used-uninitialized warnings.
43918
43919 2009-11-21  Jim Meyering  <meyering@redhat.com>
43920
43921         c-stack: avoid "ignoring return value of `write'" warning
43922         * lib/c-stack.c: Include "ignore-value.h".
43923         (die): Explicitly ignore each write return value.
43924         * modules/c-stack (Depends-on): Add ignore-value.
43925
43926 2009-11-21  Bruno Haible  <bruno@clisp.org>
43927
43928         diffseq: reduce scope of variable 'best'.
43929         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43930         variable, earlier used for two different purposes.
43931
43932 2009-11-21  Jim Meyering  <meyering@redhat.com>
43933
43934         diffseq: remove useless assignment to "best"
43935         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43936         assignment.  At that point "best" is already guaranteed to be zero.
43937
43938 2009-11-20  Eric Blake  <ebb9@byu.net>
43939
43940         build: mention ftp redirector in release announcements
43941         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43942         values that used to come from cfg.mk; mention FTP redirect URL.
43943         * build-aux/announce-gen: Mention the mirror list.
43944         Suggested by Karl Berry.
43945
43946         nanosleep: improve port to mingw
43947         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43948         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43949         LIB_NANOSLEEP, but only when needed.
43950         * modules/select (Link): Document LIBSOCKET.
43951         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43952         enough.
43953
43954         nanosleep: work around cygwin bug
43955         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43956         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43957         bug.
43958         (getnow): Delete, not needed.
43959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43960         LIB_CLOCK_GETTIME.
43961         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43962         clock-time, gettime.
43963         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43964         bug.
43965         * modules/nanosleep-tests: New test.
43966         * tests/test-nanosleep.c: New file.
43967
43968         sleep: work around cygwin bug
43969         * lib/sleep.c (rpl_sleep): Work around the bug.
43970         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43971         (gl_PREREQ_SLEEP): Delete unused macro.
43972         * modules/sleep (Depends-on): Add verify.
43973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43974         * modules/unistd (Makefile.am): Substitute witness.
43975         * lib/unistd.in.h (sleep): Update prototype.
43976         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43977         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43978         * modules/sleep-tests (Depends-on): Check for alarm.
43979
43980 2009-11-20  Jim Meyering  <meyering@redhat.com>
43981
43982         maint.mk: improve sc_prohibit_magic_number_exit
43983         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43984         so it does not match uses like System.exit(1).
43985         Add comments showing how to correct all offenders.
43986
43987 2009-11-19  Eric Blake  <ebb9@byu.net>
43988
43989         xalloc-die-tests: add missing library
43990         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43991
43992         test-xvasprintf: silence compiler warnings
43993         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43994         empty string from gcc.
43995
43996 2009-11-19  Jim Meyering  <meyering@redhat.com>
43997
43998         xfreopen: new module, from coreutils
43999         * modules/xfreopen: New module.
44000         * lib/xfreopen.c: New file.
44001         * lib/xfreopen.h: New file.
44002         * MODULES.html.sh (File stream based Input/Output"): Add it.
44003
44004 2009-11-19  Eric Blake  <ebb9@byu.net>
44005
44006         manywarnings: depend on warnings
44007         * modules/manywarnings (Depends-on): Add warnings.
44008
44009         build: avoid compiler warnings
44010         * lib/select.c (rpl_select): Delete unused variable.
44011         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
44012
44013 2009-11-18  Eric Blake  <ebb9@byu.net>
44014
44015         tests: avoid false negative with --with-packager
44016         * tests/test-version-etc.sh: Discard packager information.
44017         * tests/test-argp-version-etc-1.sh: Likewise.
44018         Reported by Mike Frysinger.
44019
44020         utimens: fix regression on Solaris
44021         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
44022         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
44023         can only change fd timestamps via futimesat.  Instead, use an
44024         additional witness macro to avoid BSD bug.
44025         Reported by Jim Meyering.
44026
44027 2009-11-17  Eric Blake  <ebb9@byu.net>
44028
44029         usleep: use it to simplify tests
44030         * modules/stat-time-tests (Depends-on): Add usleep.
44031         (configure.ac): Drop usleep check.
44032         * modules/chown-tests (Depends-on, configure.ac): Likewise.
44033         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
44034         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
44035         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
44036         * modules/openat-tests (Depends-on, configure.ac): Likewise.
44037         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
44038         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
44039         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
44040         Likewise.
44041         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
44042         * tests/test-lchown.h (nap): Likewise.
44043         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
44044         * tests/test-stat-time.c (nap): Likewise.
44045         * tests/test-utimens-common.h (nap): Update comments.
44046
44047         usleep: new module
44048         * modules/usleep: New file.
44049         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
44050         * lib/usleep.c (usleep): Likewise.
44051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44052         * modules/unistd (Makefile.am): Substitute witnesses.
44053         * lib/unistd.in.h (usleep): Add declaration.
44054         * doc/pastposix-functions/usleep.texi (usleep): Document this.
44055         * MODULES.html.sh (Date and time): Likewise.
44056         * modules/usleep-tests (Depends-on): New test.
44057         * tests/test-usleep.c: New file.
44058
44059         chown: work around OpenBSD bug
44060         * lib/chown.c (rpl_chown): Work around the bug.
44061         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
44062         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
44063         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
44064         * modules/chown (Depends-on): Add stdbool.
44065         * modules/lchown (Depends-on): Likewise.
44066         * doc/posix-functions/chown.texi (chown): Document the bug.
44067         * doc/posix-functions/lchown.texi (lchown): Likewise.
44068         * tests/test-lchown.h (test_chown): Relax test.
44069
44070         mkstemp: avoid conflict with C++ keyword template
44071         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
44072         * lib/mkostemp.c (mkostemp): Likewise.
44073         * lib/mkostemps.c (mkostemps): Likewise.
44074         * lib/mkstemp.c (mkstemp): Likewise.
44075         * lib/mkstemps.c (mkstemps): Likewise.
44076
44077         xalloc-die-tests: optimize
44078         * tests/test-xalloc-die.sh: Reduce number of processes.
44079
44080 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44081
44082         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
44083         patch from ludo@gnu.org (Ludovic Courtès).
44084
44085 2009-11-17  Jim Meyering  <meyering@redhat.com>
44086
44087         version-etc: use proper license string
44088         * modules/version-etc (License): Use LGPL, not LGPLv3+.
44089         * modules/version-etc-fsf: Likewise.
44090
44091 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44092
44093         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
44094         printed to stdout.  Deal with EOL differences.
44095
44096 2009-11-17  Eric Blake  <ebb9@byu.net>
44097
44098         unsetenv: work around Solaris bug
44099         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
44100         * lib/unsetenv.c (rpl_unsetenv): Work around it.
44101         Reported by Jim Meyering.
44102
44103         vasnprintf: avoid compiler warnings
44104         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
44105         variables.
44106         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
44107
44108 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44109
44110         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
44111         settings since xalloc-die is no longer the self test,
44112         xalloc-die.sh is.
44113
44114 2009-11-17  Jim Meyering  <meyering@redhat.com>
44115
44116         test-xalloc-die.sh: make the code agree with the commit log
44117         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
44118         at the end, just in case you happen to have a test-xalloc-die
44119         program in some other PATH directory.
44120
44121         test-xalloc-die.sh: fix a portability bug
44122         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
44123         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
44124         Otherwise, argv[0] (as often seen in diagnostics) would be too
44125         system-dependent, sometimes with, and sometimes without the leading "./".
44126
44127         version-etc-fsf: relax license to LGPLv3+
44128         * modules/version-etc-fsf (License): Relax license.
44129
44130 2009-11-16  Eric Blake  <ebb9@byu.net>
44131
44132         xalloc-die-tests: avoid printing null pointer
44133         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
44134         shell script.
44135         * tests/test-xalloc-die.c (program_name): Declare.
44136         * tests/test-xalloc-die.sh (tmpfiles): New file.
44137
44138         setenv, unsetenv: work around various bugs
44139         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
44140         (setenv) [HAVE_SETENV]: Work around bugs.
44141         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
44142         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
44143         for bugs.
44144         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
44145         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
44146         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
44147         * modules/stdlib (Makefile.am): Update substitutions.
44148         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
44149         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
44150         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
44151         * modules/setenv-tests: New test.
44152         * modules/unsetenv-tests: Likewise.
44153         * tests/test-setenv.c: New file.
44154         * tests/test-unsetenv.c: Likewise.
44155
44156 2009-11-16  Jim Meyering  <meyering@redhat.com>
44157
44158         version-etc: relax license to LGPLv3+
44159         * modules/version-etc (License): Relax license.
44160
44161         better AC_REQUIRE expanded-before-required-warning avoidance
44162         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
44163         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
44164         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
44165         which is no longer needed.
44166
44167 2009-11-16  Eric Blake  <ebb9@byu.net>
44168
44169         test-freading: clean up temporary file
44170         * tests/test-freading.c (main): Remove file on success, and use
44171         ASSERT more liberally.
44172         Reported by Jim Meyering.
44173
44174 2009-11-16  Jim Meyering  <meyering@redhat.com>
44175
44176         avoid new AC_REQUIRE expanded-before-required warnings
44177         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
44178         merely using it.
44179         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
44180         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
44181
44182 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44183
44184         * tests/test-xalloc-die.c: New file.
44185         * modules/xalloc-die-tests: New file.
44186         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
44187         XFAIL_TESTS so it can be appended by modules.
44188
44189 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44190
44191         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
44192         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
44193
44194 2009-11-14  Eric Blake  <ebb9@byu.net>
44195
44196         fnmatch: avoid compiler warning
44197         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
44198         to silence compiler warning about mismatch signedness in ?:.
44199         Reported by Robert Millan.
44200
44201         intprops: add double-inclusion guard
44202         * lib/intprops.h: Allow idempotent includes.
44203         Suggested by Bruce Korb.
44204
44205         openat: detect Solaris fchownat bug
44206         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
44207         penalizing glibc chownat when only lchownat is broken.
44208         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
44209         trailing slash bugs.
44210         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
44211         * modules/openat-tests (Files): Include more files.
44212         (Depends-on): Add mgetgroups, sleep, stat-time.
44213         (configure.ac): Add additional checks.
44214         (Makefile.am): Build new test.
44215         * tests/test-fchownat.c: New file.
44216
44217         lchown: detect Solaris and FreeBSD bug
44218         * lib/lchown.c (rpl_lchown): Work around bug.
44219         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
44220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44221         * modules/unistd (Makefile.am): Populate it.
44222         * lib/unistd.in.h (lchown): Update declaration.
44223         * doc/posix-functions/lchown.texi (lchown): Document the bug.
44224         * modules/lchown-tests: New file.
44225         * tests/test-lchown.h (test_lchown): Likewise.
44226         * tests/test-lchown.c (main): Likewise.
44227
44228         chown: detect Solaris and FreeBSD bug
44229         * lib/chown.c (rpl_chown): Work around bug.
44230         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
44231         (gl_PREREQ_CHOWN): Delete.
44232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44233         * modules/unistd (Makefile.am): Populate it.
44234         * lib/unistd.in.h (chown): Update declaration.
44235         * lib/lchown.c (chown): Update client.
44236         * modules/lchown (Depends-on): Add lstat.
44237         * doc/posix-functions/chown.texi (chown): Document the bug.
44238         * doc/posix-functions/getgroups.texi (getgroups): Document
44239         getgroups pitfall.
44240         * modules/chown-tests: New file.
44241         * tests/test-chown.h (test_chown): Likewise.
44242         * tests/test-chown.c (main): Likewise.
44243
44244 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
44245
44246         gnulib-tool: correctly detect absence of m4 directories
44247         * gnulib-tool: Avoid extra newline on data passed to wc -l.
44248
44249 2009-11-14  Jim Meyering  <meyering@redhat.com>
44250
44251         maint.mk: Prohibit inclusion of "xalloc.h" without use.
44252         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44253
44254 2009-11-14  John W. Eaton  <jwe@gnu.org>
44255
44256         strftime.h: wrap function declaration in extern "C" block
44257         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
44258
44259 2009-11-13  Eric Blake  <ebb9@byu.net>
44260
44261         getgroups: avoid compiler warning
44262         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
44263
44264         getgroups: work around FreeBSD bug
44265         * lib/getgroups.c (rpl_getgroups): Work around the bug.
44266         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
44267         * doc/posix-functions/getgroups.texi (getgroups): Document it.
44268         * tests/test-getgroups.c (main): Fix buffer overrun.
44269
44270         getgroups: avoid compilation failure
44271         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
44272         * modules/getgroups (Depends-on): Add stdint.
44273
44274 2009-11-13  Jim Meyering  <meyering@redhat.com>
44275
44276         test-getgroups: avoid compilation failure
44277         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
44278
44279 2009-11-13  Eric Blake  <ebb9@byu.net>
44280
44281         mgetgroups: new module, taken from coreutils
44282         * modules/mgetgroups: New file.
44283         * lib/mgetgroups.h: Likewise.
44284         * lib/mgetgroups.c (mgetgroups): Likewise.
44285         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
44286         * MODULES.html.sh (Users and groups): Mention it.
44287
44288         getgroups: don't expose GETGROUPS_T to user
44289         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
44290         an element at a time if GETGROUPS_T is wrong size.
44291         * lib/getugroups.h (getugroups): Change signature.
44292         * lib/unistd.in.h (getgroups): Likewise.
44293         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
44294         signature needs fixing.
44295         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
44296         AC_TYPE_GETGROUPS.
44297         * modules/group-member (Depends-on): Add getgroups.
44298         * lib/group-member.c (group_info, get_group_info): Use gid_t.
44299         (group_member): Rely on getgroups replacement.
44300         * lib/getugroups.c (getugroups): Use gid_t.
44301         * tests/test-getgroups.c (main): Likewise.
44302         * NEWS: Mention the signature change.
44303         * doc/posix-functions/getgroups.texi (getgroups): Mention the
44304         problem with signature.
44305         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
44306         GETGROUPS_T is still useful for setgroups.
44307
44308         getgroups, getugroups: provide stubs for mingw
44309         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
44310         * lib/getugroups.c (getugroups): Likewise.
44311         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
44312         function.  Modernize replacement scheme.
44313         (gl_PREREQ_GETGROUPS): Delete.
44314         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
44315         * modules/getgroups (configure.ac): Declare witness.
44316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44317         * modules/unistd (Depends-on): Substitute witness.
44318         * lib/unistd.in.h (getgroups): Declare replacement.
44319
44320         getgroups: avoid calling exit
44321         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
44322         drop xalloc.
44323         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
44324         dependencies.
44325         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
44326         exiting, in the rare case of malloc failure.
44327
44328         getgroups: fix logic error
44329         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
44330         has more than 20 groups.
44331         * modules/getgroups-tests: New test.
44332         * tests/test-getgroups.c: New file.
44333
44334 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44335
44336         * tests/test-base64.c: Improve.
44337
44338 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44339
44340         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
44341         Blake <ebb9@byu.net>.
44342
44343 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44344
44345         * tests/test-xvasprintf.c: Add %s%s related checks.
44346
44347 2009-11-12  Eric Blake  <ebb9@byu.net>
44348
44349         version-etc: match standards.texi style
44350         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
44351         and use <> only for URLs.
44352
44353 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
44354
44355         fts: do not fail on a submount during traversal
44356         * lib/fts.c (fts_build): Read the stat info again after opening
44357         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
44358         Original report at http://bugzilla.redhat.com/501848.
44359
44360 2009-11-12  Jim Meyering  <meyering@redhat.com>
44361
44362         bootstrap: sync from coreutils
44363         * build-aux/bootstrap (bootstrap_epilogue): New function.
44364         Use git_modules_config in one more place.  This make bootstrap's
44365         --gnulib-srcdir option more useful for testing.
44366
44367         bootstrap: generalize autoheader check
44368         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
44369         AC_CONFIG_HEADERS.
44370
44371 2009-11-11  Eric Blake  <ebb9@byu.net>
44372
44373         mkfifoat: use new modules for Solaris and BSD bugs
44374         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
44375         * lib/mkfifoat.c (mknodat): Split...
44376         * lib/mknodat.c (mknodat): ...into new file.
44377         * modules/mkfifoat (Files): Ship new file.
44378         (Depends-on): Add mkfifo, mknod.
44379         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
44380         (Depends-on): Add symlink.
44381         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
44382         redundant with test_mkfifo.h.
44383         (do_mkfifoat, do_mknodat): New helpers.
44384
44385         mknod: new module
44386         * modules/mknod: New file.
44387         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
44388         * lib/mknod.c (mknod): Likewise.
44389         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44390         defaults.
44391         * modules/sys_stat (Makefile.am): Substitute them.
44392         * lib/sys_stat.in.h (mknod): Declare replacement.
44393         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44394         Document it.
44395         * doc/posix-functions/mknod.texi (mknod): Likewise.
44396         * modules/mknod-tests: New test.
44397         * tests/test-mknod.c: Likewise.
44398
44399         mkfifo: new module
44400         * modules/mkfifo: New file.
44401         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44402         * lib/mkfifo.c (mkfifo): Likewise.
44403         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44404         defaults.
44405         * modules/sys_stat (Makefile.am): Substitute them.
44406         * lib/sys_stat.in.h (mkfifo): Declare replacement.
44407         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44408         Document it.
44409         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
44410         * modules/mkfifo-tests: New test.
44411         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
44412         from test-mkfifoat.c.
44413         * tests/test-mkfifo.c: New file.
44414
44415         readlink: detect FreeBSD bug
44416         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
44417         slash on symlink.
44418         * doc/posix-functions/readlink.texi (readlink): Document the bug.
44419         * tests/test-readlink.h (test_readlink): Enhance test.
44420
44421         symlink: detect FreeBSD bug
44422         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
44423         slash on symlink.
44424         * doc/posix-functions/symlink.texi (symlink): Document the bug.
44425         * tests/test-symlink.h (test_symlink): Enhance test.
44426
44427 2009-11-10  Eric Blake  <ebb9@byu.net>
44428
44429         link: detect FreeBSD bug
44430         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
44431         symlink.
44432         * doc/posix-functions/link.texi (link): Document the bug.
44433         * tests/test-link.h (test_link): Enhance test.
44434         * tests/test-linkat.c (main): Update caller.
44435
44436         unlink, remove: detect FreeBSD bug
44437         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
44438         slash on symlink.
44439         * doc/posix-functions/unlink.texi (unlink): Document the bug.
44440         * doc/posix-functions/remove.texi (remove): Likewise.
44441         * tests/test-unlink.h (test_unlink): Enhance test.
44442         * tests/test-remove.c (main): Likewise.
44443
44444 2009-11-09  Eric Blake  <ebb9@byu.net>
44445
44446         rename: detect FreeBSD bug
44447         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
44448         slash on symlink.
44449         * modules/renameat-tests (Depends-on): Add filenamecat.
44450         * tests/test-rename.h (test_rename): Allow one more errno.
44451         * tests/test-renameat.c (main): Likewise.
44452         * doc/posix-functions/rename.texi (rename): Document the bug.
44453
44454         open: detect FreeBSD bug
44455         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
44456         symlink.
44457         * doc/posix-functions/open.texi (open): Document the bug.
44458         * doc/posix-functions/utimes.texi (utimes): Likewise.
44459         * tests/test-open.h (test_open): Add parameters, and test symlink
44460         handling.
44461         * tests/test-open.c (main): Adjust caller.
44462         * tests/test-fcntl-safer.c (main): Likewise.
44463         * modules/open-tests (Depends-on): Add stdbool, symlink.
44464         * modules/fcntl-safer-tests (Depends-on): Likewise.
44465         * tests/test-openat.c (main): Add test-open tests.
44466
44467         stat: detect FreeBSD bug
44468         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
44469         symlink.
44470         * doc/posix-functions/stat.texi (stat): Document the bug.
44471         * tests/test-stat.h (test_stat_func): Add argument.
44472         * tests/test-stat.c (main): Adjust caller.
44473         * tests/test-fstatat.c (main): Likewise.
44474         * modules/stat-tests (Depends-on): Add stdbool, symlink.
44475         Reported by Jim Meyering.
44476
44477 2009-11-09  James Youngman  <jay@gnu.org>
44478
44479         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
44480         * lib/strftime.c: Correct placement of #include "ignore-value.h".
44481
44482 2009-11-08  Jim Meyering  <meyering@redhat.com>
44483
44484         utimens: remove invalid futimesat call
44485         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
44486         It used the file descriptor of the target file as the DIR_FD
44487         parameter and NULL as the file name.  That caused failure with
44488         errno == EFAULT on FreeBSD-8.0-rc2
44489
44490 2009-11-07  Eric Blake  <ebb9@byu.net>
44491
44492         fflush, freadseek: use fseeko, not fseek
44493         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
44494         (clear_ungetc_buffer): Avoid potential problems on large files.
44495         * lib/freadseek.c (freadseek): Likewise.
44496         * modules/freadseek (Depends-on): Add fseeko.
44497         * modules/fseek (configure.ac): Set a witness.
44498         * tests/test-fflush.c (main): Use fseeko.
44499         * tests/test-fpurge.c (fseek): Disable link warning.
44500         * tests/test-freadable.c (fseek): Likewise.
44501         * tests/test-freading.c (fseek): Likewise.
44502         * tests/test-fseeko.c (fseek): Likewise.
44503         * tests/test-ftell.c (fseek): Likewise.
44504         * tests/test-ftello.c (fseek): Likewise.
44505         * tests/test-fwritable.c (fseek): Likewise.
44506         * tests/test-fwriting.c (fseek): Likewise.
44507
44508 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44509
44510         * modules/memchr (Depends-on): Drop getpagesize dependency.
44511
44512 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44513
44514         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44515         Reported by Ludovic Courtès.
44516         * build-aux/pmccabe2html: Improve example usage.
44517         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44518
44519 2009-11-06  Jim Meyering  <meyering@redhat.com>
44520
44521         do-release-commit-and-tag: New module.
44522         Automate the release-commit and tag process.
44523         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44524         * modules/do-release-commit-and-tag: New file.
44525         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44526
44527 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44528
44529         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44530         because test-select.c uses inet_pton.
44531
44532 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44533
44534         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44535         GETADDRINFO_LIB.  Bump serial number.
44536         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44537         Suggested by Eric Blake <ebb9@byu.net>.
44538
44539 2009-11-05  Eric Blake  <ebb9@byu.net>
44540
44541         strtod: detect darwin bug
44542         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44543         Reported by Leo Davis.
44544
44545         freopen-safer: new module
44546         * modules/freopen-safer: New module.
44547         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44548         * lib/freopen-safer.c (freopen_safer): New file.
44549         * lib/stdio-safer.h (freopen_safer): New declaration.
44550         * lib/stdio--.h (freopen): New override.
44551         * MODULES.html.sh (File stream based Input/Output): Mention it.
44552         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44553         freopen-safer module.
44554         * doc/posix-functions/stderr.texi (stderr): Likewise.
44555         * doc/posix-functions/stdin.texi (stdin): Likewise.
44556         * doc/posix-functions/stdout.texi (stdout): Likewise.
44557         * modules/freopen-safer-tests: New test.
44558         * tests/test-reopen-safer.c: New file.
44559
44560 2009-11-05  Jim Meyering  <meyering@redhat.com>
44561
44562         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44563         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44564
44565 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44566
44567         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44568
44569 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44570
44571         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44572
44573 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44574
44575         Fix link error.
44576         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44577         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44578
44579 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44580
44581         * tests/test-func.c: Also test value of __func__.
44582
44583 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44584
44585         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44586         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44587
44588 2009-11-05  Bruno Haible  <bruno@clisp.org>
44589
44590         Fix link error.
44591         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44592         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44593         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44594
44595 2009-11-05  Bruno Haible  <bruno@clisp.org>
44596
44597         Tests for module 'inet_pton'.
44598         * modules/inet_pton-tests: New file.
44599         * tests/test-inet_pton.c: New file.
44600
44601 2009-11-05  Bruno Haible  <bruno@clisp.org>
44602
44603         Tests for module 'inet_ntop'.
44604         * modules/inet_ntop-tests: New file.
44605         * tests/test-inet_ntop.c: New file.
44606
44607 2009-11-04  Eric Blake  <ebb9@byu.net>
44608
44609         stdlib-safer: wrap all mkstemp variants
44610         * modules/mkostemp (configure.ac): Set witness.
44611         * modules/mkostemps (configure.ac): Likewise.
44612         * modules/mkstemps (configure.ac): Likewise.
44613         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44614         (mkstemps_safer): Wrap more functions.
44615         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44616         wrapping.
44617         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44618         (mkstemps_safer): Implement the wrappers.
44619
44620         mkstemps, mkostemps: new modules
44621         * modules/mkostemps: New module.
44622         * modules/mkstemps: Likewise.
44623         * lib/mkostemps.c (mkostemps): New file.
44624         * lib/mkstemps.c (mkstemps): Likewise.
44625         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44626         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44628         * modules/stdlib (Makefile.am): Substitute them.
44629         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44630         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44631         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44632         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44633         * MODULES.html.sh (File system functions): Mention them.
44634
44635         tempname: resync from glibc
44636         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44637         same values for __GT_FILE as glibc.  Abort even when assertions
44638         are disabled.
44639         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44640         match its value otherwise.  Allow idempotent inclusion.
44641         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44642         * lib/mkostemp.c (mkostemp): Likewise.
44643         * lib/mkstemp.c (mkstemp): Likewise.
44644         * lib/tmpfile.c (tmpfile): Likewise.
44645         * NEWS: Document this.
44646
44647         utimens: fix use of futimens on older Linux
44648         * lib/utimens.c (fdutimens): Use updated, rather than original,
44649         timespec to avoid bug in older Linux kernel.
44650         Reported by Simon Josefsson.
44651
44652 2009-11-04  Bruno Haible  <bruno@clisp.org>
44653
44654         Make num_processors more flexible and consistent.
44655         * lib/nproc.h (enum nproc_query): New type.
44656         (num_processors): Add a 'query' argument.
44657         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44658         (num_processors): Add a 'query' argument. Test the value of the
44659         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44660         mingw, count the number of CPUs available for the current process.
44661         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44662         Check for sched_getaffinity and sched_getaffinity_np.
44663         * modules/nproc (Depends-on): Add c-ctype, extensions.
44664         * NEWS: Mention the change.
44665
44666 2009-11-03  Bruno Haible  <bruno@clisp.org>
44667
44668         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44669
44670 2009-11-03  Jim Meyering  <meyering@redhat.com>
44671
44672         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44673         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44674         if it is defined.
44675
44676 2009-11-02  Eric Blake  <ebb9@byu.net>
44677
44678         mktime, timegm: share common declaration
44679         * lib/mktime-internal.h: New file.
44680         * lib/mktime.c: Use it rather than open-coding a declaration.
44681         * lib/timegm.c: Likewise.
44682         * modules/mktime (Files): Ship it.
44683         * modules/timegm (Files): Likewise.
44684         Suggested by Bruno Haible.
44685
44686         test-update-copyright: update test to match script changes
44687         * tests/test-update-copyright.sh: Avoid hard-coding perl
44688         location.  Don't update *.bak created by earlier runs.
44689
44690 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44691             Simon Josefsson  <simon@josefsson.org>
44692             Bruno Haible  <bruno@clisp.org>
44693
44694         Fix link error on Solaris 8.
44695         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44696         also in libnsl. Define also INET_PTON_LIB.
44697         * modules/inet_pton (Link): New section.
44698
44699 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44700             Bruno Haible  <bruno@clisp.org>
44701
44702         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44703         * modules/inet_ntop (Link): New section.
44704         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44705
44706 2009-11-02  Eric Blake  <ebb9@byu.net>
44707
44708         maint: avoid compiler warnings in m4 macros
44709         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44710         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44711
44712 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44713
44714         * m4/pmccabe2html.m4: Remove file.
44715         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44716         function.  Change maintainer.
44717         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44718         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44719         Courtès).
44720
44721 2009-10-31  Eric Blake  <ebb9@byu.net>
44722
44723         fseeko: fix m4 regression
44724         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44725         regression from 2009-10-27.
44726         Reported by Ralf Wildenhues.
44727
44728 2009-10-31  Jim Meyering  <meyering@redhat.com>
44729
44730         inttostr: aesthetics and improved (compile-time) safety
44731         Define inttype_is_signed rather than inttype_is_unsigned,
44732         since the sole use is via "#if inttype_is_signed".
44733         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44734         inttype_is_unsigned.
44735         * lib/offtostr.c (inttype_is_signed): Likewise.
44736         * lib/uinttostr.c (inttype_is_signed): Likewise.
44737         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44738         * lib/inttostr.c (inttostr): Use verify to cross-check the
44739         inttype_is_signed value and the signedness of the actual type.
44740         * modules/inttostr (Depends-on): Add verify.
44741
44742 2009-10-30  Eric Blake  <ebb9@byu.net>
44743
44744         build: avoid compiler warnings
44745         * lib/fchmodat.c (lchmod): Mark unused variables.
44746         * lib/getopt.c (_getopt_initialize): Likewise.
44747         * lib/mktime.c (__mktime_internal): Provide prototype.
44748         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44749         older gcc that do not understand #pragma GCC diagnostic.
44750         * lib/uinttostr.c (inttype_is_unsigned): Define.
44751         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44752
44753 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44754
44755         stat: fix compilation on AIX
44756         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44757         only see struct stat64.
44758
44759 2009-10-30  Eric Blake  <ebb9@byu.net>
44760
44761         exclude: make more robust
44762         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44763         rather than masking a coding bug.
44764         Suggested by Bruno Haible.
44765
44766 2009-10-30  Jim Meyering  <meyering@redhat.com>
44767
44768         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44769         Rather than putting #!/usr/bin/perl on the first line,
44770         start with a variant of what's recommended by "man perlrun" that
44771         invokes the first "perl" program from your shell's search path.
44772         * build-aux/gitlog-to-changelog: Replace #!... as above.
44773         Add a "Local Variables" perl mode setting.
44774         Prompted by a patch from Ludovic Courtès.
44775         Improved by Eric Blake.
44776         * build-aux/useless-if-before-free: Likewise.
44777         * build-aux/announce-gen: Likewise.
44778         * build-aux/update-copyright: Likewise.
44779
44780 2009-10-29  Eric Blake  <ebb9@byu.net>
44781
44782         filenamecat-lgpl: adjust clients
44783         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44784         filenamecat.
44785         * modules/renameat (Depends-on): Likewise.
44786
44787         filenamecat: split into filenamecat-lgpl
44788         * modules/filenamecat-lgpl: New module.
44789         * modules/filenamecat (Files): Move library-safe files into
44790         filenamecat-lgpl.
44791         (Depends-on): Add filenamecat-lgpl.
44792         (configure.ac): Declare witness.
44793         * lib/filenamecat.h (file_name_concat): Only declare when using
44794         GPL module.
44795         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44796         Move...
44797         * lib/filenamecat-lgpl.c: ...into new file.
44798         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44799         (gl_FILE_NAME_CONCAT): Use it.
44800         * MODULES.html.sh (File system functions): Mention new module.
44801
44802         argp: avoid memory leak
44803         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44804         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44805         base_name, since the latter malloc()s and can call exit().
44806         Leak introduced 2006-07-03.
44807
44808         dirname-lgpl: adjust clients that don't need full dirname
44809         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44810         * modules/filenamecat (Depends-on): Likewise.
44811         * modules/linkat (Depends-on): Likewise.
44812         * modules/mkancesdirs (Depends-on): Likewise.
44813         * modules/mkdir (Depends-on): Likewise.
44814         * modules/openat (Depends-on): Likewise.
44815         * modules/savewd (Depends-on): Likewise.
44816         * modules/rename (Depends-on): Likewise.
44817         (License): Relax license.
44818         * modules/mkdir-tests (Depends-on): Drop progname.
44819         (Makefile.am): Delete unneeded LDADD.
44820         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44821
44822         dirname: split into dirname-lgpl
44823         * modules/dirname-lgpl: New module.
44824         * modules/dirname (Files): Move library-safe files into
44825         dirname-lgpl.
44826         (Depends-on): Add dirname-lgpl.
44827         (configure.ac): Declare witness.
44828         * modules/double-slash-root (License): Relax license.
44829         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44830         module.
44831         * lib/dirname.c (dir_len, mdir_name): Move...
44832         * lib/dirname-lgpl.c: ...into new file.
44833         * lib/basename.c (last_component, base_len): Move...
44834         * lib/basename-lgpl.c: ...into new file.
44835         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44836         (gl_DIRNAME): Use it.
44837         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44838         Mention new module.
44839         * modules/dirname-tests (Depends-on): Add progname.
44840         * tests/test-dirname.c (program_name): Delete.
44841
44842         mkdir: make safe for libraries
44843         * modules/mkdir (Depends-on): Drop xalloc.
44844         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44845         exit.
44846
44847         tests: avoid some compiler warnings
44848         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44849         literals.
44850         * tests/test-memchr.c (main): Avoid type mismatch.
44851         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44852         * tests/test-base64.c (main): Likewise.
44853         * tests/test-getdelim.c (main): Likewise.
44854         * tests/test-gethostname.c (main): Likewise.
44855         * tests/test-getline.c (main): Likewise.
44856         * tests/test-netinet_in.c (main): Likewise.
44857         * tests/test-select.c (open_server_socket, main): Likewise.
44858         * tests/test-select-stdin.c (main): Likewise.
44859         * tests/test-sockets.c (main): Likewise.
44860         * tests/test-strsignal.c (main): Likewise.
44861         * tests/test-sys_select.c (main): Likewise.
44862         * tests/test-sys_socket.c (main): Likewise.
44863         * tests/test-u64.c (main): Likewise.
44864         * tests/test-xfprintf-posix.c (main): Likewise.
44865         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44866
44867         sockets: avoid compiler warning
44868         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44869
44870         maint: detect usage(1) and other suspicious exits
44871         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44872
44873 2009-10-29  Jim Meyering  <meyering@redhat.com>
44874
44875         timespec: long-to-int truncation could make timespec_cmp malfunction
44876         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44877         a multiple of 2^32 nanoseconds as no difference.
44878
44879 2009-10-28  Jim Meyering  <meyering@redhat.com>
44880
44881         fprintftime: wrap macro code argument in "do {...} while(0)"
44882         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44883         cpy macro must be a statement that can be followed by a semicolon.
44884         Now that the else clause contains a comment and is hence longer
44885         than one line, I require curly braces.  That in turn requires
44886         that we wrap this code block in the standard do...while(0).
44887
44888         fprintftime: remove stray semicolon from previous change
44889         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44890
44891         fprintftime: avoid a warning about ignored fwrite return value
44892         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44893         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44894         that is unsafe.
44895         * modules/fprintftime (Depends-on): Add ignore-value.
44896
44897         exclude: avoid an unwarranted warning
44898         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44899
44900 2009-10-27  Eric Blake  <ebb9@byu.net>
44901
44902         fseek: avoid compilation failure when fflush is replaced
44903         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44904         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44905         module is in use.
44906         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44907         module is not in use; since REPLACE_FSEEK worked otherwise.
44908         (GNULIB_FTELLO): Likewise for ftell.
44909         Reported by Ian Beckwith and others.
44910
44911 2009-10-27  Bruno Haible  <bruno@clisp.org>
44912
44913         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44914         Reported by Jim Meyering.
44915
44916 2009-10-27  Jim Meyering  <jim@meyering.net>
44917             Bruno Haible  <bruno@clisp.org>
44918
44919         Avoid warning despite dropping the return value of fwrite.
44920         * lib/unicodeio.c: Include ignore-value.h.
44921         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44922         * modules/unicodeio (Depends-on): Add ignore-value.
44923
44924 2009-10-26  Eric Blake  <ebb9@byu.net>
44925
44926         areadlinkat: fix fallback path
44927         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44928         pointer and zero.
44929
44930 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44931
44932         Use a better IO block size for modern systems
44933         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44934         * lib/md2.c: Likewise.
44935         * lib/md4.c: Likewise.
44936         * lib/md5.c: Likewise.
44937         * lib/sha1.c: Likewise.
44938         * lib/sha256.c: Likewise.
44939         * lib/sha512.c: Likewise.
44940
44941 2009-10-22  Eric Blake  <ebb9@byu.net>
44942
44943         tests: avoid several compiler warnings
44944         * tests/test-getcwd.c (main): Avoid buffer underflow.
44945         * tests/test-getdate.c (main): String literals are not safe with
44946         putenv, so use setenv.  Declare unused argument.
44947         * modules/getdate-tests (Depends-on): Add setenv.
44948         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44949         problems with string literals in char *.
44950         * tests/test-hash.c (main): Avoid shadowing declaration.
44951         (insert_new): Treat string literals as char const *.
44952         * tests/test-getopt.h (test_getopt): Likewise.
44953         (getopt_loop): Alter types to minimize casting elsewhere.
44954         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44955         (test_getopt_long_posix): Likewise.
44956         (do_getopt_long): Add wrapper to minimize casting.
44957         * tests/test-atexit.c (clear_temp_file): Use void.
44958         * tests/test-areadlink-with-size.c (main): Declare unused
44959         arguments.
44960         * tests/test-areadlink.c (main): Likewise.
44961         * tests/test-areadlinkat-with-size.c (main): Likewise.
44962         * tests/test-areadlinkat.c (main): Likewise.
44963         * tests/test-canonicalize-lgpl.c (main): Likewise.
44964         * tests/test-canonicalize.c (main): Likewise.
44965         * tests/test-dirent-safer.c (main): Likewise.
44966         * tests/test-dirname.c (main): Likewise.
44967         * tests/test-dup2.c (main): Likewise.
44968         * tests/test-fchdir.c (main): Likewise.
44969         * tests/test-fcntl-h.c (main): Likewise.
44970         * tests/test-fcntl-safer.c (main): Likewise.
44971         * tests/test-fdopendir.c (main): Likewise.
44972         * tests/test-fdutimensat.c (main): Likewise.
44973         * tests/test-fflush.c (main): Likewise.
44974         * tests/test-filenamecat.c (main): Likewise.
44975         * tests/test-filevercmp.c (main): Likewise.
44976         * tests/test-fopen-safer.c (main): Likewise.
44977         * tests/test-fopen.c (main): Likewise.
44978         * tests/test-fpending.c (main): Likewise.
44979         * tests/test-fpurge.c (main): Likewise.
44980         * tests/test-freading.c (main): Likewise.
44981         * tests/test-fstatat.c (main): Likewise.
44982         * tests/test-fsync.c (main): Likewise.
44983         * tests/test-futimens.c (main): Likewise.
44984         * tests/test-getndelim2.c (main): Likewise.
44985         * tests/test-gettimeofday.c (main): Likewise.
44986         * tests/test-getopt.c (main): Likewise.
44987         * tests/test-i-ring.c (main): Likewise.
44988         * tests/test-inttypes.c (main): Likewise.
44989         * tests/test-link.c (main): Likewise.
44990         * tests/test-lstat.c (main): Likewise.
44991         * tests/test-math.c (main): Likewise.
44992         * tests/test-md5.c (main): Likewise.
44993         * tests/test-memchr2.c (main): Likewise.
44994         * tests/test-memrchr.c (main): Likewise.
44995         * tests/test-mkdir.c (main): Likewise.
44996         * tests/test-mkdirat.c (main): Likewise.
44997         * tests/test-mkfifoat.c (main): Likewise.
44998         * tests/test-open.c (main): Likewise.
44999         * tests/test-openat-safer.c (main): Likewise.
45000         * tests/test-openat.c (main): Likewise.
45001         * tests/test-quotearg.c (main): Likewise.
45002         * tests/test-rawmemchr.c (main): Likewise.
45003         * tests/test-readlink.c (main): Likewise.
45004         * tests/test-remove.c (main): Likewise.
45005         * tests/test-rename.c (main): Likewise.
45006         * tests/test-renameat.c (main): Likewise.
45007         * tests/test-rmdir.c (main): Likewise.
45008         * tests/test-sha1.c (main): Likewise.
45009         * tests/test-signal.c (main): Likewise.
45010         * tests/test-sigaction.c (main): Likewise.
45011         * tests/test-stat.c (main): Likewise.
45012         * tests/test-stat-time.c (main): Likewise.
45013         * tests/test-stddef.c (main): Likewise.
45014         * tests/test-stdint.c (main): Likewise.
45015         * tests/test-stdio.c (main): Likewise.
45016         * tests/test-stdlib.c (main): Likewise.
45017         * tests/test-strchrnul.c (main): Likewise.
45018         * tests/test-strerror.c (main): Likewise.
45019         * tests/test-string.c (main): Likewise.
45020         * tests/test-strtod.c (main): Likewise.
45021         * tests/test-strverscmp.c (main): Likewise.
45022         * tests/test-symlink.c (main): Likewise.
45023         * tests/test-symlinkat.c (main): Likewise.
45024         * tests/test-sys_stat.c (main): Likewise.
45025         * tests/test-sys_time.c (main): Likewise.
45026         * tests/test-time.c (main): Likewise.
45027         * tests/test-unistd.c (main): Likewise.
45028         * tests/test-unlink.c (main): Likewise.
45029         * tests/test-unlinkat.c (main): Likewise.
45030         * tests/test-utimens.c (main): Likewise.
45031         * tests/test-utimensat.c (main): Likewise.
45032         * tests/test-version-etc.c (main): Likewise.
45033         * tests/test-wchar.c (main): Likewise.
45034         * tests/test-wctype.c (main): Likewise.
45035         * tests/test-xprintf-posix.c (main): Likewise.
45036         * tests/test-posixtm.c (main): Likewise.
45037         (STREQ): Delete unused macro.
45038         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
45039         shadowed variables.
45040         * tests/test-memchr.c (main): Likewise.
45041
45042 2009-10-21  Eric Blake  <ebb9@byu.net>
45043
45044         areadlinkat: avoid failure on older glibc
45045         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
45046         rather than mis-comparing 0 against FUNC_RESULT of char*.
45047
45048 2009-10-21  Bruno Haible  <bruno@clisp.org>
45049
45050         * modules/stpncpy (License): Relicense under LGPLv2+.
45051         Reported by David Lutterkort <lutter@redhat.com>.
45052
45053 2009-10-20  Eric Blake  <ebb9@byu.net>
45054
45055         utimensat: work around Solaris 9 bug
45056         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
45057         has trailing slash bugs.
45058         * tests/test-lutimens.h (test_lutimens): Enhance test.
45059         * tests/test-utimens.h (test_utimens): Likewise.
45060         * doc/posix-functions/utime.texi (utime): Enhance documentation.
45061         * doc/posix-functions/utimes.texi (utimes): Likewise.
45062         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45063         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
45064         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
45065         * doc/posix-functions/futimens.texi (futimens): Likewise.
45066
45067         fdutimensat: new module
45068         * modules/fdutimensat: New file.
45069         * lib/fdutimensat.c (fdutimensat): Likewise.
45070         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
45071         * MODULES.html.sh (File system functions): Mention module.
45072         * modules/fdutimensat-tests: New test.
45073         * tests/test-fdutimensat.c: Likewise.
45074
45075         doc: regenerate INSTALL
45076         * doc/INSTALL: Reflect recent autoconf update.
45077         * doc/INSTALL.ISO: Likewise.
45078         * doc/INSTALL.UTF-8: Likewise.
45079
45080 2009-10-20  Pádraig Brady  <P@draigBrady.com>
45081
45082         acl: warn if ACL support is not detected
45083         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
45084
45085 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
45086
45087         * lib/nproc.h: Add extern "C" block for C++.
45088
45089 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
45090             Bruno Haible  <bruno@clisp.org>
45091
45092         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
45093         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
45094         * doc/posix-functions/isalpha.texi: Likewise.
45095         * doc/posix-functions/isblank.texi: Likewise.
45096         * doc/posix-functions/iscntrl.texi: Likewise.
45097         * doc/posix-functions/isdigit.texi: Likewise.
45098         * doc/posix-functions/isgraph.texi: Likewise.
45099         * doc/posix-functions/islower.texi: Likewise.
45100         * doc/posix-functions/isprint.texi: Likewise.
45101         * doc/posix-functions/ispunct.texi: Likewise.
45102         * doc/posix-functions/isspace.texi: Likewise.
45103         * doc/posix-functions/isupper.texi: Likewise.
45104         * doc/posix-functions/isxdigit.texi: Likewise.
45105
45106 2009-10-18  Bruno Haible  <bruno@clisp.org>
45107
45108         Tests for module 'isblank'.
45109         * modules/isblank-tests: New file.
45110         * tests/test-isblank.c: New file.
45111
45112         New module 'isblank'.
45113         * lib/isblank.c: New file.
45114         * m4/isblank.m4: New file.
45115         * modules/isblank: New file.
45116         * doc/posix-functions/isblank.texi: Mention the new module.
45117
45118 2009-10-18  Bruno Haible  <bruno@clisp.org>
45119
45120         New module 'ctype'.
45121         * lib/ctype.in.h: New file.
45122         * m4/ctype.m4: New file.
45123         * modules/ctype: New file.
45124         * doc/posix-headers/ctype.texi: Mention the new module.
45125
45126 2009-10-18  Jim Meyering  <meyering@redhat.com>
45127
45128         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
45129         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
45130         right after its initialization, rather than farther down.
45131         Keeping these in close proximity makes it easier to ensure
45132         that each such variable is initialized.  E.g.,
45133
45134             LIB_CLOCK_GETTIME=
45135             AC_SUBST([LIB_CLOCK_GETTIME])
45136
45137         This change also increments these serial numbers.
45138         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
45139         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45140         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45141
45142 2009-10-18  Bruno Haible  <bruno@clisp.org>
45143
45144         Don't let environment variables perturb build.
45145         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
45146         (gl_PREREQ_GETHRXTIME): ... not here.
45147
45148 2009-10-18  Bruno Haible  <bruno@clisp.org>
45149
45150         Avoid symlink attack in localcharset module.
45151         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
45152         (O_NOFOLLOW): Define fallback.
45153         (get_charset_aliases): Don't open the file if it is a symbolic link.
45154         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
45155         gl_FCNTL_H.
45156         (gl_FCNTL_H): Require it.
45157         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
45158         * modules/localcharset (Files): Add m4/fcntl_h.m4.
45159         Reported by Fergal Glynn <fglynn@veracode.com>.
45160
45161 2009-10-18  Bruno Haible  <bruno@clisp.org>
45162
45163         Implement nproc for mingw.
45164         * lib/nproc.c: Include <windows.h>
45165         (num_processors): On native Windows platforms, try GetSystemInfo.
45166
45167 2009-10-18  Bruno Haible  <bruno@clisp.org>
45168
45169         Implement nproc for IRIX.
45170         * lib/nproc.c: Include <sys/sysmp.h>.
45171         (num_processors): On IRIX systems, try sysmp.
45172         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
45173
45174 2009-10-18  Bruno Haible  <bruno@clisp.org>
45175
45176         Implement nproc for HP-UX.
45177         * lib/nproc.c: Include <sys/pstat.h>
45178         (num_processors): On HP-UX systems, try pstat_getdynamic.
45179         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
45180         pstat_getdynamic.
45181
45182 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
45183             Bruno Haible  <bruno@clisp.org>
45184
45185         Implement nproc for NetBSD, OpenBSD.
45186         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
45187         (ARRAY_SIZE): New macro.
45188         (num_processors): On BSD systems, try sysctl of HW_NCPU.
45189         * m4/nproc.m4: New file.
45190         * modules/nproc (Files): Add m4/nproc.m4.
45191         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
45192         (Makefile.am): Instead, augment lib_SOURCES.
45193
45194 2009-10-18  Bruno Haible  <bruno@clisp.org>
45195
45196         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
45197         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
45198         sys/param.h.
45199
45200 2009-10-16  Eric Blake  <ebb9@byu.net>
45201
45202         utimensat: new module
45203         * modules/utimensat: New file.
45204         * lib/utimensat.c (utimensat): Likewise.
45205         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
45206         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
45207         so we can work around Linux bugs.
45208         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45209         * modules/sys_stat (Makefile.am): Substitute them.
45210         * lib/sys_stat.in.h (utimensat): Declare it.
45211         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45212         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45213         * modules/utimensat-tests: New test.
45214         * tests/test-utimensat.c: Likewise.
45215
45216         utimens: let lutimens work on non-symlinks
45217         * lib/utimens.c (lutimens): Fall back to utimens rather than
45218         failing with ENOSYS, when file is not a symlink.
45219         (utimens): Reduce redirection.
45220         * tests/test-lutimens.h (test_lutimens): Update test to cover
45221         non-symlinks.
45222         * tests/test-utimens.h (test_utimens): Update test to cover
45223         symlinks.
45224         * tests/test-utimens.c (main): Update caller.
45225
45226         utimens: cache whether utimensat syscall works
45227         * lib/utimens.c (utimensat_works_really): New cache variable.
45228         (fdutimens, lutimens): Use it to avoid failing syscall.
45229
45230         test-stat-time, test-utimens: improve portability
45231         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
45232         ext4 on alpha, and for cygwin.
45233         * tests/test-utimens-common.h: New file.
45234         (nap): Factor delays into single function.
45235         * tests/test-lutimens.h (test_lutimens): Use new header.
45236         * tests/test-futimens.h (test_futimens): Likewise.
45237         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
45238         timestamps to occur from same machine, as was done previously for
45239         test_utimens.
45240         * modules/utimens-tests (Files): Ship new file.
45241         * modules/futimens-tests (Files): Likewise.
45242         Reported in part by Jim Meyering.
45243
45244         sys_stat: sort replacement declarations
45245         * lib/sys_stat.in.h: Sort declarations.
45246         * lib/futimens.c (futimens): Fix typo.
45247
45248 2009-10-15  Jim Meyering  <meyering@redhat.com>
45249
45250         don't let environment settings perturb build
45251         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
45252         could cause a configure-time and/or build-time malfunction.
45253         Typically, a configure-time function-in-library test is performed
45254         via code like this:
45255
45256           LIB_VAR=
45257           AC_SUBST([LIB_VAR])
45258           prefix_saved_LIBS=$LIBS
45259             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
45260                        [test "$ac_cv_search_FUNC" = "none required" ||
45261                         LIB_VAR=$ac_cv_search_FUNC])
45262           LIBS=$prefix_saved_LIBS
45263
45264         However, in each of the files affected by this change, the LIB_VAR=
45265         initialization was omitted.  Thus, when set in the environment, its
45266         value would propagate into generated Makefiles when FUNC is not found
45267         in LIB_NAME.
45268         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
45269         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45270         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45271
45272 2009-10-14  Eric Blake  <ebb9@byu.net>
45273
45274         fchdir: avoid infinite recursion in mingw
45275         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
45276         recursing.
45277
45278         test-stat-time: port to mingw
45279         * tests/test-stat-time.c (force_unlink): Return a value.
45280         (test_ctime) [W32]: Fix compilation error.
45281         (nap): Don't call usleep with too large an argument.  Use
45282         force_unlink.
45283         * doc/pastposix-functions/usleep.texi (usleep): Document the
45284         portability issue.
45285
45286 2009-10-13  Jim Meyering  <meyering@redhat.com>
45287
45288         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
45289         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
45290         * modules/pipe-filter-ii: Likewise.
45291         * modules/sys_socket-tests: Likewise.
45292         * modules/tsearch-tests: Likewise.
45293         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
45294         (check): Depend on it.
45295
45296 2009-10-12  Eric Blake  <ebb9@byu.net>
45297
45298         utimens-tests: port to NFS file systems
45299         * tests/test-utimens.h (test_utimens): Refactor utimecmp
45300         comparisons to avoid spurious failures from timestamp drift
45301         between NFS machines.
45302
45303 2009-10-12  Eric Blake  <ebb9@byu.net>
45304
45305         stat-time-tests: minor cleanups
45306         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
45307         * tests/test-stat-time.c (nap): Separate assignment from call.
45308         Suggested by Paolo Bonzini and Bruno Haible.
45309
45310         sys_stat: guarantee struct timespec
45311         * lib/sys_stat.in.h (includes): Always include <time.h>
45312         * modules/sys_stat (Depends-on): Add time.
45313         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
45314         mode_t permission values.
45315         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
45316         get at subsecond timestamps.
45317
45318 2009-10-10  Eric Blake  <ebb9@byu.net>
45319
45320         futimens: new module
45321         * modules/futimens: New file.
45322         * lib/futimens.c (futimens): Likewise.
45323         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
45324         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
45325         we can work around Linux bugs.
45326         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45327         * modules/sys_stat (Makefile.am): Substitute them.
45328         * lib/sys_stat.in.h (futimens): Declare it.
45329         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45330         * doc/posix-functions/futimens.texi (futimens): Likewise.
45331         * modules/futimens-tests: New test.
45332         * tests/test-futimens.c: Likewise.
45333
45334         utimens: introduce fdutimens
45335         * lib/utimens.h (fdutimens): New prototype.
45336         * lib/utimens.c (gl_futimens): Move guts...
45337         (fdutimens): ...to new interface.
45338         * tests/test-utimens.c (do_fdutimens): Use it.
45339
45340         utimens: add UTIME_NOW and UTIME_OMIT support
45341         * lib/utimens.c (validate_timespec, update_timespec): New helper
45342         functions.
45343         (gl_futimens, lutimens): Use them.
45344         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
45345         stdbool, sys_stat.
45346         (Link): Mention resulting library dependency.
45347         * modules/utimecmp (Link): Likewise.
45348         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
45349         (Makefile.am): Pick up library dependency.
45350         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
45351         definition.
45352         * tests/test-sys_stat.c: Test the definitions.
45353         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
45354         * NEWS: Document library dependency.
45355
45356         utimecmp: support symlink timestamps
45357         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
45358         hashing when possible.  Use pathconf when available.
45359         (SYSCALL_RESOLUTION): Recognize tighter resolution.
45360         * modules/utimecmp (Depends-on): Add lstat.
45361
45362         utimens: add lutimens interface
45363         * lib/utimens.c (lutimens): New function.
45364         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
45365         * lib/utimens.h (lutimens): Declare new interface.
45366         * tests/test-utimens.c (main): Enhance test.
45367         * tests/test-lutimens.h (test_lutimens): New file.
45368         * modules/utimens-tests (Files): Distribute it.
45369         (Depends-on): Add symlink.
45370         (configure.ac): Check for usleep.
45371
45372         utimens: validate futimens usage
45373         * lib/utimens.c (gl_futimens): Require valid fd up front, using
45374         fewer syscalls on failure later on.  Avoid compiler warning on
45375         mingw.
45376         * modules/utimens (Depends-on): Add dup2.
45377
45378         utimens: add test
45379         * modules/utimens-tests: New test.
45380         * tests/test-utimens.h: New file.
45381         * tests/test-futimens.h: Likewise.
45382         * tests/test-utimens.c: Likewise.
45383
45384         doc: mention timestamp portability issues
45385         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
45386         instead.
45387         * doc/posix-functions/utime.texi (utime): Likewise.
45388         * doc/posix-functions/utimes.texi (utimes): Likewise.
45389         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
45390         instead.
45391         * doc/posix-functions/futimens.texi (futimens): Mention utimens
45392         module.
45393         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45394         Mention weakness with symlink timestamps.
45395         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
45396         to utimensat/futimens instead.
45397         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
45398
45399         test-dup2: enhance test
45400         * tests/test-dup2.c (main): Also check AT_FDCWD.
45401
45402         test-stat-time: avoid more spurious failures
45403         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
45404         xfs; and avoid race if the two timestamps cross quantization edge.
45405
45406         relocatable: prefer 'file system' over 'filesystem'
45407         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
45408         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
45409         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
45410         * doc/relocatable.texi (Enabling Relocatability): Likewise.
45411         * lib/relocatable.c (compute_curr_prefix): Likewise.
45412
45413 2009-10-10  Jim Meyering  <meyering@redhat.com>
45414
45415         stat-time-tests: check for the usleep function
45416         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
45417
45418 2009-10-10  Bruno Haible  <bruno@clisp.org>
45419
45420         * modules/xnanosleep: Put the Link section after the Include section.
45421
45422 2009-10-09  Eric Blake  <ebb9@byu.net>
45423
45424         dup2: work around FreeBSD 6.1 bug
45425         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
45426         * doc/posix-functions/dup2.texi (dup2): Document it.
45427         Reported by Nelson H. F. Beebe and Jim Meyering.
45428
45429         test-stat-time: port to buggy NFS clients
45430         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
45431         (test_ctime): Also skip test if mtime and ctime are skewed.
45432
45433         maint: prefer 'file system' over 'filesystem'
45434         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45435         * doc/posix-functions/lstat.texi (lstat): Likewise.
45436         * lib/file-has-acl.c (file_has_acl): Likewise.
45437         * lib/fwriteerror.c [TEST]: Likewise.
45438         * tests/test-areadlink.h (test_areadlink): Likewise.
45439         * tests/test-areadlinkat-with-size.c (main): Likewise.
45440         * tests/test-areadlinkat.c (main): Likewise.
45441         * tests/test-canonicalize-lgpl.c (main): Likewise.
45442         * tests/test-canonicalize.c (main): Likewise.
45443         * tests/test-fstatat.c (main): Likewise.
45444         * tests/test-linkat.c (main): Likewise.
45445         * tests/test-lstat.h (test_lstat_func): Likewise.
45446         * tests/test-mkdir.h (test_mkdir): Likewise.
45447         * tests/test-readlink.h (test_readlink): Likewise.
45448         * tests/test-remove.c (main): Likewise.
45449         * tests/test-rename.h (test_rename): Likewise.
45450         * tests/test-renameat.c (main): Likewise.
45451         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45452         * tests/test-symlink.h (test_symlink): Likewise.
45453         * tests/test-symlinkat.c (main): Likewise.
45454         * tests/test-unlink.h (test_unlink_func): Likewise.
45455         * tests/test-unlinkat.c (main): Likewise.
45456
45457         maint: make realtime library usage explicit
45458         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
45459         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
45460         * modules/settime (Link): Likewise.
45461         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
45462
45463         test-stat-time: speed up execution
45464         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
45465         warning on mingw.
45466         (nap): New helper function.
45467         (prepare_test): Use it to reduce sleep time.
45468         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
45469         execution.
45470         * modules/stat-time-tests (configure.ac): Check for usleep.
45471
45472 2009-10-09  Jim Meyering  <meyering@redhat.com>
45473
45474         selinux-h: always use getfilecon wrappers
45475         * lib/getfilecon.c: New file.
45476         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
45477         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
45478         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
45479         (fgetfilecon): Provide a stub.
45480         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
45481         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
45482         file unconditionally.
45483         When <selinux/selinux.h> is found, arrange to use wrappers.
45484         * modules/selinux-h (Files): Add getfilecon.c.
45485         (Makefile.am): Substitute include-next-related bits
45486         into the now-always-generated selinux/selinux.h file.
45487         * doc/glibc-functions/lgetfilecon.texi: New file.
45488         * doc/glibc-functions/fgetfilecon.texi: New file.
45489         * doc/glibc-functions/getfilecon.texi: New file.
45490         * doc/glibc-functions/getfilecon-desc.texi: New file.
45491         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
45492         which to pull in the new files.
45493         * MODULES.html.sh (Misc): Add selinux-h.
45494
45495 2009-10-08  Jim Meyering  <meyering@redhat.com>
45496
45497         unistd: fix comment typo
45498         * lib/unistd.in.h (euidaccess): Fix a comment typo.
45499
45500 2009-10-08  Eric Blake  <ebb9@byu.net>
45501
45502         areadlink: use SIZE_MAX consistently
45503         * modules/areadlink (Depends-on): Add stdint.
45504         * modules/areadlink-with-size (Depends-on): Likewise.
45505         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45506         gives NULL; drop sys/types, since unistd gives size_t; and add
45507         stdint for SIZE_MAX.
45508         (SIZE_MAX): Rely on headers.
45509         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45510         and add stdint.
45511         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45512         (SIZE_MAX): Likewise.
45513         (INITIAL_BUF_SIZE): Turn into enum.
45514         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45515
45516 2009-10-08  Jim Meyering  <meyering@redhat.com>
45517
45518         areadlinkat: avoid compilation failure
45519         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45520         Fix typo in comment.
45521
45522 2009-10-07  Eric Blake  <ebb9@byu.net>
45523
45524         areadlinkat-with-size: new module
45525         * modules/areadlinkat-with-size: New module.
45526         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45527         * lib/areadlink.h (areadlinkat): Declare it.
45528         * MODULES.html.sh (File system functions): Mention it.
45529         * modules/areadlinkat-with-size-tests: New test.
45530         * tests/test-areadlinkat-with-size.c: New file.
45531
45532         xreadlinkat: new module
45533         * modules/xreadlinkat: New module.
45534         * lib/xreadlinkat.c (xreadlinkat): New file.
45535         * lib/xreadlink.h (xreadlinkat): Declare it.
45536         * MODULES.html.sh (File system functions): Mention it.
45537
45538         areadlinkat: new module
45539         * lib/at-func.c (FUNC_FAIL): New define.
45540         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45541         * modules/areadlinkat: New module.
45542         * lib/linkat.c (areadlinkat): Move...
45543         * lib/areadlinkat.c (areadlinkat): ...to new file.
45544         * lib/areadlink.h (areadlinkat): Declare it.
45545         * modules/linkat (Depends-on): Add areadlinkat.
45546         * MODULES.html.sh (File system functions): Mention it.
45547         * modules/areadlinkat-tests: New test.
45548         * tests/test-areadlinkat.c: New file.
45549
45550         areadlink, areadlink-with-size: add tests
45551         * modules/areadlink-tests: New test.
45552         * modules/areadlink-with-size-tests: Likewise.
45553         * tests/test-areadlink.h: New file.
45554         * tests/test-areadlink.c: Likewise.
45555         * tests/test-areadlink-with-size.c: Likewise.
45556
45557         maint: minor cleanups
45558         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45559         _UNUSED_PARAMETER_ instead.
45560         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45561         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45562         * modules/linkat-tests (Files): Distribute test-link.h.
45563
45564         openat, utimens: whitespace cleanup
45565         * lib/openat.c: Prefer space throughout, rather than mix of 8
45566         spaces vs. tabs.
45567         * lib/at-func.c: Likewise.
45568         * lib/utimens.c: Likewise.
45569
45570         openat: avoid using wrong fd
45571         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45572         working directory chooses same fd.
45573         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45574
45575         mkdir, mkdirat: fix cygwin 1.5.x bug
45576         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45577         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45578         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45579         bug.
45580         (gl_PREREQ_MKDIR): Delete unused macro.
45581         * modules/mkdir (Files): Track file rename.
45582         (configure.ac): Update macro name.
45583         * modules/openat (Depends-on): Add mkdir.
45584         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45585
45586         mkdir, mkdirat: add tests
45587         * modules/mkdir-tests: New test.
45588         * tests/test-mkdir.h: New file.
45589         * tests/test-mkdir.c: Likewise.
45590         * tests/test-mkdirat.c: Likewise.
45591         * modules/openat-tests (Files): Add new files.
45592         (Makefile.am): Run new test.
45593
45594 2009-10-06  Eric Blake  <ebb9@byu.net>
45595
45596         doc: tweak *at function documentation
45597         * doc/posix-functions/faccessat.texi (faccessat): Mention
45598         known issue with replacement.
45599         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45600         * doc/posix-functions/linkat.texi (linkat): Likewise.
45601         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45602         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45603         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45604         * doc/posix-functions/renameat.texi (renameat): Likewise.
45605         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45606
45607         openat: fix GNU/Hurd bug in unlinkat
45608         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45609         broken.
45610         * doc/posix-functions/unlink.texi (unlink): Document this.
45611         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45612
45613         fdopendir: fix GNU/Hurd bug
45614         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45615         allowing non-directory fds.
45616         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45617         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45618         * modules/dirent (Makefile.am): Substitute it.
45619         * lib/dirent.in.h (fdopendir): Declare replacement.
45620         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45621         * tests/test-fdopendir.c (main): Test something other than
45622         /dev/null, since on Hurd that behaves like a directory.
45623
45624         test-symlink: port to GNU/Hurd
45625         * tests/test-symlink.h (test_symlink): Relax expected errno.
45626
45627         doc: tweak more cygwin information
45628         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45629         now compatible with glibc.
45630         * doc/posix-functions/getopt.texi (getopt): Likewise.
45631
45632         getopt-gnu: add another test
45633         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45634         guarantee behavior relied on by m4.
45635         * tests/test-getopt.c (main): Use it.
45636         * modules/getopt-posix-tests (Depends-on): Add setenv.
45637         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45638
45639         getopt: fix compilation on darwin
45640         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45641         include.
45642         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45643         Reported by Ludovic Courtès.
45644
45645 2009-10-06  Bruno Haible  <bruno@clisp.org>
45646
45647         * modules/size_max (Description): Discourage its use.
45648         Reported by Simon Josefsson.
45649
45650 2009-10-06  Jim Meyering  <meyering@redhat.com>
45651
45652         linkat: avoid compilation failure
45653         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45654
45655 2009-10-05  Eric Blake  <ebb9@byu.net>
45656
45657         linkat: support Linux 2.6.17
45658         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45659         linkat on Linux, but allow cache variable override.
45660         * lib/linkat.c (rpl_linkat): Define override.
45661         * modules/linkat (Depends-on): Add symlinkat.
45662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45663         * modules/unistd (Makefile.am): Substitute it.
45664         * lib/unistd.in.h (linkat): Declare replacement.
45665         Reported by Pádraig Brady.
45666
45667         quotearg: port test to systems with C.UTF-8 locale
45668         * tests/test-quotearg.c (struct result_strings): Add another
45669         member, differentiating between C.ASCII and C.UTF-8 handling.
45670         (compare_strings): Add parameter.
45671         (main): Adjust all callers.
45672
45673         getopt: avoid clash with FreeBSD _getopt_internal
45674         * lib/getopt.in.h (_getopt_internal): Override the name.
45675         * lib/getopt_int.h (includes): Pick up any overrides.
45676         Reported by Reuben Thomas.
45677
45678         hash: allow C89 compilation
45679         * lib/hash.c (check_tuning): Move declaration before statement.
45680         Reported by Reuben Thomas.
45681
45682 2009-10-05  Karl Berry  <karl@gnu.org>
45683
45684         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45685
45686 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45687             Bruno Haible  <bruno@clisp.org>
45688
45689         * lib/uname.c (uname): Use a table-driven algorithm to compute
45690         Windows NT versions.
45691
45692 2009-10-04  Bruno Haible  <bruno@clisp.org>
45693
45694         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45695         program_invocation_short_name.
45696         * modules/progname (configure.ac): Test for presence of
45697         program_invocation_short_name.
45698         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45699
45700 2009-10-04  Bruno Haible  <bruno@clisp.org>
45701
45702         * lib/progname.c (set_program_name): Fix comment.
45703         Reported by Jim Meyering.
45704
45705 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45706             Bruno Haible  <bruno@clisp.org>
45707
45708         * lib/uname.c: Include <string.h>.
45709         (uname): Do only one call to GetVersionEx in the common case.
45710
45711 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45712             Bruno Haible  <bruno@clisp.org>
45713
45714         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45715         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45716         (uname): Add support for Windows CE and various non-x86 CPU types.
45717
45718 2009-10-03  Bruno Haible  <bruno@clisp.org>
45719
45720         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45721         invocation to tests/configure.ac.
45722         Reported by Ian Beckwith <ianb@erislabs.net>.
45723
45724 2009-10-02  Eric Blake  <ebb9@byu.net>
45725
45726         fchdir: avoid compiler warning
45727         * lib/fchdir.c (canonicalize_file_name)
45728         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45729
45730         test-open: support mingw errno values
45731         * tests/test-open.h (test_open): Relax test.
45732         * tests/test-fopen.h (test_fopen): Likewise.
45733         * tests/test-openat-safer.c (main): Likewise.
45734
45735         open: fix opening directory on mingw
45736         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45737
45738         test-open: on GNU/Hurd, /dev/null is a directory
45739         * tests/test-fopen.h (main): Rename...
45740         (test_fopen): ...to this.  Use a guaranteed non-directory when
45741         confirming open behavior on trailing slash.
45742         * tests/test-openat-safer.c (main): Likewise.
45743         * tests/test-open.h (main): Likewise....
45744         (test_open): ...to this.
45745         * tests/test-fopen.c (main): Adjust caller.
45746         * tests/test-fopen-safer.c (main): Likewise.
45747         * tests/test-open.c (main): Likewise.
45748         * tests/test-fcntl-safer.c (main): Likewise.
45749         Reported by Samuel Thibault.
45750
45751         rename, fchdir: don't ignore chdir failure
45752         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45753         * lib/rename.c (rpl_rename) [W32]: Likewise.
45754         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45755         an empty destination directory if source cannot be renamed,
45756         although there is still possibility for failure.
45757         * doc/posix-functions/rename.texi (rename): Document the race.
45758         Reported by Jim Meyering.
45759
45760         maint: cleanup whitespace in recent commits
45761         * lib/rename.c (rpl_rename): Remove tabs.
45762         * tests/test-link.h (test_link): Likewise.
45763         * lib/fchdir.c (get_name): Likewise.
45764         Reported by Jim Meyering.
45765
45766 2009-10-02  Ben Pfaff  <blp@gnu.org>
45767
45768         relocatable-prog-wrapper: Add missing dependency on
45769         double-slash-root.
45770         * modules/relocatable-prog-wrapper: Add dependency.
45771         Reported by Ian Beckwith <ianb@erislabs.net>.
45772
45773 2009-10-02  Eric Blake  <ebb9@byu.net>
45774
45775         renameat: fix Solaris bugs
45776         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45777         needed fixing.
45778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45779         * modules/stdio (Makefile.am): Substitute it.
45780         * lib/stdio.in.h (renameat): Declare replacement.
45781         * lib/renameat.c (rpl_renameat): Implement fix.
45782
45783         renameat: new module
45784         * modules/renameat: New file.
45785         * lib/renameat.c (renameat): Likewise.
45786         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45788         * modules/stdio (Makefile.am): Substitute them.
45789         * lib/stdio.in.h (renameat): Declare it.
45790         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45791         * doc/posix-functions/renameat.texi (renameat): Likewise.
45792         * modules/renameat-tests: New test.
45793         * tests/test-renameat.c: Likewise.
45794
45795         rename: fix mingw bugs
45796         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45797         directory overwrite bugs.
45798
45799         rename: fix another cygwin 1.5 bug
45800         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45801         checks.
45802         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45803         unnecessary cygwin workarounds.  Also work around bug with moving
45804         full directory onto an empty one.
45805         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45806
45807         rename-dest-slash: merge into rename module
45808         * modules/rename-dest-slash (Status): Mark obsolete.
45809         (Depends-on): Add rename.
45810         (Files): Let rename do it all.
45811         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45812         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45813         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45814         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45815         * lib/rename.c (rpl_rename): Update comments.
45816
45817         rename: fix cygwin 1.5.x bugs
45818         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45819         * lib/rename.c (rpl_rename): Work around them.
45820         * modules/rename (Depends-on): Add same-inode.
45821
45822         rename: fix Solaris 10 bug
45823         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45824         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45825         was the only bug.
45826
45827         rename: fix Solaris 9 bug
45828         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45829         on non-directory.  Avoid calling exit.
45830         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45831         strdup.
45832         * modules/rename-tests (Depends-on): Drop lstat.
45833         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45834         (gl_PREREQ_RENAME): Delete unused macro.
45835
45836         rename-dest-slash: fix NetBSD bug
45837         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45838         links.
45839         * modules/rename-dest-slash (Depends-on): Add same-inode.
45840
45841         rename-tests: new test, exposes several platform bugs
45842         * modules/rename-tests: New file.
45843         * tests/test-rename.h: Likewise.
45844         * tests/test-rename.c: Likewise.
45845         * doc/posix-functions/rename.texi (rename): Improve documentation,
45846         including bugs that will eventually be fixed in gnulib.
45847
45848 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45849
45850         * lib/uname.c: Include <stdlib.h>
45851         (uname): Assume version info is available.
45852
45853 2009-10-02  Jim Meyering  <meyering@redhat.com>
45854
45855         gnu-web-doc-update: correct --help output
45856         * build-aux/gnu-web-doc-update: Make --help output relevant.
45857
45858         gnu-web-doc-update: add standard options
45859         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45860
45861         gnu-web-doc-update: New module.
45862         Use this script to automatically update the on-line web documentation
45863         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45864         * modules/gnu-web-doc-update: New file, from coreutils.
45865         * build-aux/gnu-web-doc-update: New script.
45866
45867 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45868
45869         link: LoadLibrary is not needed.
45870         * lib/link.c: Use GetModuleHandle.
45871
45872 2009-10-01  Eric Blake  <ebb9@byu.net>
45873
45874         getopt: bump serial number
45875         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45876         change.
45877
45878         tests: tighten link, rmdir, and remove tests
45879         * tests/test-link.h (includes): No need to use <config.h> here.
45880         Clean up if directory hard link was created, otherwise test for
45881         trailing '.'.
45882         * tests/test-linkat.c (main): Simplify.
45883         * tests/test-remove.c (main): Enhance test for trailing '.'.
45884         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45885
45886 2009-10-01  Jim Meyering  <meyering@redhat.com>
45887
45888         maint.mk: requiring "make major" was annoying, for a "minor" release.
45889         What is intended is "stable", to contrast with alpha and beta,
45890         so require "make stable", not "make major".
45891         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45892         (get_tool_versions): Likewise.
45893         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45894
45895 2009-09-30  Ben Pfaff  <blp@gnu.org>
45896
45897         Fix broken build of replacement for Windows tmpfile().
45898         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45899         flags argument added along with the 'mkostemp' module.
45900
45901 2009-09-28  Bruno Haible  <bruno@clisp.org>
45902
45903         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45904         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45905         to 'remove_elt'.
45906         (gl_list_remove): Update.
45907         * lib/gl_list.c (gl_list_remove): Update.
45908         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45909         to 'remove_elt'.
45910         (gl_oset_remove): Update.
45911         * lib/gl_list.c (gl_oset_remove): Update.
45912         Reported by Eric Blake.
45913
45914 2009-09-28  Eric Blake  <ebb9@byu.net>
45915
45916         doc: mention yet more cygwin 1.7 status
45917         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45918         cygwin.
45919         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45920         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45921
45922         argp: fix test failure
45923         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45924         that are not upper-case.  Pass correct range to tolower.
45925
45926 2009-09-27  Jim Meyering  <meyering@redhat.com>
45927
45928         test-yesno: work around sparc-dash here-document infelicity
45929         Without this change, the literal \177 byte in a here document
45930         would make dash 0.5.5.1-3 access uninitialized memory.
45931         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45932         Instead, use a marker, "@", and filter through tr to create the desired
45933         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45934
45935 2009-09-27  Bruno Haible  <bruno@clisp.org>
45936
45937         Disable untested support for new flavours of ACLs on AIX.
45938         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45939         progress.
45940         * lib/set-mode-acl.c (qset_acl): Likewise.
45941
45942 2008-12-07  Bruno Haible  <bruno@clisp.org>
45943
45944         Add support for new flavours of ACLs on AIX. (Untested.)
45945         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45946         (file_has_acl): Add support for newer AIX.
45947         * lib/set-mode-acl.c (qset_acl): Likewise.
45948         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45949         Rainer Tammer <tammer@tammer.net>.
45950
45951 2009-09-26  Eric Blake  <ebb9@byu.net>
45952
45953         argp: fix compilation of getopt
45954         * lib/getopt.in.h (includes): Use different guard than glibc.
45955         Reported by Sergey Poznyakoff.
45956
45957         doc: mention more cygwin 1.7 status
45958         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45959         bug.
45960         * doc/posix-functions/execl.texi (execl): Likewise.
45961         * doc/posix-functions/execle.texi (execle): Likewise.
45962         * doc/posix-functions/execlp.texi (execlp): Likewise.
45963         * doc/posix-functions/execv.texi (execv): Likewise.
45964         * doc/posix-functions/execve.texi (execve): Likewise.
45965         * doc/posix-functions/execvp.texi (execvp): Likewise.
45966         * doc/glibc-functions/canonicalize_file_name.texi
45967         (canonicalize_file_name): Cygwin 1.7 now provides this.
45968         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45969         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45970         on AT_SYMLINK_NOFOLLOW.
45971
45972 2009-09-24  Eric Blake  <ebb9@byu.net>
45973
45974         test-linkat: make test more robust
45975         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45976
45977         getopt: fix inclusion guards for cygwin
45978         * modules/getopt-posix (Depends-on): Add include-next.
45979         (Makefile.am): Substitute more items in replacement header.
45980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45981         <getopt.h>.
45982         * lib/getopt.in.h (includes): Use split inclusion guard, and
45983         prefer <getopt.h> over include <unistd.h> when one is present.
45984         (option): Also override name of 'struct option'.
45985
45986         same-inode: revert prior change; it is not yet ready
45987         * NEWS: Undo mention of this change.
45988         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45989         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45990         * lib/cycle-check.c (cycle_check): Likewise.
45991         * lib/same.c (same_name): Likewise.
45992         * lib/at-func2.c (at_func2): Likewise.
45993
45994 2009-09-23  Eric Blake  <ebb9@byu.net>
45995
45996         linkat: new module
45997         * modules/linkat: New file.
45998         * lib/at-func2.c (at_func2): Likewise.
45999         * lib/linkat.c (linkat): Likewise.
46000         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
46001         * lib/openat-priv.h (at_func2): Add declaration.
46002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46003         * modules/unistd (Makefile.am): Substitute them.
46004         * lib/unistd.in.h (linkat): Declare it.
46005         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46006         * doc/posix-functions/linkat.texi (linkat): Likewise.
46007         * doc/posix-functions/link.texi (link): Tweak wording.
46008         * tests/test-link.c (main): Move guts...
46009         * tests/test-link.h (test_link): ...into new file.
46010         * modules/linkat-tests: New test.
46011         * tests/test-linkat.c: Likewise.
46012         * modules/link-tests (Files): Ship new file.
46013         (Depends-on): Add stdbool.
46014
46015         dirname: add library-safe mdir_name
46016         * lib/dirname.h (mdir_name): New prototype.
46017         * lib/dirname.c (dir_name): Move guts...
46018         (mdir_name): ...to new function that avoids xalloc_die.
46019
46020         fchdir: another mingw fix
46021         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
46022         * lib/fchdir.c (get_name): New helper method; skips canonicalize
46023         on mingw (where it has not yet been ported), and make it optional
46024         elsewhere.
46025         (_gl_register_fd): Use it.
46026
46027         same-inode: make SAME_INODE tri-state, to port to mingw
46028         * NEWS: Mention this change.
46029         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
46030         st_ino always being 0.
46031         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
46032         * lib/cycle-check.c (cycle_check): Likewise.
46033         * lib/same.c (same_name): Likewise.
46034
46035         lstat: avoid mingw compilation error
46036         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
46037         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
46038         lstat ourselves.
46039         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
46040         was adequate.
46041         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
46042         the checks for lstat.
46043         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
46044
46045         link: fix test failure on Solaris 9
46046         * lib/link.c (rpl_link): Don't assume link will catch bogus
46047         trailing slash on source.
46048
46049         test-symlinkat: enhance test
46050         * tests/test-readlink.c (main): Move guts...
46051         * tests/test-readlink.h (test_readlink): ...into new file.
46052         * tests/test-symlink.c (main): Move guts...
46053         * tests/test-symlink.h (test_symlink): ...into new file.
46054         * tests/test-symlinkat.c (main): Use new files for further
46055         coverage.
46056         (do_symlink, do_readlink): New helper functions.
46057         * modules/symlink-tests (Files): Ship new file.
46058         (Depends-on): Add stdbool.
46059         * modules/readlink-tests (Files): Ship new file.
46060         (Depends-on): Add stdbool.
46061         * modules/symlinkat-tests (Files): Use new files.
46062
46063 2009-09-23  Eric Blake  <ebb9@byu.net>
46064
46065         readlink: document portability issue with symlink length
46066         * doc/posix-functions/lstat.texi (lstat): Mention that some file
46067         systems have bogus st_size on symlinks, and mention the
46068         areadlink-with-size module.
46069         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
46070         * doc/posix-functions/readlink.texi (readlink): Mention the
46071         areadlink module, and ERANGE failure.
46072         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46073         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
46074
46075         readlink: fix Solaris 9 bug with trailing slash
46076         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
46077         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
46078         * doc/posix-functions/readlink.texi (readlink): Document this.
46079         * modules/readlink-tests: New test.
46080         * tests/test-readlink.c: Likewise.
46081
46082         readlink: fix cygwin 1.5.x bug with return type
46083         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
46084         * lib/unistd.in.h (readlink): Use ssize_t.
46085         * lib/readlink.c (readlink): Likewise.
46086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46087         * modules/unistd (Makefile.am): Substitute it.
46088         * lib/unistd.in.h (readlink): Declare replacement.
46089         * doc/posix-functions/readlink.texi (readlink): Document this.
46090
46091         symlink: use throughout gnulib
46092         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
46093         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
46094         symlink is not used.
46095         * modules/symlinkat (Depends-on): Add symlink.
46096         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46097         * modules/canonicalize-tests (Depends-on): Likewise.
46098         * modules/lstat-tests (Depends-on): Likewise.
46099         * modules/openat-tests (Depends-on): Likewise.
46100         * modules/remove-tests (Depends-on): Likewise.
46101         * modules/rmdir-tests (Depends-on): Likewise.
46102         * modules/unlink-tests (Depends-on): Likewise.
46103         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
46104         * tests/test-canonicalize.c (symlink): Likewise.
46105         * tests/test-fstatat.c (symlink): Likewise.
46106         * tests/test-lstat.c (symlink): Likewise.
46107         * tests/test-remove.c (symlink): Likewise.
46108         * tests/test-rmdir.c (symlink): Likewise.
46109         * tests/test-unlink.c (symlink): Likewise.
46110         * tests/test-unlinkat.c (symlink): Likewise.
46111
46112         symlink: new module, for Solaris 9 bug
46113         * modules/symlink: New file.
46114         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
46115         * lib/symlink.c: Likewise.
46116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
46117         * modules/unistd (Makefile.am): Substitute them.
46118         * lib/unistd.in.h (symlink): Declare replacement.
46119         * MODULES.html.sh (File system functions): Mention it.
46120         * doc/posix-functions/symlink.texi (symlink): Likewise.
46121         * modules/symlink-tests: New test.
46122         * tests/test-symlink.c: Likewise.
46123
46124 2009-09-23  Bruno Haible  <bruno@clisp.org>
46125
46126         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
46127         when needed.
46128         Test case: gnulib-tool --import --with-tests atexit inttypes.
46129         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
46130
46131 2009-09-23  Bruno Haible  <bruno@clisp.org>
46132
46133         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
46134         subcommand, not in a subshell.
46135
46136 2009-09-22  Eric Blake  <ebb9@byu.net>
46137
46138         unistd: sort replacement declarations
46139         * lib/unistd.in.h: Sort declarations.
46140
46141         open, openat: minor optimization
46142         * lib/open.c (open): If open succeeded, len is non-zero.
46143         * lib/openat.c (rpl_openat): Likewise.
46144
46145         link-follow: ensure correct result
46146         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
46147         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
46148         distinguish between possible failures.
46149
46150 2009-09-21  Eric Blake  <ebb9@byu.net>
46151
46152         fts: avoid compiler warning
46153         * lib/fts.c (dirent_inode_sort_may_be_useful)
46154         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
46155
46156 2009-09-19  Bruno Haible  <bruno@clisp.org>
46157
46158         * lib/progreloc.c (canonicalize_file_name): New declaration.
46159
46160 2009-09-19  Eric Blake  <ebb9@byu.net>
46161
46162         link: fix quoting
46163         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
46164
46165         openat: fix openat bugs on Solaris 9
46166         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
46167         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
46168         * modules/openat (Depends-on): Add open.
46169         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
46170         * modules/fcntl-h (Makefile.am): Substitute it.
46171         * lib/fcntl.in.h (openat): Declare replacement.
46172         * doc/posix-functions/openat.texi (openat): Document this.
46173
46174         openat: move fstatat and unlinkat into correct files
46175         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
46176         compiled.
46177         * lib/openat.c (fstatat, unlinkat): Move...
46178         * lib/fstatat.c (fstatat): ...into correct files.
46179         * lib/unlinkat.c (unlinkat): Likewise.
46180
46181         openat: fix unlinkat bugs on Solaris 9
46182         * lib/unlinkat.c (unlinkat): New file.
46183         * modules/openat (Depends-on): Add unlink.
46184         (Files): Distribute it.
46185         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
46186         trailing slash behavior is broken.
46187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46188         * modules/unistd (Makefile.am): Substitute it.
46189         * lib/unistd.in.h (unlinkat): Declare replacement.
46190         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
46191
46192         openat: fix fstatat bugs on Solaris 9
46193         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
46194         stat.
46195         * doc/posix-functions/fstatat.texi (fstatat): Document this.
46196
46197         test-unlinkat: enhance test, to expose Solaris 9 bug
46198         * tests/test-unlink.c (main): Factor guts...
46199         * tests/test-unlink.h (test_rmdir_func): ...into new file.
46200         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
46201         * tests/test-rmdir.c (main): Adjust caller.
46202         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
46203         (unlinker): New helper function.
46204         (rmdirat): Enhance check.
46205         * modules/rmdir-tests (Depends-on): Add stdbool.
46206         * modules/unlink-tests (Depends-on): Likewise.
46207         (Files): Add test-unlink.h.
46208         * modules/openat-tests (Files): Likewise.
46209         (Depends-on): Add unlinkdir.
46210
46211         test-fstatat: new test, to expose Solaris 9 bugs
46212         * tests/test-stat.c (main): Factor guts...
46213         * tests/test-stat.h (test_stat_func): ...into new file.
46214         * tests/test-lstat.c (main): Factor guts...
46215         * tests/test-lstat.h (test_lstat_func): ...into new file.
46216         * tests/test-fstatat.c: New file.
46217         * modules/stat-tests (Files): Add test-stat.h.
46218         * modules/lstat-tests (Files): Add test-lstat.h.
46219         (Depends-on): Add stdbool.
46220         * modules/openat-tests (Depends-on): Add pathmax.
46221         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
46222         (Makefile.am): Run new test.
46223
46224         remove: new module, for mingw and Solaris 9 bugs
46225         * modules/remove: New file.
46226         * lib/remove.c: Likewise.
46227         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
46228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
46229         * modules/stdio (Makefile.am): Use them.
46230         * lib/stdio.in.h (remove): Declare replacement.
46231         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46232         * doc/posix-functions/remove.texi (remove): Likewise.
46233         * modules/remove-tests: New test.
46234         * tests/test-remove.c: Likewise.
46235
46236         unlink: new module, for Solaris 9 bug
46237         * modules/unlink: New file.
46238         * lib/unlink.c: Likewise.
46239         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
46240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46241         * modules/unistd (Makefile.am): Use them.
46242         * lib/unistd.in.h (stat): Declare replacement.
46243         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46244         * doc/posix-functions/unlink.texi (unlink): Likewise.
46245         * modules/unlink-tests: New test.
46246         * tests/test-unlink.c: Likewise.
46247
46248         lstat: fix Solaris 9 bug
46249         * lib/lstat.c (lstat): Also check for trailing slash on
46250         non-symlink, non-directories.  Use stat module to simplify logic.
46251         * doc/posix-functions/lstat.texi (lstat): Document it.
46252         * modules/lstat-tests (Depends-on): Add errno, same-inode.
46253         (configure.ac): Check for symlink.
46254         * tests/test-lstat.c (main): Add more tests.
46255
46256         stat: add as dependency to other modules
46257         * modules/chown (Depends-on): Add stat.
46258         * modules/euidaccess (Depends-on): Likewise.
46259         * modules/fchdir (Depends-on): Likewise.
46260         * modules/isdir (Depends-on): Likewise.
46261         * modules/link (Depends-on): Likewise.
46262         * modules/lstat (Depends-on): Likewise.
46263         * modules/mkdir-p (Depends-on): Likewise.
46264         * modules/modechange (Depends-on): Likewise.
46265         * modules/open (Depends-on): Likewise.
46266         * modules/readlink (Depends-on): Likewise.
46267         * modules/same (Depends-on): Likewise.
46268
46269         stat: fix Solaris 9 bug
46270         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
46271         slash.
46272         * lib/stat.c (rpl_stat): Work around it.
46273         * doc/posix-functions/stat.texi (stat): Update documentation.
46274
46275         stat: new module, for mingw bug
46276         * modules/stat: New file.
46277         * lib/stat.c: Likewise.
46278         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46279         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46280         * modules/sys_stat (Makefile.am): Use them.
46281         * lib/sys_stat.in.h (stat): Declare replacement.
46282         * lib/openat.c (fstatat): Deal with lstat and stat being function
46283         macros.
46284         * modules/openat (Depends-on): Add inline.
46285         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46286         * doc/posix-functions/stat.texi (stat): Likewise.
46287         * modules/stat-tests: New test.
46288         * tests/test-stat.c: Likewise.
46289
46290 2009-09-19  Jim Meyering  <meyering@redhat.com>
46291
46292         syntax-check: detect unnecessary inclusion of canonicalize.h
46293         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
46294
46295 2009-09-19  Eric Blake  <ebb9@byu.net>
46296
46297         canonicalize-lgpl: adjust clients to use correct header
46298         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46299         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
46300         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
46301         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
46302         * lib/progreloc.c (includes): Likewise.
46303
46304 2009-09-19  Jim Meyering  <meyering@redhat.com>
46305
46306         test-posixtm.c: correct a comment
46307         * tests/test-posixtm.c: Correct first-line comment.
46308         Spotted by Eric Blake.
46309
46310 2009-09-16  Jim Meyering  <meyering@redhat.com>
46311
46312         posixtm-tests: make T const-correct; add a test case
46313         * tests/test-posixtm.c (T): Declare const.
46314         Add a test for -(2^31+1).
46315         Remove useless can-succeed-only-in-2002 test.
46316
46317         posixtm-tests: adjust the sole failing test
46318         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
46319         expected output matches what mktime now produces.  Cross-checked via
46320         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
46321
46322         posixtm: move #ifdef'd tests into a new module
46323         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
46324         * tests/test-posixtm.c: ... this new file.
46325         * modules/posixtm-tests: New module.
46326
46327 2009-09-19  Eric Blake  <ebb9@byu.net>
46328
46329         openat: simplify use of at-func.c
46330         * lib/at-func.c (includes): Include prerequisites here, to
46331         simplify requirements on client files.
46332         * lib/openat-priv.h: Add double-inclusion guard.
46333         * lib/faccessat.c (includes): Simplify.
46334         * lib/fchmodat.c (includes): Likewise.
46335         * lib/fchownat.c (includes): Likewise.
46336         * lib/mkdirat.c (includes): Likewise.
46337         * lib/mkfifoat.c (includes): Likewise.
46338         * lib/symlinkat.c (includes): Likewise.
46339
46340         openat: allow return of fd 0
46341         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
46342         * modules/save-cwd (Depends-on): Replace fcntl-safer with
46343         unistd-safer.
46344         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
46345         <fcntl.h>; this module does not leak fds.
46346         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
46347         must be allowed to return 0, leaving openat_safer to add the
46348         safety.
46349         (openat_permissive): Avoid writing to just-opened fd 2 if
46350         restoring the current directory fails.
46351         * lib/openat-die.c (openat_restore_fail): Add comment.
46352         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
46353         (save_cwd): Guarantee safe fd, but without use of open_safer.
46354         * tests/test-openat.c: New test.
46355         * modules/openat-tests (Files, Makefile.am): Distribute and build
46356         new file.
46357
46358         relocatable-prog-wrapper: fix build
46359         * modules/relocatable-prog-wrapper (Files): Update name of
46360         canonicalize m4 file, broken on 2009-09-17.
46361         Reported by emad hajjar <aleppos@hotmail.com>.
46362
46363 2009-09-19  Bruno Haible  <bruno@clisp.org>
46364
46365         * lib/safe-alloc.h: Use the standard header with GPL copyright.
46366         * lib/safe-alloc.c: Likewise.
46367         Reported by Ian Beckwith <ianb@erislabs.net>.
46368
46369 2009-09-18  Bruno Haible  <bruno@clisp.org>
46370
46371         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
46372         Reported by <erobles@sensacd.com.mx>.
46373
46374 2009-09-17  Eric Blake  <ebb9@byu.net>
46375
46376         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
46377         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
46378         slashes when checking if last component is missing.
46379         * tests/test-canonicalize.c (main): Test this.
46380
46381         canonicalize, canonicalize-lgpl: honor // if distinct from /
46382         * modules/canonicalize (Files): Add double-slash-root.m4.
46383         * modules/canonicalize-lgpl (Files): Likewise.
46384         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46385         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
46386         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
46387         fallback definition.
46388         (canonicalize_filename_mode): Use it to protect //.
46389         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
46390         (__realpath): Likewise.
46391         * tests/test-canonicalize.c (main): Test this.
46392         * tests/test-canonicalize-lgpl.c (main): Likewise.
46393         * modules/canonicalize-tests (Depends-on): Add same-inode.
46394         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46395
46396         canonicalize-lgpl: fix glibc bug with trailing slash
46397         * m4/canonicalize-lgpl.m4: Move contents...
46398         * m4/canonicalize.m4: ...here.
46399         (gl_CANONICALIZE_LGPL): Factor realpath check...
46400         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
46401         glibc 2.3.5 bug, fixed 2005-04-27.
46402         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
46403         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
46404         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
46405         * modules/canonicalize-lgpl (Files): Manage file rename.
46406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46407         * modules/stdlib (Makefile.am): Substitute witness.
46408         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
46409         is needed.
46410         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
46411         replacement is required.
46412         * lib/canonicalize.c (canonicalize_file_name): Likewise.
46413         * doc/glibc-functions/canonicalize_file_name.texi
46414         (canonicalize_file_name): Document this.
46415         * doc/posix-functions/realpath.texi (realpath): Likewise.
46416
46417         canonicalize-lgpl: reject non-directory with trailing slash
46418         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
46419         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
46420         catches failures in glibc 2.3.5.
46421         * tests/test-canonicalize.c (main): Likewise.
46422
46423         canonicalize-lgpl: use native realpath if it works
46424         * lib/canonicalize-lgpl.c (realpath): Guard with
46425         FUNC_REALPATH_WORKS.
46426         * lib/stdlib.in.h (realpath): Make declaration optional based on
46427         HAVE_REALPATH.
46428         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
46429         native realpath works.
46430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46431         * modules/stdlib (Makefile.am): Substitute witness.
46432
46433         canonicalize, canonicalize-lgpl: use <stdlib.h>
46434         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
46435         (Include): Mention <stdlib.h>.
46436         (configure.ac): Mention functions we provide.
46437         * modules/canonicalize (configure.ac): Likewise.
46438         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
46439         realpath if canonicalize_file_name is missing.
46440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
46441         * modules/stdlib (Makefile.am): Substitute witnesses.
46442         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
46443         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
46444         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
46445         * NEWS: Document this.
46446         * doc/glibc-functions/canonicalize_file_name.texi
46447         (canonicalize_file_name): Likewise.
46448         * doc/posix-functions/realpath.texi (realpath): Likewise.
46449         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
46450
46451         test-canonicalize: consolidate into single C program
46452         * tests/test-canonicalize.sh: Delete; move setup into...
46453         * tests/test-canonicalize.c (main): ...the program, making it
46454         easier to run in debugger.  Add some tests.
46455         * modules/canonicalize-tests (Files): Remove unused file.
46456         (Depends-on): Add progname.
46457         (configure.ac, Makefile.am): Simplify.
46458
46459         test-canonicalize-lgpl: consolidate into single C program
46460         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
46461         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
46462         easier to run in debugger.  Add some tests.
46463         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
46464         (configure.ac, Makefile.am): Simplify.
46465
46466         canonicalize: avoid resolvepath
46467         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
46468         unnecessary checks.
46469         * lib/canonicalize.c (includes): Simplify.
46470         (canonicalize_file_name): Drop resolvepath implementation.
46471         * modules/canonicalize (Depends-on): Drop filenamecat.
46472
46473         canonicalize: don't lose errno
46474         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
46475         over calls to free.
46476
46477         canonicalize: simplify errno handling
46478         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
46479         assignment.
46480
46481         canonicalize, canonicalize-lgpl: update module dependencies
46482         * modules/canonicalize (Depends-on): Add extensions, lstat,
46483         pathmax, stdlib.
46484         (Files): Drop pathmax.h.
46485         (configure.ac): Adjust macro name.
46486         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
46487         lstat, stdlib, sys_stat.
46488         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
46489         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
46490         extensions.
46491         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
46492         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
46493         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
46494         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
46495         declaration, if available.
46496         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
46497         we can rely on the readlink module.
46498         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
46499         (includes): Use <unistd.h> unconditionally.
46500
46501 2009-09-17  Eric Blake  <ebb9@byu.net>
46502
46503         maint: make Include sections of modules consistent
46504         * modules/alloca: Use only header name; no need to list #include.
46505         * modules/alloca-opt: Likewise.
46506         * modules/arpa_inet: Likewise.
46507         * modules/canon-host: Likewise.
46508         * modules/configmake: Likewise.
46509         * modules/dirent: Likewise.
46510         * modules/eealloc: Likewise.
46511         * modules/environ: Likewise.
46512         * modules/fchdir: Likewise.
46513         * modules/fcntl: Likewise.
46514         * modules/fcntl-h: Likewise.
46515         * modules/gethrxtime: Likewise.
46516         * modules/gettime: Likewise.
46517         * modules/ignore-value: Likewise.
46518         * modules/inet_ntop: Likewise.
46519         * modules/inet_pton: Likewise.
46520         * modules/inttypes: Likewise.
46521         * modules/isnand-nolibm: Likewise.
46522         * modules/isnanf-nolibm: Likewise.
46523         * modules/mbchar: Likewise.
46524         * modules/mbfile: Likewise.
46525         * modules/mbiter: Likewise.
46526         * modules/mbuiter: Likewise.
46527         * modules/netdb: Likewise.
46528         * modules/netinet_in: Likewise.
46529         * modules/nproc: Likewise.
46530         * modules/pagealign_alloc: Likewise.
46531         * modules/poll: Likewise.
46532         * modules/printf-frexp: Likewise.
46533         * modules/pthread: Likewise.
46534         * modules/putenv: Likewise.
46535         * modules/random_r: Likewise.
46536         * modules/relocatable-prog: Likewise.
46537         * modules/search: Likewise.
46538         * modules/select: Likewise.
46539         * modules/selinux-h: Likewise.
46540         * modules/settime: Likewise.
46541         * modules/signal: Likewise.
46542         * modules/size_max: Likewise.
46543         * modules/socklen: Likewise.
46544         * modules/ssize_t: Likewise.
46545         * modules/stdarg: Likewise.
46546         * modules/stdbool: Likewise.
46547         * modules/stddef: Likewise.
46548         * modules/stdint: Likewise.
46549         * modules/stdio: Likewise.
46550         * modules/stdlib: Likewise.
46551         * modules/string: Likewise.
46552         * modules/strings: Likewise.
46553         * modules/sys_file: Likewise.
46554         * modules/sys_ioctl: Likewise.
46555         * modules/sys_select: Likewise.
46556         * modules/sys_socket: Likewise.
46557         * modules/sys_stat: Likewise.
46558         * modules/sys_time: Likewise.
46559         * modules/sys_times: Likewise.
46560         * modules/sys_utsname: Likewise.
46561         * modules/sys_wait: Likewise.
46562         * modules/sysexits: Likewise.
46563         * modules/time: Likewise.
46564         * modules/times: Likewise.
46565         * modules/tmpfile: Likewise.
46566         * modules/trim: Likewise.
46567         * modules/unistd: Likewise.
46568         * modules/wchar: Likewise.
46569         * modules/wctype: Likewise.
46570
46571 2009-09-17  Bruno Haible  <bruno@clisp.org>
46572
46573         Make getdate.y compile on QNX and NetBSD 5 / i386.
46574         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46575         TIME_T_FITS_IN_LONG_INT.
46576         * lib/getdate.y (long_time_t): New type.
46577         (relative_time): Change type of 'seconds' field to long_time_t.
46578         (get_date): Update types of local variables. Check against overflow
46579         during conversion from long_time_t to time_t.
46580         Reported by Matt Kraai <kraai@ftbfs.org>
46581         and Hasso Tepper <hasso@netbsd.org>.
46582
46583 2009-09-17  Bruno Haible  <bruno@clisp.org>
46584
46585         * modules/COPYING: Update copyright years.
46586         * modules/README: Likeiwse.
46587         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46588         Reported by Ian Beckwith <ianb@erislabs.net>.
46589
46590 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46591
46592         * users.txt: Update references for gnuit package.
46593
46594 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46595
46596         * m4/getdelim.m4: Fix typo in copyright line.
46597
46598 2009-09-17  Bruno Haible  <bruno@clisp.org>
46599
46600         * lib/atoll.c: Use the standard header with GPL copyright.
46601         * lib/argz.in.h: Likewise.
46602         * lib/glob.c: Likewise.
46603         * lib/glob-libc.h: Likewise.
46604         * lib/random_r.c: Likewise.
46605         * lib/siglist.h: Likewise.
46606         * lib/strsignal.c: Likewise.
46607         Reported by Ian Beckwith <ianb@erislabs.net>.
46608
46609 2009-09-17  Eric Blake  <ebb9@byu.net>
46610
46611         rmdir: ensure correct dependency order
46612         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46613
46614 2009-09-17  Bruno Haible  <bruno@clisp.org>
46615
46616         Disable assertion that fails on NetBSD 5 / i386.
46617         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46618         Reported by Sam Steingold <sds@gnu.org>
46619         and Hasso Tepper <hasso@netbsd.org>.
46620
46621 2009-09-16  Eric Blake  <ebb9@byu.net>
46622
46623         unlinkdir: port to mingw
46624         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46625         on which no one can unlink a directory.
46626
46627         stdlib: sort witness names
46628         * modules/stdlib (Makefile.am): Sort replacements.
46629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46630         * lib/stdlib.in.h: Likewise.
46631
46632         parse-duration-tests: avoid link failure
46633         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46634         LIBINTL.
46635         Reported by Tom G. Christensen.
46636
46637         openat-tests: ensure unlinkat behaves like rmdir
46638         * tests/test-rmdir.c (main): Factor guts...
46639         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46640         * modules/rmdir-tests (Files): Ship new file.
46641         * modules/openat-tests: New test.
46642         * tests/test-unlinkat.c: Likewise.
46643
46644         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46645         * modules/rmdir-errno (Status, Notice): Now obsolete.
46646
46647         rmdir: work around cygwin 1.5.x and mingw bugs
46648         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46649         * lib/rmdir.c (rmdir): Work around it.
46650         * modules/rmdir (Status, Notice): No longer obsolete.
46651         (Files): Add dos.m4.
46652         (Depends-on): Add unistd.
46653         (configure.ac): Set witnesses.
46654         (License): Relax to LGPLv2+.
46655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46656         * modules/unistd (Makefile.am): Substitute witnesses.
46657         * lib/unistd.in.h (rmdir): Declare replacement.
46658         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46659         * modules/rmdir-tests: New tests.
46660         * tests/test-rmdir.c: Likewise.
46661
46662 2009-09-15  Eric Blake  <ebb9@byu.net>
46663
46664         fchdir: improve use of replacement functions
46665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46666         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46667         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46668         REPLACE_CLOSEDIR.
46669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46670         * modules/sys_stat (Makefile.am): Substitute correct witness.
46671         * modules/dirent (Makefile.am): Likewise.
46672         * modules/unistd (Makefile.am): Likewise.
46673         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46674         * lib/unistd.in.h (dup): Likewise.
46675         * lib/sys_stat.in.h (fstat): Likewise.
46676
46677         maint: ignore gnulib-tool temp files
46678         * .gitignore: Ignore files created during gnulib-tool --test.
46679
46680 2009-09-13  Jim Meyering  <meyering@redhat.com>
46681
46682         posixtm: don't reject a time that specify "60" as the number of seconds
46683         * lib/posixtm.c (posixtime): The code to reject invalid dates
46684         would also reject a time specified with the .60 suffix.
46685         But POSIX allows that, in order to accommodate leap seconds.
46686         So don't reject it.
46687         (main): Adjust tests accordingly.
46688         * modules/posixtm (Depends-on): Add stpcpy.
46689
46690 2009-09-11  Jim Meyering  <meyering@redhat.com>
46691
46692         announce-gen: include [$release_type] in emitted Subject:
46693         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46694         e.g., [stable] in the emitted Subject: line.
46695
46696 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46697
46698         Remove obsolete macros from several modules.
46699         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46700         obsolete Autoconf macros with their modern counterparts.
46701         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46702         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46703         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46704         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46705         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46706         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46707         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46708         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46709         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46710         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46711         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46712         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46713         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46714         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46715         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46716         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46717         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46718         * m4/time_r.m4 (gl_TIME_R): Likewise.
46719         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46720         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46721         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46722
46723         Fix copyright header in build-aux scripts.
46724         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46725         recommendation.
46726         * build-aux/ncftpput-ftp: Likewise.
46727         * build-aux/update-copyright: Likewise.
46728
46729 2009-09-09  Eric Blake  <ebb9@byu.net>
46730
46731         test-link: allow Linux choice of errno
46732         * tests/test-link.c (main): Relax test for alternate error.
46733
46734         strndup: fix improper m4 caching
46735         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46736         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46737         (gl_PREREQ_STRNDUP): Delete.
46738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46739         * modules/string (Makefile.am): Substitute it.
46740         * lib/string.in.h (strndup): Modernize prototype.
46741
46742         getcwd: port to mingw
46743         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46744         different from the POSIX assumptions made throughout the getcwd
46745         module; fortunately, the mingw getcwd does not need replacement.
46746         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46747         * modules/getcwd-tests: New test.
46748         * tests/test-getcwd.c: Likewise.
46749
46750         link: fix platform bugs
46751         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46752         * lib/link.c (link): Work around them.  Fix related mingw bug.
46753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46754         * modules/unistd (Makefile.am): Substitute it.
46755         * lib/unistd.in.h (link): Declare replacement.
46756         * doc/posix-functions/link.texi (link): Document this.
46757         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46758
46759         test-link: consolidate into single C program, test more cases
46760         * tests/test-link.sh: Delete.
46761         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46762         at least Cygwin and Solaris.
46763         * modules/link-tests (Files): Remove unused file.
46764         (Depends-on): Add errno, sys_stat.
46765         (Makefile.am): Simplify.
46766
46767 2009-09-08  Bruno Haible  <bruno@clisp.org>
46768
46769         Work around towlower, towupper bug on mingw.
46770         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46771         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46772         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46773         * doc/posix-functions/towupper.texi: Likewise.
46774         Reported by Eric Blake.
46775
46776 2009-09-08  Jim Meyering  <meyering@redhat.com>
46777
46778         build: don't try to run autoheader if we don't use it
46779         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46780         is not used in configure.ac.
46781
46782 2009-09-08  Eric Blake  <ebb9@byu.net>
46783
46784         euidaccess: fix compilation error
46785         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46786
46787         rawmemchr: relax license
46788         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46789         okay.
46790         Reported by Jim Meyering.
46791
46792         mkfifoat: new module
46793         * modules/mkfifoat: New file.
46794         * lib/mkfifoat.c: Likewise.
46795         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46796         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46797         * modules/sys_stat (Makefile.am): Use them.
46798         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46799         * MODULES.html.sh (File system functions): Mention module.
46800         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46801         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46802         * modules/mkfifoat-tests: New test.
46803         * tests/test-mkfifoat.c: Likewise.
46804
46805         strchrnul: relax license
46806         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46807         okay.
46808         Reported by Jim Meyering.
46809
46810 2009-09-08  Eric Blake  <ebb9@byu.net>
46811
46812         fstatat: fix compilation on Solaris
46813         * lib/fstatat.c (includes): Add fcntl.h.
46814         Reported by Pádraig Brady.
46815
46816 2009-09-07  Eric Blake  <ebb9@byu.net>
46817
46818         rename: modernize replacement
46819         * modules/rename (Depends-on): Add stdio.
46820         (configure.ac): Declare witness.
46821         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46822         stdio take care of replacement.
46823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46824         * modules/stdio (Makefile.am): Substitute them.
46825         * lib/stdio.in.h (rename): Declare replacement.
46826         * lib/rename.c (includes): Allow cross-compilation to non-windows
46827         machines.
46828         * doc/posix-functions/rename.texi (rename): Improve
46829         documentation.
46830
46831         stdio: sort witness names
46832         * modules/stdio (Makefile.am): Sort replacements.
46833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46834         * lib/stdio.in.h: Likewise.
46835
46836         getcwd: minor cleanups
46837         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46838         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46839
46840         openat: provide more convenience names
46841         * modules/faccessat (configure.ac): Add C witness.
46842         * lib/unistd.in.h (readlinkat): Fix typo.
46843         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46844         convenience wrappers.
46845         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46846         wrappers in syntax checks.
46847
46848 2009-09-06  Eric Blake  <ebb9@byu.net>
46849
46850         doc: fix comments in recent patches
46851         * lib/faccessat.c: Mention correct function.
46852         * lib/fchmodat.c: Likewise.
46853         * lib/fchownat.c: Likewise.
46854         * lib/symlinkat.c: Likewise.
46855         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46856         constants.
46857
46858         faccessat, symlinkat: continue cleanup of previous patch
46859         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46860         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46861         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46863         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46864         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46865         set.
46866
46867 2009-09-06  Bruno Haible  <bruno@clisp.org>
46868
46869         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46870         (fstatat): Declare if GNULIB_FSTATAT is set.
46871         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46872         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46873         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46874         * modules/fcntl-h (Files): Remove m4/openat.m4.
46875         * modules/sys_stat (Files): Remove m4/openat.m4.
46876         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46877         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46878         * modules/unistd (Files): Remove m4/openat.m4.
46879         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46880         GNULIB_OPENAT.
46881         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46882         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46883         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46884         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46885         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46886         gl_OPENAT_DEFAULTS.
46887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46888         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46889         Don't require gl_OPENAT_DEFAULTS.
46890         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46891         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46892         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46893         (gl_OPENAT_DEFAULTS): Remove macro.
46894
46895 2009-09-06  Bruno Haible  <bruno@clisp.org>
46896
46897         * modules/openat (configure.ac): Remove unneeded witness.
46898
46899 2009-09-06  Bruno Haible  <bruno@clisp.org>
46900
46901         Set errno to ENOSYS when a function is entirely unsupported.
46902         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46903         EOPNOTSUPP.
46904         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46905         * modules/chown (Depends-on): Remove errno.
46906
46907 2009-09-06  Bruno Haible  <bruno@clisp.org>
46908
46909         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46910
46911 2009-09-06  Bruno Haible  <bruno@clisp.org>
46912
46913         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46914
46915 2009-09-06  Ben Pfaff  <blp@gnu.org>
46916             Bruno Haible  <bruno@clisp.org>
46917
46918         Work around a glibc bug in strtok_r.
46919         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46920         Undefine if UNDEFINE_STRTOK_R is set.
46921         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46922         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46923         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46924         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46925         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46926         UNDEFINE_STRTOK_R.
46927         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46928
46929 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46930
46931         exclude: minor fix
46932         * lib/exclude.c: Include wctype.h
46933
46934 2009-09-06  Akim Demaille  <demaille@gostai.com>
46935
46936         bootstrap: improve error message
46937         * build-aux/bootstrap (find_tool): Upon failure, report the list
46938         of candidates.
46939         Honor the initial value of the envvar.
46940
46941 2009-09-05  Eric Blake  <ebb9@byu.net>
46942
46943         symlinkat: new module
46944         * modules/symlinkat: New file.
46945         * lib/symlinkat.c: Likewise.
46946         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46948         * modules/unistd (Makefile.am): Use them.
46949         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46950         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46951         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46952         * MODULES.html.sh (File system functions): Mention module.
46953         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46954         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46955         * modules/symlinkat-tests: New test.
46956         * tests/test-symlinkat.c: Likewise.
46957
46958         test-openat-safer: add more checks
46959         * tests/test-openat-safer.c (main): Check more code paths.
46960
46961 2009-09-05  Jim Meyering  <meyering@redhat.com>
46962
46963         syntax-check: detect unnecessary inclusion of openat.h
46964         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46965
46966 2009-09-05  Bruno Haible  <bruno@clisp.org>
46967
46968         Support towlower, towupper.
46969         * doc/posix-functions/towlower.texi: Mention module wctype.
46970         * doc/posix-functions/towupper.texi: Likewise.
46971         * lib/wctype.in.h (towlower, towupper): New functions.
46972         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46973         (ASSERT): New macro.
46974         (e): New variable.
46975         (main): Test also towlower, towupper. Test WEOF argument.
46976         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46977
46978 2009-09-05  Bruno Haible  <bruno@clisp.org>
46979
46980         Fix conversion behaviour when the input is invalid.
46981         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46982         mark occurring in first pass of indirect conversion.
46983         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46984         input.
46985         Found by clang's static analyzer.
46986
46987 2009-09-05  Bruno Haible  <bruno@clisp.org>
46988
46989         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46990         where direct conversion is possible.
46991
46992 2009-09-04  Eric Blake  <ebb9@byu.net>
46993
46994         openat: fail with ENOENT on empty name
46995         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46996         buffer.
46997
46998         link-follow: fix logic bug in prior patch
46999         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
47000         reversed sense of yes and no in prior patch.  Avoid confusing
47001         compilation failure with desired semantics.
47002
47003         link-follow: accommodate mingw and cross-compilation
47004         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
47005         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
47006         cross-compilation results to -1, to make linkat easier to
47007         implement when cross-compiling.  Trivially support mingw.
47008         * modules/link-follow (configure.ac): Call new name.
47009         * NEWS: Mention this.
47010
47011 2009-09-03  Eric Blake  <ebb9@byu.net>
47012
47013         faccessat: compile replacement
47014         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
47015         needed.
47016
47017         fts: fix compilation error
47018         * lib/fts.c (includes): Re-add "openat.h", for
47019         openat_needs_fchdir.
47020
47021         faccessat: new module
47022         * modules/faccessat: New file.
47023         * lib/faccessat.c: Likewise.
47024         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
47025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47026         * modules/unistd (Makefile.am): Use it.
47027         * lib/unistd.in.h (faccessat): Declare it.
47028         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
47029         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
47030         * MODULES.html.sh (File system functions): Mention it.
47031         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
47032         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
47033
47034         euidaccess: prefer POSIX over non-standard implementation
47035         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
47036         * lib/euidaccess.c (euidaccess): Use it if available.
47037
47038         openat: make template easier to use
47039         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
47040         AT_FUNC_F2 to be undefined.
47041         (VALIDATE_FLAG): New macro; use it to reject bad flags.
47042         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
47043         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
47044         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
47045         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
47046         Likewise.
47047         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
47048         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
47049         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
47050         Likewise.
47051
47052         openat: declare in POSIX headers
47053         * NEWS: Mention this.
47054         * modules/openat (configure.ac): Declare witnesses.
47055         (Depends-on): Add fcntl-h, sys_stat, unistd.
47056         (Include): Mention correct headers.
47057         * modules/fcntl-h (Depends-on): Add link-warning.
47058         (Files): Add openat.m4.
47059         (Makefile.am): Substitute witnesses.
47060         * modules/sys_stat (Files, Makefile.am): Likewise.
47061         * modules/unistd (Files, Makefile.am): Likewise.
47062         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
47063         (gl_OPENAT_DEFAULTS): New macro.
47064         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
47065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
47066         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
47067         (SYS_STAT_H): Remove unused variable.
47068         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
47069         * lib/fcntl--.h (includes): Remove unneeded header.
47070         * lib/openat-safer.c (includes): Likewise.
47071         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
47072         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
47073         appropriate headers.
47074         (__OPENAT_PREFIX): Delete.
47075         * lib/fcntl.in.h (openat): Provide declaration.
47076         (AT_FDCWD): Fix Solaris bug.
47077         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
47078         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
47079         * lib/fchmodat.c (includes):  Adjust to find declaration.
47080         * lib/fchownat.c (includes): Likewise.
47081         * lib/mkdirat.c (includes): Likewise.
47082         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
47083         still visible.
47084
47085 2009-09-02  Eric Blake  <ebb9@byu.net>
47086
47087         errno: use consistently
47088         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
47089         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
47090         * lib/canonicalize.c (ELOOP): Likewise.
47091         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
47092         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
47093         * lib/lchown.c (EOPNOTSUPP): Likewise.
47094         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
47095         * lib/savewd.c (ESTALE): Likewise.
47096         * lib/settime.c (ENOSYS): Likewise.
47097         * lib/utimens.c (ENOSYS): Likewise.
47098         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
47099         * lib/chdir-safer.c (ELOOP): Likewise.
47100         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
47101         * modules/c-stack (Depends-on): Add errno.
47102         * modules/canonicalize (Depends-on): Likewise.
47103         * modules/chdir-safer (Depends-on): Likewise.
47104         * modules/fdopendir (Depends-on): Likewise.
47105         * modules/inet_ntop (Depends-on): Likewise.
47106         * modules/inet_pton (Depends-on): Likewise.
47107         * modules/lchown (Depends-on): Likewise.
47108         * modules/openat (Depends-on): Likewise.
47109         * modules/savewd (Depends-on): Likewise.
47110         * modules/settime (Depends-on): Likewise.
47111         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
47112
47113         fts: avoid leaking fds
47114         * modules/fts (Depends-on): Add cloexec.
47115         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
47116         flag.
47117
47118         fts: make directory fds more robust
47119         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
47120         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
47121
47122         backupfile, chdir-long, fts, savedir: make safer
47123         * lib/backupfile.c (includes): Use "dirent--.h", since
47124         numbered_backup can write to stderr during readdir.
47125         * lib/savedir.c (includes): Likewise.
47126         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
47127         emulation can write to stderr on failure.
47128         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
47129         * lib/getcwd.c: Document why opendir_safer is unused.
47130         * lib/glob.c: Likewise.
47131         * lib/scandir.c: Likewise.
47132         * lib/openat-proc.c: Likewise, for open_safer.
47133         * modules/backupfile (Depends-on): Add dirent-safer.
47134         * modules/savedir (Depends-on): Likewise.
47135         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
47136         * modules/chdir-long (Depends-on): Add openat-safer.
47137
47138         openat-safer: new module
47139         * modules/openat-safer: New file.
47140         * lib/openat-safer.c: Likewise.
47141         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
47142         * lib/fcntl-safer.h (openat_safer): Declare.
47143         * lib/fcntl--.h (openat): Override.
47144         * MODULES.html.sh (File descriptor based I/O): Mention it.
47145         * lib/openat.h: Add double-inclusion guards.
47146         * lib/openat.c (includes): Only include "fcntl-safer.h", not
47147         "fcntl--.h", so we can implement openat.
47148         * modules/openat-safer-tests: New test.
47149         * tests/test-openat-safer.c: New file.
47150
47151         dirent-safer: new module
47152         * modules/dirent-safer: New file.
47153         * lib/dirent--.h: Likewise.
47154         * lib/dirent-safer.h: Likewise.
47155         * lib/opendir-safer.c: Likewise.
47156         * m4/dirent-safer.m4: Likewise.
47157         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
47158         * modules/dirent-safer-tests: New test.
47159         * tests/test-dirent-safer.c: New file.
47160         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
47161
47162         fdopendir: optimize on mingw
47163         * lib/unistd.in.h (_gl_directory_name): New prototype.
47164         * lib/fchdir.c (_gl_directory_name): Implement it.
47165         (fchdir): Use it to simplify implementation.
47166         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
47167         fchdir, when available, to avoid calling [f]chdir().
47168
47169         fdopendir: split into its own module
47170         * lib/openat.c (fdopendir): Move...
47171         * lib/fdopendir.c: ...into new file.
47172         * modules/fdopendir: New module.
47173         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
47174         * modules/openat (Depends-on): Add fdopendir.
47175         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
47176         fdopendir here.
47177         * modules/savedir (Depends-on): Only need fdopendir, not full
47178         openat.
47179         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
47180         * lib/openat.h (fdopendir): Drop prototype.
47181         * lib/dirent.in.h (fdopendir): Provide prototype.
47182         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
47183         * modules/dirent (Makefile.am): Substitute them.
47184         * MODULES.html.sh (File system functions): Mention it.
47185         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
47186         * modules/fdopendir-tests: New file.
47187         * tests/test-fdopendir.c: Likewise.
47188
47189         fchdir: use more consistent macro convention
47190         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
47191         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
47192         REPLACE_FCHDIR, rather than relying on config.h macros.
47193         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
47194         inside a single make-time REPLACE_FCHDIR block, rather than using
47195         the config.h FCHDIR_REPLACEMENT.
47196         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
47197         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
47198         Manage fstat replacement.
47199         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
47200         REPLACE_FCHDIR.
47201         * modules/sys_stat (Files): Add m4/unistd_h.m4.
47202         (Makefile.am): Substitute REPLACE_FCHDIR.
47203         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
47204         FCHDIR_REPLACEMENT.
47205         * lib/dup-safer.c (dup_safer): Likewise.
47206         * lib/dup2.c (rpl_dup2): Likewise.
47207         * lib/dup3.c (rpl_dup3): Likewise.
47208         * lib/open.c (rpl_open): Likewise.
47209
47210         fchdir: simplify error handling, and support dup3
47211         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
47212         stdbool, malloc-posix, realloc-posix.
47213         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
47214         (ensure_dirs_slot): Return false on allocation failure.
47215         (rpl_dup2): Delete.
47216         (_gl_register_dup): New function.
47217         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
47218         (_gl_register_fd): Close fd on allocation failure.
47219         * lib/fcntl.in.h (_gl_register_fd): Update signature.
47220         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
47221         prototype.
47222         (rpl_dup2_fchdir): Delete prototype.
47223         * lib/open.c (open): Update caller.
47224         * lib/dup2.c (dup2): Track fchdir metadata.
47225         * lib/dup3.c (dup3): Likewise.
47226         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
47227         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
47228
47229 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47230
47231         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
47232         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
47233         don't pass arguments to AC_OUTPUT.
47234
47235 2009-09-02  Bruno Haible  <bruno@clisp.org>
47236
47237         * modules/mkdtemp (License): Relicense under LGPLv2+.
47238         Reported by Paolo Bonzini.
47239
47240 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47241
47242         Replace uses of obsolete autoconf macros in Jim's modules.
47243         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
47244         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
47245         can evoke a warning from autoconf when run with -Wobsolete
47246         enabled.  They were declared obsolete for good reasons (see
47247         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
47248         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
47249         should not continue using the deprecated macros.
47250         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
47251         obsolete Autoconf macros with modern counterparts.
47252         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47253         * m4/dos.m4 (gl_AC_DOS): Likewise.
47254         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
47255         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47256         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
47257         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
47258         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
47259         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
47260         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
47261         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
47262         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47263         Likewise.
47264         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47265         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47266         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
47267         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
47268         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47269         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47270
47271 2009-09-01  Eric Blake  <ebb9@byu.net>
47272
47273         fchdir: fix off-by-one bug in previous patch
47274         * lib/fchdir.c (rpl_fstat): Use correct bounds.
47275         (_gl_unregister_fd): Delete useless if.
47276
47277 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
47278
47279         maint.mk: sort the list of syntax-check rules
47280         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
47281         easier to get a sense of progress when the rules are run sequentially
47282         and take a long time.
47283
47284 2009-09-01  Simon Josefsson  <simon@josefsson.org>
47285
47286         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
47287         * modules/netinet_in: Likewise.
47288         * modules/sys_file: Likewise.
47289         * modules/sys_ioctl: Likewise.
47290         * modules/sys_select: Likewise.
47291         * modules/sys_socket: Likewise.
47292         * modules/sys_stat: Likewise.
47293         * modules/sys_time: Likewise.
47294         * modules/sys_times: Likewise.
47295         * modules/sys_utsname: Likewise.
47296         * modules/sys_wait: Likewise.
47297
47298 2009-09-01  Jim Meyering  <meyering@redhat.com>
47299
47300         fts: help ensure that return values are not ignored
47301         * lib/fts_.h (__GNUC_PREREQ): Define.
47302         (__attribute_warn_unused_result__): Define.
47303         (fts_children, fts_close, fts_open, fts_read): Declare with
47304         __attribute_warn_unused_result__.
47305
47306         fts: fts_close now fails also when closing a dir file descriptor fails
47307         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
47308         and propagate to caller, along with errno.
47309
47310         announce-gen: correct formatting in --help output
47311         * build-aux/announce-gen (usage): Move the one-line description in
47312         --help output "up", to where it belongs, just after Usage:.
47313
47314 2009-08-31  Eric Blake  <ebb9@byu.net>
47315
47316         fchdir: port to mingw
47317         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
47318         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
47319         opened, then use a substitute.
47320         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
47321         replacement.
47322         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
47323         (_gl_register_fd): No need to check stat if open already filters
47324         all directories.
47325         (fchdir): Fix error condition to match POSIX.
47326         * modules/fchdir (Depends-on): Add sys_stat.
47327         * doc/posix-functions/open.texi (open): Document the limitation.
47328         * modules/fchdir-tests: New file.
47329         * tests/test-fchdir.c: Likewise.
47330
47331         canonicalize: allow cross-testing from cygwin to mingw
47332         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
47333         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
47334         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
47335         Likewise.
47336         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
47337         target does not support symlinks.
47338         * tests/test-canonicalize-lgpl.sh: Likewise.
47339
47340         chown: avoid compilation warning on mingw
47341         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
47342         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
47343         mingw.
47344         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
47345         * modules/chown (Depends-on): Add errno.
47346
47347 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47348
47349         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
47350         command.
47351
47352 2009-08-31  Jim Meyering  <meyering@redhat.com>
47353
47354         canonicalize: remove useless initialization
47355         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
47356         initialization of local, "end".
47357
47358 2009-08-30  Bruno Haible  <bruno@clisp.org>
47359
47360         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
47361         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
47362         ENOSYS.
47363
47364 2009-08-30  Bruno Haible  <bruno@clisp.org>
47365
47366         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
47367         /usr/xpg4/bin/tr when it exists.
47368         * tests/test-pipe-filter-gi1.sh: Likewise.
47369
47370 2009-08-30  Bruno Haible  <bruno@clisp.org>
47371
47372         Work around deficient /usr/bin/id program on Solaris.
47373         * tests/test-file-has-acl.sh (ID): New variable.
47374         * tests/test-set-mode-acl.sh (ID): Likewise.
47375         * tests/test-copy-acl.sh (ID): Likewise.
47376         * tests/test-copy-file.sh (ID): Likewise.
47377
47378 2009-08-30  Bruno Haible  <bruno@clisp.org>
47379
47380         New module 'xstriconveh'.
47381         * lib/xstriconveh.h: New file.
47382         * lib/xstriconveh.c: New file.
47383         * modules/xstriconveh: New file.
47384
47385 2009-08-30  Bruno Haible  <bruno@clisp.org>
47386
47387         Make it easier to use mem_cd_iconveh.
47388         * lib/striconveh.h (iconveh_t): New type.
47389         (iconveh_open, iconveh_close): New declarations.
47390         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47391         with a single 'const iconveh_t *' argument.
47392         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
47393         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47394         with a single 'const iconveh_t *' argument.
47395         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
47396         * tests/test-striconveh.c (main): Update.
47397         * NEWS: Mention the change.
47398
47399 2009-08-30  Bruno Haible  <bruno@clisp.org>
47400
47401         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
47402         problem.
47403
47404 2009-08-30  Bruno Haible  <bruno@clisp.org>
47405
47406         Work around iconv_open problem on Solaris.
47407         * lib/iconv_open-solaris.gperf: New file.
47408         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
47409         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
47410         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
47411         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
47412         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
47413         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
47414
47415 2009-08-29  Jim Meyering  <meyering@redhat.com>
47416
47417         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
47418         * top/maint.mk (cvs-check): Remove target; it was just an alias
47419         to the better-named vc-diff-check.
47420         (maintainer-distcheck): Remove rule.  It was used only from
47421         the (alpha/beta/major) target, and all of its commands but one
47422         were coreutils-specific.
47423         (vc-dist): Remove rule.
47424         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
47425         Run vc-diff-check, not vc-dist.
47426         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
47427
47428 2009-08-27  Bruno Haible  <bruno@clisp.org>
47429
47430         * tests/test-bitrotate.c (main): Remove test that uses a shift count
47431         of 0.
47432
47433 2009-08-27  Bruno Haible  <bruno@clisp.org>
47434
47435         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
47436         compilers.
47437         * doc/func.texi: Document the SunPRO C bug.
47438
47439 2009-08-27  Bruno Haible  <bruno@clisp.org>
47440
47441         Fix link error on Solaris.
47442         * tests/test-parse-duration.c (xstrdup): Remove function.
47443
47444 2009-08-26  Pádraig Brady  <P@draigbrady.com>
47445
47446         ignore-value: handle pointer types, too
47447         * lib/ignore-value.h (__attribute__): Remove definition.
47448         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
47449         of a more concise and more-often effective "(void) i" statement.
47450         (ignore_ptr): New function to suppress warnings from functions that
47451         return pointers, and to make it explicit that one function doesn't
47452         handle all cases.
47453
47454 2009-08-25  Bruno Haible  <bruno@clisp.org>
47455
47456         dup2: work around a Linux bug.
47457         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
47458         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
47459         * doc/posix-functions/dup2.texi: Mention the Linux bug.
47460         Reported by Simon Josefsson.
47461
47462 2009-08-25  Jim Meyering  <meyering@redhat.com>
47463
47464         libguestfs uses gnulib
47465         * users.txt: Add libguestfs.
47466
47467 2009-08-24  Eric Blake  <ebb9@byu.net>
47468
47469         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
47470         * lib/pipe2.c (includes): Add binary-io.h.
47471         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
47472
47473 2009-08-24  Bruno Haible  <bruno@clisp.org>
47474
47475         Tolerate declared but missing accept4 syscall.
47476         * lib/accept4.c (accept4): Invoke original accept4 function first, if
47477         available.
47478         * lib/sys_socket.in.h (accept4): If the function is already present,
47479         override it.
47480         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
47481         * modules/accept4 (Makefile.am): Compile accept4.c always.
47482         Reported by Paolo Bonzini and Eric Blake.
47483
47484 2009-08-23  Bruno Haible  <bruno@clisp.org>
47485
47486         New module 'accept4'.
47487         * lib/sys_socket.in.h (accept4): New declaration.
47488         * lib/accept4.c: New file.
47489         * m4/accept4.m4: New file.
47490         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47491         GNULIB_ACCEPT4, HAVE_ACCEPT4.
47492         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
47493         HAVE_ACCEPT4.
47494         * modules/accept4: New file.
47495         * doc/glibc-functions/accept4.texi: Mention the new module.
47496
47497 2009-08-24  Jim Meyering  <meyering@redhat.com>
47498
47499         progname: also set global program_invocation_name, when possible
47500         Before this change, a libtool-enabled program that calls glibc's
47501         error function would report the program name as
47502         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
47503         * modules/progname (configure.ac): Check for a declaration of
47504         program_invocation_name.
47505         * lib/progname.c:  Include <errno.h>.
47506         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47507         Set program_invocation_name.
47508
47509 2009-08-23  Bruno Haible  <bruno@clisp.org>
47510
47511         * lib/dup3.c: Include <string.h>.
47512
47513 2009-08-23  Bruno Haible  <bruno@clisp.org>
47514
47515         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47516         * lib/pipe2.c (pipe2): Likewise.
47517         Suggested by Eric Blake.
47518
47519 2009-08-23  Bruno Haible  <bruno@clisp.org>
47520
47521         Tolerate declared but missing dup3 syscall.
47522         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47523         * lib/unistd.in.h (dup3): If the function is already present,
47524         override it.
47525         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47526         * modules/dup3 (Makefile.am): Compile dup3.c always.
47527         Reported by Paolo Bonzini.
47528
47529 2009-08-23  Bruno Haible  <bruno@clisp.org>
47530
47531         Tolerate declared but missing pipe2 syscall.
47532         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47533         available.
47534         * lib/unistd.in.h (pipe2): If the function is already present,
47535         override it.
47536         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47537         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47538         Reported by Paolo Bonzini.
47539
47540 2009-08-23  Bruno Haible  <bruno@clisp.org>
47541
47542         * lib/pipe2.c (pipe2): Move #ifs inside function.
47543
47544 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47545
47546         quotearg: document limitations of quote_these_too
47547         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47548         those limitations are created.
47549         * lib/quotearg.h (set_char_quoting): Document that digits and
47550         letters that are special after backslash are not permitted.
47551         (quotearg_char): Cross-reference set_char_quoting documentation.
47552
47553 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47554
47555         quotearg: implement custom_quoting_style
47556         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47557         right_quote fields.
47558         (set_custom_quoting): New public function.
47559         (quotearg_buffer_restyled): Add left_quote and right_quote
47560         arguments, handle them very much like locale quoting, and update
47561         all uses.
47562         (quotearg_n_custom): New public function.
47563         (quotearg_n_custom_mem): New public function.
47564         (quotearg_custom): New public function.
47565         (quotearg_custom_mem): New public function.
47566         * lib/quotearg.h: Prototype and document new public functions.
47567         (enum quoting_style): For escape_quoting_style and
47568         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47569         ignored even though they're otherwise like c_quoting_style.
47570         Add custom_quoting_style member and document with comparison to
47571         clocale_quoting_style.
47572         * tests/test-quotearg.c (custom_quotes): New array.
47573         (custom_results): New array.
47574         (main): Extend to test custom quoting.
47575
47576 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47577
47578         quotearg: fix right quote escaping when it's in quote_these_too
47579         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47580         quote, be sure to prepend only one backslash.
47581         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47582         (main): Test it.
47583
47584 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47585
47586         quotearg-tests: test escaping of embedded locale quotes
47587         * tests/test-quotearg.c (struct result_strings): Add member for
47588         new input.
47589         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47590         (inputs): Add new input.
47591         (results_g): Add expected results.
47592         (flag_results): Likewise.
47593         (locale_results): Likewise.
47594         (compare_strings): Check those.
47595
47596 2009-08-23  Bruno Haible  <bruno@clisp.org>
47597
47598         Tests for module 'dup3'.
47599         * modules/dup3-tests: New file.
47600         * tests/test-dup3.c: New file.
47601
47602         New module 'dup3'.
47603         * lib/unistd.in.h (dup3): New declaration.
47604         * lib/dup3.c: New file.
47605         * m4/dup3.m4: New file.
47606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47607         HAVE_DUP3.
47608         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47609         * modules/dup3: New file.
47610         * doc/glibc-functions/dup3.texi: Mention the new module.
47611
47612 2009-08-23  Bruno Haible  <bruno@clisp.org>
47613
47614         Tweak the dup2 test.
47615         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47616         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47617         the test file is still empty. Fix argument order of lseek.
47618
47619 2009-08-23  Bruno Haible  <bruno@clisp.org>
47620
47621         Avoid test link errors when the modules getopt-gnu, gettext are used.
47622         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47624
47625 2009-08-23  Bruno Haible  <bruno@clisp.org>
47626
47627         Fix getdtablesize() on mingw.
47628         * lib/getdtablesize.c (getdtablesize): Implement differently.
47629         * lib/unistd.in.h (getdtablesize): Improve comment.
47630
47631 2009-08-23  Bruno Haible  <bruno@clisp.org>
47632
47633         New module 'mkostemp'.
47634         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47635         * lib/stdlib.in.h (mksotemp): New declaration.
47636         * lib/mkostemp.c: New file, from glibc with modifications.
47637         * lib/tempname.h (GT_FILE): Remove outdated comment.
47638         (gen_tempname): Add flags argument.
47639         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47640         (__GT_FILE): Map to 1.
47641         (small_open, large_open): Remove macros.
47642         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47643         * lib/mkstemp.c (mkstemp): Update.
47644         * lib/mkdtemp.c (mkdtemp): Likewise.
47645         * m4/mkostemp.m4: New file.
47646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47647         HAVE_MKOSTEMP.
47648         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47649         HAVE_MKOSTEMP.
47650         * modules/mkostemp: New file, based on modules/mkstemp.
47651         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47652         * NEWS: Mention the change.
47653
47654 2009-08-23  Bruno Haible  <bruno@clisp.org>
47655
47656         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47657         Reported by Eric Blake.
47658
47659 2009-08-23  Bruno Haible  <bruno@clisp.org>
47660
47661         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47662         Reported by Eric Blake.
47663
47664 2009-08-23  Bruno Haible  <bruno@clisp.org>
47665
47666         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47667         * modules/pipe2 (Depends-on): Likewise.
47668
47669 2009-08-23  Eric Blake  <ebb9@byu.net>
47670
47671         fcntl-h: add O_TTY_INIT support
47672         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47673         * tests/test-fcntl-h.c (o): Test it.
47674         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47675
47676         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47677         * modules/fcntl: Move <fcntl.h> header replacement...
47678         * modules/fcntl-h: ...to new name, so as not to collide with
47679         like-named function.
47680         * tests/test-fcntl.c: Rename...
47681         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47682         * modules/fcntl-tests: Rename...
47683         * modules/fcntl-h-tests: ...to this.  Update test file name.
47684         * modules/chdir-long (Depends-on): Update clients.
47685         * modules/chdir-safer (Depends-on): Likewise.
47686         * modules/fcntl-safer (Depends-on): Likewise.
47687         * modules/fts (Depends-on): Likewise.
47688         * modules/mkancesdirs (Depends-on): Likewise.
47689         * modules/mkdir-p (Depends-on): Likewise.
47690         * modules/open (Depends-on): Likewise.
47691         * modules/savewd (Depends-on): Likewise.
47692         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47693         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47694
47695 2009-08-22  Bruno Haible  <bruno@clisp.org>
47696
47697         * modules/binary-io (License): Relicense under LGPL.
47698         * modules/pipe2 (License): Likewise.
47699
47700 2009-08-22  Bruno Haible  <bruno@clisp.org>
47701
47702         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47703         return value.
47704         * lib/pipe-filter-gi.c (filter_init): Likewise.
47705         Reported by Eric Blake.
47706
47707 2009-08-22  Bruno Haible  <bruno@clisp.org>
47708
47709         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47710         * modules/pipe (Depends-on): Add pipe2.
47711
47712 2009-08-22  Bruno Haible  <bruno@clisp.org>
47713
47714         Tests for module 'pipe2'.
47715         * modules/pipe2-tests: New file.
47716         * tests/test-pipe2.c: New file.
47717
47718         New module 'pipe2'.
47719         * lib/unistd.in.h (pipe2): New declaration.
47720         * lib/pipe2.c: New file.
47721         * m4/pipe2.m4: New file.
47722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47723         HAVE_PIPE2.
47724         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47725         * modules/pipe2: New file.
47726         * doc/glibc-functions/pipe2.texi: Mention the new module.
47727
47728 2009-08-22  Bruno Haible  <bruno@clisp.org>
47729
47730         Reference some new glibc functions.
47731         * doc/glibc-functions/accept4.texi: New file.
47732         * doc/glibc-functions/dup3.texi: New file.
47733         * doc/glibc-functions/mkostemp.texi: New file.
47734         * doc/glibc-functions/pipe2.texi: New file.
47735         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47736         (Glibc sys/socket.h): Refer to accept4.
47737         (Glibc unistd.h): Refer to dup3, pipe2.
47738         Reported by Eric Blake.
47739
47740 2009-08-22  Jim Meyering  <meyering@redhat.com>
47741             Bruno Haible  <bruno@clisp.org>
47742
47743         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47744         This makes it so packages using automake-1.11's silent-rules option
47745         can print e.g., a single "GEN    configmake.h" line, rather than
47746         the 30+ statements that perform the job.  If you want to see the
47747         actual commands, you can still run "make V=1".
47748         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47749         so that make output is abbreviated when those variables are defined
47750         appropriately.
47751         * modules/argz: Likewise.
47752         * modules/arpa_inet: Likewise.
47753         * modules/byteswap: Likewise.
47754         * modules/configmake: Likewise.
47755         * modules/dirent: Likewise.
47756         * modules/errno: Likewise.
47757         * modules/fcntl: Likewise.
47758         * modules/float: Likewise.
47759         * modules/fnmatch: Likewise.
47760         * modules/getopt-posix: Likewise.
47761         * modules/glob: Likewise.
47762         * modules/iconv_open: Likewise.
47763         * modules/inttypes: Likewise.
47764         * modules/localcharset: Likewise.
47765         * modules/locale: Likewise.
47766         * modules/math: Likewise.
47767         * modules/netdb: Likewise.
47768         * modules/netinet_in: Likewise.
47769         * modules/poll: Likewise.
47770         * modules/posix_spawnp-tests: Likewise.
47771         * modules/sched: Likewise.
47772         * modules/search: Likewise.
47773         * modules/selinux-h: Likewise.
47774         * modules/signal: Likewise.
47775         * modules/spawn: Likewise.
47776         * modules/stdarg: Likewise.
47777         * modules/stdbool: Likewise.
47778         * modules/stddef: Likewise.
47779         * modules/stdint: Likewise.
47780         * modules/stdio: Likewise.
47781         * modules/stdlib: Likewise.
47782         * modules/string: Likewise.
47783         * modules/strings: Likewise.
47784         * modules/sys_file: Likewise.
47785         * modules/sys_ioctl: Likewise.
47786         * modules/sys_select: Likewise.
47787         * modules/sys_socket: Likewise.
47788         * modules/sys_stat: Likewise.
47789         * modules/sys_time: Likewise.
47790         * modules/sys_times: Likewise.
47791         * modules/sys_utsname: Likewise.
47792         * modules/sys_wait: Likewise.
47793         * modules/sysexits: Likewise.
47794         * modules/time: Likewise.
47795         * modules/unistd: Likewise.
47796         * modules/wchar: Likewise.
47797         * modules/wctype: Likewise.
47798
47799 2009-08-22  Jim Meyering  <meyering@redhat.com>
47800
47801         announce-gen: detect write failure
47802         * build-aux/announce-gen: Add Coda at end.
47803         Remove equivalent-but-more-verbose block at top.
47804
47805 2009-08-19  Akim Demaille  <demaille@gostai.com>
47806
47807         bootstrap: --help to stdout.
47808         * bootstrap (usage): Don't send --help to stderr.
47809         Use a here doc instead of a long string.
47810
47811 2009-08-21  Eric Blake  <ebb9@byu.net>
47812
47813         test-popen-safer: split from test-popen
47814         * tests/test-popen.c (main): Move...
47815         * tests/test-popen.h: ...into new file.
47816         * tests/test-popen-safer2.c: New file.
47817         * modules/popen-tests (Files): Add test-popen.h.
47818         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47819         Suggested by Bruno Haible.
47820
47821         test-fcntl-safer: split from test-open
47822         * tests/test-open.c (main): Move...
47823         * tests/test-open.h: ...into new file.
47824         * tests/test-fcntl-safer.c: New file.
47825         * modules/open-tests (Files): Add test-open.h.
47826         * modules/fcntl-safer-tests: New file.
47827         Suggested by Bruno Haible.
47828
47829         test-fopen-safer: split from test-fopen
47830         * tests/test-fopen.c (main): Move...
47831         * tests/test-fopen.h: ...into new file.
47832         * tests/test-fopen-safer.c: New file.
47833         * modules/fopen-tests (Files): Add test-fopen.h.
47834         * modules/fopen-safer-tests: New file.
47835         Suggested by Bruno Haible.
47836
47837 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47838
47839         popen-safer: test O_CLOEXEC at run-time.
47840         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47841
47842 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47843
47844         fcntl: move more flags to the header
47845         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47846         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47847         * lib/fcntl.in.h: Do both things here.
47848
47849 2009-08-21  Jim Meyering  <meyering@redhat.com>
47850
47851         consistently remove $@-t before redirecting to it
47852         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47853         * modules/alloca-opt: Likewise.
47854         * modules/byteswap: Likewise.
47855         * modules/fnmatch: Likewise.
47856         * modules/getopt-posix: Likewise.
47857         * modules/glob: Likewise.
47858         * modules/poll: Likewise.
47859         * modules/posix_spawnp-tests: Likewise.
47860         * modules/sys_socket: Likewise.
47861         * modules/sysexits: Likewise.
47862
47863 2009-08-21  Eric Blake  <ebb9@byu.net>
47864
47865         popen: simplify access to original popen
47866         * lib/popen.c (rpl_popen): No need to worry about popen being a
47867         macro.
47868         Reported by Bruno Haible.
47869
47870 2009-08-20  Eric Blake  <ebb9@byu.net>
47871
47872         build: avoid some compiler warnings
47873         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47874         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47875         type.
47876         (new_exclude_segment, excluded_file_pattern_p)
47877         (excluded_file_name_p): Reduce scope.
47878         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47879         old-style declaration.
47880
47881 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47882
47883         * tests/test-exclude1.sh: Handle Windows EOL.
47884         * tests/test-exclude2.sh: Likewise.
47885         * tests/test-exclude3.sh: Likewise.
47886         * tests/test-exclude4.sh: Likewise.
47887         * tests/test-exclude5.sh: Likewise.
47888         * tests/test-exclude6.sh: Likewise.
47889         * tests/test-exclude7.sh: Likewise.
47890
47891 2009-08-19  Akim Demaille  <demaille@gostai.com>
47892
47893         bootstrap: find sha1sum when named gsha1sum.
47894         * bootstrap (find_tool): New.
47895         ($SHA1SUM): New.
47896         Use it.
47897
47898 2009-08-20  Jim Meyering  <meyering@redhat.com>
47899
47900         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47901         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47902         expression that converts "." in a file name to "\." in the resulting
47903         regexp.  Start with a dummy statement, so that prior shell variable
47904         definitions are expanded portably.  Reported by Simon Josefsson.
47905
47906 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47907
47908         Fix polling for writeability of a screen buffer.
47909         * lib/poll.c: Distinguish input and screen buffers for the
47910         Win32 implementation.
47911         * lib/select.c: Likewise.
47912
47913 2009-08-19  Eric Blake  <ebb9@byu.net>
47914
47915         popen-safer: prevent popen from clobbering std descriptors
47916         * modules/popen-safer: New file.
47917         * lib/popen-safer.c: Likewise.
47918         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47919         * lib/stdio--.h (popen): Provide override.
47920         * lib/stdio-safer.h (popen_safer): Provide declaration.
47921         * tests/test-popen.c (includes): Partially test this.
47922         * modules/popen-safer-tests: New file, for more tests.
47923         * tests/test-popen-safer.c: Likewise.
47924         * MODULES.html.sh (file stream based Input/Output): Mention it.
47925
47926         tests: test some of the *-safer modules
47927         * modules/fopen-safer (Depends-on): Add fopen.
47928         * modules/fcntl-safer (Depends-on): Add fcntl.
47929         * modules/stdlib-safer (Depends-on): Add stdlib.
47930         (configure.ac): Set indicator.
47931         * modules/unistd-safer (configure.ac): Likewise.
47932         * modules/tmpfile-safer (configure.ac): Likewise.
47933         (Depends-on): Add tmpfile.
47934         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47935         active.
47936         * tests/test-fopen.c (includes): Test safer versions when they are
47937         in use.
47938         * tests/test-open.c (includes): Likewise.
47939
47940         popen: fix cygwin 1.5 bug when stdin closed
47941         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47942         * modules/popen: New file.
47943         * modules/popen-tests: Likewise.
47944         * tests/test-popen.c: Likewise.
47945         * m4/popen.m4: Likewise.
47946         * lib/popen.c: Likewise.
47947         * lib/stdio.in.h (popen): New declaration.
47948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47949         * modules/stdio (Makefile.am): Likewise.
47950         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47951
47952 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47953
47954         maint.mk: give full control over update-copyright exclusions
47955         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47956         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47957         (update-copyright): Don't force inclusion of top-level
47958         ChangeLog.  Don't force exclusion of all COPYING files, but make
47959         them the default exclusion instead.
47960
47961 2009-08-16  Bruno Haible  <bruno@clisp.org>
47962
47963         Fix test failures on Solaris 10.
47964         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47965         tests when Solaris iconv() is used.
47966         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47967         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47968         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47969         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47970         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47971
47972 2009-08-16  Bruno Haible  <bruno@clisp.org>
47973
47974         Fix test failures on Solaris 10.
47975         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47976         'tr' program and pass it as first argument.
47977         * tests/test-pipe-filter-gi1.sh: Likewise.
47978         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47979         program as first argument.
47980         * tests/test-pipe-filter-gi1.c (main): Likewise.
47981
47982 2009-08-16  Eric Blake  <ebb9@byu.net>
47983
47984         fpurge: fix previous commits
47985         * modules/fpurge (Makefile.am): Make replacement conditional,
47986         partially reverting 2007-04-29 change; missed in previous
47987         attempt.
47988         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47989         is missing.
47990
47991 2009-08-16  Bruno Haible  <bruno@clisp.org>
47992
47993         Clarify fpurge's effect on the file position.
47994         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47995         * tests/test-fpurge.c (main): Make a second pass for checking the file
47996         position.
47997
47998 2009-08-16  Bruno Haible  <bruno@clisp.org>
47999
48000         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
48001         declaration of fpurge is missing.
48002         * tests/test-fpurge.c (main): Check that the file has not more contents
48003         than expected. Close the file before removing it.
48004
48005 2009-08-15  Eric Blake  <ebb9@byu.net>
48006
48007         fpurge: don't wrap working cygwin implementation
48008         * lib/fpurge.c (fpurge): Fix comment typo.
48009         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
48010         1.7 to avoid replacement.
48011         * tests/test-fpurge.c (main): Enhance test.
48012
48013 2009-08-15  Eric Blake  <ebb9@byu.net>
48014         and Jim Meyering  <meyering@redhat.com>
48015
48016         test-update-copyright: skip if perl is insufficient
48017         * tests/test-update-copyright.sh: Failure to run maintainer tool
48018         should not cause testsuite failure on cygwin 1.5.
48019
48020 2009-08-14  Eric Blake  <ebb9@byu.net>
48021
48022         doc: mention more functions added in cygwin 1.7.0
48023         * doc/posix-headers/limits.texi (limits.h): Update for recent
48024         cygwin additions.
48025         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
48026         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
48027         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
48028         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
48029         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
48030
48031 2009-08-14  Eric Blake  <ebb9@byu.net>
48032
48033         maint.mk: simplify update-copyright rule
48034         * top/maint.mk (update-copyright-local): Delete, and document how
48035         to do it in cfg.mk instead.
48036         (update-copyright-exclude-regexp): Delete, and document how to do
48037         it in .x-update-copyright instead.
48038         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
48039         exclude ChangeLog.
48040
48041 2009-08-14  Bruno Haible  <bruno@clisp.org>
48042
48043         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
48044
48045 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48046
48047         maint.mk: support update-copyright-env
48048         * top/maint.mk (update-copyright-env): Define place-holder.
48049         (update-copyright): Expand $(update-copyright-env) before
48050         invoking update-copyright.
48051
48052 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48053
48054         update-copyright: implement forced reformatting
48055         * build-aux/update-copyright: Implement and document
48056         UPDATE_COPYRIGHT_FORCE.
48057         * tests/test-update-copyright.sh: Test it.
48058
48059 2009-08-14  Eric Blake  <ebb9@byu.net>
48060         and Bruno Haible  <bruno@clisp.org>
48061
48062         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
48063         * tests/test-locale.c: Revert previous patch related to NULL.
48064         * tests/test-stdio.c: Likewise.
48065         * tests/test-stdlib.c: Likewise.
48066         * tests/test-string.c: Likewise.
48067         * tests/test-unistd.c: Likewise.
48068         * modules/time-tests (Depends-on): Add verify.
48069         * modules/wchar-tests (Depends-on): Likewise.
48070         * tests/test-time.c: Test for NULL compliance.
48071         * tests/test-wchar.c: Likewise.
48072         * modules/locale (Depends-on): Add stddef.
48073         * modules/stdio (Depends-on): Likewise.
48074         * modules/stdlib (Depends-on): Likewise.
48075         * modules/string (Depends-on): Likewise.
48076         * modules/time (Depends-on): Likewise.
48077         * modules/unistd (Depends-on): Likewise.
48078         * modules/wchar (Depends-on): Likewise.
48079         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
48080         * lib/stdlib.in.h (includes): Likewise.
48081         * lib/string.in.h (includes): Likewise.
48082         * lib/time.in.h (includes): Likewise.
48083         * lib/unistd.in.h (includes): Likewise.
48084         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
48085         replaced.
48086         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48087         * m4/stddef_h.m4: New file.
48088         * modules/stddef: Likewise.
48089         * lib/stddef.in.h: Likewise.
48090         * modules/stddef-tests: Likewise.
48091         * tests/test-stddef.c: Likewise.
48092         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
48093         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
48094         * doc/posix-headers/locale.texi (locale.h): Likewise.
48095         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
48096         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48097         * doc/posix-headers/string.texi (string.h): Likewise.
48098         * doc/posix-headers/time.texi (time.h): Likewise.
48099         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
48100         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
48101
48102 2009-08-14  Eric Blake  <ebb9@byu.net>
48103
48104         doc: improve git diff of texinfo files
48105         * .gitattributes: Add rule for *.texi files, with hint on how to
48106         use it.
48107         Copied from m4, and based on a report by Bruno Haible.
48108
48109 2009-08-14  Bruno Haible  <bruno@clisp.org>
48110
48111         Disable multithread support by default on Cygwin 1.5.x for real.
48112         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
48113
48114 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48115
48116         update-copyright: much ado about intervals
48117         * build-aux/update-copyright: Implement and document
48118         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
48119         of copyright year intervals.
48120         Also, document UPDATE_COPYRIGHT_YEAR.
48121         * tests/test-update-copyright.sh: Test it.
48122
48123         update-copyright: convert 2-digit to 4-digit years
48124         * build-aux/update-copyright: Implement and document.
48125         * tests/test-update-copyright.sh: Update.
48126
48127 2009-08-14  Jim Meyering  <meyering@redhat.com>
48128
48129         test-exclude: avoid coreutils "make check" failure
48130         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
48131         just as in test-argmatch.c.
48132
48133 2009-08-13  Eric Blake  <ebb9@byu.net>
48134
48135         test-dup2: fix bad assumption
48136         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
48137         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
48138
48139         test-version-etc: fix CRLF portability issue
48140         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
48141         recognize \r.
48142         * tests/test-argp-version-etc-1.sh: Likewise.
48143
48144         getopt: update client modules
48145         * modules/argp (Depends-on): Use getopt-gnu.
48146         * modules/git-merge-changelog (Depends-on): Likewise.
48147         * modules/long-options (Depends-on): Likewise.
48148         * modules/xstrtol (Depends-on): Likewise.
48149
48150 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48151
48152         * tests/test-version-etc.sh: Don't fail on different
48153         project/version.  Don't fail on CRLF differences.  Rewrite to use
48154         multiple -e instead of multiple sed forks, suggested by Eric Blake
48155         <ebb9@byu.net>.
48156         * tests/test-argp-version-etc-1.sh: Likewise.
48157
48158 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48159
48160         * tests/test-version-etc.sh: Don't fail on different
48161         project/version.
48162
48163 2009-08-12  Bruno Haible  <bruno@clisp.org>
48164
48165         Tests for modules 'getopt-posix', 'getopt-gnu'.
48166         * modules/getopt-posix-tests: New file.
48167         * tests/test-getopt.c: New file.
48168         * tests/test-getopt.h: New file.
48169         * tests/test-getopt_long.h: New file.
48170
48171         New modules 'getopt-posix', 'getopt-gnu'.
48172         * modules/getopt-gnu: New file, renamed from modules/getopt.
48173         * modules/getopt-posix: New file.
48174         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
48175         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
48176         (gl_GETOPT): Remove macro.
48177         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
48178         Disable the test against BSD systems that declare optreset. Test
48179         against mingw bug. Test against lack of support of optional arguments
48180         on many platforms.
48181         * doc/glibc-headers/getopt.texi: Update module name and list of
48182         relevant platforms.
48183         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
48184         'getopt-gnu' and more portability problems.
48185         * NEWS: Mention the changes.
48186
48187 2009-08-12  Bruno Haible  <bruno@clisp.org>
48188
48189         Ensure that optarg etc. get declared by <unistd.h>.
48190         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
48191         AC_USE_SYSTEM_EXTENSIONS.
48192         * modules/getopt (Depends-on): Add 'extensions'.
48193
48194 2009-08-12  Bruno Haible  <bruno@clisp.org>
48195
48196         Avoid test link errors.
48197         * modules/pipe-filter-ii-tests (Makefile.am): Define
48198         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
48199         * modules/pipe-filter-gi-tests (Makefile.am): Define
48200         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
48201         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48202
48203 2009-08-12  Bruno Haible  <bruno@clisp.org>
48204
48205         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
48206         gl_GETOPT_SUBSTITUTE before.
48207         (gl_GETOPT): Use it.
48208         * m4/argp.m4 (gl_ARGP): Update.
48209         Reported by Sergey Poznyakoff.
48210
48211         * m4/getopt.m4: Reorder macros.
48212         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
48213         (gl_GETOPT_SUBSTITUTE): Remove macro.
48214
48215 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48216
48217         Minor improvement in gitlog-to-changelog
48218
48219         * build-aux/gitlog-to-changelog: New option `--format' makes
48220         output format string configurable.
48221
48222 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48223
48224         Optimize exclude: use hash tables for non-wildcard patterns.
48225
48226         * lib/exclude.c: Include hash.h and mbuiter.h
48227         (struct exclude_pattern, exclude_segment): New data types.
48228         (struct exclude): Rewrite.
48229         (fnmatch_pattern_has_wildcards): New function.
48230         (new_exclude_segment, free_exclude_segment): New functions.
48231         (excluded_file_pattern_p, excluded_file_name_p): New functions.
48232         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
48233         * lib/exclude.h (is_fnmatch_pattern): New prototype.
48234         * modules/exclude: Depend on hash and mbuiter.
48235
48236         * modules/exclude-tests: New file.
48237         * tests/test-exclude.c: New file.
48238         * tests/test-exclude1.sh: New file.
48239         * tests/test-exclude2.sh: New file.
48240         * tests/test-exclude3.sh: New file.
48241         * tests/test-exclude4.sh: New file.
48242         * tests/test-exclude5.sh: New file.
48243         * tests/test-exclude6.sh: New file.
48244         * tests/test-exclude7.sh: New file.
48245
48246 2009-08-12  Bruno Haible  <bruno@clisp.org>
48247
48248         Ensure that getopt() gets declared by <unistd.h>.
48249         * lib/unistd.in.h: Conditionally include getopt.h.
48250         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
48251         Set GNULIB_UNISTD_H_GETOPT.
48252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48253         GNULIB_UNISTD_H_GETOPT.
48254         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
48255
48256 2009-08-12  Bruno Haible  <bruno@clisp.org>
48257
48258         Clarify logic.
48259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
48260         gl_replace_getopt instead of GETOPT_H.
48261
48262 2009-08-12  Bruno Haible  <bruno@clisp.org>
48263
48264         * m4/getopt.m4: Add comments.
48265
48266 2009-08-12  Bruno Haible  <bruno@clisp.org>
48267
48268         Disable multithread support by default on Cygwin 1.5.x.
48269         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
48270         set gl_use_threads=no if not specified otherwise.
48271
48272 2009-08-11  Bruno Haible  <bruno@clisp.org>
48273
48274         Avoid compilation error on NetBSD 5.0.
48275         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
48276         * tests/test-stdio.c: Likewise.
48277         * tests/test-stdlib.c: Likewise.
48278         * tests/test-string.c: Likewise.
48279         * tests/test-unistd.c: Likewise.
48280         Reported by Greg Troxel <gdt@ir.bbn.com>
48281         at <https://savannah.gnu.org/support/?106973>.
48282
48283 2009-08-11  Bruno Haible  <bruno@clisp.org>
48284
48285         * modules/dup2-tests (Depends-on): Remove close.
48286
48287         Undo 2009-07-19 commit.
48288         * modules/acl-tests (Depends-on): Remove close.
48289         * modules/binary-io-tests (Depends-on): Likewise.
48290         * modules/closein-tests (Depends-on): Likewise.
48291         * modules/flock-tests (Depends-on): Likewise.
48292         * modules/fsync-tests (Depends-on): Likewise.
48293         * modules/lseek-tests (Depends-on): Likewise.
48294         * modules/pipe-tests (Depends-on): Likewise.
48295         * modules/posix_spawn-tests (Depends-on): Likewise.
48296         * modules/posix_spawnp-tests (Depends-on): Likewise.
48297         * modules/stat-time-tests (Depends-on): Likewise.
48298         * modules/yesno-tests (Depends-on): Likewise.
48299
48300 2009-08-10  Bruno Haible  <bruno@clisp.org>
48301
48302         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
48303
48304 2009-08-10  Bruno Haible  <bruno@clisp.org>
48305
48306         Fix a gcc warning.
48307         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
48308
48309 2009-08-10  Bruno Haible  <bruno@clisp.org>
48310
48311         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
48312         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
48313         not only the first time.
48314         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
48315         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
48316         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
48317         is 1, not only the the first time.
48318
48319 2009-08-10  Bruno Haible  <bruno@clisp.org>
48320
48321         Make it possible to use module 'gethostname' without module 'close'.
48322         * lib/unistd.in.h (close): Evoke a link error only if
48323         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48325         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48326         * modules/unistd (Makefile.am): Substitute
48327         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48328         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
48329         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48330         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48331         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48332         * modules/sys_ioctl (Makefile.am): Substitute
48333         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48334         * modules/socket (configure.ac): On native Windows, set
48335         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
48336         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48337         Reported by Sam Steingold <sds@gnu.org>.
48338
48339 2009-08-10  Bruno Haible  <bruno@clisp.org>
48340
48341         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
48342         * modules/ioctl (configure.ac): Likewise.
48343
48344 2009-08-10  Bruno Haible  <bruno@clisp.org>
48345
48346         Avoid collision between gnulib wrapper and libintl wrapper.
48347         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
48348         already defined in intl/printf.c.
48349         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
48350         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
48351
48352 2009-08-09  Bruno Haible  <bruno@clisp.org>
48353
48354         Make <sys/select.h> really self-contained, also on Solaris 10.
48355         * lib/sys_select.in.h: Include <string.h>.
48356         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
48357         Solaris 10 problem.
48358         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
48359         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
48360         Reported by Jim Meyering.
48361
48362 2009-08-09  Bruno Haible  <bruno@clisp.org>
48363
48364         Avoid warnings from 'aclocal' that are due to a use of macro name
48365         AM_XGETTEXT_OPTION that is not defined in automake.
48366         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
48367         automake.
48368         * modules/error (configure.ac): Likewise.
48369         * modules/propername (configure.ac): Likewise.
48370         * modules/vasprintf (configure.ac): Likewise.
48371         * modules/verror (configure.ac): Likewise.
48372         * modules/xprintf (configure.ac): Likewise.
48373         * modules/xvasprintf (configure.ac): Likewise.
48374
48375 2009-08-08  Bruno Haible  <bruno@clisp.org>
48376
48377         Avoid compilation error in C++ mode.
48378         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
48379         Reported by Sam Steingold <sds@gnu.org>.
48380
48381 2009-08-08  Bruno Haible  <bruno@clisp.org>
48382
48383         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
48384         for the various Unix platforms.
48385         * doc/posix-headers/limits.texi: Update platforms list regarding
48386         HOST_NAME_MAX.
48387         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48388
48389 2009-08-07  Jim Meyering  <meyering@redhat.com>
48390
48391         selinux-at: fix typo in a comment
48392         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
48393         Spotted by Paolo Bonzini.
48394
48395         selinux-at: remove redundant m4 code, add documentation
48396         * modules/selinux-at (configure.ac): Remove redundant code.
48397         LIB_SELINUX is already set via the dependent module, selinux-h.
48398         (Include): Add quotes around selinux-at.h.
48399         * lib/selinux-at.h: Add documentation.
48400         Reported by Bruno Haible in
48401         http://marc.info/?l=gnulib-bug&m=124958988300749
48402
48403 2009-08-07  Bruno Haible  <bruno@clisp.org>
48404
48405         Avoid link error on MacOS X 10.3 and 10.4.
48406         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
48407         on non-ELF systems.
48408         * lib/argp-pv.c (argp_program_version): Likewise.
48409         Reported by Simon Josefsson.
48410
48411 2009-08-07  Simon Josefsson  <simon@josefsson.org>
48412
48413         * tests/test-version-etc.sh: Use $EXEEXT.
48414
48415 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
48416
48417         update-copyright: update documentation to point to maint.mk
48418         * build-aux/update-copyright: Here.
48419
48420 2009-08-06  Jim Meyering  <meyering@redhat.com>
48421
48422         maint.mk: support update-copyright-local
48423         * top/maint.mk (update-copyright-local): Define place-holder.
48424         (update-copyright): Depend on $(update-copyright-local).
48425
48426 2009-08-06  Jim Meyering  <meyering@redhat.com>
48427
48428         selinux-at: new module
48429         Initially written for coreutils, this module will soon be
48430         used by findutils, too.
48431         * MODULES.html.sh [Misc]: Add selinux-at.
48432         * lib/selinux-at.h: New file, from coreutils.
48433         * lib/selinux-at.c: Likewise.
48434         * modules/selinux-at: Likewise.
48435         (License): Change from LGPL to GPL, since it depends
48436         on the GPL'd openat module.
48437
48438         doc: update README
48439         * README: Remove references to cogito.
48440         Remove cvs-repo-updating instructions from 2007.
48441         Don't imply that CVS is better if you have limited disk space.
48442
48443 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48444
48445         update-copyright: support C-style comments
48446         * build-aux/update-copyright: Implement and document.
48447         * tests/test-update-copyright.sh: Test.
48448
48449 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48450
48451         update-copyright: support omitted "(C)"
48452         * build-aux/update-copyright: Implement and document.  Also,
48453         allow variable whitespace before "(C)".
48454         * tests/test-update-copyright.sh: Test.
48455
48456 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48457
48458         update-copyright: don't trip on non-FSF copyright statements
48459         * build-aux/update-copyright: Fix so that the first correctly
48460         formatted FSF copyright statement is recognized no matter what
48461         appears before it.  Update documentation.
48462         * tests/test-update-copyright.sh: Test that.
48463
48464 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48465
48466         update-copyright: clean up code a little
48467         * build-aux/update-copyright: Append "_re" to the name of any
48468         variable holding a regular expression.
48469         Replace "old" and "new" with "stmt" in variable names.
48470         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
48471         handled correctly.
48472         Format code more consistently.
48473
48474 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48475
48476         update-copyright-tests: improve portability
48477         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
48478         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
48479
48480 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48481
48482         update-copyright: support @copyright{} and &copy;
48483         * build-aux/update-copyright: Implement and document.
48484         * tests/test-update-copyright.sh: Test.
48485
48486 2009-08-04  Jim Meyering  <meyering@redhat.com>
48487
48488         update-copyright-tests: correctly test EOL=\r\n handling
48489         * tests/test-update-copyright.sh: Put \r at the end of some lines
48490         for the dos-eol tests.  Based on a patch by Joel E. Denny.
48491
48492         maint.mk: make update-copyright exclusion list more configurable
48493         * top/maint.mk (update-copyright): Default to excluding COPYING,
48494         but allow an override, in case someone does want to update that file.
48495
48496         maint.mk: don't update copyright date in COPYING
48497         * top/maint.mk (update-copyright): Exclude COPYING.
48498
48499         maint.mk: add a copyright-updating rule
48500         * top/maint.mk (update-copyright): New rule.
48501         Derived from coreutils/Makefile.am.
48502
48503         update-copyright: rename some variables
48504         * build-aux/update-copyright: Rename a few variables for clarity.
48505         Tweak syntax.  List Joel E. Denny as coauthor.
48506
48507 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48508
48509         update-copyright: fix bug for 2-digit last year and add tests
48510         * build-aux/update-copyright: Fix bug.
48511         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48512         specified.
48513         * modules/update-copyright-tests: New
48514         * tests/test-update-copyright.sh: New.
48515
48516 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48517
48518         update-copyright: handle leading tabs in line prefix
48519         * build-aux/update-copyright: Count leading tabs as 8 spaces
48520         when computing margin.  This helps with the formatting of
48521         ChangeLogs, for example.
48522         Fix documentation a little.
48523
48524 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48525
48526         update-copyright: support EOL=\r\n
48527         * build-aux/update-copyright: Implement that.
48528
48529 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48530
48531         update-copyright: automatically format copyright statements
48532         * build-aux/update-copyright: Implement that.
48533         Also, be a little more predictable and safer by always failing
48534         when the full copyright format is not perfectly recognized as an
48535         unbroken whole.  Discussed at
48536         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48537         Rewrite documentation.
48538
48539 2009-08-03  Bruno Haible  <bruno@clisp.org>
48540
48541         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48542
48543 2009-08-02  Bruno Haible  <bruno@clisp.org>
48544
48545         Tests for module 'uname'.
48546         * modules/uname-tests: New file.
48547         * tests/test-uname.c: New file.
48548
48549         New module 'uname'.
48550         * lib/uname.c: New file.
48551         * m4/uname.m4: New file.
48552         * modules/uname: New file.
48553         * doc/posix-functions/uname.texi: Mention the new module.
48554
48555 2009-08-02  Bruno Haible  <bruno@clisp.org>
48556
48557         Tests for module 'sys_utsname'.
48558         * modules/sys_utsname-tests: New file.
48559         * tests/test-sys_utsname.c: New file.
48560
48561         New module 'sys_utsname'.
48562         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48563         * m4/sys_utsname_h.m4: New file.
48564         * modules/sys_utsname: New file.
48565         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48566
48567 2009-08-02  Bruno Haible  <bruno@clisp.org>
48568
48569         Implicitly initialize the sockets library.
48570         * lib/gethostname.c: Include sockets.h.
48571         (rpl_gethostname): Invoke gl_sockets_startup.
48572         * lib/socket.c: Include sockets.h.
48573         (rpl_socket): Invoke gl_sockets_startup.
48574         * modules/gethostname (Depends-on): Add sockets.
48575         * modules/socket (Depends-on): Likewise.
48576         * tests/test-poll.c: Don't include sockets.h.
48577         (main): Don't invoke gl_sockets_startup.
48578         * tests/test-select.c: Don't include sockets.h.
48579         (main): Don't invoke gl_sockets_startup.
48580
48581 2009-08-02  Bruno Haible  <bruno@clisp.org>
48582
48583         Allow multiple calls to gl_sockets_startup.
48584         * lib/sockets.c (initialized_sockets_version): New variable.
48585         (gl_sockets_startup): Do nothing if already called for this or a higher
48586         version.
48587         (gl_sockets_cleanup): Reset initialized_sockets_version.
48588
48589 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48590
48591         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48592         different project/version.
48593
48594 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48595             Bruno Haible  <bruno@clisp.org>
48596
48597         Tests for module 'pipe-filter-gi'.
48598         * modules/pipe-filter-gi-tests: New file.
48599         * tests/test-pipe-filter-gi1.sh: New file.
48600         * tests/test-pipe-filter-gi1.c: New file.
48601         * tests/test-pipe-filter-gi2.sh: New file.
48602         * tests/test-pipe-filter-gi2-main.c: New file.
48603         * tests/test-pipe-filter-gi2-child.c: New file.
48604
48605         New module 'pipe-filter-gi'.
48606         * lib/pipe-filter-gi.c: New file.
48607         * modules/pipe-filter-gi: New file.
48608
48609 2009-08-02  Bruno Haible  <bruno@clisp.org>
48610             Paolo Bonzini  <bonzini@gnu.org>
48611
48612         Tests for module 'pipe-filter-ii'.
48613         * modules/pipe-filter-ii-tests: New file.
48614         * tests/test-pipe-filter-ii1.sh: New file.
48615         * tests/test-pipe-filter-ii1.c: New file.
48616         * tests/test-pipe-filter-ii2.sh: New file.
48617         * tests/test-pipe-filter-ii2-main.c: New file.
48618         * tests/test-pipe-filter-ii2-child.c: New file.
48619
48620         New module 'pipe-filter-ii'.
48621         * lib/pipe-filter.h: New file.
48622         * lib/pipe-filter-ii.c: New file.
48623         * lib/pipe-filter-aux.h: New file.
48624         * modules/pipe-filter-ii: New file.
48625
48626 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48627
48628         * lib/gc-libgcrypt.c: Change copyright to FSF.
48629         * lib/gc-gnulib.c: Likewise.
48630
48631 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48632
48633         * lib/gethostname.c: Include limits.h.
48634
48635 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48636             Bruno Haible  <bruno@clisp.org>
48637
48638         Ensure HOST_NAME_MAX as part of the gethostname module.
48639         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48640         define also HOST_NAME_MAX.
48641         * tests/test-gethostname.c: Include <limits.h>.
48642         (main): Check also HOST_NAME_MAX.
48643         * doc/posix-headers/limits.texi: Document the mingw problem.
48644
48645 2009-08-02  Bruno Haible  <bruno@clisp.org>
48646
48647         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48648         Add comments.
48649
48650 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48651
48652         * lib/gethostname.c: Add Windows wrapper.
48653         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48654         * modules/gethostname: Depend on sys_socket & errno, for also
48655         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48656         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48657
48658 2009-07-31  Jim Meyering  <meyering@redhat.com>
48659
48660         getloadavg: fix symbol name in comment
48661         * lib/getloadavg.c: Correct a typo I introduced when adding
48662         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48663         Matt Kraai spotted the problem.
48664
48665 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48666
48667         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48668         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48669         code also if ! defined N_NAME_POINTER.
48670         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48671         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48672         but the n_name member is a 12-byte array.
48673
48674 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48675
48676         update-copyright: generalize comment handling
48677         * build-aux/update-copyright: Handle copyright statements
48678         within more comment styles.
48679         Document usage.
48680         Report any file with an external copyright holder or parse failure.
48681
48682 2009-07-29  Jim Meyering  <meyering@redhat.com>
48683
48684         mktime: correct setting of REPLACE_MKTIME
48685         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48686
48687         update-copyright: new module
48688         * modules/update-copyright: New file.
48689         * build-aux/update-copyright: New file.
48690         * MODULES.html.sh (maint+release support): Add update-copyright.
48691
48692 2009-07-27  Bruno Haible  <bruno@clisp.org>
48693
48694         Fix compilation error when <ctime> is used and mktime is replaced.
48695         * lib/time.in.h (mktime): New declaration.
48696         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48697         REPLACE_MKTIME instead of defining mktime in config.h.
48698         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48699         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48700         Reported by Ross McFarland <rwmcfa1@neces.com>.
48701
48702 2009-07-27  Bruno Haible  <bruno@clisp.org>
48703
48704         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48705         Reported by Matt Kraai <mkraai@beckman.com>.
48706
48707 2009-07-25  Jim Meyering  <meyering@redhat.com>
48708
48709         maint.mk: avoid warnings about missing files
48710         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48711         diagnostic when .prev-version does not exist.
48712         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48713         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48714         nonexistent cfg.mk.
48715         Suggestions from Simon Josefsson.
48716
48717 2009-07-25  Bruno Haible  <bruno@clisp.org>
48718
48719         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48720         defined as macros. Needed on QNX 6.4.1.
48721         Reported by Matt Kraai <mkraai@beckman.com>.
48722
48723 2009-07-23  Jim Meyering  <meyering@redhat.com>
48724
48725         maint.mk: invoke "make dist" with a working value of XZ_OPT
48726         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48727
48728 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48729
48730         Make fseeko.c compile on QNX.
48731         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48732
48733 2009-07-22  Peter Simons  <simons@cryp.to>
48734
48735         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48736         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48737         * lib/md4.h: Likewise.
48738         * lib/md5.h: Likewise.
48739         * lib/sha1.h: Likewise.
48740         * lib/sha256.h: Likewise.
48741         * lib/sha512.h: Likewise.
48742
48743         tests-sha1: don't assign literal string to 'char *' variable
48744         * tests/test-sha1.c (main): Declare locals with "const" to match
48745         attributes of the right hand side.
48746
48747 2009-07-21  Eric Blake  <ebb9@byu.net>
48748
48749         dup2: fix more mingw problems
48750         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48751         fd to itself.
48752         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48753         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48754         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48755         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48756         care of mingw bugs.
48757
48758 2009-07-21  Jim Meyering  <meyering@redhat.com>
48759
48760         vc-list-files: avoid failure when /bin/sh is dash
48761         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48762         On some Debian based systems, /bin/sh is a symlink to dash, and running
48763         this command would omit the "/" following each 'tests' prefix:
48764           dash -x build-aux/vc-list-files -C . tests
48765         That is because bash and dash work differently:
48766           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48767           bash ok
48768           dash odd
48769
48770 2009-07-21  Eric Blake  <ebb9@byu.net>
48771
48772         dup2-tests: test previous patch
48773         * modules/dup2-tests: New file.
48774         * tests/test-dup2.c: Likewise.
48775         * tests/test-open.c (main): Avoid unspecified behavior.
48776         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48777         test.
48778
48779         dup2: work around mingw and cygwin 1.5 bug
48780         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48782         * modules/unistd (Makefile.am): Substitute it.
48783         * lib/unistd.in.h (dup2): Declare the replacement.
48784         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48785         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48786         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48787         * modules/execute (Depends-on): Add dup2.
48788         * modules/fseterr (Depends-on): Likewise.
48789         * modules/pipe (Depends-on): Likewise.
48790         * modules/posix_spawn-internal (Depends-on): Likewise.
48791
48792 2009-07-21  Bruno Haible  <bruno@clisp.org>
48793
48794         * modules/.gitattributes: New file.
48795
48796 2009-07-20  Bruno Haible  <bruno@clisp.org>
48797
48798         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48799         (main): Use it.
48800
48801 2009-07-20  Eric Blake  <ebb9@byu.net>
48802
48803         test-pipe: make a bit more robust.
48804         * tests/test-pipe.c (myerr): Allow error messages regardless of
48805         what we do to stderr.
48806         (test_pipe): Rearrange to avoid deadlock.
48807         (child_main): Try a larger read, to ensure we avoided deadlock.
48808         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48809         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48810         if misused.
48811
48812 2009-07-19  Jim Meyering  <meyering@redhat.com>
48813
48814         fts: avoid false-positive cycle-detection
48815         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48816         for each new command line argument.
48817
48818 2009-07-19  Bruno Haible  <bruno@clisp.org>
48819
48820         Fix build error on mingw with the modules sys_select and unistd.
48821         * modules/acl-tests (Depends-on): Add close.
48822         * modules/binary-io-tests (Depends-on): Likewise.
48823         * modules/closein-tests (Depends-on): Likewise.
48824         * modules/flock-tests (Depends-on): Likewise.
48825         * modules/fsync-tests (Depends-on): Likewise.
48826         * modules/lseek-tests (Depends-on): Likewise.
48827         * modules/pipe-tests (Depends-on): Likewise.
48828         * modules/posix_spawn-tests (Depends-on): Likewise.
48829         * modules/posix_spawnp-tests (Depends-on): Likewise.
48830         * modules/stat-time-tests (Depends-on): Likewise.
48831         * modules/yesno-tests (Depends-on): Likewise.
48832
48833 2009-07-19  Bruno Haible  <bruno@clisp.org>
48834
48835         Unify conditionals.
48836         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48837         macros, not at the compiler macros.
48838         * lib/pipe.c: Likewise.
48839         * lib/execute.c: Likewise.
48840         * lib/spawni.c: Likewise.
48841
48842 2009-07-19  Bruno Haible  <bruno@clisp.org>
48843
48844         Fix handling of closed stdin/stdout/stderr on mingw.
48845         * lib/w32spawn.h: Include unistd.h.
48846         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48847         file descriptor with O_NOINHERIT flag.
48848         (fd_safer_noinherit): New function, based on fd-safer.c.
48849         (dup_safer_noinherit): New function, based on dup-safer.c.
48850         (undup_safer_noinherit): New function.
48851         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48852         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48853         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48854         instead of fd_safer.
48855         * tests/test-pipe.c: Include <windows.h>.
48856         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48857         result.
48858
48859         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48860         from main.
48861         (test_pipe): Pass an extra argument for disambiguation.
48862         (main): Invoke parent_main or child_main.
48863
48864         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48865         consistently.
48866
48867 2009-07-18  Eric Blake  <ebb9@byu.net>
48868
48869         test-pipe: fix mingw build
48870         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48871
48872 2009-07-18  Bruno Haible  <bruno@clisp.org>
48873
48874         * modules/pipe-tests (Makefile.am): Fix typo.
48875
48876 2009-07-18  Eric Blake  <ebb9@byu.net>
48877
48878         error: fix mingw build
48879         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48880         Reported by Bruno Haible.
48881
48882         error: avoid undefined use of stdout
48883         * lib/error.c (error, error_at_line): Check that fd 1 is open
48884         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48885         is handling faults and the close_stdout module wants to report the
48886         detection of closed stdout as an error.
48887
48888 2009-07-17  Eric Blake  <ebb9@byu.net>
48889
48890         pipe: be robust in face of closed fds
48891         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48892         should cause child to misbehave.
48893         * modules/pipe-tests: New module.
48894         * tests/test-pipe.c: New file.
48895         * tests/test-pipe.sh: New file.
48896         Reported by Akim Demaille.
48897
48898 2009-07-14  Bruno Haible  <bruno@clisp.org>
48899
48900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48901         Reported by anonymous kc.
48902
48903 2009-07-07  Jim Meyering  <meyering@redhat.com>
48904
48905         maint.mk: don't look for translatable strings in *.m4 or *.mk
48906         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48907         when searching for translatable strings.
48908
48909 2009-07-05  Jim Meyering  <meyering@redhat.com>
48910
48911         remove superfluous parentheses in STREQ definition
48912         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48913         * lib/getugroups.c (STREQ): Likewise.
48914         * lib/fnmatch.c (STREQ): Likewise.
48915         Spotted by Bruno Haible.
48916
48917 2009-07-04  Jim Meyering  <meyering@redhat.com>
48918
48919         argv-iter: new module
48920         * MODULES.html.sh: Add argv-iter.
48921         * lib/argv-iter.c, lib/argv-iter.h: New files.
48922         * modules/argv-iter: New file.
48923         * modules/argv-iter-tests: New file.
48924         * tests/test-argv-iter.c: Test it.
48925
48926 2009-07-04  Bruno Haible  <bruno@clisp.org>
48927
48928         Fix assertion.
48929         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48930         contains more exact copies of a given entry than file2, leave the extra
48931         copies unpaired rather than aborting.
48932         Reported by Eric Blake.
48933
48934 2009-07-02  Bruno Haible  <bruno@clisp.org>
48935
48936         Speedup git-merge-changelog for git cherry-pick.
48937         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48938         (entries_mapping_get): New function, extracted from compute_mapping.
48939         (entries_mapping_reverse_get): New function.
48940         (compute_mapping): Add a 'full' argument. Return the result in a
48941         'struct entries_mapping'.
48942         (main): Update. Access the mappings through entries_mapping_get.
48943         Reported by Eric Blake.
48944
48945 2009-07-02  Bruno Haible  <bruno@clisp.org>
48946
48947         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48948         best_i.
48949
48950 2009-07-02  Bruno Haible  <bruno@clisp.org>
48951
48952         Speed up approximate search for matching ChangeLog entries.
48953         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48954         argument. Call fstrcmp_bounded instead of fstrcmp.
48955         (compute_mapping, try_split_merged_entry, main): Update callers.
48956
48957 2009-07-02  Bruno Haible  <bruno@clisp.org>
48958
48959         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48960
48961 2009-06-30  Bruno Haible  <bruno@clisp.org>
48962
48963         Reduce the number of uc_is_cased calls.
48964         * lib/unicase.h (casing_suffix_context_t): Add
48965         'first_char_except_ignorable' field.
48966         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48967         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48968         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48969         Update initializer.
48970         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48971         case-ignorable characters.
48972         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48973         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48974         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48975         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48976         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48977
48978 2009-06-30  Bruno Haible  <bruno@clisp.org>
48979
48980         Tests for module 'unicase/ignorable'.
48981         * modules/unicase/ignorable-tests: New file.
48982         * tests/unicase/test-ignorable.c: New file, generated by
48983         gen-uni-tables.
48984
48985         Tests for module 'unicase/cased'.
48986         * modules/unicase/cased-tests: New file.
48987         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48988         * tests/unicase/test-predicate-part1.h: New file, derived from
48989         tests/unictype/test-predicate-part1.h.
48990         * tests/unicase/test-predicate-part2.h: New file, same as
48991         tests/unictype/test-predicate-part2.h.
48992
48993         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48994         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48995         (output_casing_properties): New function.
48996         (main): Call it.
48997         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48998         * lib/unicase/cased.c: Include unictype/bitmap.h.
48999         (uc_is_cased): Define through a bitmap lookup.
49000         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
49001         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
49002         (uc_is_case_ignorable): Define through a bitmap lookup.
49003         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
49004         lib/unictype/bitmap.h.
49005         (Depends-on): Add inline. Clean up.
49006         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
49007         lib/unictype/bitmap.h.
49008         (Depends-on): Add inline. Clean up.
49009         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
49010         recognition.
49011         * tests/unicase/test-u16-tolower.c (main): Likewise.
49012         * tests/unicase/test-u32-tolower.c (main): Likewise.
49013
49014 2009-06-30  Bruno Haible  <bruno@clisp.org>
49015
49016         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
49017         * lib/unicase/u16-casemap.c: Likewise.
49018         * lib/unicase/u32-casemap.c: Likewise.
49019
49020 2009-06-29  Bruno Haible  <bruno@clisp.org>
49021
49022         Define u32_casefold as a wrapper around u32_ct_casefold.
49023         * lib/unicase/u32-casefold.c: Update.
49024         * modules/unicase/u32-casefold (Depends-on): Add
49025         unicase/u32-ct-casefold, unicase/empty-prefix-context,
49026         unicase/empty-suffix-context. Clean up.
49027
49028         Define u16_casefold as a wrapper around u16_ct_casefold.
49029         * lib/unicase/u16-casefold.c: Update.
49030         * modules/unicase/u16-casefold (Depends-on): Add
49031         unicase/u16-ct-casefold, unicase/empty-prefix-context,
49032         unicase/empty-suffix-context. Clean up.
49033
49034         Define u8_casefold as a wrapper around u8_ct_casefold.
49035         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
49036         * lib/unicase/u8-casefold.c: Update.
49037         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
49038         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49039
49040         Define u32_totitle as a wrapper around u32_ct_totitle.
49041         * lib/unicase/u32-totitle.c: Update.
49042         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
49043         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49044
49045         Define u16_totitle as a wrapper around u16_ct_totitle.
49046         * lib/unicase/u16-totitle.c: Update.
49047         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
49048         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49049
49050         Define u8_totitle as a wrapper around u8_ct_totitle.
49051         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
49052         functions.
49053         (FUNC): Delegate to U_CT_TOTITLE.
49054         * lib/unicase/u8-totitle.c: Update.
49055         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
49056         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49057
49058         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
49059         invocation.
49060         * modules/unicase/u32-tolower (Depends-on): Add
49061         unicase/empty-prefix-context, unicase/empty-suffix-context.
49062
49063         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
49064         invocation.
49065         * modules/unicase/u16-tolower (Depends-on): Add
49066         unicase/empty-prefix-context, unicase/empty-suffix-context.
49067
49068         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
49069         * modules/unicase/u8-tolower (Depends-on): Add
49070         unicase/empty-prefix-context, unicase/empty-suffix-context.
49071
49072         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
49073         invocation.
49074         * modules/unicase/u32-toupper (Depends-on): Add
49075         unicase/empty-prefix-context, unicase/empty-suffix-context.
49076
49077         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
49078         invocation.
49079         * modules/unicase/u16-toupper (Depends-on): Add
49080         unicase/empty-prefix-context, unicase/empty-suffix-context.
49081
49082         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
49083         * modules/unicase/u8-toupper (Depends-on): Add
49084         unicase/empty-prefix-context, unicase/empty-suffix-context.
49085
49086         New module 'unicase/u32-ct-casefold'.
49087         * lib/unicase/u32-ct-casefold.c: New file.
49088         * modules/unicase/u32-ct-casefold: New file.
49089
49090         New module 'unicase/u16-ct-casefold'.
49091         * lib/unicase/u16-ct-casefold.c: New file.
49092         * modules/unicase/u16-ct-casefold: New file.
49093
49094         New module 'unicase/u8-ct-casefold'.
49095         * lib/unicase/u8-ct-casefold.c: New file.
49096         * lib/unicase/u-ct-casefold.h: New file, derived from
49097         lib/unicase/u-casefold.h.
49098         * modules/unicase/u8-ct-casefold: New file.
49099
49100         New module 'unicase/u32-ct-totitle'.
49101         * lib/unicase/u32-ct-totitle.c: New file.
49102         * modules/unicase/u32-ct-totitle: New file.
49103
49104         New module 'unicase/u16-ct-totitle'.
49105         * lib/unicase/u16-ct-totitle.c: New file.
49106         * modules/unicase/u16-ct-totitle: New file.
49107
49108         New module 'unicase/u8-ct-totitle'.
49109         * lib/unicase/u8-ct-totitle.c: New file.
49110         * lib/unicase/u-ct-totitle.h: New file, derived from
49111         lib/unicase/u-totitle.h.
49112         * modules/unicase/u8-ct-totitle: New file.
49113
49114         New module 'unicase/u32-ct-tolower'.
49115         * lib/unicase/u32-ct-tolower.c: New file.
49116         * modules/unicase/u32-ct-tolower: New file.
49117
49118         New module 'unicase/u16-ct-tolower'.
49119         * lib/unicase/u16-ct-tolower.c: New file.
49120         * modules/unicase/u16-ct-tolower: New file.
49121
49122         New module 'unicase/u8-ct-tolower'.
49123         * lib/unicase/u8-ct-tolower.c: New file.
49124         * modules/unicase/u8-ct-tolower: New file.
49125
49126         New module 'unicase/u32-ct-toupper'.
49127         * lib/unicase/u32-ct-toupper.c: New file.
49128         * modules/unicase/u32-ct-toupper: New file.
49129
49130         New module 'unicase/u16-ct-toupper'.
49131         * lib/unicase/u16-ct-toupper.c: New file.
49132         * modules/unicase/u16-ct-toupper: New file.
49133
49134         New module 'unicase/u8-ct-toupper'.
49135         * lib/unicase/u8-ct-toupper.c: New file.
49136         * modules/unicase/u8-ct-toupper: New file.
49137
49138         Add context arguments to u*_casemap functions.
49139         * lib/unicase/unicasemap.h: Include unicase.h.
49140         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
49141         suffix_context arguments.
49142         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
49143         functions.
49144         (FUNC): Add prefix_context and suffix_context arguments. Use
49145         uc_is_cased and uc_is_case_ignorable.
49146         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
49147         * lib/unicase/u16-casemap.c: Likewise.
49148         * lib/unicase/u32-casemap.c: Likewise.
49149         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
49150         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49151         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
49152         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49153         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
49154         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49155
49156         New module 'unicase/u32-suffix-context'.
49157         * lib/unicase/u32-suffix-context.c: New file.
49158         * modules/unicase/u32-suffix-context: New file.
49159
49160         New module 'unicase/u16-suffix-context'.
49161         * lib/unicase/u16-suffix-context.c: New file.
49162         * modules/unicase/u16-suffix-context: New file.
49163
49164         New module 'unicase/u8-suffix-context'.
49165         * lib/unicase/u8-suffix-context.c: New file.
49166         * lib/unicase/u-suffix-context.h: New file.
49167         * modules/unicase/u8-suffix-context: New file.
49168
49169         New module 'unicase/empty-suffix-context'.
49170         * lib/unicase/empty-suffix-context.c: New file.
49171         * modules/unicase/empty-suffix-context: New file.
49172
49173         New module 'unicase/u32-prefix-context'.
49174         * lib/unicase/u32-prefix-context.c: New file.
49175         * modules/unicase/u32-prefix-context: New file.
49176
49177         New module 'unicase/u16-prefix-context'.
49178         * lib/unicase/u16-prefix-context.c: New file.
49179         * modules/unicase/u16-prefix-context: New file.
49180
49181         New module 'unicase/u8-prefix-context'.
49182         * lib/unicase/u8-prefix-context.c: New file.
49183         * lib/unicase/u-prefix-context.h: New file.
49184         * lib/unicase/context.h: New file.
49185         * modules/unicase/u8-prefix-context: New file.
49186
49187         New module 'unicase/empty-prefix-context'.
49188         * lib/unicase/empty-prefix-context.c: New file.
49189         * modules/unicase/empty-prefix-context: New file.
49190
49191         New module 'unicase/ignorable'.
49192         * lib/unicase/ignorable.c: New file.
49193         * modules/unicase/ignorable: New file.
49194
49195         New module 'unicase/cased'.
49196         * lib/unicase/caseprop.h: New file.
49197         * lib/unicase/cased.c: New file.
49198         * modules/unicase/cased: New file.
49199
49200         New functions for case mapping of substrings.
49201         * lib/unicase.h (casing_prefix_context_t): New type.
49202         (unicase_empty_prefix_context): New variable.
49203         (u8_casing_prefix_context, u16_casing_prefix_context,
49204         u32_casing_prefix_context, u8_casing_prefixes_context,
49205         u16_casing_prefixes_context, u32_casing_prefixes_context): New
49206         declarations.
49207         (casing_suffix_context_t): New type.
49208         (unicase_empty_suffix_context): New variable.
49209         (u8_casing_suffix_context, u16_casing_suffix_context,
49210         u32_casing_suffix_context, u8_casing_suffixes_context,
49211         u16_casing_suffixes_context, u32_casing_suffixes_context,
49212         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
49213         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
49214         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
49215         declarations.
49216
49217 2009-06-28  Jim Meyering  <meyering@redhat.com>
49218
49219         boostrap: indent only with spaces
49220         * build-aux/bootstrap: Indent only with spaces, never TABs.
49221
49222         bootstrap: split long lines
49223         * build-aux/bootstrap: Keep line length < 80.
49224
49225         bootstrap: sync from coreutils
49226         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
49227         just as autoreconf does.  Verify a list of prerequisite
49228         package-name,version-number pairs if defined in bootstrap.conf.
49229         Refer to README-prereq, if prerequisites are not satisfied.
49230
49231 2009-06-27  Eric Blake  <ebb9@byu.net>
49232
49233         tests: add test for bogus NULL definition
49234         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
49235         * tests/test-stdlib.c: Likewise.
49236         * tests/test-string.c: Likewise.
49237         * tests/test-locale.c: Likewise.
49238         * tests/test-unistd.c: Likewise.
49239         * modules/stdio-tests (Depends-on): Add verify.
49240         * modules/stdlib-tests (Depends-on): Likewise.
49241         * modules/string-tests (Depends-on): Likewise.
49242         * modules/locale-tests (Depends-on): Likewise.
49243         * modules/unistd-tests (Depends-on): Likewise.
49244
49245 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
49246
49247         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
49248         self-explaining comment.
49249         * m4/selinux-selinux-h: Update serial.
49250         (gl_LIBSELINUX): New macro, adding a warning for missing development
49251         packages to code extracted from...
49252         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
49253         Add warning for missing development packages here, too.
49254
49255 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
49256
49257         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
49258
49259 2009-06-25  Eric Blake  <ebb9@byu.net>
49260
49261         version-etc: fix regression
49262         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
49263         gcc.
49264         (version_etc): Use it, to catch bugs with trailing NULL.
49265         * lib/version-etc.c (version_etc_arn): Delete unused argument.
49266         (version_etc_va): Fix logic bug.
49267         * modules/version-etc-tests: Add test.
49268         * tests/test-version-etc.c: New file.
49269         * tests/test-version-etc.sh: Likewise.
49270
49271 2009-06-25  Sam Steingold  <sds@gnu.org>
49272
49273         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
49274         mbtowc declaration.
49275
49276 2009-06-25  Eric Blake  <ebb9@byu.net>
49277
49278         fpurge: migrate into <stdio.h>
49279         * lib/fpurge.h: Delete...
49280         * lib/stdio.in.h (fpurge): ...and declare here, instead.
49281         * lib/fpurge.c (fpurge): Change declaring header.
49282         * modules/fpurge (Files): Drop deleted file.
49283         (Depends-on): Add stdio.
49284         (configure.ac): Set witness.
49285         * modules/stdio (Makefile.am): Support fpurge macros.
49286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49287         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
49288         * lib/fflush.c: Update client.
49289         * tests/test-fpurge.c: Likewise.
49290         * NEWS: Mention the change.
49291
49292 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49293
49294         * lib/argp-version-etc.c (program_authors): Add const
49295         qualifier.
49296         * lib/version-etc.c: Fix typos in the comments.
49297         * modules/argp-version-etc: Depends on version-etc.
49298
49299 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49300
49301         argp-version-etc: new module.
49302
49303         * lib/argp-version-etc.c: New file.
49304         * lib/argp-version-etc.h: New file.
49305         * modules/argp-version-etc: New file.
49306         * modules/argp-version-etc-tests: New file.
49307         * tests/test-argp-version-etc.c: New test.
49308         * tests/test-argp-version-etc-1.sh: New test.
49309
49310 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49311
49312         Provide additional interfaces and documentation for version-etc
49313         module.
49314
49315         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
49316         interfaces.
49317         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
49318         prototypes.
49319
49320 2009-06-24  Bruno Haible  <bruno@clisp.org>
49321
49322         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
49323         HAVE_LIB${NAME} macro.
49324         Reported by Sam Steingold <sds@gnu.org>.
49325
49326 2009-06-23  Simon Josefsson  <simon@josefsson.org>
49327
49328         * modules/hash-tests (test_hash_LDADD): Link to libintl when
49329         needed.
49330
49331 2009-06-21  Bruno Haible  <bruno@clisp.org>
49332
49333         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
49334         work.
49335         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
49336         together with LIB${NAME}, LTLIB${NAME}.
49337         Reported by Sam Steingold <sds@gnu.org>.
49338
49339 2009-06-20  Jim Meyering  <meyering@redhat.com>
49340
49341         tests: make sc_require_test_exit_idiom more generic
49342         * top/maint.mk (Exit_witness_file): New overridable variable.
49343         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
49344         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
49345
49346 2009-06-19  Jim Meyering  <meyering@redhat.com>
49347
49348         hash: reverse order of src/dst parameters in an internal interface
49349         * lib/hash.c (transfer_entries): Reverse order of parameters to
49350         put DST before SRC.  Adjust callers.
49351
49352         tests: test-hash: avoid wholesale duplication
49353         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
49354         Instead, use a loop and add a single conditional.
49355
49356         tests: test-hash: allow seed selection via a command line argument
49357         * tests/test-hash.c (get_seed): New function.
49358         (main): Use it.
49359
49360 2009-06-19  Eric Blake  <ebb9@byu.net>
49361
49362         hash: avoid memory leak on allocation failure
49363         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
49364         failure.  Factor repeated algorithm...
49365         (transfer_entries): ...into new helper routine.
49366         (hash_delete): React to hash_rehash return value.
49367
49368         hash: reduce memory pressure in hash_rehash no-op case
49369         * lib/hash.c (next_prime): Avoid overflow.
49370         (hash_initialize): Factor bucket size computation...
49371         (compute_bucket_size): ...into new helper function.
49372         (hash_rehash): Use new function and open coding to reduce memory
49373         pressure, and avoid a memory leak in USE_OBSTACK code.
49374         Reported by Jim Meyering.
49375
49376 2009-06-18  Eric Blake  <ebb9@byu.net>
49377
49378         hash: make rotation more obvious
49379         * modules/hash (Depends-on): Add bitrotate and stdint.
49380         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
49381         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
49382         (SIZE_MAX): Rely on headers for definition.
49383         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
49384         (raw_hasher): Use rotr_sz.
49385         Suggested by Jim Meyering.
49386
49387         hash: fix memory leak in last patch
49388         * lib/hash.c (hash_rehash): Avoid memory leak.
49389
49390         hash: avoid no-op rehashing
49391         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
49392
49393         hash: provide default callback functions
49394         * lib/hash.c (raw_hasher, raw_comparator): New functions.
49395         (hash_initialize): Use them as defaults.
49396         * tests/test-hash.c (main): Test this.
49397
49398         hash: minor optimization
49399         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
49400         when possible.
49401         (hash_initialize): Document this promise.
49402         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
49403         * tests/test-hash.c (hash_compare_strings): Test this.
49404
49405 2009-06-18  Bruno Haible  <bruno@clisp.org>
49406
49407         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
49408         going to be replaced anyway.
49409
49410 2009-06-18  Bruno Haible  <bruno@clisp.org>
49411
49412         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
49413         in one place.
49414         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
49415         be replaced anyway.
49416
49417 2009-06-18  Eric Blake  <ebb9@byu.net>
49418
49419         hash: check for resize before insertion
49420         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
49421         threshold before insertion, so that a pathological hash_rehash
49422         that fills every bucket can still trigger another rehash.
49423
49424 2009-06-18  Jim Meyering  <meyering@redhat.com>
49425
49426         hash-tests: add a loop around the small tests
49427         * tests/test-hash.c (main): Repeat small tests with selected
49428         small initial table sizes.
49429
49430 2009-06-17  Eric Blake  <ebb9@byu.net>
49431
49432         hash: minor cleanups
49433         * lib/hash.h (hash_entry): Make opaque, by moving...
49434         * lib/hash.c (hash_entry): ...here.
49435         (hash_insert): Clarify restrictions on what can be inserted.
49436         (hash_get_next): Clarify when it is safe to remove an element
49437         during traversal.
49438         (check_tuning): Skip verification when tuning is known safe.
49439         (hash_initialize): Clarify restrictions on tuning.
49440
49441 2009-06-17  Jim Meyering  <jim@meyering.net>
49442         and Eric Blake  <ebb9@byu.net>
49443
49444         hash-tests: new module
49445         * modules/hash-tests: New file.
49446         * tests/test-hash.c: New file.
49447
49448 2009-06-17  Eric Blake  <ebb9@byu.net>
49449
49450         strstr-simple: document new module
49451         * MODULES.html.sh: Document new module.
49452
49453         strstr, strcasestr: replace on platforms with broken memchr
49454         * modules/strstr: Split into...
49455         * modules/strstr-simple: ...new module that does not care about
49456         performance, but does care about glibc bug.
49457         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
49458         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
49459         if platform memchr is broken, per Debian bug 521737.
49460         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
49461         memchr.
49462         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
49463         * doc/posix-functions/strstr.texi (strstr): Document the fix.
49464         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49465         * modules/mountlist (Depends-on): Add strstr-simple.
49466         * modules/gen-uni-tables (Depends-on): Likewise.
49467         * modules/argz (Depends-on): Add strstr.
49468
49469 2009-06-17  Bruno Haible  <bruno@clisp.org>
49470
49471         * modules/posix_spawn-internal (Depends-on): Add errno.
49472
49473 2009-06-17  Bruno Haible  <bruno@clisp.org>
49474
49475         Define missing ESTALE on Interix 3.5.
49476         * lib/errno.in.h (ESTALE): Assign a value if missing.
49477         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
49478         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
49479         missing.
49480         * doc/posix-headers/errno.texi: Mention the Interix bug.
49481         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
49482
49483 2009-06-15  Eric Blake  <ebb9@byu.net>
49484
49485         memchr, memchr2: add valgrind exception
49486         * lib/memchr.valgrind: New file.
49487         * lib/memchr2.valgrind: New file.
49488         * modules/memchr (Files): Distribute valgrind file.
49489         * modules/memchr2 (Files): Likewise.
49490
49491         docs: memchr is no longer obsolete
49492         * MODULES.html.sh: Move memchr from obsolete to string.h section.
49493         * lib/string.in.h (memchr): Simplify logic.
49494
49495 2009-06-14  Jim Meyering  <meyering@redhat.com>
49496
49497         link-follow: fix the "checking..." message to not mention trailing slash
49498         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
49499         never considered trailing slashes.
49500
49501 2009-06-14  Bruno Haible  <bruno@clisp.org>
49502
49503         * m4/memchr.m4: Mention also the bug on IA-64.
49504         * doc/posix-functions/memchr.texi: Likewise.
49505
49506 2009-06-12  Eric Blake  <ebb9@byu.net>
49507
49508         memchr: detect broken x86_64 and alpha implementations
49509         * modules/memchr-tests (Depends-on): Move mmap detection...
49510         * modules/memchr (Depends-on): ...here.
49511         (configure.ac): Set indicator.
49512         * lib/string.in.h (memchr): Declare replacement.
49513         * modules/string (Makefile.am): Trigger replacement.
49514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49515         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49516         bugs.
49517         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49518         * modules/getpagesize (License): Relax license.
49519
49520 2009-06-11  Bruno Haible  <bruno@clisp.org>
49521
49522         * lib/idpriv.h: Add more references.
49523
49524 2009-06-08  Bruno Haible  <bruno@clisp.org>
49525
49526         Tests for module 'idpriv-droptemp'.
49527         * modules/idpriv-droptemp-tests: New file.
49528         * tests/test-idpriv-droptemp.sh: New file.
49529         * tests/test-idpriv-droptemp.su.sh: New file.
49530         * tests/test-idpriv-droptemp.c: New file.
49531
49532         New module 'idpriv-droptemp'.
49533         * lib/idpriv-droptemp.c: New file.
49534         * modules/idpriv-droptemp: New file.
49535
49536 2009-06-08  Bruno Haible  <bruno@clisp.org>
49537
49538         Tests for module 'idpriv-drop'.
49539         * modules/idpriv-drop-tests: New file.
49540         * tests/test-idpriv-drop.sh: New file.
49541         * tests/test-idpriv-drop.su.sh: New file.
49542         * tests/test-idpriv-drop.c: New file.
49543
49544         New module 'idpriv-drop'.
49545         * lib/idpriv.h: New file.
49546         * lib-idpriv-drop.c: New file.
49547         * m4/idpriv.m4: New file.
49548         * modules/idpriv-drop: New file.
49549
49550 2009-06-08  Bruno Haible  <bruno@clisp.org>
49551
49552         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49553         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49554         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49555         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49556         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49557         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49558         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49559
49560 2009-06-08  Eric Blake  <ebb9@byu.net>
49561
49562         test-strstr: use memory fence, when possible
49563         * tests/test-strstr.c (main): Use memory fence, in order to be
49564         more likely to trigger Debian bug 521737.
49565         * modules/strstr-tests (Files): Pull in additional files.
49566
49567         memchr: no longer obsolete, for wider field testing
49568         * modules/memchr (Status, Notice): Delete, this module is no
49569         longer obsolete.
49570         * modules/vasnprintf (Depends-on): Add memchr.
49571
49572 2009-06-07  Jim Meyering  <meyering@redhat.com>
49573
49574         hash: declare some functions with the warn_unused_result attribute
49575         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49576
49577 2009-06-07  Bruno Haible  <bruno@clisp.org>
49578
49579         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49580         Reported by Eric Blake.
49581
49582 2009-06-06  Eric Blake  <ebb9@byu.net>
49583
49584         test-alignof: fix typo with long double
49585         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49586         compiler error.
49587
49588 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49589
49590         Escape non-texinfo { and }s.
49591         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49592         markup error.
49593
49594 2009-06-04  Jim Meyering  <meyering@redhat.com>
49595
49596         gitlog-to-changelog: don't infloop on an empty commit log
49597         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49598         Reported by Boris Petersen <transacid@centerim.org>.
49599
49600 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49601
49602         version-etc: extend for packagers
49603         Add three new configure options, intended for packagers:
49604           --with-packager="packager name"
49605           --with-packager-version="packager-specific version"
49606           --with-packager-bug-reports="packager bug reporting"
49607         An example with coreutils:
49608           $ ./configure \
49609             --with-packager=Gentoo \
49610             --with-packager-bug-report=http://bugs.gentoo.org/ \
49611             --with-packager-version="patchset 1.6"
49612           $ ./src/ls --version | head -n2
49613           ls (GNU coreutils) 7.1-dirty
49614           Packaged by Gentoo (patchset 1.6)
49615         Note that the bug reporting info via --help doesn't show up because
49616         coreutils uses its own custom emit_bug_reporting_address() implementation
49617         in src/system.h.  If it didn't, it'd look like:
49618           $ ./src/ls --help | tail -n4
49619           Report bugs to <bug-coreutils@gnu.org>.
49620           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49621           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49622           General help using GNU software: <http://www.gnu.org/gethelp/>.
49623         * lib/version-etc.c: Print new information, if provided.
49624         * m4/version-etc.m4: New file.
49625         * modules/version-etc (Files): Add m4/version-etc.m4.
49626         (configure.ac): Add gl_VERSION_ETC.
49627
49628 2009-05-31  Bruno Haible  <bruno@clisp.org>
49629
49630         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49631         and 'int64_t'.
49632         * modules/alignof-tests (Dependencies): Add stdint.
49633         Reported by Eric Blake.
49634
49635 2009-05-31  Bruno Haible  <bruno@clisp.org>
49636
49637         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49638         restriction due to compiler bugs.
49639         Reported by Eric Blake.
49640
49641 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49642             Bruno Haible  <bruno@clisp.org>
49643
49644         Fix test-alignof failure.
49645         * lib/alignof.h (alignof_slot): New macro.
49646         (alignof_type): New macro, with the same semantics as the previous
49647         'alignof'.
49648         (alignof): Alias to alignof_slot.
49649         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49650         check that the results are usable as constant expressions.
49651
49652 2009-05-31  Bruno Haible  <bruno@clisp.org>
49653
49654         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49655         * tests/test-memchr.c (main): Check that memchr does not read past the
49656         first occurrence of the byte.
49657         * tests/test-strstr.c (main): Update comment.
49658         Suggested by Eric Blake.
49659
49660 2009-05-30  Bruno Haible  <bruno@clisp.org>
49661
49662         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49663         detail how to use dumpbin.
49664         Reported by David Byron <dbyron@dbyron.com>.
49665
49666 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49667
49668         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49669
49670 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49671
49672         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49673
49674 2009-05-28  Bruno Haible  <bruno@clisp.org>
49675
49676         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49677         build-aux/ files.
49678
49679 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49680
49681         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49682
49683 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49684
49685         * gnulib-tool (sed_transform_main_lib_file)
49686         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49687         regexps.
49688
49689 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49690
49691         * tests/test-strstr.c: Add another self-test.
49692         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49693         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49694
49695 2009-05-23  Bruno Haible  <bruno@clisp.org>
49696
49697         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49698         change.
49699
49700 2009-05-21  Bruno Haible  <bruno@clisp.org>
49701
49702         Simplify use of mode_t varargs.
49703         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49704         uses 'mode_t' or 'int'.
49705         * lib/openat.c (openat): Likewise.
49706         * lib/open-safer.c (open_safer): Likewise.
49707         * m4/mode_t.m4: New file.
49708         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49709         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49710         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49711         * modules/open (Files): Add m4/mode_t.m4.
49712         * modules/openat (Files): Likewise.
49713         * modules/fcntl-safer (Files): Likewise.
49714         Suggested by Eric Blake.
49715
49716 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49717
49718         * doc/glibc-functions/fallocate.texi: New file.
49719         * doc/gnulib.texi: Include it.
49720
49721 2009-05-21  Eric Blake  <ebb9@byu.net>
49722             Bruno Haible  <bruno@clisp.org>
49723
49724         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49725         invocations.
49726         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49727
49728 2009-05-21  Eric Blake  <ebb9@byu.net>
49729             Bruno Haible  <bruno@clisp.org>
49730
49731         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49732         include_next. Fix of 2008-11-20 commit.
49733         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49734         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49735         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49736         NEXT_MATH_H.
49737         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49738         instead of NEXT_MATH_H.
49739
49740 2009-05-21  Bruno Haible  <bruno@clisp.org>
49741
49742         Avoid redefinition warnings for SIZE_MAX.
49743         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49744         Reported by Simon Josefsson.
49745
49746 2009-05-21  Bruno Haible  <bruno@clisp.org>
49747
49748         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49749         AC_CACHE_VAL.
49750
49751 2009-05-20  Bruno Haible  <bruno@clisp.org>
49752
49753         Make zeroptr.h work on mingw.
49754         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49755         mprotect.
49756         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49757         * modules/memchr2-tests (configure.ac): Likewise.
49758         * modules/memcmp-tests (configure.ac): Likewise.
49759         * modules/memmem-tests (configure.ac): Likewise.
49760         * modules/memrchr-tests (configure.ac): Likewise.
49761         Reported by Simon Josefsson.
49762
49763 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49764
49765         * tests/test-glob.c: Include string.h for strcmp prototype.
49766
49767 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49768
49769         * modules/getdelim (Depends-on): Add explicit stdint, although it
49770         was implicitly already pulled in via realloc-posix.
49771         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49772
49773 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49774
49775         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49776         G. Christensen" <tgc@jupiterrise.com>.
49777         * m4/sys_socket_h.m4: Check for sa_family_t.
49778         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49779         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49780         * tests/test-sys_socket.c: Check that sa_family_t works.
49781
49782 2009-05-18  Eric Blake  <ebb9@byu.net>
49783
49784         maint.mk: allow gnulib_dir in VPATH build
49785         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49786
49787 2009-05-15  Jim Meyering  <meyering@redhat.com>
49788
49789         maint.mk: Give gnulib_dir a default definition.
49790         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49791         Thus, most packages no longer need to specify this variable in cfg.mk
49792
49793 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49794
49795         rename.m4: fix typos that would make non-mingw cross-configure fail
49796         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49797
49798 2009-05-13  Eric Blake  <ebb9@byu.net>
49799
49800         mmap-anon: avoid out-of-order autoconf expansion
49801         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49802         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49803         * modules/memchr-tests (Depends-on): Add extensions.
49804         * modules/memchr2-tests (Depends-on): Add extensions.
49805         * modules/memcmp-tests (Depends-on): Add extensions.
49806         * modules/memmem-tests (Depends-on): Add extensions.
49807         * modules/memrchr-tests (Depends-on): Add extensions.
49808
49809 2009-05-13  Bruno Haible  <bruno@clisp.org>
49810
49811         Make some tests ISO C 99 compliant.
49812         * tests/zerosize-ptr.h: New file.
49813         * tests/test-memchr.c: Include zerosize-ptr.h.
49814         (main): Use a zero-size object pointer instead of NULL.
49815         * tests/test-memchr2.c: Include zerosize-ptr.h.
49816         (main): Use a zero-size object pointer instead of NULL.
49817         * tests/test-memcmp.c: Include zerosize-ptr.h.
49818         (main): Use a zero-size object pointer instead of NULL.
49819         * tests/test-memmem.c: Include zerosize-ptr.h.
49820         (main): Use a zero-size object pointer instead of NULL.
49821         * tests/test-memrchr.c: Include zerosize-ptr.h.
49822         (main): Use a zero-size object pointer instead of NULL.
49823         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49824         m4/mmap-anon.m4.
49825         (Depends-on): Add getpagesize.
49826         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49827         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49828         m4/mmap-anon.m4.
49829         (Depends-on): Add getpagesize.
49830         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49831         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49832         m4/mmap-anon.m4.
49833         (Depends-on): Add getpagesize.
49834         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49835         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49836         m4/mmap-anon.m4.
49837         (Depends-on): Add getpagesize.
49838         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49839         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49840         m4/mmap-anon.m4.
49841         (Depends-on): Add getpagesize.
49842         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49843
49844 2009-05-12  Bruno Haible  <bruno@clisp.org>
49845
49846         Tests for module 'alignof'.
49847         * modules/alignof-tests: New file.
49848         * tests/test-alignof.c: New file.
49849
49850 2009-05-12  Bruno Haible  <bruno@clisp.org>
49851
49852         Fix alignof macro.
49853         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49854         vendor compilers that are always correct.
49855
49856 2009-05-12  Bruno Haible  <bruno@clisp.org>
49857
49858         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49859         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49860         not whether its fully works.
49861
49862 2009-05-12  Bruno Haible  <bruno@clisp.org>
49863
49864         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49865
49866 2009-05-12  Jim Meyering  <meyering@redhat.com>
49867
49868         * top/maint.mk: Adjust backslash alignment.
49869
49870 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49871
49872         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49873
49874 2009-05-11  Eric Blake  <ebb9@byu.net>
49875
49876         argp: avoid undefined behavior
49877         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49878         macros.
49879
49880 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49881
49882         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49883         user.name to prevent git commit from complaining.
49884
49885 2009-05-10  Bruno Haible  <bruno@clisp.org>
49886
49887         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49888         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49889         it rewrites every file name only once.
49890         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49891
49892 2009-05-08  Bruno Haible  <bruno@clisp.org>
49893
49894         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49895         instead of 'max'.
49896
49897 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49898
49899         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49900         sockaddr_storage test.
49901
49902 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49903
49904         * modules/sys_socket (Makefile.am): Substitute
49905         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49906         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49907         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49908         * tests/test-sys_socket.c: Check sockaddr_storage.
49909
49910 2009-05-08  Bruno Haible  <bruno@clisp.org>
49911
49912         New module 'alignof'.
49913         * lib/alignof.h: New file.
49914         * modules/alignof: New file.
49915
49916 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49917             Bruno Haible  <bruno@clisp.org>
49918
49919         Fix test-file-has-acl on FreeBSD.
49920         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49921         mask is implicitly added.
49922         * tests/test-file-has-acl.c: Include <signal.h>.
49923         (main): Terminate the test after 5 seconds.
49924         * modules/acl-tests (configure.ac): Check for alarm function.
49925
49926 2009-05-04  Bruno Haible  <bruno@clisp.org>
49927
49928         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49929         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49930         * modules/errno (configure.ac): Drop AC_REQUIRE.
49931         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49932         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49933
49934 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49935
49936         * modules/glob-tests: New module.
49937         * tests/test-glob.c: Add.
49938
49939 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49940
49941         * modules/fnmatch-tests: New module.
49942         * tests/test-fnmatch.c: Add.
49943
49944 2009-05-04  Eric Blake  <ebb9@byu.net>
49945
49946         maint: make the new no-submodule-changes rule VPATH-safe
49947         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49948
49949 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49950             Bruno Haible  <bruno@clisp.org>
49951
49952         acl: Fix infinite loop on FreeBSD.
49953         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49954         of return value from acl_get_entry.
49955         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49956         Likewise.
49957
49958 2009-05-03  Bruno Haible  <bruno@clisp.org>
49959
49960         * lib/acl-internal.h (acl_entries): Clarify return value.
49961         * lib/acl_entries.c (acl_entries): Likewise.
49962
49963 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49964
49965         Bug fix in acl module.
49966         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49967
49968 2009-05-03  Bruno Haible  <bruno@clisp.org>
49969
49970         Create gperf-generated file in the source dir, not in the build dir.
49971         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49972         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49973         * modules/unicase/locale-language (unicase/locale-languages.h):
49974         Likewise.
49975         * modules/unicase/special-casing (unicase/special-casing-table.h):
49976         Likewise.
49977         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49978         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49979         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49980         Reported by Ralf Wildenhues.
49981
49982 2009-05-03  Bruno Haible  <bruno@clisp.org>
49983
49984         * modules/fnmatch (Description, configure.ac): Taken from
49985         fnmatch-posix.
49986         * modules/fnmatch-posix: Turn into a symbolic reference to the
49987         'fnmatch' module, and deprecate.
49988         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49989
49990 2009-05-03  Bruno Haible  <bruno@clisp.org>
49991
49992         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49993         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49994         Reported by Ralf Wildenhues.
49995
49996 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49997
49998         * m4/fnmatch.m4: Fix fnmatch re-define.
49999
50000 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
50001
50002         priv-set: new module and tests; adapt write-any-file
50003         * lib/priv-set.c: New file.
50004         * lib/priv-set.h: New file.
50005         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
50006         * lib/write-any-file.c: Simplify by using priv-set module.
50007         * m4/priv-set.m4: New file.
50008         * modules/priv-set: New file.
50009         * modules/unlinkdir: Add dependency on priv-set module.
50010         * modules/write-any-file: Likewise.
50011
50012         Tests for module 'priv-set'.
50013         * modules/priv-set-tests: New file.
50014         * tests/test-priv-set.c: New file.
50015
50016 2009-05-03  Jim Meyering  <meyering@redhat.com>
50017             Bruno Haible  <bruno@clisp.org>
50018
50019         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
50020         use the converted UTF-8 variant of the name instead.
50021
50022 2009-05-03  Jim Meyering  <meyering@redhat.com>
50023
50024         tests: tighten some getdate tests
50025         * tests/test-getdate.c (main): Tighten tests: require equality,
50026         not just greater than.  Set TZ envvar to UTC0.
50027
50028 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
50029
50030         getdate: correctly interpret "next monday" when run on a Monday
50031         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
50032         that e.g., "next tues" (when run on a tuesday) results in a date
50033         that is one week in the future, and not today's date.
50034         I.e., add a week when the wday is the same as the current one.
50035         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
50036         and earlier by Martin Bernreuther and Jan Minář.
50037         * tests/test-getdate.c (main): Check that "next DAY" is always in
50038         the future and that "last DAY" is always in the past.
50039
50040 2009-05-02  Jim Meyering  <meyering@redhat.com>
50041
50042         build: ensure that a release build fails when a submodule is unclean
50043         * top/maint.mk (no-submodule-changes): New rule.
50044         (alpha beta major): Depend on it.
50045
50046 2009-05-02  Bruno Haible  <bruno@clisp.org>
50047
50048         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
50049         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
50050         shell variable gl_fnmatch_required to detect which variant is
50051         requested.
50052         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
50053         gl_FUNC_FNMATCH_POSIX.
50054         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
50055         exclude fnmatch-posix.
50056
50057 2009-05-02  Bruno Haible  <bruno@clisp.org>
50058
50059         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
50060         * modules/mbsrtowcs (License): Change to LGPLv2+.
50061         * modules/strnlen1 (License): Likewise.
50062         Reported by Simon Josefsson.
50063
50064 2009-05-02  Bruno Haible  <bruno@clisp.org>
50065
50066         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
50067         "cross".
50068         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
50069         gnulib-tool was called with option --source-base=lib.
50070
50071 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50072
50073         Use automake *-local hooks without commands, for extensibility.
50074         * modules/localcharset (Makefile.am): Rename install-exec-local
50075         rule to install-exec-localcharset, and make it a prerequisite of
50076         install-exec-local.  Likewise, rename the uninstall-local rule to
50077         uninstall-localcharset, and make it a prerequisite of the former.
50078
50079 2009-05-01  Bruno Haible  <bruno@clisp.org>
50080
50081         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
50082         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
50083         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
50084         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
50085         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
50086         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
50087         m4/locale-zh.m4, m4/codeset.m4.
50088
50089         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
50090         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
50091         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
50092         m4/locale-zh.m4.
50093
50094         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
50095         REPLACE_WCRTOMB if mbstate_t must be replaced.
50096         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
50097         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
50098
50099 2009-05-01  Bruno Haible  <bruno@clisp.org>
50100
50101         Avoid compiler warnings when redefining macros defined by <libintl.h>.
50102         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
50103         dngettext, dcngettext, textdomain, bindtextdomain,
50104         bind_textdomain_codeset): Undefine before redefining.
50105
50106 2009-04-30  Bruno Haible  <bruno@clisp.org>
50107
50108         Fix bug introduced on 2009-04-25.
50109         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
50110         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
50111         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
50112         is defined.
50113         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
50114         is defined.
50115         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
50116         is defined.
50117         Reported by Elbert_Pol <elbert.pol@gmail.com>.
50118
50119 2009-04-28  Bruno Haible  <bruno@clisp.org>
50120
50121         Comment tweaks.
50122         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
50123         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
50124         * lib/unicase.h (u*_casexfrm): Likewise.
50125         Reported by Paolo Bonzini.
50126
50127 2009-04-28  Bruno Haible  <bruno@clisp.org>
50128
50129         Fix a compilation error.
50130         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
50131         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50132         Reported by Jim Meyering.
50133
50134 2009-04-27  Bruno Haible  <bruno@clisp.org>
50135
50136         New module 'libunistring'.
50137         * modules/libunistring: New file.
50138         * m4/libunistring.m4: New file.
50139         * MODULES.html.sh (Unicode string functions): Add it.
50140
50141 2009-04-27  Eric Blake  <ebb9@byu.net>
50142
50143         maint.mk: allow package-specific header to provide <config.h>
50144         * top/maint.mk (sc_require_config_h): New variable.
50145         (sc_require_config_h, sc_require_config_h_first): Use it.
50146
50147 2009-04-27  Simon Josefsson  <simon@josefsson.org>
50148
50149         * top/maint.mk (sc_avoid_if_before_free): Except
50150         useless-if-before-free script.
50151
50152 2009-04-27  Eric Blake  <ebb9@byu.net>
50153
50154         maintainer-makefile: depend on all required helper scripts
50155         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
50156         useless-if-before-free.
50157         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
50158         version, rather than assuming gnulib checkout is available.
50159         Reported by Simen Josefsson.
50160
50161 2009-04-26  Bruno Haible  <bruno@clisp.org>
50162
50163         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
50164         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
50165         "../" or "..".
50166
50167 2009-04-26  Bruno Haible  <bruno@clisp.org>
50168
50169         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
50170         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
50171         AC_LIB_HAVE_LINKFLAGS.
50172
50173 2009-04-26  Bruno Haible  <bruno@clisp.org>
50174
50175         Simplify calling convention of u*_conv_from_encoding.
50176         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
50177         u32_conv_from_encoding): Expect a resultbuf argument and return the
50178         result directly as a pointer.
50179         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
50180         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
50181         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
50182         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
50183         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
50184         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50185         Update.
50186         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
50187         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
50188         * lib/vasnprintf.c (VASNPRINTF): Update.
50189         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
50190         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
50191         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
50192         * NEWS: Mention the change.
50193
50194 2009-04-26  Bruno Haible  <bruno@clisp.org>
50195
50196         Simplify calling convention of u*_conv_to_encoding.
50197         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50198         u32_conv_to_encoding): Expect a resultbuf argument and return the
50199         result directly as a pointer.
50200         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50201         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
50202         freeing scaled_offsets if mem_iconveha failed.
50203         * lib/unicase/u-casexfrm.h (FUNC): Update.
50204         * lib/uninorm/u-normxfrm.h (FUNC): Update.
50205         * lib/vasnprintf.c (VASNPRINTF): Update.
50206         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
50207         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
50208         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
50209         * NEWS: Mention the change.
50210
50211 2009-04-26  Bruno Haible  <bruno@clisp.org>
50212
50213         Avoid test failures on AIX and OSF/1.
50214         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
50215         malloc(0).
50216         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50217         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50218         Likewise.
50219         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
50220         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
50221         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
50222         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
50223         * doc/posix-functions/malloc.texi: Document the portability problem
50224         related to malloc(0).
50225
50226 2009-04-26  Bruno Haible  <bruno@clisp.org>
50227
50228         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
50229         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
50230         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
50231
50232 2009-04-25  Bruno Haible  <bruno@clisp.org>
50233
50234         Avoid link error when creating a namespace clean library.
50235         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
50236         as macro with arguments if already defined as an alias.
50237         * lib/signbitf.c (gl_signbitf): Don't undefine.
50238         * lib/signbitd.c (gl_signbitd): Don't undefine.
50239         * lib/signbitl.c (gl_signbitl): Don't undefine.
50240
50241 2009-04-25  Jim Meyering  <meyering@redhat.com>
50242
50243         vc-list-files: fix another quoting bug
50244         * build-aux/vc-list-files: Avoid sed backslash expansion
50245         of pathological directory names.
50246
50247 2009-04-25  Eric Blake  <ebb9@byu.net>
50248
50249         vc-list-files: fix shell quoting error
50250         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
50251         timestamp.
50252
50253 2009-04-25  Jim Meyering  <meyering@redhat.com>
50254
50255         vc-list-files: restore lost functionality with subdir argument
50256         * build-aux/vc-list-files: When given a non-"." sub-directory
50257         argument, substitute the $dir/ prefix back onto each resulting name.
50258         Otherwise, coreutils' root_tests check would fail.
50259
50260 2009-04-24  Eric Blake  <ebb9@byu.net>
50261
50262         vc-list-files: ignore git symlinks
50263         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
50264         than ls-files, to ignore git symlinks.
50265
50266         maint.mk: import improvements from m4
50267         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
50268         (move_if_change): Delete unused macro.
50269         (news-date-check, vc-diff-check): Support VPATH builds.
50270         (announcement): Likewise.  Split --bootstrap-tools list...
50271         (boostrap-tools): ...into separate list, which can be overridden
50272         in cfg.mk.
50273         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
50274         requiring dependency on useless-if-before-free module.
50275         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
50276         Support VPATH builds.
50277
50278 2009-04-24  Jim Meyering  <meyering@redhat.com>
50279
50280         maint.mk: remove coreutils-specific rules and variables
50281         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
50282         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
50283         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
50284
50285         maint.mk: remove obsolete rule
50286         * top/maint.mk (rel-check): Remove rule.
50287         (WGET, WGETFLAGS): Remove now-unused variables.
50288
50289 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50290
50291         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
50292         consistency.
50293
50294         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
50295         '$(PATH_SEPARATOR)' instead of ':'.
50296
50297 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50298
50299         * lib/getopt1.c (main): Use 'const' for static array.
50300
50301 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50302
50303         * top/maint.mk: Sync with coreutils.
50304         * NEWS: Explain incompatibilities.
50305
50306 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50307             Bruno Haible  <bruno@clisp.org>
50308
50309         Fix cross-compilation results.
50310         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
50311         statement, as third argument of AC_TRY_RUN.
50312         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50313         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50314         Likewise.
50315         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50316         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
50317         Likewise.
50318         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50319         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
50320         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
50321
50322 2009-04-20  Bruno Haible  <bruno@clisp.org>
50323
50324         Avoid test failure on mingw.
50325         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
50326
50327 2009-04-20  Bruno Haible  <bruno@clisp.org>
50328
50329         Avoid compilation error on mingw.
50330         * modules/localename-tests (Depends-on): Add locale.
50331
50332 2009-04-19  Bruno Haible  <bruno@clisp.org>
50333
50334         Support for building a shared library on Windows platforms.
50335         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
50336         (main): Test the presence of UNINORM_NFC here.
50337         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
50338         (main): Test the presence of UNINORM_NFD here.
50339         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
50340         (main): Test the presence of UNINORM_NFKC here.
50341         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
50342         (main): Test the presence of UNINORM_NFKD here.
50343
50344 2009-04-19  Bruno Haible  <bruno@clisp.org>
50345
50346         Avoid a compiler warning.
50347         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
50348         Change type of variable 'sequence'.
50349
50350 2009-04-19  Bruno Haible  <bruno@clisp.org>
50351
50352         * modules/configmake (Makefile.am): When the contents of configmake.h
50353         does not change, arrange to preserve its modification time.
50354
50355 2009-04-17  Simon Josefsson  <simon@josefsson.org>
50356
50357         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
50358         gettext domain.
50359
50360 2009-04-16  Jim Meyering  <meyering@redhat.com>
50361
50362         useless-if-before-free: improve conversion code
50363         * build-aux/useless-if-before-free: Adjust code-in-comment to match
50364         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
50365
50366 2009-04-14  Bruno Haible  <bruno@clisp.org>
50367
50368         * modules/fcntl (Depends-on): Add extensions.
50369         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
50370
50371 2009-04-12  Ben Pfaff  <blp@gnu.org>
50372
50373         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
50374         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
50375
50376 2009-03-20  Ben Pfaff  <blp@gnu.org>
50377
50378         Make rename replace existing destinations on Windows.
50379         * m4/rename.m4: Add test for Mingw.
50380         * lib/rename.c: Add rename replacement that uses MoveFileEx with
50381         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
50382         * doc/posix-functions/rename.texi: Document.
50383
50384 2009-04-10  Bruno Haible  <bruno@clisp.org>
50385
50386         New include file "iconveh.h".
50387         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
50388         * lib/striconveh.h: Include it.
50389         (enum iconv_ilseq_handler): Remove definition.
50390         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
50391         striconveh.h.
50392         * lib/striconveha.c: Include striconveh.h.
50393         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
50394         * modules/striconveh (Files): Add lib/iconveh.h.
50395         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
50396         lib/striconveh.h.
50397
50398 2009-04-10  Bruno Haible  <bruno@clisp.org>
50399
50400         * lib/uniconv.h: Update comment.
50401
50402 2009-04-10  Bruno Haible  <bruno@clisp.org>
50403
50404         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
50405         always.
50406         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50407         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50408         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50409         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
50410         "unistring-notinline.h", so that the function gets defined always.
50411         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50412         * lib/unistr/u8-uctomb.c: Likewise.
50413         * lib/unistr/u16-mbtouc.c: Likewise.
50414         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50415         * lib/unistr/u16-uctomb.c: Likewise.
50416         * lib/unistr/u32-mbtouc.c: Likewise.
50417         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50418         * lib/unistr/u32-uctomb.c: Likewise.
50419
50420 2009-04-10  Bruno Haible  <bruno@clisp.org>
50421
50422         Mark 'utime' obsolete.
50423         * modules/utime (Status, Notice): New sections.
50424         Suggested by Jim Meyering.
50425
50426         Fix cross-compile guess for utime test.
50427         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
50428         autoconf.
50429         * doc/posix-functions/utime.texi: Give more precisions.
50430         Reported by Jan <ipif@ymail.com>.
50431
50432 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
50433
50434         filevercmp: correct today's change
50435         * lib/filevercmp.c: Also handle coreutils' test inputs.
50436         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
50437
50438         Fix regression in 'filevercmp' module. Thanks Sven Joachim
50439         for reporting it.
50440         * lib/filevercmp.c: Special handle for "", "." and "..".
50441         * tests/test-filevercmp.c: Enlarge the set suite.
50442
50443 2009-04-07  Jim Meyering  <meyering@redhat.com>
50444
50445         useless-if-before-free: show how to remove braced useless free, too
50446         * build-aux/useless-if-before-free: still only in a comment, though.
50447
50448 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
50449
50450         maint.mk: import changes to syntax-check macros from coreutils
50451         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
50452         Use them in the relevant macros.
50453
50454 2009-04-06  Bruno Haible  <bruno@clisp.org>
50455
50456         Fix unportable use of bit-fields.
50457         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
50458         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
50459         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
50460
50461 2009-04-06  Bruno Haible  <bruno@clisp.org>
50462
50463         Avoid test failures on AIX and OSF/1.
50464         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
50465         that malloc(0) = NULL.
50466         * tests/unicase/test-u8-tolower.c (check): Likewise.
50467         * tests/unicase/test-u8-totitle.c (check): Likewise.
50468         * tests/unicase/test-u8-toupper.c (check): Likewise.
50469         * tests/unicase/test-u16-casefold.c (check): Likewise.
50470         * tests/unicase/test-u16-tolower.c (check): Likewise.
50471         * tests/unicase/test-u16-totitle.c (check): Likewise.
50472         * tests/unicase/test-u16-toupper.c (check): Likewise.
50473         * tests/unicase/test-u32-casefold.c (check): Likewise.
50474         * tests/unicase/test-u32-tolower.c (check): Likewise.
50475         * tests/unicase/test-u32-totitle.c (check): Likewise.
50476         * tests/unicase/test-u32-toupper.c (check): Likewise.
50477         * tests/uninorm/test-u8-nfc.c (check): Likewise.
50478         * tests/uninorm/test-u8-nfd.c (check): Likewise.
50479         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
50480         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
50481         * tests/uninorm/test-u16-nfc.c (check): Likewise.
50482         * tests/uninorm/test-u16-nfd.c (check): Likewise.
50483         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
50484         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
50485         * tests/uninorm/test-u32-nfc.c (check): Likewise.
50486         * tests/uninorm/test-u32-nfd.c (check): Likewise.
50487         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
50488         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
50489
50490 2009-04-05  Bruno Haible  <bruno@clisp.org>
50491
50492         Work around an autoconf limitation.
50493         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
50494         comment line if it would be longer than 3 KB.
50495
50496 2009-04-05  Bruno Haible  <bruno@clisp.org>
50497
50498         Avoid test failure with libiconv-1.13.
50499         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
50500         of the expected test results.
50501
50502 2009-04-05  Bruno Haible  <bruno@clisp.org>
50503
50504         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
50505         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50506         that it should be installed.
50507
50508 2009-04-05  Bruno Haible  <bruno@clisp.org>
50509
50510         * gnulib-tool: New option --copy-file.
50511         (func_usage): Document it.
50512         (func_dest_tmpfilename): Moved out of func_import.
50513         (func_add_file, func_update_file): New functions, extracted from
50514         func_import.
50515         (func_import): Update.
50516
50517 2009-04-05  Karl Berry  <karl@gnu.org>
50518
50519         * README: prominently mention gnulib-tool.
50520         Rearrange sections so getting the code is near the top.
50521
50522 2009-04-05  Bruno Haible  <bruno@clisp.org>
50523
50524         * lib/unicase.h: Mention u*_cmp2.
50525         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50526         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50527         * lib/unicase/ulc-casecmp.c: Likewise.
50528         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50529         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50530         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50531         unistr/u8-cmp.
50532         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50533         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50534         unistr/u16-cmp.
50535         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50536         unistr/u32-cmp.
50537
50538         * lib/uninorm.h: Mention u*_cmp2.
50539         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50540         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50541         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50542         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50543         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50544         unistr/u8-cmp.
50545         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50546         unistr/u16-cmp.
50547         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50548         unistr/u32-cmp.
50549
50550         New module 'unistr/u32-cmp2'.
50551         * lib/unistr/u32-cmp2.c: New file.
50552         * modules/unistr/u32-cmp2: New file.
50553
50554         New module 'unistr/u16-cmp2'.
50555         * lib/unistr/u16-cmp2.c: New file.
50556         * modules/unistr/u16-cmp2: New file.
50557
50558         New module 'unistr/u8-cmp2'.
50559         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50560         * lib/unistr/u8-cmp2.c: New file.
50561         * lib/unistr/u-cmp2.h: New file.
50562         * modules/unistr/u8-cmp2: New file.
50563
50564 2009-04-05  Bruno Haible  <bruno@clisp.org>
50565
50566         * lib/unictype.h (uc_property_is_valid): New macro.
50567         * tests/unictype/test-pr_byname.c (main): Use it.
50568
50569         * lib/unistr.h: Doc fixes.
50570         * lib/uniconv.h: Doc fixes.
50571         * lib/unictype.h: Doc fixes.
50572
50573 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50574
50575         Port coreutils 7.2 to Solaris 8.
50576
50577         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50578         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50579         for Solaris 8.  This is a bit of a hack, as it means it's the
50580         caller's responsibility to add -lnsl if needed, but most likely it
50581         won't be needed since only getaddrinfo uses this and getaddrinfo
50582         isn't needed on Solaris 8.
50583
50584         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50585         problem to Solaris 8 encountered with coreutils 7.2, which
50586         resulted in a message "fnmatch.c:292: warning: passing argument 4
50587         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50588         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50589
50590 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50591
50592         * m4/ld-version-script.m4: Add FIXME comment.
50593
50594 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50595
50596         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50597         SOVERSION variable.
50598
50599 2009-04-02  Bruno Haible  <bruno@clisp.org>
50600
50601         * Makefile (info, html, dvi, pdf): Combine the rules.
50602         Suggested by Jim Meyering.
50603
50604 2009-04-01  Bruno Haible  <bruno@clisp.org>
50605
50606         * Makefile (info, html, dvi, pdf): New targets.
50607         Reported by Reuben Thomas <rrt@sc3d.org>.
50608
50609 2009-04-01  Bruno Haible  <bruno@clisp.org>
50610
50611         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50612         can be put into PATH.
50613         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50614
50615 2009-04-01  Bruno Haible  <bruno@clisp.org>
50616
50617         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50618
50619 2009-04-01  Bruno Haible  <bruno@clisp.org>
50620
50621         Rename module 'visibility'.
50622         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50623         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50624         * doc/gnulib.texi: Update.
50625         * MODULES.html.sh (Misc): Update.
50626         * NEWS: Mention the change.
50627
50628 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50629
50630         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50631         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50632         Eric Blake <ebb9@byu.net> for review.
50633         * MODULES.html.sh: Add lib-msvc-compat.
50634         * doc/gnulib.texi: Link to new section.
50635         * m4/ld-output-def.m4: New file.
50636         * doc/ld-output-def.texi: New file.
50637
50638 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50639
50640         Rename ld-version-script to lib-symbol-versions.  Suggested by
50641         Bruno Haible <bruno@clisp.org>.
50642         * modules/ld-version-script: Renamed to lib-symbol-versions.
50643         * doc/ld-version-script.texi: Fix module name.
50644         * MODULES.html.sh: Add lib-symbol-versions.
50645
50646 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50647
50648         * modules/u64-tests: New file.
50649         * tests/test-u64.c: New file.
50650
50651 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50652
50653         * MODULES.html.sh: Mention u64.
50654         * modules/u64: New module.
50655         * modules/crypto/sha512: Depend on u64 module instead of providing
50656         u64.h.
50657
50658 2009-03-27  Eric Blake  <ebb9@byu.net>
50659
50660         test-strerror: make debugging EAI_SYSTEM easier
50661         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50662         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50663         failure was EAI_SYSTEM.
50664
50665 2009-03-25  Bruno Haible  <bruno@clisp.org>
50666
50667         Fix a problem with --enable-relocatable on Solaris 7.
50668         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50669         since 2008-02-24.
50670
50671 2009-03-25  Eric Blake  <ebb9@byu.net>
50672
50673         test-sockets: avoid gcc warning
50674         * tests/test-sockets.c (main): Silence compiler warning.
50675
50676 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50677
50678         New modules nproc, pthread, contributed by Glen Lenker.
50679
50680         * MODULES.html.sh: Add pthread, nproc.
50681         * lib/nproc.c: New file.
50682         * lib/nproc.h: New file.
50683         * lib/pthread.in.h: New file.
50684         * m4/pthread.m4: New file.
50685         * modules/nproc: New file.
50686         * modules/pthread: New file.
50687
50688 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50689
50690         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50691         New variable.
50692
50693 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50694
50695         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50696         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50697         * tests/test-filevercmp.c: Add tests for backup suffixes.
50698
50699 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50700
50701         * modules/stdlib (Depends-on): Add stdint, needed when defining
50702         struct random_data on, for example, HP-UX 10.20.  Reported by
50703         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50704
50705 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50706
50707         * lib/readline.c (readline): Call fflush on stdout after printing
50708         prompt.
50709
50710 2009-03-20  Bruno Haible  <bruno@clisp.org>
50711
50712         Remove dependency from 'close' module to -lws2_32 on native Windows.
50713         * lib/close-hook.h: New file.
50714         * lib/close-hook.c: New file.
50715         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50716         w32sock.h.
50717         (_gl_close_fd_maybe_socket): Remove function.
50718         (rpl_close): Invoke execute_all_close_hooks instead of
50719         _gl_close_fd_maybe_socket.
50720         * lib/sockets.c: Include close-hook.h, w32sock.h.
50721         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50722         (close_sockets_hook): New variable.
50723         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50724         (gl_sockets_cleanup): Unregister it.
50725         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50726         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50727         * modules/close-hook: New file.
50728         * modules/close (Files): Remove lib/w32sock.h.
50729         (Depends-on): Add close-hook.
50730         (Link): Remove section.
50731         * modules/sockets (Files): Add lib/w32sock.h.
50732         (Depends-on): Add close-hook.
50733         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50734         invocation.
50735         * NEWS: Mention that LIB_CLOSE is gone.
50736
50737 2009-03-23  Eric Blake  <ebb9@byu.net>
50738
50739         signal-tests: test previous patch
50740         * tests/test-signal.c: New file.
50741         * modules/signal-tests: Likewise.
50742
50743         signal.h: always support 'volatile sig_atomic_t'
50744         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50745         (gl_SIGNAL_H_DEFAULTS): Add a default.
50746         * modules/signal (Makefile.am): Substitute if needed.
50747         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50748         users can blindly add volatile.
50749         * doc/posix-headers/signal.texi (signal.h): Document it.
50750         Reported by Matthew Woehlke.
50751
50752 2009-03-23  Jim Meyering  <meyering@redhat.com>
50753
50754         pathmax: PATH_MAX: use pathconf only when available
50755         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50756         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50757         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50758         This avoids a link failure in a PSP cross-compilation environment
50759         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50760
50761         * lib/vasnprintf.c (divide): Fix typo in comment.
50762
50763 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50764
50765         * gnulib-tool (func_filter_filelist): Fix comment.
50766
50767 2009-03-20  Bruno Haible  <bruno@clisp.org>
50768
50769         Make sockets.h self-contained.
50770         * lib/sockets.c: Include sockets.h first.
50771         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50772
50773 2009-03-19  Eric Blake  <ebb9@byu.net>
50774
50775         doc: mention more functions added in cygwin 1.7.0
50776         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50777         addition.
50778         * doc/posix-functions/log2f.texi: Likewise.
50779
50780 2009-03-19  Jim Meyering  <meyering@redhat.com>
50781
50782         fsusage: avoid syntax error due to statement-before-declaration
50783         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50784         after all declarations.  Reported by Matthew Woehlke in
50785         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50786
50787 2009-03-18  Eric Blake  <ebb9@byu.net>
50788
50789         build-aux/compile: sync from automake
50790         * build-aux/compile: New file, from automake.
50791         * config/srclist.txt: Mention build-aux/compile.
50792
50793 2009-03-17  Bruno Haible  <bruno@clisp.org>
50794
50795         * lib/git-merge-changelog.c: Fix typo in comment.
50796         Reported by Reuben Thomas <rrt@sc3d.org>.
50797
50798 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50799
50800         * m4/regex.m4: update and improve help for
50801         --without-included-regex.
50802
50803 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50804
50805         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50806         failure on missing include files.
50807
50808 2009-03-17  Eric Blake  <ebb9@byu.net>
50809
50810         doc: mention more functions added in cygwin 1.7.0
50811         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50812         addition.
50813         * doc/posix-functions/fwscanf.texi: Likewise.
50814         * doc/posix-functions/swprintf.texi: Likewise.
50815         * doc/posix-functions/swscanf.texi: Likewise.
50816         * doc/posix-functions/vfwprintf.texi: Likewise.
50817         * doc/posix-functions/vfwscanf.texi: Likewise.
50818         * doc/posix-functions/vswprintf.texi: Likewise.
50819         * doc/posix-functions/vswscanf.texi: Likewise.
50820         * doc/posix-functions/vwprintf.texi: Likewise.
50821         * doc/posix-functions/vwscanf.texi: Likewise.
50822         * doc/posix-functions/wcscasecmp.texi: Likewise.
50823         * doc/posix-functions/wcsdup.texi: Likewise.
50824         * doc/posix-functions/wcsftime.texi: Likewise.
50825         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50826         * doc/posix-functions/wprintf.texi: Likewise.
50827         * doc/posix-functions/wscanf.texi: Likewise.
50828         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50829
50830 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50831
50832         maint.mk: really add $(AM_MAKEFLAGS)
50833         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50834         was inadvertently omitted in the last commit.
50835         Spotted by Bruno Haible.
50836
50837         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50838         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50839         $(AM_MAKEFLAGS)' rather than plain `make'.
50840
50841         gnulib-tool: execute $MAKE not make
50842         * gnulib-tool: Default $MAKE to 'make'.
50843         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50844         than make.  Initialize $MAKE in the do-autobuild script.
50845
50846         gnulib-tool: use $MAKE not make in generated files
50847         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50848         make, in generated files.  Initialize $MAKE in the do-autobuild
50849         script.
50850
50851         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50852
50853         GNUmakefile: disable parallelism only for multiple, recursive targets
50854         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50855         additions in the Makefile.
50856         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50857         by Automake.
50858         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50859         are listed on the command line and at least one of them is
50860         listed in $(ALL_RECURSIVE_TARGETS).
50861
50862 2009-03-14  Bruno Haible  <bruno@clisp.org>
50863
50864         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50865         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50866         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50867         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50868         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50869         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50870         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50871         unistr/u8-uctomb.
50872         * modules/unistr/u8-strchr (Depends-on): Likewise.
50873         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50874         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50875         unistr/u16-uctomb.
50876         * modules/unistr/u16-strchr (Depends-on): Likewise.
50877         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50878
50879 2009-03-12  Bruno Haible  <bruno@clisp.org>
50880
50881         Work around select() bug on Interix 3.5.
50882         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50883         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50884         * m4/select.m4: New file.
50885         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50886         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50887         * modules/select (Files): Add m4/select.m4.
50888         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50889         * modules/nanosleep (Depends-on): Add select.
50890         * modules/poll (Depends-on): Likewise.
50891         * doc/posix-functions/select.texi: Mention the Interix bug.
50892         Reported by Markus Duft <mduft@gentoo.org>.
50893
50894         * lib/select.c: Renamed from lib/winsock-select.c.
50895         * modules/select (Files): Add lib/select.c, remove
50896         lib/winsock-select.c.
50897         (configure.ac): Update.
50898
50899 2009-03-12  Jim Meyering  <meyering@redhat.com>
50900
50901         avoid gcc warnings about unused macro definitions
50902         * lib/readtokens.c (STREQ): Remove unused definition.
50903         * lib/xmalloc.c (SIZE_MAX): Likewise.
50904         * lib/openat-die.c (N_): Likewise.
50905         * lib/mountlist.c (SIZE_MAX): Remove definition.
50906         Instead, include <stdint.h>.
50907         * lib/readutmp.c: Likewise.
50908         * modules/readutmp (Depends-on): Add stdint.
50909         * modules/mountlist (Depends-on): Add stdint.
50910         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50911
50912 2009-03-10  Bruno Haible  <bruno@clisp.org>
50913
50914         Tests for module 'mbmemcasecoll'.
50915         * modules/mbmemcasecoll-tests: New file.
50916         * tests/test-mbmemcasecoll1.sh: New file.
50917         * tests/test-mbmemcasecoll2.sh: New file.
50918         * tests/test-mbmemcasecoll3.sh: New file.
50919         * tests/test-mbmemcasecoll.c: New file.
50920
50921         New module 'mbmemcasecoll'.
50922         * lib/mbmemcasecoll.h: New file.
50923         * lib/mbmemcasecoll.c: New file.
50924         * modules/mbmemcasecoll: New file.
50925
50926         * tests/test-mbmemcasecmp.h: New file, extracted from
50927         tests/test-mbmemcasecmp.c.
50928         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50929         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50930         (main): Update.
50931         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50932
50933 2009-03-09  Bruno Haible  <bruno@clisp.org>
50934
50935         Tests for module 'mbmemcasecmp'.
50936         * modules/mbmemcasecmp-tests: New file.
50937         * tests/test-mbmemcasecmp1.sh: New file.
50938         * tests/test-mbmemcasecmp2.sh: New file.
50939         * tests/test-mbmemcasecmp3.sh: New file.
50940         * tests/test-mbmemcasecmp.c: New file.
50941
50942         New module 'mbmemcasecmp'.
50943         * lib/mbmemcasecmp.h: New file.
50944         * lib/mbmemcasecmp.c: New file.
50945         * modules/mbmemcasecmp: New file.
50946
50947 2009-03-09  Bruno Haible  <bruno@clisp.org>
50948
50949         Tests for module 'unicase/ulc-casecoll'.
50950         * modules/unicase/ulc-casecoll-tests: New file.
50951         * tests/unicase/test-ulc-casecoll1.sh: New file.
50952         * tests/unicase/test-ulc-casecoll2.sh: New file.
50953         * tests/unicase/test-ulc-casecoll.c: New file.
50954
50955         New module 'unicase/ulc-casecoll'.
50956         * lib/unicase.h (ulc_casecoll): New declaration.
50957         * lib/unicase/ulc-casecoll.c: New file.
50958         * modules/unicase/ulc-casecoll: New file.
50959
50960         New module 'unicase/ulc-casexfrm'.
50961         * lib/unicase.h (ulc_casexfrm): New declaration.
50962         * lib/unicase/ulc-casexfrm.c: New file.
50963         * modules/unicase/ulc-casexfrm: New file.
50964
50965 2009-03-09  Bruno Haible  <bruno@clisp.org>
50966
50967         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50968         invocations.
50969
50970         * m4/mbscasecmp.m4: Remove file.
50971         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50972         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50973
50974         * m4/mbscasestr.m4: Remove file.
50975         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50976         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50977
50978         * m4/mbschr.m4: Remove file.
50979         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50980         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50981
50982         * m4/mbscspn.m4: Remove file.
50983         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50984         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50985
50986         * m4/mbslen.m4: Remove file.
50987         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50988         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50989
50990         * m4/mbsncasecmp.m4: Remove file.
50991         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50992         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50993
50994         * m4/mbsnlen.m4: Remove file.
50995         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50996         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50997
50998         * m4/mbspbrk.m4: Remove file.
50999         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
51000         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
51001
51002         * m4/mbspcasecmp.m4: Remove file.
51003         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
51004         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
51005
51006         * m4/mbsrchr.m4: Remove file.
51007         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
51008         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
51009
51010         * m4/mbssep.m4: Remove file.
51011         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
51012         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
51013
51014         * m4/mbsspn.m4: Remove file.
51015         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
51016         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
51017
51018         * m4/mbsstr.m4: Remove file.
51019         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
51020         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
51021
51022         * m4/mbstok_r.m4: Remove file.
51023         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
51024         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
51025
51026         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
51027
51028         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
51029         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
51030
51031         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
51032
51033 2009-03-08  Bruno Haible  <bruno@clisp.org>
51034
51035         Tests for module 'unicase/ulc-casecmp'.
51036         * modules/unicase/ulc-casecmp-tests: New file.
51037         * tests/unicase/test-ulc-casecmp1.sh: New file.
51038         * tests/unicase/test-ulc-casecmp2.sh: New file.
51039         * tests/unicase/test-ulc-casecmp.c: New file.
51040
51041         New module 'unicase/ulc-casecmp'.
51042         * lib/unicase.h (ulc_casecmp): New declaration.
51043         * lib/unicase/ulc-casecmp.c: New file.
51044         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
51045         'const SRC_UNIT *'.
51046         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
51047         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
51048         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
51049         * modules/unicase/ulc-casecmp: New file.
51050
51051         Tests for module 'unicase/u32-is-cased'.
51052         * modules/unicase/u32-is-cased-tests: New file.
51053         * tests/unicase/test-u32-is-cased.c: New file.
51054
51055         Tests for module 'unicase/u16-is-cased'.
51056         * modules/unicase/u16-is-cased-tests: New file.
51057         * tests/unicase/test-u16-is-cased.c: New file.
51058
51059         Tests for module 'unicase/u8-is-cased'.
51060         * modules/unicase/u8-is-cased-tests: New file.
51061         * tests/unicase/test-u8-is-cased.c: New file.
51062         * tests/unicase/test-is-cased.h: New file.
51063
51064         New module 'unicase/u32-is-cased'.
51065         * lib/unicase/u32-is-cased.c: New file.
51066         * modules/unicase/u32-is-cased: New file.
51067
51068         New module 'unicase/u16-is-cased'.
51069         * lib/unicase/u16-is-cased.c: New file.
51070         * modules/unicase/u16-is-cased: New file.
51071
51072         New module 'unicase/u8-is-cased'.
51073         * lib/unicase/u8-is-cased.c: New file.
51074         * lib/unicase/u-is-cased.h: New file.
51075         * modules/unicase/u8-is-cased: New file.
51076
51077         Tests for module 'unicase/u32-is-casefolded'.
51078         * modules/unicase/u32-is-casefolded-tests: New file.
51079         * tests/unicase/test-u32-is-casefolded.c: New file.
51080
51081         Tests for module 'unicase/u16-is-casefolded'.
51082         * modules/unicase/u16-is-casefolded-tests: New file.
51083         * tests/unicase/test-u16-is-casefolded.c: New file.
51084
51085         Tests for module 'unicase/u8-is-casefolded'.
51086         * modules/unicase/u8-is-casefolded-tests: New file.
51087         * tests/unicase/test-u8-is-casefolded.c: New file.
51088         * tests/unicase/test-is-casefolded.h: New file.
51089
51090         New module 'unicase/u32-is-casefolded'.
51091         * lib/unicase/u32-is-casefolded.c: New file.
51092         * modules/unicase/u32-is-casefolded: New file.
51093
51094         New module 'unicase/u16-is-casefolded'.
51095         * lib/unicase/u16-is-casefolded.c: New file.
51096         * modules/unicase/u16-is-casefolded: New file.
51097
51098         New module 'unicase/u8-is-casefolded'.
51099         * lib/unicase/u8-is-casefolded.c: New file.
51100         * modules/unicase/u8-is-casefolded: New file.
51101
51102         Tests for module 'unicase/u32-is-titlecase'.
51103         * modules/unicase/u32-is-titlecase-tests: New file.
51104         * tests/unicase/test-u32-is-titlecase.c: New file.
51105
51106         Tests for module 'unicase/u16-is-titlecase'.
51107         * modules/unicase/u16-is-titlecase-tests: New file.
51108         * tests/unicase/test-u16-is-titlecase.c: New file.
51109
51110         Tests for module 'unicase/u8-is-titlecase'.
51111         * modules/unicase/u8-is-titlecase-tests: New file.
51112         * tests/unicase/test-u8-is-titlecase.c: New file.
51113         * tests/unicase/test-is-titlecase.h: New file.
51114
51115         New module 'unicase/u32-is-titlecase'.
51116         * lib/unicase/u32-is-titlecase.c: New file.
51117         * modules/unicase/u32-is-titlecase: New file.
51118
51119         New module 'unicase/u16-is-titlecase'.
51120         * lib/unicase/u16-is-titlecase.c: New file.
51121         * modules/unicase/u16-is-titlecase: New file.
51122
51123         New module 'unicase/u8-is-titlecase'.
51124         * lib/unicase/u8-is-titlecase.c: New file.
51125         * modules/unicase/u8-is-titlecase: New file.
51126
51127         Tests for module 'unicase/u32-is-lowercase'.
51128         * modules/unicase/u32-is-lowercase-tests: New file.
51129         * tests/unicase/test-u32-is-lowercase.c: New file.
51130
51131         Tests for module 'unicase/u16-is-lowercase'.
51132         * modules/unicase/u16-is-lowercase-tests: New file.
51133         * tests/unicase/test-u16-is-lowercase.c: New file.
51134
51135         Tests for module 'unicase/u8-is-lowercase'.
51136         * modules/unicase/u8-is-lowercase-tests: New file.
51137         * tests/unicase/test-u8-is-lowercase.c: New file.
51138         * tests/unicase/test-is-lowercase.h: New file.
51139
51140         New module 'unicase/u32-is-lowercase'.
51141         * lib/unicase/u32-is-lowercase.c: New file.
51142         * modules/unicase/u32-is-lowercase: New file.
51143
51144         New module 'unicase/u16-is-lowercase'.
51145         * lib/unicase/u16-is-lowercase.c: New file.
51146         * modules/unicase/u16-is-lowercase: New file.
51147
51148         New module 'unicase/u8-is-lowercase'.
51149         * lib/unicase/u8-is-lowercase.c: New file.
51150         * modules/unicase/u8-is-lowercase: New file.
51151
51152         Tests for module 'unicase/u32-is-uppercase'.
51153         * modules/unicase/u32-is-uppercase-tests: New file.
51154         * tests/unicase/test-u32-is-uppercase.c: New file.
51155
51156         Tests for module 'unicase/u16-is-uppercase'.
51157         * modules/unicase/u16-is-uppercase-tests: New file.
51158         * tests/unicase/test-u16-is-uppercase.c: New file.
51159
51160         Tests for module 'unicase/u8-is-uppercase'.
51161         * modules/unicase/u8-is-uppercase-tests: New file.
51162         * tests/unicase/test-u8-is-uppercase.c: New file.
51163         * tests/unicase/test-is-uppercase.h: New file.
51164
51165         New module 'unicase/u32-is-uppercase'.
51166         * lib/unicase/u32-is-uppercase.c: New file.
51167         * modules/unicase/u32-is-uppercase: New file.
51168
51169         New module 'unicase/u16-is-uppercase'.
51170         * lib/unicase/u16-is-uppercase.c: New file.
51171         * modules/unicase/u16-is-uppercase: New file.
51172
51173         New module 'unicase/u8-is-uppercase'.
51174         * lib/unicase/u8-is-uppercase.c: New file.
51175         * modules/unicase/u8-is-uppercase: New file.
51176
51177         New module 'unicase/u32-is-invariant'.
51178         * lib/unicase/u32-is-invariant.c: New file.
51179         * modules/unicase/u32-is-invariant: New file.
51180
51181         New module 'unicase/u16-is-invariant'.
51182         * lib/unicase/u16-is-invariant.c: New file.
51183         * modules/unicase/u16-is-invariant: New file.
51184
51185         New module 'unicase/u8-is-invariant'.
51186         * lib/unicase/u8-is-invariant.c: New file.
51187         * lib/unicase/invariant.h: New file.
51188         * lib/unicase/u-is-invariant.h: New file.
51189         * modules/unicase/u8-is-invariant: New file.
51190
51191         Tests for module 'unicase/u32-casecoll'.
51192         * modules/unicase/u32-casecoll-tests: New file.
51193         * tests/unicase/test-u32-casecoll.c: New file.
51194
51195         Tests for module 'unicase/u16-casecoll'.
51196         * modules/unicase/u16-casecoll-tests: New file.
51197         * tests/unicase/test-u16-casecoll.c: New file.
51198
51199         Tests for module 'unicase/u8-casecoll'.
51200         * modules/unicase/u8-casecoll-tests: New file.
51201         * tests/unicase/test-u8-casecoll.c: New file.
51202
51203         New module 'unicase/u32-casecoll'.
51204         * lib/unicase/u32-casecoll.c: New file.
51205         * modules/unicase/u32-casecoll: New file.
51206
51207         New module 'unicase/u16-casecoll'.
51208         * lib/unicase/u16-casecoll.c: New file.
51209         * modules/unicase/u16-casecoll: New file.
51210
51211         New module 'unicase/u8-casecoll'.
51212         * lib/unicase/u8-casecoll.c: New file.
51213         * lib/unicase/u-casecoll.h: New file.
51214         * modules/unicase/u8-casecoll: New file.
51215
51216         New module 'unicase/u32-casexfrm'.
51217         * lib/unicase/u32-casexfrm.c: New file.
51218         * modules/unicase/u32-casexfrm: New file.
51219
51220         New module 'unicase/u16-casexfrm'.
51221         * lib/unicase/u16-casexfrm.c: New file.
51222         * modules/unicase/u16-casexfrm: New file.
51223
51224         New module 'unicase/u8-casexfrm'.
51225         * lib/unicase/u8-casexfrm.c: New file.
51226         * lib/unicase/u-casexfrm.h: New file.
51227         * modules/unicase/u8-casexfrm: New file.
51228
51229         Tests for module 'unicase/u32-casecmp'.
51230         * modules/unicase/u32-casecmp-tests: New file.
51231         * tests/unicase/test-u32-casecmp.c: New file.
51232
51233         Tests for module 'unicase/u16-casecmp'.
51234         * modules/unicase/u16-casecmp-tests: New file.
51235         * tests/unicase/test-u16-casecmp.c: New file.
51236
51237         Tests for module 'unicase/u8-casecmp'.
51238         * modules/unicase/u8-casecmp-tests: New file.
51239         * tests/unicase/test-u8-casecmp.c: New file.
51240         * tests/unicase/test-casecmp.h: New file.
51241
51242         New module 'unicase/u32-casecmp'.
51243         * lib/unicase/u32-casecmp.c: New file.
51244         * modules/unicase/u32-casecmp: New file.
51245
51246         New module 'unicase/u16-casecmp'.
51247         * lib/unicase/u16-casecmp.c: New file.
51248         * modules/unicase/u16-casecmp: New file.
51249
51250         New module 'unicase/u8-casecmp'.
51251         * lib/unicase/u8-casecmp.c: New file.
51252         * lib/unicase/u-casecmp.h: New file.
51253         * modules/unicase/u8-casecmp: New file.
51254
51255         Tests for module 'unicase/u32-casefold'.
51256         * modules/unicase/u32-casefold-tests: New file.
51257         * tests/unicase/test-u32-casefold.c: New file.
51258
51259         Tests for module 'unicase/u16-casefold'.
51260         * modules/unicase/u16-casefold-tests: New file.
51261         * tests/unicase/test-u16-casefold.c: New file.
51262
51263         Tests for module 'unicase/u8-casefold'.
51264         * modules/unicase/u8-casefold-tests: New file.
51265         * tests/unicase/test-u8-casefold.c: New file.
51266
51267         New module 'unicase/u32-casefold'.
51268         * lib/unicase/u32-casefold.c: New file.
51269         * modules/unicase/u32-casefold: New file.
51270
51271         New module 'unicase/u16-casefold'.
51272         * lib/unicase/u16-casefold.c: New file.
51273         * modules/unicase/u16-casefold: New file.
51274
51275         New module 'unicase/u8-casefold'.
51276         * lib/unicase/u8-casefold.c: New file.
51277         * lib/unicase/u-casefold.h: New file.
51278         * modules/unicase/u8-casefold: New file.
51279
51280         New module 'unicase/tocasefold'.
51281         * lib/unicase/casefold.h: New file.
51282         * lib/unicase/tocasefold.c: New file.
51283         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
51284         * modules/unicase/tocasefold: New file.
51285
51286         Tests for module 'unicase/u32-totitle'.
51287         * modules/unicase/u32-totitle-tests: New file.
51288         * tests/unicase/test-u32-totitle.c: New file.
51289
51290         Tests for module 'unicase/u16-totitle'.
51291         * modules/unicase/u16-totitle-tests: New file.
51292         * tests/unicase/test-u16-totitle.c: New file.
51293
51294         Tests for module 'unicase/u8-totitle'.
51295         * modules/unicase/u8-totitle-tests: New file.
51296         * tests/unicase/test-u8-totitle.c: New file.
51297
51298         New module 'unicase/u32-totitle'.
51299         * lib/unicase/u32-totitle.c: New file.
51300         * modules/unicase/u32-totitle: New file.
51301
51302         New module 'unicase/u16-totitle'.
51303         * lib/unicase/u16-totitle.c: New file.
51304         * modules/unicase/u16-totitle: New file.
51305
51306         New module 'unicase/u8-totitle'.
51307         * lib/unicase/u8-totitle.c: New file.
51308         * lib/unicase/u-totitle.h: New file.
51309         * modules/unicase/u8-totitle: New file.
51310
51311         Tests for module 'unicase/u32-tolower'.
51312         * modules/unicase/u32-tolower-tests: New file.
51313         * tests/unicase/test-u32-tolower.c: New file.
51314
51315         Tests for module 'unicase/u16-tolower'.
51316         * modules/unicase/u16-tolower-tests: New file.
51317         * tests/unicase/test-u16-tolower.c: New file.
51318
51319         Tests for module 'unicase/u8-tolower'.
51320         * modules/unicase/u8-tolower-tests: New file.
51321         * tests/unicase/test-u8-tolower.c: New file.
51322
51323         New module 'unicase/u32-tolower'.
51324         * lib/unicase/u32-tolower.c: New file.
51325         * modules/unicase/u32-tolower: New file.
51326
51327         New module 'unicase/u16-tolower'.
51328         * lib/unicase/u16-tolower.c: New file.
51329         * modules/unicase/u16-tolower: New file.
51330
51331         New module 'unicase/u8-tolower'.
51332         * lib/unicase/u8-tolower.c: New file.
51333         * modules/unicase/u8-tolower: New file.
51334
51335         Tests for module 'unicase/u32-toupper'.
51336         * modules/unicase/u32-toupper-tests: New file.
51337         * tests/unicase/test-u32-toupper.c: New file.
51338
51339         Tests for module 'unicase/u16-toupper'.
51340         * modules/unicase/u16-toupper-tests: New file.
51341         * tests/unicase/test-u16-toupper.c: New file.
51342
51343         Tests for module 'unicase/u8-toupper'.
51344         * modules/unicase/u8-toupper-tests: New file.
51345         * tests/unicase/test-u8-toupper.c: New file.
51346
51347         New module 'unicase/u32-toupper'.
51348         * lib/unicase/u32-toupper.c: New file.
51349         * modules/unicase/u32-toupper: New file.
51350
51351         New module 'unicase/u16-toupper'.
51352         * lib/unicase/u16-toupper.c: New file.
51353         * modules/unicase/u16-toupper: New file.
51354
51355         New module 'unicase/u8-toupper'.
51356         * lib/unicase/u8-toupper.c: New file.
51357         * modules/unicase/u8-toupper: New file.
51358
51359         New module 'unicase/u32-casemap'.
51360         * lib/unicase/u32-casemap.c: New file.
51361         * modules/unicase/u32-casemap: New file.
51362
51363         New module 'unicase/u16-casemap'.
51364         * lib/unicase/u16-casemap.c: New file.
51365         * modules/unicase/u16-casemap: New file.
51366
51367         New module 'unicase/u8-casemap'.
51368         * lib/unicase/unicasemap.h: New file.
51369         * lib/unicase/u8-casemap.c: New file.
51370         * lib/unicase/u-casemap.h: New file.
51371         * modules/unicase/u8-casemap: New file.
51372
51373         New module 'unicase/special-casing'.
51374         * lib/unicase/special-casing.h: New file.
51375         * lib/unicase/special-casing.c: New file.
51376         * lib/unicase/special-casing-table.gperf: New file, generated by
51377         gen-uni-tables.c.
51378         * modules/unicase/special-casing: New file.
51379
51380         Tests for module 'unicase/locale-language'.
51381         * modules/unicase/locale-language-tests: New file.
51382         * tests/unicase/test-locale-language.sh: New file.
51383         * tests/unicase/test-locale-language.c: New file.
51384
51385         New module 'unicase/locale-language'.
51386         * lib/unicase/locale-language.c: New file.
51387         * lib/unicase/locale-languages.gperf: New file.
51388         * modules/unicase/locale-language: New file.
51389
51390         Generate more tables for case conversion and case folding.
51391         * lib/gen-uni-tables.c (SCC_*): New enum items.
51392         (struct special_casing_rule): New type.
51393         (casing_rules, num_casing_rules, allocated_casing_rules): New
51394         variables.
51395         (add_casing_rule, fill_casing_rules): New functions.
51396         (struct casefold_rule): New type.
51397         (casefolding_rules, num_casefolding_rules,
51398         allocated_casefolding_rules): New variables.
51399         (fill_casefolding_rules): New function.
51400         (unicode_casefold): New variable.
51401         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
51402         sort_casing_rules, output_casing_rules): New functions.
51403         (main): Accept to more arguments: SpecialCasing.txt and
51404         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
51405         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
51406         Output mapping for casefolding.
51407
51408         * lib/unicase.h: Include stdbool.h, uninorm.h.
51409         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
51410         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
51411         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
51412         arguments.
51413         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
51414         resultp arguments.
51415         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
51416         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
51417         resultp arguments.
51418         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
51419         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
51420         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
51421         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
51422         declarations.
51423         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
51424
51425 2009-03-08  Bruno Haible  <bruno@clisp.org>
51426
51427         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51428         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
51429         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
51430         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51431
51432 2009-03-07  Bruno Haible  <bruno@clisp.org>
51433
51434         Adjust u*_normcmp, u*_normcoll API.
51435         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51436         u16_normcoll, u32_normcoll): Change failure conventions.
51437         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
51438         errno and return -1.
51439         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51440
51441 2009-03-07  Bruno Haible  <bruno@clisp.org>
51442
51443         Tests for module 'uninorm/u32-normcoll'.
51444         * modules/uninorm/u32-normcoll-tests: New file.
51445         * tests/uninorm/test-u32-normcoll.c: New file.
51446
51447         Tests for module 'uninorm/u16-normcoll'.
51448         * modules/uninorm/u16-normcoll-tests: New file.
51449         * tests/uninorm/test-u16-normcoll.c: New file.
51450
51451         Tests for module 'uninorm/u8-normcoll'.
51452         * modules/uninorm/u8-normcoll-tests: New file.
51453         * tests/uninorm/test-u8-normcoll.c: New file.
51454
51455 2009-03-07  Bruno Haible  <bruno@clisp.org>
51456
51457         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
51458         tests/uninorm/test-u32-normcmp.c.
51459         * tests/uninorm/test-u32-normcmp.c: Include it.
51460         (test_nonascii): New function, extracted from main. Add some more
51461         tests.
51462         (main): Invoke test_ascii and test_nonascii.
51463         * modules/uninorm/u32-normcmp-tests (Files): Add
51464         tests/uninorm/test-u32-normcmp.h.
51465         (Depends-on): Remove uninorm/u32-normcmp.
51466
51467         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
51468         tests/uninorm/test-u16-normcmp.c.
51469         * tests/uninorm/test-u16-normcmp.c: Include it.
51470         (test_nonascii): New function, extracted from main. Add some more
51471         tests.
51472         (main): Invoke test_ascii and test_nonascii.
51473         * modules/uninorm/u16-normcmp-tests (Files): Add
51474         tests/uninorm/test-u16-normcmp.h.
51475         (Depends-on): Remove uninorm/u16-normcmp.
51476
51477         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
51478         tests/uninorm/test-u8-normcmp.c.
51479         * tests/uninorm/test-u8-normcmp.c: Include it.
51480         (test_nonascii): New function, extracted from main. Add some more
51481         tests.
51482         (main): Invoke test_ascii and test_nonascii.
51483         * modules/uninorm/u8-normcmp-tests (Files): Add
51484         tests/uninorm/test-u8-normcmp.h.
51485         (Depends-on): Remove uninorm/u8-normcmp.
51486
51487 2009-03-07  Bruno Haible  <bruno@clisp.org>
51488
51489         New module 'uninorm/u32-normcoll'.
51490         * lib/uninorm/u32-normcoll.c: New file.
51491         * modules/uninorm/u32-normcoll: New file.
51492
51493         New module 'uninorm/u16-normcoll'.
51494         * lib/uninorm/u16-normcoll.c: New file.
51495         * modules/uninorm/u16-normcoll: New file.
51496
51497         New module 'uninorm/u8-normcoll'.
51498         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
51499         declarations.
51500         * lib/uninorm/u8-normcoll.c: New file.
51501         * lib/uninorm/u-normcoll.h: New file.
51502         * modules/uninorm/u8-normcoll: New file.
51503
51504         New module 'uninorm/u32-normxfrm'.
51505         * lib/uninorm/u32-normxfrm.c: New file.
51506         * modules/uninorm/u32-normxfrm: New file.
51507
51508         New module 'uninorm/u16-normxfrm'.
51509         * lib/uninorm/u16-normxfrm.c: New file.
51510         * modules/uninorm/u16-normxfrm: New file.
51511
51512         New module 'uninorm/u8-normxfrm'.
51513         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51514         declarations.
51515         * lib/uninorm/u8-normxfrm.c: New file.
51516         * lib/uninorm/u-normxfrm.h: New file.
51517         * modules/uninorm/u8-normxfrm: New file.
51518
51519 2009-03-07  Bruno Haible  <bruno@clisp.org>
51520
51521         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51522         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51523         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51524
51525 2009-03-07  Bruno Haible  <bruno@clisp.org>
51526
51527         New module 'memxfrm'.
51528         * lib/memxfrm.h: New file.
51529         * lib/memxfrm.c: New file.
51530         * modules/memxfrm: New file.
51531
51532 2009-03-07  Bruno Haible  <bruno@clisp.org>
51533
51534         New module 'memcmp2'.
51535         * lib/memcmp2.h: New file.
51536         * lib/memcmp2.c: New file.
51537         * modules/memcmp2: New file.
51538
51539 2009-03-07  Bruno Haible  <bruno@clisp.org>
51540
51541         Tests for module 'uninorm/decomposing-form'.
51542         * modules/uninorm/decomposing-form-tests: New file.
51543         * tests/uninorm/test-decomposing-form.c: New file.
51544
51545         New module 'uninorm/decomposing-form'.
51546         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51547         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51548         Add 'decomposing_variant' field.
51549         * lib/uninorm/decomposing-form.c: New file.
51550         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51551         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51552         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51553         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51554         * modules/uninorm/decomposing-form: New file.
51555         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51556         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51557
51558 2009-03-07  Bruno Haible  <bruno@clisp.org>
51559
51560         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51561         strings.
51562
51563 2009-03-06  Bruno Haible  <bruno@clisp.org>
51564
51565         Tests for module 'uninorm/u32-normcmp'.
51566         * tests/uninorm/test-u32-normcmp.c: New file.
51567         * modules/uninorm/u32-normcmp-tests: New file.
51568
51569         Tests for module 'uninorm/u16-normcmp'.
51570         * tests/uninorm/test-u16-normcmp.c: New file.
51571         * modules/uninorm/u16-normcmp-tests: New file.
51572
51573         Tests for module 'uninorm/u8-normcmp'.
51574         * tests/uninorm/test-u8-normcmp.c: New file.
51575         * modules/uninorm/u8-normcmp-tests: New file.
51576
51577         New module 'uninorm/u32-normcmp'.
51578         * lib/uninorm/u32-normcmp.c: New file.
51579         * modules/uninorm/u32-normcmp: New file.
51580
51581         New module 'uninorm/u16-normcmp'.
51582         * lib/uninorm/u16-normcmp.c: New file.
51583         * modules/uninorm/u16-normcmp: New file.
51584
51585         New module 'uninorm/u8-normcmp'.
51586         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51587         declarations.
51588         * lib/uninorm/u8-normcmp.c: New file.
51589         * lib/uninorm/u-normcmp.h: New file.
51590         * modules/uninorm/u8-normcmp: New file.
51591
51592 2009-03-06  Bruno Haible  <bruno@clisp.org>
51593
51594         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51595         Reported by Eric Blake.
51596
51597 2009-03-06  Eric Blake  <ebb9@byu.net>
51598             Bruno Haible  <bruno@clisp.org>
51599
51600         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51601         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51602         condition.
51603         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51604         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51605         condition.
51606         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51607
51608 2009-03-06  Eric Blake  <ebb9@byu.net>
51609
51610         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51611         to avoid compiler warnings.
51612         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51613
51614 2009-03-05  Bruno Haible  <bruno@clisp.org>
51615
51616         * tests/test-ftell.c (main): Disable test beyond end of file on
51617         FreeMiNT.
51618         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51619
51620 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51621
51622         * lib/filevercmp.c: Move hidden files up in ordering.
51623         * tests/test-filevercmp.c: Add tests for hidden files.
51624
51625 2009-03-04  Bruno Haible  <bruno@clisp.org>
51626
51627         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51628         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51629         AM_CFLAGS.
51630         Reported by Simon Josefsson.
51631
51632 2009-03-03  Bruno Haible  <bruno@clisp.org>
51633
51634         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51635         Reported by Simon Josefsson.
51636
51637         * doc/ld-version-script.texi: Update node reference.
51638
51639 2009-03-03  Bruno Haible  <bruno@clisp.org>
51640
51641         * modules/visibility (License): Change to 'unlimited'.
51642         Suggested by Simon Josefsson.
51643
51644 2009-03-03  Jim Meyering  <meyering@redhat.com>
51645
51646         unlinkdir: cannot_unlink_dir may modify process state
51647         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51648         it's neither thread-safe nor appropriate for use in a library.
51649
51650 2009-03-03  Eric Blake  <ebb9@byu.net>
51651
51652         test-closein: silence test under Darwin
51653         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51654         care if it dies from EPIPE or EBADF.
51655
51656 2009-03-03  Bruno Haible  <bruno@clisp.org>
51657
51658         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51659         earlier.
51660         * doc/visibility.texi: Fix @node and @section.
51661
51662 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51663
51664         * doc/gnulib.texi: Link to sections for ld version script and
51665         visibility.
51666         * doc/visibility.texi: Add @node and @section.
51667         * modules/ld-version-script: New module.
51668         * m4/ld-version-script.m4: New file.
51669         * doc/ld-version-script.texi: New file.
51670
51671 2009-03-02  David Lutterkort  <lutter@redhat.com>
51672
51673         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51675
51676 2009-03-02  Bruno Haible  <bruno@clisp.org>
51677
51678         * doc/visibility.texi: Mention libtool's -export-symbols option.
51679
51680 2009-03-02  Jim Meyering  <meyering@redhat.com>
51681
51682         announce-gen: new option: --no-print-checksums
51683         * build-aux/announce-gen (usage): Describe it.
51684         (print_checksums): Print a newline here, not in the [*] footnote.
51685         (main): Honor it.
51686
51687 2009-03-01  Bruno Haible  <bruno@clisp.org>
51688
51689         Use socklen_t in the native Windows replacements prototypes.
51690         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51691         instead of 'int'.
51692         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51693         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51694         * modules/getsockopt (Depends-on): Add socklen.
51695         * modules/setsockopt (Depends-on): Add socklen.
51696
51697 2009-03-01  Bruno Haible  <bruno@clisp.org>
51698
51699         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51700         least 4.2.
51701
51702 2009-03-01  Eric Blake  <ebb9@byu.net>
51703             Bruno Haible  <bruno@clisp.org>
51704
51705         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51706         error messages.
51707         * lib/wait-process.c (wait_subprocess): Omit error message about
51708         deadly signal sent to the child of termsigp != NULL.
51709
51710 2009-03-01  Eric Blake  <ebb9@byu.net>
51711
51712         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51713
51714 2009-03-01  Bruno Haible  <bruno@clisp.org>
51715
51716         Avoid a gcc warning.
51717         * tests/test-sched.c (b): Make global.
51718         Reported by Eric Blake.
51719
51720 2009-01-19  Martin Lambers  <marlam@marlam.de>
51721
51722         Provide POSIX semantics for socket timeout options on W32.
51723         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51724         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51725         * modules/setsockopt: Depend on sys_time module for struct timeval.
51726         * modules/getsockopt: Depend on sys_time module for struct timeval.
51727
51728 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51729
51730         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51731         __USE_GNU, for consistency with netdb.in.h.
51732         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51733
51734 2009-03-01  Bruno Haible  <bruno@clisp.org>
51735
51736         More support for FreeMiNT.
51737         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51738         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51739
51740 2009-03-01  Bruno Haible  <bruno@clisp.org>
51741
51742         More support for FreeMiNT.
51743         * lib/fpurge.c (fpurge): Correct last commit.
51744         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51745
51746 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51747
51748         Fix unportable awk script in vc-list-files.
51749         * build-aux/vc-list-files: In the replacement awk script, use
51750         substr with a second argument of 1, not zero.
51751         Report by Simon Josefsson.
51752
51753 2009-02-28  Bruno Haible  <bruno@clisp.org>
51754
51755         More support for FreeMiNT.
51756         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51757         to FreeMiNT today.
51758         * lib/fwriting.c (fwriting): Likewise.
51759         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51760
51761 2009-02-28  Bruno Haible  <bruno@clisp.org>
51762
51763         * tests/test-freadseek.c (main): Disable test beyond end of file on
51764         FreeMiNT.
51765         * tests/test-ftello.c (main): Likewise.
51766         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51767
51768 2009-02-28  Bruno Haible  <bruno@clisp.org>
51769
51770         Add tentative support for FreeMiNT.
51771         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51772         * lib/fpurge.c (fpurge): Likewise.
51773         * lib/freadable.c (freadable): Likewise.
51774         * lib/freading.c (freading): Likewise.
51775         * lib/freadptr.c (freadptr): Likewise.
51776         * lib/freadseek.c (freadptrinc): Likewise.
51777         * lib/fseeko.c (rpl_fseeko): Likewise.
51778         * lib/fseterr.c (fseterr): Likewise.
51779         * lib/fwritable.c (fwritable): Likewise.
51780         * lib/fwriting.c (fwriting): Likewise.
51781         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51782         Hourihane.
51783         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51784
51785 2009-02-28  Bruno Haible  <bruno@clisp.org>
51786
51787         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51788         SIGCHLD.
51789         Reported by Jim Meyering.
51790
51791 2009-02-28  Bruno Haible  <bruno@clisp.org>
51792
51793         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51794         Mention the results of these tests on various platforms.
51795         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51796         order.
51797         * doc/posix-functions/printf.texi: Likewise.
51798         * doc/posix-functions/snprintf.texi: Likewise.
51799         * doc/posix-functions/sprintf.texi: Likewise.
51800         * doc/posix-functions/vfprintf.texi: Likewise.
51801         * doc/posix-functions/vprintf.texi: Likewise.
51802         * doc/posix-functions/vsnprintf.texi: Likewise.
51803         * doc/posix-functions/vsprintf.texi: Likewise.
51804         * doc/glibc-functions/obstack_printf.texi: Likewise.
51805         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51806
51807 2009-02-28  Bruno Haible  <bruno@clisp.org>
51808
51809         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51810         Reported by Loïc Minier <lool@dooz.org>.
51811
51812 2009-02-27  Bruno Haible  <bruno@clisp.org>
51813
51814         * gnulib-tool (func_import): Make the sed expression used to create the
51815         sed script for updating the .gitignore file POSIX compliant.
51816         Reported by Eric Blake.
51817
51818 2009-02-27  Bruno Haible  <bruno@clisp.org>
51819
51820         * gnulib-tool (sed): Don't alias as "sed --posix".
51821         Reported by Eric Blake.
51822
51823 2009-02-27  Bruno Haible  <bruno@clisp.org>
51824
51825         Avoid test link errors.
51826         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51827         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51828         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51829         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51830         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51831
51832 2009-02-27  Bruno Haible  <bruno@clisp.org>
51833
51834         Avoid spurious "(cached)" in configure output.
51835         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51836         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51837         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51838         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51839         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51840         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51841         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51842         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51843         Reported by Eric Blake.
51844
51845 2009-02-27  Eric Blake  <ebb9@byu.net>
51846
51847         printf: fix regression in previous patch
51848         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51849
51850 2009-02-27  Bruno Haible  <bruno@clisp.org>
51851
51852         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51853         value.
51854         * lib/stdint.in.h: Likewise.
51855         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51856
51857 2009-02-27  Eric Blake  <ebb9@byu.net>
51858
51859         doc: mention more functions added in cygwin 1.7.0
51860         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51861         addition.
51862         * doc/posix-functions/open_wmemstream.texi: Likewise.
51863         * doc/posix-functions/wcsnlen.texi: Likewise.
51864         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51865         * doc/posix-functions/wcstod.texi: Likewise.
51866         * doc/posix-functions/wcstof.texi: Likewise.
51867         * doc/posix-functions/wcstoimax.texi: Likewise.
51868         * doc/posix-functions/wcstok.texi: Likewise.
51869         * doc/posix-functions/wcstoumax.texi: Likewise.
51870
51871         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51872         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51873         * doc/posix-functions/fprintf.texi: Update.
51874         * doc/posix-functions/printf.texi: Update.
51875         * doc/posix-functions/snprintf.texi: Update.
51876         * doc/posix-functions/sprintf.texi: Update.
51877         * doc/posix-functions/vfprintf.texi: Update.
51878         * doc/posix-functions/vprintf.texi: Update.
51879         * doc/posix-functions/vsnprintf.texi: Update.
51880         * doc/posix-functions/vsprintf.texi: Update.
51881         * doc/glibc-functions/obstack_printf.texi: Update.
51882         * doc/glibc-functions/obstack_vprintf.texi: Update.
51883
51884 2009-02-26  Eric Blake  <ebb9@byu.net>
51885
51886         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51887         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51888         compilation bug by using runtime conversion.
51889         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51890         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51891         * modules/ceill-tests (Files): Use nan.h.
51892         * modules/floorl-tests (Files): Likewise.
51893         * modules/frexpl-tests (Files): Likewise.
51894         * modules/isnanl-tests (Files): Likewise.
51895         * modules/ldexpl-tests (Files): Likewise.
51896         * modules/roundl-tests (Files): Likewise.
51897         * modules/truncl-tests (Files): Likewise.
51898         * tests/test-ceill.c (main): Use a working NaN.
51899         * tests/test-floorl.c (main): Likewise.
51900         * tests/test-frexpl.c (main): Likewise.
51901         * tests/test-isnan.c (test_long_double): Likewise.
51902         * tests/test-isnanl.h (main): Likewise.
51903         * tests/test-ldexpl.h (main): Likewise.
51904         * tests/test-roundl.h (main): Likewise.
51905         * tests/test-truncl.h (main): Likewise.
51906         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51907
51908 2009-02-26  Eric Blake  <ebb9@byu.net>
51909             Bruno Haible  <bruno@clisp.org>
51910
51911         Work around a *printf bug with %ls on Solaris.
51912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51913         precision is specified, sprintf stops converting the wide string
51914         argument when the number of bytes that have been produced by this
51915         conversion equals or exceeds the precision.
51916         * doc/posix-functions/fprintf.texi: Update.
51917         * doc/posix-functions/printf.texi: Update.
51918         * doc/posix-functions/snprintf.texi: Update.
51919         * doc/posix-functions/sprintf.texi: Update.
51920         * doc/posix-functions/vfprintf.texi: Update.
51921         * doc/posix-functions/vprintf.texi: Update.
51922         * doc/posix-functions/vsnprintf.texi: Update.
51923         * doc/posix-functions/vsprintf.texi: Update.
51924         * doc/glibc-functions/obstack_printf.texi: Update.
51925         * doc/glibc-functions/obstack_vprintf.texi: Update.
51926
51927 2009-02-26  Eric Blake  <ebb9@byu.net>
51928
51929         stdlib: favor compiler check of random.h
51930         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51931         to avoid an ObjC random.h installed by Swarm.
51932
51933 2009-02-26  Bruno Haible  <bruno@clisp.org>
51934
51935         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51936         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51937         Reported by Gary V. Vaughan <gary@gnu.org>.
51938
51939 2009-02-26  Bruno Haible  <bruno@clisp.org>
51940
51941         Fix *printf behaviour regarding the %ls directive.
51942         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51943         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51944         NEED_PRINTF_DIRECTIVE_LS.
51945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51946         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51947         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51948         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51949         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51950         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51951         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51952         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51953         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51954         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51956         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51957         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51958         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51959         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51960         * doc/posix-functions/fprintf.texi: Update.
51961         * doc/posix-functions/printf.texi: Update.
51962         * doc/posix-functions/snprintf.texi: Update.
51963         * doc/posix-functions/sprintf.texi: Update.
51964         * doc/posix-functions/vfprintf.texi: Update.
51965         * doc/posix-functions/vprintf.texi: Update.
51966         * doc/posix-functions/vsnprintf.texi: Update.
51967         * doc/posix-functions/vsprintf.texi: Update.
51968         * doc/glibc-functions/obstack_printf.texi: Update.
51969         * doc/glibc-functions/obstack_vprintf.texi: Update.
51970         Reported by Eric Blake.
51971
51972 2009-02-25  Bruno Haible  <bruno@clisp.org>
51973
51974         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51975         with known value.
51976         Reported by Gary V. Vaughan <gary@gnu.org>.
51977
51978 2009-02-25  Bruno Haible  <bruno@clisp.org>
51979
51980         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51981         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51982         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51983         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51984         Reported by Gary V. Vaughan <gary@gnu.org>.
51985
51986 2009-02-25  Bruno Haible  <bruno@clisp.org>
51987
51988         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51989         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51990         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51991         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51992         Reported by Gary V. Vaughan <gary@gnu.org>.
51993
51994 2009-02-25  Eric Blake  <ebb9@byu.net>
51995
51996         tests: skip fseek/ftell tests if ungetc is broken
51997         * m4/ungetc.m4: New file.
51998         * modules/fseek-tests: Split test, so ungetc dependency is
51999         separate from rest of test.
52000         * modules/fseeko-tests: Likewise.
52001         * modules/ftell-tests: Likewise.
52002         * modules/ftello-tests: Likewise.
52003         * tests/test-fseek.c (main): Isolate ungetc dependency.
52004         * tests/test-fseeko.c (main): Likewise.
52005         * tests/test-ftell.c (main): Likewise.
52006         * tests/test-ftello.c (main): Likewise.
52007         * tests/test-fseek2.sh: New file.
52008         * tests/test-fseeko2.sh: Likewise.
52009         * tests/test-ftell2.sh: Likewise.
52010         * tests/test-ftello2.sh: Likewise.
52011
52012 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
52013
52014         test-getaddrinfo: fix usage of skip return code 77
52015         * tests/test-gettaddrinfo.c: Return skip code 77 only
52016         for first occurrence of skip (4x77 is not 77)
52017
52018 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
52019
52020         strtod: avoid C99 decl-after-statement
52021         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
52022
52023 2009-02-24  Eric Blake  <ebb9@byu.net>
52024
52025         strtod: detect HP-UX 11.31 bug
52026         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
52027         Reported by Gary V. Vaughan.
52028
52029 2009-02-23  Bruno Haible  <bruno@clisp.org>
52030
52031         Fix invalid read past end of memory block.
52032         * lib/vasnprintf.c (DCHAR_SET): Define.
52033         (local_wcslen): Define only when needed.
52034         (local_strnlen, local_wcsnlen): New functions.
52035         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
52036         directives that involve a conversion ourselves.
52037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
52038         wcsnlen, mbrtowc, wcrtomb.
52039         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
52040         * tests/test-vasprintf-posix.c (test_function): Likewise.
52041         * tests/test-snprintf-posix.h (test_function): Likewise.
52042         * tests/test-sprintf-posix.h (test_function): Likewise.
52043         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52044
52045 2009-02-22  Bruno Haible  <bruno@clisp.org>
52046
52047         Implement new clarified decomposition of Hangul syllables.
52048         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
52049         of type LTV, return only a pairwise decomposition.
52050         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
52051         Likewise.
52052         * tests/uninorm/test-decomposition.c (main): Updated expected result.
52053         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
52054         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
52055
52056 2009-02-22  Bruno Haible  <bruno@clisp.org>
52057
52058         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
52059         zero-length results and shrink excess allocated memory.
52060         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
52061         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
52062         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
52063         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
52064         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
52065         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
52066         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
52067         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
52068         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
52069         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
52070         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
52071         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
52072
52073 2009-02-21  Bruno Haible  <bruno@clisp.org>
52074
52075         * doc/gnulib.texi: Include safe-alloc.texi earlier.
52076         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
52077         spaces after a period. Put a space between a macro name and its
52078         argument list. Trivial rewordings.
52079         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
52080         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
52081         (main): Return 0 explicitly.
52082
52083 2009-02-21  Bruno Haible  <bruno@clisp.org>
52084
52085         Tests for module 'uninorm/filter'.
52086         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
52087         * modules/uninorm/filter-tests: New file.
52088
52089         New module 'uninorm/filter'.
52090         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
52091         uninorm_filter_flush, uninorm_filter_free): New declarations.
52092         * lib/uninorm/uninorm-filter.c: New file.
52093         * modules/uninorm/filter: New file.
52094
52095 2009-02-21  Bruno Haible  <bruno@clisp.org>
52096
52097         Tests for module 'uninorm/nfkc'.
52098         * tests/uninorm/test-nfkc.c: New file.
52099         * tests/uninorm/test-u8-nfkc.c: New file.
52100         * tests/uninorm/test-u16-nfkc.c: New file.
52101         * tests/uninorm/test-u32-nfkc.c: New file.
52102         * tests/uninorm/test-u32-nfkc-big.sh: New file.
52103         * tests/uninorm/test-u32-nfkc-big.c: New file.
52104         * modules/uninorm/nfkc-tests: New file.
52105
52106         New module 'uninorm/nfkc'.
52107         * lib/uninorm/nfkc.c: New file.
52108         * modules/uninorm/nfkc: New file.
52109
52110         Tests for module 'uninorm/nfkd'.
52111         * tests/uninorm/test-nfkd.c: New file.
52112         * tests/uninorm/test-u8-nfkd.c: New file.
52113         * tests/uninorm/test-u16-nfkd.c: New file.
52114         * tests/uninorm/test-u32-nfkd.c: New file.
52115         * tests/uninorm/test-u32-nfkd-big.sh: New file.
52116         * tests/uninorm/test-u32-nfkd-big.c: New file.
52117         * modules/uninorm/nfkd-tests: New file.
52118
52119         New module 'uninorm/nfkd'.
52120         * lib/uninorm/nfkd.c: New file.
52121         * modules/uninorm/nfkd: New file.
52122
52123         Tests for module 'uninorm/nfc'.
52124         * tests/uninorm/test-nfc.c: New file.
52125         * tests/uninorm/test-u8-nfc.c: New file.
52126         * tests/uninorm/test-u16-nfc.c: New file.
52127         * tests/uninorm/test-u32-nfc.c: New file.
52128         * tests/uninorm/test-u32-nfc-big.sh: New file.
52129         * tests/uninorm/test-u32-nfc-big.c: New file.
52130         * modules/uninorm/nfc-tests: New file.
52131
52132         New module 'uninorm/nfc'.
52133         * lib/uninorm/nfc.c: New file.
52134         * modules/uninorm/nfc: New file.
52135
52136         Tests for module 'uninorm/nfd'.
52137         * tests/uninorm/test-nfd.c: New file.
52138         * tests/uninorm/test-u8-nfd.c: New file.
52139         * tests/uninorm/test-u16-nfd.c: New file.
52140         * tests/uninorm/test-u32-nfd.c: New file.
52141         * tests/uninorm/test-u32-nfd-big.sh: New file.
52142         * tests/uninorm/test-u32-nfd-big.c: New file.
52143         * tests/uninorm/test-u32-normalize-big.h: New file.
52144         * tests/uninorm/test-u32-normalize-big.c: New file.
52145         * tests/uninorm/NormalizationTest.txt: New file, created from
52146         Unicode 5.1.0 NormalizationTest.txt.
52147         * modules/uninorm/nfd-tests: New file.
52148
52149         New module 'uninorm/nfd'.
52150         * lib/uninorm/nfd.c: New file.
52151         * modules/uninorm/nfd: New file.
52152
52153         New module 'uninorm/u32-normalize'.
52154         * lib/uninorm/u32-normalize.c: New file.
52155         * modules/uninorm/u32-normalize: New file.
52156
52157         New module 'uninorm/u16-normalize'.
52158         * lib/uninorm/u16-normalize.c: New file.
52159         * modules/uninorm/u16-normalize: New file.
52160
52161         New module 'uninorm/u8-normalize'.
52162         * lib/uninorm/u8-normalize.c: New file.
52163         * lib/uninorm/normalize-internal.h: New file.
52164         * lib/uninorm/u-normalize-internal.h: New file.
52165         * modules/uninorm/u8-normalize: New file.
52166
52167         New module 'uninorm/decompose-internal'.
52168         * lib/uninorm/decompose-internal.c: New file.
52169         * modules/uninorm/decompose-internal: New file.
52170
52171         Tests for module 'uninorm/composition'.
52172         * tests/uninorm/test-composition.c: New file.
52173         * modules/uninorm/composition-tests: New file.
52174
52175         New module 'uninorm/composition'.
52176         * lib/uninorm/composition.c: New file.
52177         * lib/uninorm/composition-table.gperf: New file, generated by
52178         gen-uni-tables.
52179         * modules/uninorm/composition: New file.
52180
52181         Tests for module 'uninorm/compat-decomposition'.
52182         * tests/uninorm/test-compat-decomposition.c: New file.
52183         * modules/uninorm/compat-decomposition-tests: New file.
52184
52185         New module 'uninorm/compat-decomposition'.
52186         * lib/uninorm/decompose-internal.h: New file.
52187         * lib/uninorm/compat-decomposition.c: New file.
52188         * modules/uninorm/compat-decomposition: New file.
52189
52190         Tests for module 'uninorm/canonical-decomposition'.
52191         * tests/uninorm/test-canonical-decomposition.c: New file.
52192         * modules/uninorm/canonical-decomposition-tests: New file.
52193
52194         New module 'uninorm/canonical-decomposition'.
52195         * lib/uninorm/canonical-decomposition.c: New file.
52196         * modules/uninorm/canonical-decomposition: New file.
52197
52198         Tests for module 'uninorm/decomposition'.
52199         * tests/uninorm/test-decomposition.c: New file.
52200         * modules/uninorm/decomposition-tests: New file.
52201
52202         New module 'uninorm/decomposition'.
52203         * lib/uninorm/decomposition.c: New file.
52204         * modules/uninorm/decomposition: New file.
52205
52206         New module 'uninorm/decomposition-table'.
52207         * lib/uninorm/decomposition-table.h: New file.
52208         * lib/uninorm/decomposition-table.c: New file.
52209         * lib/uninorm/decomposition-table1.h: New file, generated by
52210         gen-uni-tables.
52211         * lib/uninorm/decomposition-table2.h: New file, generated by
52212         gen-uni-tables.
52213         * modules/uninorm/decomposition-table: New file.
52214
52215         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
52216         (UC_DECOMP_*): New enumeration items.
52217         (get_decomposition): New function.
52218         (struct decomp_table): New type.
52219         (output_decomposition, output_decomposition_tables): New functions.
52220         (unicode_composition_exclusions): New variable.
52221         (fill_composition_exclusions, debug_output_composition_tables): New
52222         functions.
52223         (main): Accept one more argument. Invoke fill_composition_exclusions.
52224         Output decomposition and composition tables.
52225
52226         New module 'uninorm/base'.
52227         * lib/uninorm.h: New file.
52228         * lib/unictype.h: Update comment.
52229         * modules/uninorm/base: New file.
52230
52231 2009-02-21  David Lutterkort  <lutter@redhat.com>
52232
52233         Tests for module 'safe-alloc'.
52234         * tests/test-safe-alloc.c: New file.
52235         * modules/safe-alloc-tests: New file.
52236
52237         New module 'safe-alloc'.
52238         * lib/safe-alloc.h: New file.
52239         * lib/safe-alloc.c: New file.
52240         * m4/safe-alloc.m4: New file.
52241         * modules/safe-alloc: New file.
52242         * doc/safe-alloc.texi: New file.
52243         * doc/gnulib.texi: Include it.
52244         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
52245         safe-alloc.
52246
52247 2009-02-18  Bruno Haible  <bruno@clisp.org>
52248
52249         Fix link error on non-glibc systems.
52250         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
52251         variable.
52252         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52253
52254 2009-02-18  Jim Meyering  <meyering@redhat.com>
52255
52256         fts: avoid used-uninitialized error due to recent change
52257         * lib/fts.c (fts_read): Guard uses of the new member,
52258         parent->fts_n_dirs_remaining, since it's not relevant for
52259         the parent of a directory specified on the command-line.
52260
52261 2009-02-17  James Youngman  <jay@gnu.org>
52262             Bruno Haible  <bruno@clisp.org>
52263
52264         * m4/include_next.m4: Reformulate comment.
52265
52266 2009-02-16  Jim Meyering  <meyering@redhat.com>
52267
52268         fts: add #if guards so that the fts_lgpl module still builds
52269         * lib/fts.c: Guard just-added hash-table-using parts with
52270         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
52271         Reported by Simon Josefsson.
52272
52273 2009-02-15  Bruno Haible  <bruno@clisp.org>
52274
52275         * modules/array-mergesort-tests: New file.
52276         * tests/test-array-mergesort.c: New file.
52277
52278         New module 'array-mergesort'.
52279         * modules/array-mergesort: New file.
52280         * lib/array-mergesort.h: New file.
52281
52282 2009-02-15  Bruno Haible  <bruno@clisp.org>
52283
52284         Fix 2009-02-07 commit.
52285         * lib/gen-uni-tables.c (output_predicate, output_category,
52286         output_combclass, output_bidi_category, output_decimal_digit,
52287         output_digit, output_numeric, output_mirror, output_scripts,
52288         output_ident_category, output_simple_mapping): Fix format directives.
52289         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
52290
52291 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
52292
52293         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
52294         fixes are available from IBM.
52295
52296 2009-02-13  Jim Meyering  <meyering@redhat.com>
52297
52298         fts: arrange not to stat non-directories in more cases
52299         This makes GNU find (when it doesn't need to stat each file)
52300         *much* more efficient at traversing reiserfs file systems.
52301         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
52302         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
52303         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
52304         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
52305         (leaf_optimization_applies): New function.
52306         (LCO_hash, LCO_compare): New helper functions.
52307         (link_count_optimize_ok): New function.
52308         (fts_stat): Initialize new member (if dir).
52309         (fts_read): Decrement parent's fts_n_dirs_remaining count if
52310         we've just stat'ed a directory.  Skip the stat call when possible.
52311         ---
52312         Note this AFS-related exchange:
52313         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
52314         and note find's pioctl call in find/fstype.c.
52315         But that is necessary only if you want to enable the
52316         optimization for AFS, and for now, I don't.
52317
52318         fts: move a function definition "up" (no semantic change)
52319         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
52320         "up" to precede upcoming use of a related function.
52321
52322 2009-02-11  Jim Meyering  <meyering@redhat.com>
52323
52324         fts: correct internal computation of nlinks (optimization-related)
52325         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
52326         whether the current entry is a directory, so don't test it.
52327
52328 2009-02-10  Bruno Haible  <bruno@clisp.org>
52329
52330         Tests for module 'uniwbrk/ulc-wordbreaks'.
52331         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
52332         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
52333         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
52334
52335         Tests for module 'uniwbrk/u32-wordbreaks'.
52336         * modules/uniwbrk/u32-wordbreaks-tests: New file.
52337         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
52338
52339         Tests for module 'uniwbrk/u16-wordbreaks'.
52340         * modules/uniwbrk/u16-wordbreaks-tests: New file.
52341         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
52342
52343         Tests for module 'uniwbrk/u8-wordbreaks'.
52344         * modules/uniwbrk/u8-wordbreaks-tests: New file.
52345         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
52346
52347 2009-02-10  Bruno Haible  <bruno@clisp.org>
52348
52349         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
52350         property.
52351         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
52352         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
52353         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
52354
52355 2009-02-10  Simon Josefsson  <simon@josefsson.org>
52356
52357         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
52358         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
52359
52360 2009-02-10  Bruno Haible  <bruno@clisp.org>
52361
52362         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
52363         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
52364         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
52365         * lib/unilbrk/u8-possible-linebreaks.c: Update.
52366         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
52367         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
52368
52369 2009-02-09  Simon Josefsson  <simon@josefsson.org>
52370
52371         * lib/sockets.h (gl_fd_to_handle): New function.
52372
52373         * tests/test-sockets.c: Call gl_fd_to_handle.
52374
52375 2009-02-09  Bruno Haible  <bruno@clisp.org>
52376
52377         * doc/havelib.texi: Document the conventions on bi-arch systems.
52378
52379 2009-02-08  Bruno Haible  <bruno@clisp.org>
52380
52381         Document the AC_LIB_LINKFLAGS macro.
52382         * doc/havelib.texi: New file, mostly written on 2005-05-24.
52383         * doc/gnulib.texi: Include it.
52384
52385 2009-02-08  Bruno Haible  <bruno@clisp.org>
52386
52387         Fix wrong order of sections, compared to TOC.
52388         * doc/gnulib.texi: Include relocatable-maint.texi after the
52389         "Regular expressions" node, not before.
52390
52391 2009-02-08  Bruno Haible  <bruno@clisp.org>
52392
52393         Tests for module 'unicase/totitle'.
52394         * modules/unicase/totitle-tests: New file.
52395
52396         Tests for module 'unicase/tolower'.
52397         * modules/unicase/tolower-tests: New file.
52398
52399         Tests for module 'unicase/toupper'.
52400         * modules/unicase/toupper-tests: New file.
52401         * tests/unicase/test-mapping-part1.h: New file.
52402         * tests/unicase/test-mapping-part2.h: New file.
52403
52404         New module 'unicase/totitle'.
52405         * modules/unicase/totitle: New file.
52406         * lib/unicase/totitle.c: New file.
52407
52408         New module 'unicase/tolower'.
52409         * modules/unicase/tolower: New file.
52410         * lib/unicase/tolower.c: New file.
52411
52412         New module 'unicase/toupper'.
52413         * modules/unicase/toupper: New file.
52414         * lib/unicase/toupper.c: New file.
52415         * lib/unicase/simple-mapping.h: New file.
52416
52417         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
52418         (mapping_table): New structure.
52419         (output_simple_mapping): New function.
52420         (main): Invoke output_simple_mapping_test and output_simple_mapping.
52421         * modules/gen-uni-tables (Description): Update.
52422         * lib/unicase/toupper.h: New file, automatically generated by
52423         gen-uni-tables.
52424         * lib/unicase/tolower.h: New file, automatically generated by
52425         gen-uni-tables.
52426         * lib/unicase/totitle.h: New file, automatically generated by
52427         gen-uni-tables.
52428         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
52429         gen-uni-tables.
52430         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
52431         gen-uni-tables.
52432         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
52433         gen-uni-tables.
52434
52435         New module 'unicase/base'.
52436         * modules/unicase/base: New file.
52437         * lib/unicase.h: New file.
52438
52439 2009-02-08  Bruno Haible  <bruno@clisp.org>
52440
52441         New module 'uniwbrk/ulc-wordbreaks'.
52442         * modules/uniwbrk/ulc-wordbreaks: New file.
52443         * lib/uniwbrk/ulc-wordbreaks.c: New file.
52444
52445         New module 'uniwbrk/u32-wordbreaks'.
52446         * modules/uniwbrk/u32-wordbreaks: New file.
52447         * lib/uniwbrk/u32-wordbreaks.c: New file.
52448
52449         New module 'uniwbrk/u16-wordbreaks'.
52450         * modules/uniwbrk/u16-wordbreaks: New file.
52451         * lib/uniwbrk/u16-wordbreaks.c: New file.
52452
52453         New module 'uniwbrk/u8-wordbreaks'.
52454         * modules/uniwbrk/u8-wordbreaks: New file.
52455         * lib/uniwbrk/u8-wordbreaks.c: New file.
52456         * lib/uniwbrk/u-wordbreaks.h: New file.
52457
52458         New module 'uniwbrk/table'.
52459         * modules/uniwbrk/table: New file.
52460         * lib/uniwbrk/wbrktable.h: New file.
52461         * lib/uniwbrk/wbrktable.c: New file.
52462
52463         New module 'uniwbrk/wordbreak-property'.
52464         * modules/uniwbrk/wordbreak-property: New file.
52465         * lib/uniwbrk/wordbreak-property.c: New file.
52466
52467         * lib/gen-uni-tables.c (WBP_*): New enum items.
52468         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
52469         (unicode_org_wbp): New variable.
52470         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
52471         New functions.
52472         (wbp_table): New structure.
52473         (output_wbp, output_wbrk_tables): New functions.
52474         (main): Accept additional argument. Invoke fill_org_wbp,
52475         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
52476         output_wbrk_tables.
52477         * modules/gen-uni-tables (Description): Update.
52478         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
52479         gen-uni-tables.
52480
52481         New module 'uniwbrk/base'.
52482         * modules/uniwbrk/base: New file.
52483         * lib/uniwbrk.h: New file.
52484
52485 2009-02-08  Bruno Haible  <bruno@clisp.org>
52486
52487         Update to Unicode 5.1.0.
52488         * lib/gen-uni-tables.c (is_property_alphabetic): Include
52489         U+2185..U+2188.
52490         (is_property_default_ignorable_code_point): Don't include characters
52491         of category Cc or Cs and not-a-characters.
52492         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
52493         U+0D79, U+109E, U+109F, U+A60C.
52494         * lib/unictype/bidi_of.h: Regenerated.
52495         * lib/unictype/blocks.h: Regenerated.
52496         * lib/unictype/categ_C.h: Regenerated.
52497         * lib/unictype/categ_Cf.h: Regenerated.
52498         * lib/unictype/categ_Cn.h: Regenerated.
52499         * lib/unictype/categ_L.h: Regenerated.
52500         * lib/unictype/categ_Ll.h: Regenerated.
52501         * lib/unictype/categ_Lm.h: Regenerated.
52502         * lib/unictype/categ_Lo.h: Regenerated.
52503         * lib/unictype/categ_Lu.h: Regenerated.
52504         * lib/unictype/categ_M.h: Regenerated.
52505         * lib/unictype/categ_Mc.h: Regenerated.
52506         * lib/unictype/categ_Me.h: Regenerated.
52507         * lib/unictype/categ_Mn.h: Regenerated.
52508         * lib/unictype/categ_N.h: Regenerated.
52509         * lib/unictype/categ_Nd.h: Regenerated.
52510         * lib/unictype/categ_Nl.h: Regenerated.
52511         * lib/unictype/categ_No.h: Regenerated.
52512         * lib/unictype/categ_P.h: Regenerated.
52513         * lib/unictype/categ_Pd.h: Regenerated.
52514         * lib/unictype/categ_Pe.h: Regenerated.
52515         * lib/unictype/categ_Pf.h: Regenerated.
52516         * lib/unictype/categ_Pi.h: Regenerated.
52517         * lib/unictype/categ_Po.h: Regenerated.
52518         * lib/unictype/categ_Ps.h: Regenerated.
52519         * lib/unictype/categ_S.h: Regenerated.
52520         * lib/unictype/categ_Sk.h: Regenerated.
52521         * lib/unictype/categ_Sm.h: Regenerated.
52522         * lib/unictype/categ_So.h: Regenerated.
52523         * lib/unictype/categ_of.h: Regenerated.
52524         * lib/unictype/combining.h: Regenerated.
52525         * lib/unictype/ctype_alnum.h: Regenerated.
52526         * lib/unictype/ctype_alpha.h: Regenerated.
52527         * lib/unictype/ctype_graph.h: Regenerated.
52528         * lib/unictype/ctype_lower.h: Regenerated.
52529         * lib/unictype/ctype_print.h: Regenerated.
52530         * lib/unictype/ctype_punct.h: Regenerated.
52531         * lib/unictype/ctype_upper.h: Regenerated.
52532         * lib/unictype/decdigit.h: Regenerated.
52533         * lib/unictype/digit.h: Regenerated.
52534         * lib/unictype/mirror.h: Regenerated.
52535         * lib/unictype/numeric.h: Regenerated.
52536         * lib/unictype/pr_alphabetic.h: Regenerated.
52537         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52538         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52539         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52540         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52541         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52542         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52543         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52544         * lib/unictype/pr_combining.h: Regenerated.
52545         * lib/unictype/pr_dash.h: Regenerated.
52546         * lib/unictype/pr_decimal_digit.h: Regenerated.
52547         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52548         * lib/unictype/pr_deprecated.h: Regenerated.
52549         * lib/unictype/pr_diacritic.h: Regenerated.
52550         * lib/unictype/pr_extender.h: Regenerated.
52551         * lib/unictype/pr_format_control.h: Regenerated.
52552         * lib/unictype/pr_grapheme_base.h: Regenerated.
52553         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52554         * lib/unictype/pr_grapheme_link.h: Regenerated.
52555         * lib/unictype/pr_id_continue.h: Regenerated.
52556         * lib/unictype/pr_id_start.h: Regenerated.
52557         * lib/unictype/pr_ideographic.h: Regenerated.
52558         * lib/unictype/pr_ignorable_control.h: Regenerated.
52559         * lib/unictype/pr_lowercase.h: Regenerated.
52560         * lib/unictype/pr_math.h: Regenerated.
52561         * lib/unictype/pr_numeric.h: Regenerated.
52562         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52563         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52564         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52565         * lib/unictype/pr_other_id_continue.h: Regenerated.
52566         * lib/unictype/pr_other_lowercase.h: Regenerated.
52567         * lib/unictype/pr_other_math.h: Regenerated.
52568         * lib/unictype/pr_punctuation.h: Regenerated.
52569         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52570         * lib/unictype/pr_soft_dotted.h: Regenerated.
52571         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52572         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52573         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52574         * lib/unictype/pr_uppercase.h: Regenerated.
52575         * lib/unictype/pr_xid_continue.h: Regenerated.
52576         * lib/unictype/pr_xid_start.h: Regenerated.
52577         * lib/unictype/pr_zero_width.h: Regenerated.
52578         * lib/unictype/scripts.h: Regenerated.
52579         * lib/unictype/scripts_byname.gperf: Regenerated.
52580         * lib/unictype/sy_java_ident.h: Regenerated.
52581         * lib/unilbrk/lbrkprop1.h: Regenerated.
52582         * lib/unilbrk/lbrkprop2.h: Regenerated.
52583         * tests/unictype/test-categ_C.c: Regenerated.
52584         * tests/unictype/test-categ_Cf.c: Regenerated.
52585         * tests/unictype/test-categ_Cn.c: Regenerated.
52586         * tests/unictype/test-categ_L.c: Regenerated.
52587         * tests/unictype/test-categ_Ll.c: Regenerated.
52588         * tests/unictype/test-categ_Lm.c: Regenerated.
52589         * tests/unictype/test-categ_Lo.c: Regenerated.
52590         * tests/unictype/test-categ_Lu.c: Regenerated.
52591         * tests/unictype/test-categ_M.c: Regenerated.
52592         * tests/unictype/test-categ_Mc.c: Regenerated.
52593         * tests/unictype/test-categ_Me.c: Regenerated.
52594         * tests/unictype/test-categ_Mn.c: Regenerated.
52595         * tests/unictype/test-categ_N.c: Regenerated.
52596         * tests/unictype/test-categ_Nd.c: Regenerated.
52597         * tests/unictype/test-categ_Nl.c: Regenerated.
52598         * tests/unictype/test-categ_No.c: Regenerated.
52599         * tests/unictype/test-categ_P.c: Regenerated.
52600         * tests/unictype/test-categ_Pd.c: Regenerated.
52601         * tests/unictype/test-categ_Pe.c: Regenerated.
52602         * tests/unictype/test-categ_Pf.c: Regenerated.
52603         * tests/unictype/test-categ_Pi.c: Regenerated.
52604         * tests/unictype/test-categ_Po.c: Regenerated.
52605         * tests/unictype/test-categ_Ps.c: Regenerated.
52606         * tests/unictype/test-categ_S.c: Regenerated.
52607         * tests/unictype/test-categ_Sk.c: Regenerated.
52608         * tests/unictype/test-categ_Sm.c: Regenerated.
52609         * tests/unictype/test-categ_So.c: Regenerated.
52610         * tests/unictype/test-ctype_alnum.c: Regenerated.
52611         * tests/unictype/test-ctype_alpha.c: Regenerated.
52612         * tests/unictype/test-ctype_graph.c: Regenerated.
52613         * tests/unictype/test-ctype_lower.c: Regenerated.
52614         * tests/unictype/test-ctype_print.c: Regenerated.
52615         * tests/unictype/test-ctype_punct.c: Regenerated.
52616         * tests/unictype/test-ctype_upper.c: Regenerated.
52617         * tests/unictype/test-decdigit.h: Regenerated.
52618         * tests/unictype/test-digit.h: Regenerated.
52619         * tests/unictype/test-numeric.h: Regenerated.
52620         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52621         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52622         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52623         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52624         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52625         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52626         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52627         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52628         * tests/unictype/test-pr_combining.c: Regenerated.
52629         * tests/unictype/test-pr_dash.c: Regenerated.
52630         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52631         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52632         * tests/unictype/test-pr_deprecated.c: Regenerated.
52633         * tests/unictype/test-pr_diacritic.c: Regenerated.
52634         * tests/unictype/test-pr_extender.c: Regenerated.
52635         * tests/unictype/test-pr_format_control.c: Regenerated.
52636         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52637         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52638         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52639         * tests/unictype/test-pr_id_continue.c: Regenerated.
52640         * tests/unictype/test-pr_id_start.c: Regenerated.
52641         * tests/unictype/test-pr_ideographic.c: Regenerated.
52642         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52643         * tests/unictype/test-pr_lowercase.c: Regenerated.
52644         * tests/unictype/test-pr_math.c: Regenerated.
52645         * tests/unictype/test-pr_numeric.c: Regenerated.
52646         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52647         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52648         Regenerated.
52649         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52650         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52651         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52652         * tests/unictype/test-pr_other_math.c: Regenerated.
52653         * tests/unictype/test-pr_punctuation.c: Regenerated.
52654         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52655         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52656         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52657         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52658         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52659         * tests/unictype/test-pr_uppercase.c: Regenerated.
52660         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52661         * tests/unictype/test-pr_xid_start.c: Regenerated.
52662         * tests/unictype/test-pr_zero_width.c: Regenerated.
52663
52664         Update to Unicode 5.1.0.
52665         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52666         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52667         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52668         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52669         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52670         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52671         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52672         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52673         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52674         (nonspacing_table_ind): Update.
52675         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52676
52677         Update to Unicode 5.1.0.
52678         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52679         code transform.
52680         * lib/uniname/uniname.c (unicode_character_name,
52681         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52682         * lib/uniname/uninames.h: Regenerated.
52683         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52684
52685 2009-02-07  Bruno Haible  <bruno@clisp.org>
52686
52687         Merge gen-ctype and gen-lbrk into a single program.
52688         * lib/gen-uni-tables.c: New file, incorporating
52689         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52690         Add directory prefixes to the names of the generated files.
52691         * lib/unictype/gen-ctype.c: Remove file.
52692         * lib/unilbrk/gen-lbrk.c: Remove file.
52693         * modules/gen-uni-tables: New file.
52694         * modules/unictype/gen-ctype: Remove file.
52695         * modules/unilbrk/gen-lbrk: Remove file.
52696
52697 2009-02-07  Bruno Haible  <bruno@clisp.org>
52698
52699         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52700
52701         New module 'unistr/u32-strcoll'.
52702         * modules/unistr/u32-strcoll: New file.
52703         * lib/unistr/u32-strcoll.c: New file.
52704
52705         New module 'unistr/u16-strcoll'.
52706         * modules/unistr/u16-strcoll: New file.
52707         * lib/unistr/u16-strcoll.c: New file.
52708
52709         New module 'unistr/u8-strcoll'.
52710         * modules/unistr/u8-strcoll: New file.
52711         * lib/unistr/u8-strcoll.c: New file.
52712         * lib/unistr/u-strcoll.h: New file.
52713
52714 2009-02-07  Bruno Haible  <bruno@clisp.org>
52715
52716         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52717         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52718         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52719         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52720         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52721         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52722
52723 2009-02-07  Bruno Haible  <bruno@clisp.org>
52724
52725         Make 64-bit clean.
52726         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52727         output_combclass, output_bidi_category, output_decimal_digit,
52728         output_digit, output_numeric, output_mirror, output_scripts,
52729         output_ident_category): Use proper width specifier in format strings.
52730
52731 2009-02-07  Bruno Haible  <bruno@clisp.org>
52732
52733         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52734         failure behaviour.
52735
52736 2009-02-07  Jim Meyering  <meyering@redhat.com>
52737
52738         regex: avoid compilation failure with upcoming gcc-4.4
52739         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52740         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52741         "... error: integer overflow in preprocessor expression".
52742
52743 2009-02-05  Ben Pfaff  <blp@gnu.org>
52744
52745         Fix link errors on Windows when close module is used.
52746         * modules/close: Add $(LIB_CLOSE) to Link section.
52747         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52748         $(LIB_CLOSE) on Windows.
52749
52750 2009-02-05  Jim Meyering  <meyering@redhat.com>
52751
52752         still avoid unused-parameter warnings, but do it cleanly
52753         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52754         (get_fs_usage): Cast to void instead.
52755         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52756         (dev_from_mount_options, read_file_system_list): Cast to void.
52757         Prompted by Bruno Haible.
52758
52759 2009-02-04  Jim Meyering  <meyering@redhat.com>
52760
52761         fsusage.c: correct copyright year
52762         * lib/fsusage.c: Reflect year in which the change is pushed into
52763
52764         avoid misc. warnings
52765         * lib/fsusage.c (UNUSED_PARAM): Define.
52766         (get_fs_usage): Mark parameter "disk" as unused.
52767         * lib/getugroups.c (getgrent): Use "void" in prototype.
52768         * lib/mountlist.c: Mark unused parameters.
52769         (read_file_system_list): Declare a local with "const".
52770         * lib/nanosleep.c (getnow): Declare static.
52771         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52772
52773         dirfd: set errno upon failure
52774         * lib/dirfd.c: Include <errno.h>.
52775         Set errno to ENOTSUP when returning -1.
52776         * modules/dirfd (Depends-on): Add errno.
52777         Suggested by John Kodis <kodis@comcast.net>.
52778
52779 2009-02-01  Bruno Haible  <bruno@clisp.org>
52780
52781         Don't assume sizeof (long) >= sizeof (void *).
52782         * lib/memcmp.c: Include stdint.h.
52783         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52784         srcp2 to 'const byte *'.
52785         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52786         types to uintptr_t.
52787         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52788         * modules/memcmp (Depends-on): Add stdint.
52789         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52790
52791 2009-01-30  Eric Blake  <ebb9@byu.net>
52792
52793         fix more require-before-expand issues
52794         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52795         expand, AC_PROG_AWK.
52796         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52797
52798 2009-01-28  Eric Blake  <ebb9@byu.net>
52799
52800         version-etc: use consistent URL formatting
52801         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52802         Improve formatting.  Use fputs for string without %.
52803
52804 2009-01-28  Jim Meyering  <meyering@redhat.com>
52805
52806         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52807         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52808         "underquoted definition of NAME" from autoconf-2.59.
52809
52810 2009-01-28  Bruno Haible  <bruno@clisp.org>
52811
52812         * doc/gnulib.texi: Add "Obsolete modules" to index.
52813
52814 2009-01-28  Jim Meyering  <meyering@redhat.com>
52815
52816         useless-if-before-free: recognize more variants
52817         * build-aux/useless-if-before-free: Also recognize e.g.,
52818         if (NULL != p) free (p);
52819
52820 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52821
52822         test-getaddrinfo: skip (don't fail) this test when there's no network
52823         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52824         on the presumption that it means you lack network access.
52825
52826 2009-01-26  Jim Meyering  <meyering@redhat.com>
52827
52828         fflush: avoid warnings on modern systems
52829         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52830         pos and result, into scopes where they're used.
52831
52832 2009-01-26  Eric Blake  <ebb9@byu.net>
52833
52834         Silence warning reintroduced by recent extensions patch.
52835         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52836         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52837         autoconf.
52838
52839         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52840         * m4/00gnulib.m4: New file.
52841         * gnulib-tool (func_get_filelist): Always use it.
52842         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52843         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52844
52845 2009-01-25  Bruno Haible  <bruno@clisp.org>
52846
52847         Make test-quotearg work on MacOS X and AIX.
52848         * tests/test-quotearg.sh: New file.
52849         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52850         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52851         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52852         include <libintl.h>.
52853         (fake_locale): Remove variable.
52854         (gettext, dgettext, dcgettext): Remove functions.
52855         (main): Instead of setting a fake locale, set a real locale. Call
52856         textdomain and bindtextdomain.
52857         * modules/quotearg-tests (Files): Add the new files.
52858         (Depends-on): Add gettext, setenv, unsetenv.
52859         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52860         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52861         Augment TESTS_ENVIRONMENT.
52862
52863 2009-01-25  Bruno Haible  <bruno@clisp.org>
52864
52865         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52866         fr_FR.ISO8859-1 locale on MacOS X.
52867         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52868         ja_JP.eucJP locale on MacOS X.
52869         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52870         zh_CN.GB18030 locale on MacOS X.
52871
52872 2009-01-25  Bruno Haible  <bruno@clisp.org>
52873
52874         Avoid link errors on MacOS X 10.3.
52875         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52876         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52877
52878 2009-01-25  Bruno Haible  <bruno@clisp.org>
52879
52880         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52881         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52882         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52883         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52884         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52885         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52886         posix_spawnattr_init, posix_spawnattr_setsigmask,
52887         posix_spawnattr_setflags, posix_spawnattr_destroy.
52888
52889         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52890         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52891         * modules/execute (Files): Remove m4/posix_spawn.m4.
52892         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52893         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52894         posix_spawnattr_init, posix_spawnattr_setsigmask,
52895         posix_spawnattr_setflags, posix_spawnattr_destroy.
52896
52897 2009-01-25  Bruno Haible  <bruno@clisp.org>
52898
52899         * lib/glthread/threadlib.c: Include <stdlib.h>.
52900
52901 2009-01-25  Bruno Haible  <bruno@clisp.org>
52902
52903         * lib/glthread/threadlib.c (dummy): New declaration.
52904
52905 2009-01-25  Bruno Haible  <bruno@clisp.org>
52906
52907         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52908         multibyte characters also for the GB18030 encoding. Don't crash when
52909         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52910
52911 2009-01-25  Bruno Haible  <bruno@clisp.org>
52912
52913         Avoid redefining 'struct random_data' on OSF/1 5.1.
52914         * lib/stdlib.in.h: Include <random.h> if it exists.
52915         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52916         HAVE_RANDOM_H. Include <random.h> when testing whether
52917         'struct random_data' exists.
52918         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52919
52920 2009-01-25  Bruno Haible  <bruno@clisp.org>
52921
52922         Don't install charset.alias on MacOS X >= 10.3.
52923         * lib/localcharset.c (DARWIN7): New macro.
52924         (get_charset_aliases): Hardcode the result for Darwin7.
52925         * modules/localcharset (install-exec-local): Don't install
52926         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52927
52928 2009-01-25  Bruno Haible  <bruno@clisp.org>
52929
52930         Don't install charset.alias on mingw and Cygwin.
52931         * modules/localcharset (install-exec-local): Don't install
52932         charset.alias on mingw and Cygwin, if the file does not yet exist.
52933         The result for these platforms is hardcoded in localcharset.c.
52934
52935 2009-01-25  Bruno Haible  <bruno@clisp.org>
52936
52937         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52938         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52939         before requiring AC_USE_SYSTEM_EXTENSIONS.
52940
52941 2009-01-25  Jim Meyering  <meyering@redhat.com>
52942
52943         c-strtod: avoid warnings
52944         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52945         "assignment discards qualifiers from pointer target type" warnings.
52946
52947 2009-01-24  Bruno Haible  <bruno@clisp.org>
52948
52949         Add support for non-UTF-8 locales on MacOS X.
52950         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52951         canonical encodings. For Darwin 7 and newer, don't map traditional
52952         encodings to UTF-8.
52953         Reported by Vincent Lefevre <vincent@vinc17.org>
52954         at <http://savannah.gnu.org/bugs/?25235>.
52955
52956 2009-01-24  Bruno Haible  <bruno@clisp.org>
52957
52958         * doc/gnulib.texi (Obsolete modules): New section.
52959         Reported by Mike Frysinger <vapier@gentoo.org>.
52960
52961 2009-01-24  Bruno Haible  <bruno@clisp.org>
52962
52963         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52964         (%.dvi): New rule.
52965
52966 2009-01-24  Bruno Haible  <bruno@clisp.org>
52967
52968         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52969         Reported by Eric Blake.
52970
52971 2009-01-24  Bruno Haible  <bruno@clisp.org>
52972
52973         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52974         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52975         Reported by Gary V. Vaughan <gary@gnu.org>.
52976
52977 2009-01-24  Bruno Haible  <bruno@clisp.org>
52978
52979         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52980
52981 2009-01-23  Bruno Haible  <bruno@clisp.org>
52982
52983         Make c-strtod, c-strtold usable in libraries.
52984         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52985         (C_STRTOD): Call strdup instead of xstrdup.
52986         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52987         * modules/c-strtold (Depends-on): Likewise.
52988         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52989         * NEWS: Mention the change.
52990         Reported by Michael Gold <mgold@ncf.ca>.
52991
52992 2009-01-23  Jim Meyering  <meyering@redhat.com>
52993
52994         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52995         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52996         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52997
52998 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52999
53000         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
53001         GNU CoreUtils.
53002         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
53003         * modules/version-etc (Description): Update.
53004
53005 2009-01-22  Bruno Haible  <bruno@clisp.org>
53006
53007         Cache the C locale object.
53008         * lib/c-strtod.c (c_locale_cache): New variable.
53009         (c_locale): New function.
53010         (C_STRTOD): Use it, and don't call freelocale.
53011         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
53012         Suggested by Paolo Bonzini.
53013
53014 2009-01-21  Bruno Haible  <bruno@clisp.org>
53015
53016         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
53017         conditions other than overflow.
53018
53019 2009-01-21  Bruno Haible  <bruno@clisp.org>
53020
53021         * lib/c-strtod.c: Include errno.h.
53022         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
53023         value from STRTOD_L and STRTOD.
53024
53025 2009-01-21  Bruno Haible  <bruno@clisp.org>
53026         and Jim Meyering  <meyering@redhat.com>
53027
53028         nanosleep: skip configure test (fail it) for apple universal builds
53029         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
53030         universal builds, assume that nanosleep does not work.
53031         * modules/nanosleep (Depends-on): Add multiarch.
53032
53033         mktime: skip configure test (fail it) for apple universal builds
53034         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
53035         universal builds, assume that mktime does not work.
53036         * modules/mktime (Depends-on): Add multiarch.
53037
53038 2009-01-21  Eric Blake  <ebb9@byu.net>
53039
53040         multiarch: avoid expand-before-require warning
53041         * modules/multiarch (configure.ac): Require, rather than expand,
53042         gl_MULTIARCH.
53043         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
53044         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
53045         enforce that all clients require it.  Partial reversion of
53046         2008-12-29 patch.
53047
53048         error: avoid expand-before-require warning
53049         * modules/errno (configure.ac): Require, rather than expand,
53050         gl_HEADER_ERRNO_H.
53051         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
53052         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
53053         enforce that all clients require it.
53054
53055         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
53056         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
53057         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
53058         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
53059
53060 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
53061
53062         Revert:
53063         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
53064
53065         regex: do not depend on obsolete modules.
53066         * modules/regex: Remove memcmp and memmove.
53067
53068 2009-01-20  Bruno Haible  <bruno@clisp.org>
53069
53070         Make the 'link' module link on Windows NT 4.
53071         * lib/link.c (_WIN32_WINNT): Don't define.
53072         (CreateHardLinkFuncType): New type.
53073         (CreateHardLinkFunc, initialized): New variables.
53074         (initialize): New function.
53075         (link): Invoke CreateHardLink indirectly through the function pointer.
53076
53077 2009-01-20  Bruno Haible  <bruno@clisp.org>
53078
53079         Fix compilation failure on mingw.
53080         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
53081
53082 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
53083
53084         * doc/c-strtod.texi: Mention a couple of restrictions.
53085
53086 2009-01-20  Jim Meyering  <meyering@redhat.com>
53087
53088         gettimeofday: move more declarations out of functions
53089         * lib/gettimeofday.c: Move extern declarations of tzset and
53090         gmtime out of containing functions.  Prompted by Bruno Haible.
53091
53092 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
53093
53094         regex: do not depend on obsolete modules.
53095         * modules/regex: Remove memcmp and memmove.
53096
53097 2009-01-19  Bruno Haible  <bruno@clisp.org>
53098
53099         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53100         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
53101         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53102         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
53103         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
53104
53105 2009-01-19  Bruno Haible  <bruno@clisp.org>
53106
53107         * tests/test-link.c: Include <errno.h>.
53108         (main): Exit with code 77 when a hard link cannot be created due to
53109         the file system.
53110         * tests/test-link.sh: Skip test when a hard link cannot be created due
53111         to the file system.
53112         Suggested by Eric Blake.
53113
53114 2009-01-19  Martin Lambers  <marlam@marlam.de>
53115
53116         * modules/link-tests: New file.
53117         * tests/test-link.sh: New file.
53118         * tests/test-link.c: New file.
53119
53120 2009-01-19  Eric Blake  <ebb9@byu.net>
53121
53122         doc: mention another function added in cygwin 1.7.0
53123         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
53124         Another new function in cygwin 1.7.
53125
53126 2009-01-19  Bruno Haible  <bruno@clisp.org>
53127
53128         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53129         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
53130         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
53131         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53132         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
53133         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
53134         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
53135         * m4/md4.m4 (gl_MD4): Likewise.
53136         * m4/md5.m4 (gl_MD5): Likewise.
53137         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
53138         * m4/sha1.m4 (gl_SHA1): Likewise.
53139         * m4/sha256.m4 (gl_SHA256): Likewise.
53140         * m4/sha512.m4 (gl_SHA512): Likewise.
53141
53142 2009-01-19  Bruno Haible  <bruno@clisp.org>
53143
53144         * modules/uniname/uniname-tests (Depends-on): Add progname.
53145         * tests/uniname/test-uninames.c: Include progname.h.
53146         (main): Call set_program_name.
53147
53148         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
53149         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
53150         (main): Call set_program_name.
53151
53152         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
53153         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
53154         (main): Call set_program_name.
53155
53156         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
53157         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
53158         (main): Call set_program_name.
53159
53160         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
53161         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
53162         (main): Call set_program_name.
53163
53164         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
53165         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
53166         (main): Call set_program_name.
53167
53168         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
53169         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
53170         (main): Call set_program_name.
53171
53172         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
53173         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
53174         (main): Call set_program_name.
53175
53176         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
53177         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
53178         (main): Call set_program_name.
53179
53180 2009-01-19  Eric Blake  <ebb9@byu.net>
53181
53182         test-unistd: test previous patch
53183         * tests/test-unistd.c: Test *_FILENO macros.
53184
53185         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
53186         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53187         Guarantee a definition.
53188         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
53189         * modules/unistd-safer (Depends-on): Add dependency on unistd.
53190         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
53191         * lib/dup-safer.c (STDERR_FILENO): Likewise.
53192         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53193         Likewise.
53194         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
53195         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
53196         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53197         Likewise.
53198         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
53199         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
53200         (STDERR_FILENO): Likewise.
53201         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
53202         (STDERR_FILENO): Likewise.
53203         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
53204         (STDERR_FILENO): Likewise.
53205         Reported by Elbert Pol.
53206
53207 2009-01-19  Eric Blake  <ebb9@byu.net>
53208
53209         doc: mention more functions added in cygwin 1.7.0
53210         * doc/posix-functions/abort.texi (abort): Update wording related
53211         to cygwin.
53212         * doc/posix-functions/daylight.texi (daylight): Likewise.
53213         * doc/posix-functions/optarg.texi (optarg): Likewise.
53214         * doc/posix-functions/optarg.texi (opterr): Likewise.
53215         * doc/posix-functions/optarg.texi (optind): Likewise.
53216         * doc/posix-functions/optarg.texi (optopt): Likewise.
53217         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
53218         worked in 1.5.x, and was withdrawn in 1.7.
53219         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53220         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
53221         cygwin versions.
53222         * doc/posix-functions/perror.texi (perror): Likewise.
53223         * doc/posix-functions/printf.texi (printf): Likewise.
53224         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
53225         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
53226         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53227         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53228         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
53229         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
53230         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53231         Likewise.
53232         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53233         Likewise.
53234         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
53235         this function.
53236         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
53237         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
53238         Likewise.
53239         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
53240         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
53241         * doc/posix-functions/confstr.texi (confstr): Likewise.
53242         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
53243         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
53244         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
53245         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
53246         * doc/posix-functions/fputws.texi (fputws): Likewise.
53247         * doc/posix-functions/fwide.texi (fwide): Likewise.
53248         * doc/posix-functions/getwc.texi (getwc): Likewise.
53249         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
53250         * doc/posix-functions/putwc.texi (putwc): Likewise.
53251         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53252         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
53253         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
53254         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53255         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
53256         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
53257         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
53258         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
53259         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
53260         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
53261         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
53262
53263 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53264
53265         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
53266         * lib/ioctl.c: Include <sys/ioctl.h>.
53267
53268 2009-01-19  Simon Josefsson  <simon@josefsson.org>
53269
53270         * modules/getdate-tests (Depends-on): Add progname.
53271         * tests/test-getdate.c: Use progname module, to avoid link errors
53272         on non-glibc systems.
53273
53274 2009-01-18  Simon Josefsson  <simon@josefsson.org>
53275
53276         * modules/filenamecat-tests (Depends-on): Add progname.
53277         * modules/fstrcmp-tests (Depends-on): Likewise.
53278
53279         * tests/test-filenamecat.c: Use progname module, to avoid link
53280         errors on non-glibc systems.
53281         * tests/test-fstrcmp.c: Likewise.
53282
53283 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53284
53285         gettimeofday: avoid warning: nested extern declaration of 'localtime'
53286         * lib/gettimeofday.c: Move extern declaration out of function.
53287
53288 2009-01-18  Bruno Haible  <bruno@clisp.org>
53289
53290         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
53291         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
53292         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
53293
53294 2009-01-18  Bruno Haible  <bruno@clisp.org>
53295
53296         * lib/strftime.c (MEMPCPY): Remove unused macro.
53297         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
53298
53299 2009-01-18  Martin Lambers  <marlam@marlam.de>
53300
53301         New module 'link'.
53302         * lib/unistd.in.h (link): New declaration.
53303         * lib/link.c: New file.
53304         * m4/link.m4: New file.
53305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
53306         HAVE_LINK.
53307         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
53308         * modules/link: New file.
53309         * doc/posix-functions/link.texi: Mention the new module.
53310
53311 2009-01-18  Bruno Haible  <bruno@clisp.org>
53312
53313         * tests/test-avltree_list.c (main): Call set_program_name.
53314         * tests/test-avltree_oset.c (main): Likewise.
53315         * tests/test-obstack-printf.c: Include progname.h.
53316         (main): Call set_program_name.
53317         * tests/test-quotearg.c: Include progname.h.
53318         (main): Call set_program_name.
53319         * tests/test-xmemdup0.c: Include progname.h.
53320         (main): Call set_program_name.
53321
53322 2009-01-18  Bruno Haible  <bruno@clisp.org>
53323
53324         New module 'alphasort'.
53325         * lib/dirent.in.h (alphasort): New declaration.
53326         * lib/alphasort.c: New file, from glibc with modifications.
53327         * m4/alphasort.m4: New file.
53328         * modules/alphasort: New file.
53329         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
53330         HAVE_ALPHASORT.
53331         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
53332         HAVE_ALPHASORT.
53333         * doc/posix-functions/alphasort.texi: Mention the new module and the
53334         portability problems.
53335
53336 2009-01-18  Bruno Haible  <bruno@clisp.org>
53337
53338         New module 'scandir'.
53339         * lib/dirent.in.h (scandir): New declaration.
53340         * lib/scandir.c: New file, from glibc with modifications.
53341         * m4/scandir.m4: New file.
53342         * modules/scandir: New file.
53343         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
53344         HAVE_SCANDIR.
53345         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
53346         HAVE_SCANDIR.
53347         * doc/posix-functions/scandir.texi: Mention the new module and the
53348         portability problems.
53349
53350 2009-01-17  Bruno Haible  <bruno@clisp.org>
53351
53352         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
53353         Update documentation.
53354         (func_remove_suffix): Escape all dots in the suffix. Update
53355         documentation.
53356         (func_filter_filelist): Update documentation.
53357         Reported by Ralf Wildenhues.
53358
53359 2009-01-17  Bruno Haible  <bruno@clisp.org>
53360
53361         * modules/dprintf-posix-tests: New file.
53362         * tests/test-dprintf-posix.sh: New file.
53363         * tests/test-dprintf-posix.c: New file.
53364
53365         New modules 'dprintf', 'dprintf-posix'.
53366         * lib/stdio.in.h (dprintf): New declaration.
53367         * lib/dprintf.c: New file.
53368         * m4/dprintf.m4: New file.
53369         * m4/dprintf-posix.m4: New file.
53370         * modules/dprintf: New file.
53371         * modules/dprintf-posix: New file.
53372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
53373         HAVE_DPRINTF, REPLACE_DPRINTF.
53374         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
53375         HAVE_DPRINTF, REPLACE_DPRINTF.
53376         * doc/posix-functions/dprintf.texi: Mention the new modules.
53377
53378 2009-01-17  Bruno Haible  <bruno@clisp.org>
53379
53380         * modules/vdprintf-posix-tests: New file.
53381         * tests/test-vdprintf-posix.sh: New file.
53382         * tests/test-vdprintf-posix.c: New file.
53383
53384         New modules 'vdprintf', 'vdprintf-posix'.
53385         * lib/stdio.in.h (vdprintf): New declaration.
53386         * lib/vdprintf.c: New file.
53387         * m4/vdprintf.m4: New file.
53388         * m4/vdprintf-posix.m4: New file.
53389         * modules/vdprintf: New file.
53390         * modules/vdprintf-posix: New file.
53391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
53392         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53393         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
53394         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53395         * doc/posix-functions/vdprintf.texi: Mention the new modules.
53396
53397 2009-01-17  Bruno Haible  <bruno@clisp.org>
53398
53399         Fix replacement of fopen on mingw.
53400         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
53401         mingw.
53402
53403 2009-01-17  Bruno Haible  <bruno@clisp.org>
53404
53405         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
53406         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
53407
53408 2009-01-17  Bruno Haible  <bruno@clisp.org>
53409
53410         Avoid test-fflush2.sh failure on mingw.
53411         * tests/test-fflush2.c: Include binary-io.h.
53412         (main): Put standard input into binary mode.
53413         * modules/fflush-tests (Depends-on): Add binary-io.
53414
53415 2009-01-17  Bruno Haible  <bruno@clisp.org>
53416
53417         * lib/wchar.in.h: In another particular situation, include only the
53418         system's <wchar.h> file.
53419         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
53420         Reported by Albert Chin-A-Young <china@thewrittenword.com>
53421         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
53422
53423 2009-01-17  Bruno Haible  <bruno@clisp.org>
53424
53425         Support for stripping executables in --enable-relocatable.
53426         * build-aux/install-reloc: Expect one more argument, or an environment
53427         variable RELOC_STRIP_PROG. If set, strip the destination program and
53428         its wrapper.
53429         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
53430         RELOC_STRIP_PROG.
53431         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
53432         to set RELOCATABLE_STRIP.
53433         * NEWS: Mention the new Makefile requirement.
53434
53435 2009-01-17  Bruno Haible  <bruno@clisp.org>
53436
53437         * build-aux/install-reloc: Remove debugging information left over by
53438         C compiler on MacOS X.
53439
53440 2009-01-17  Bruno Haible  <bruno@clisp.org>
53441
53442         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
53443         * lib/progreloc.c (find_executable): Fix type of pointer passed to
53444         _NSGetExecutablePath.
53445
53446 2009-01-16  Jim Meyering  <meyering@redhat.com>
53447
53448         strerror: avoid warnings about discarding "const"
53449         * lib/strerror.c (rpl_strerror): Instead of returning a const
53450         string from each and every "case", use a variable, and add a single
53451         cast after the switch.
53452
53453 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
53454
53455         * lib/arpa_inet.in.h: Add extern "C" block for C++.
53456
53457 2009-01-16  Bruno Haible  <bruno@clisp.org>
53458
53459         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
53460         array initializer syntax that also works in C++ mode.
53461         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53462
53463 2009-01-16  Jim Meyering  <meyering@redhat.com>
53464
53465         poll: suppress a warning
53466         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
53467         to ignore "...unsigned expression < 0 is always false" warnings.
53468
53469 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
53470
53471         poll: remove declarations of unused variables
53472         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
53473         sockbuf and optlen.
53474
53475 2009-01-15  Bruno Haible  <bruno@clisp.org>
53476
53477         Make fflush-after-ungetc POSIX compliant on BSD systems.
53478         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
53479         (clear_ungetc_buffer): Implement also for other systems.
53480         (rpl_fflush): On glibc systems, invoke
53481         clear_ungetc_buffer_preserving_position. Otherwise, invoke
53482         clear_ungetc_buffer after fetching the stream's position, not before.
53483
53484 2009-01-15  Bruno Haible  <bruno@clisp.org>
53485
53486         Make fflush-after-ungetc POSIX compliant on glibc systems.
53487         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
53488         after ungetc.
53489         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
53490         (rpl_fflush): On glibc systems, simply call the system's fflush
53491         function after clearing the ungetc buffer.
53492         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
53493         Instead, lseek only to the end of file, then use the system's fseeko
53494         for the rest. On glibc systems, reset the EOF indicator bit.
53495
53496 2009-01-15  Jim Meyering  <meyering@redhat.com>
53497
53498         openmp.m4: revert quote-adding change, for portability to older autoconf
53499         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
53500         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
53501         Simon Josefsson noticed the problem when using autoconf-2.61.
53502
53503 2009-01-15  Bruno Haible  <bruno@clisp.org>
53504
53505         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53506         * tests/test-fflush2.c (ASSERT): Always fail.
53507         (main): Add two tests for fflush() after ungetc(), taking into account
53508         the Austin Group's clarification.
53509         Suggested by Eric Blake.
53510
53511 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53512
53513         mktime.m4: remove K&R-style function prototypes
53514         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53515         for the Sun C++ compiler.
53516
53517 2009-01-14  Bruno Haible  <bruno@clisp.org>
53518
53519         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53520         while including <wchar.h>.
53521         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53522         the system's <wchar.h> file.
53523         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53524
53525 2009-01-14  Bruno Haible  <bruno@clisp.org>
53526
53527         * m4/csharp.m4: Don't mention gettext on the serial number line.
53528         * m4/csharpexec.m4: Likewise.
53529         * m4/eaccess.m4: Likewise.
53530         * m4/javaexec.m4: Likewise.
53531         * m4/sig_atomic_t.m4: Likewise.
53532         * m4/tmpdir.m4: Likewise.
53533         * m4/intldir.m4: Bump gettext version.
53534         * m4/lib-ld.m4: Likewise.
53535
53536 2009-01-14  Bruno Haible  <bruno@clisp.org>
53537
53538         * lib/progname.c (set_program_name): Add more comments.
53539         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53540
53541 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53542
53543         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53544         were sys/stat.h does not define it.
53545
53546 2009-01-14  Jim Meyering  <meyering@redhat.com>
53547
53548         many *.m4 files: improve m4 quoting
53549         99% of this change was performed by running the following commands:
53550         git ls-files | grep '\.m4$' | xargs perl -pi \
53551           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53552           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53553           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53554           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53555         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53556         The remainder were to add Copyright dates, increment serial numbers,
53557         undo some changes in comments, exclude m4/intl.m4, and add quotes
53558         around the "1" in ",1" where the unusual spacing prohibited the
53559         above regexps from doing the job.  For more details, see
53560         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53561         * m4/acl.m4: Modified.
53562         * m4/afs.m4: Likewise.
53563         * m4/alloca.m4: Likewise.
53564         * m4/argp.m4: Likewise.
53565         * m4/argz.m4: Likewise.
53566         * m4/atexit.m4: Likewise.
53567         * m4/bison-i18n.m4: Likewise.
53568         * m4/bison.m4: Likewise.
53569         * m4/byteswap.m4: Likewise.
53570         * m4/c-stack.m4: Likewise.
53571         * m4/c-strtod.m4: Likewise.
53572         * m4/calloc.m4: Likewise.
53573         * m4/canonicalize-lgpl.m4: Likewise.
53574         * m4/chown.m4: Likewise.
53575         * m4/clock_time.m4: Likewise.
53576         * m4/codeset.m4: Likewise.
53577         * m4/copy-file.m4: Likewise.
53578         * m4/csharp.m4: Likewise.
53579         * m4/csharpcomp.m4: Likewise.
53580         * m4/csharpexec.m4: Likewise.
53581         * m4/d-ino.m4: Likewise.
53582         * m4/d-type.m4: Likewise.
53583         * m4/dirfd.m4: Likewise.
53584         * m4/double-slash-root.m4: Likewise.
53585         * m4/eaccess.m4: Likewise.
53586         * m4/eealloc.m4: Likewise.
53587         * m4/environ.m4: Likewise.
53588         * m4/errno_h.m4: Likewise.
53589         * m4/euidaccess.m4: Likewise.
53590         * m4/execute.m4: Likewise.
53591         * m4/fatal-signal.m4: Likewise.
53592         * m4/fchdir.m4: Likewise.
53593         * m4/fcntl_h.m4: Likewise.
53594         * m4/fileblocks.m4: Likewise.
53595         * m4/filenamecat.m4: Likewise.
53596         * m4/findprog.m4: Likewise.
53597         * m4/flexmember.m4: Likewise.
53598         * m4/fnmatch.m4: Likewise.
53599         * m4/fopen.m4: Likewise.
53600         * m4/fpending.m4: Likewise.
53601         * m4/fprintf-posix.m4: Likewise.
53602         * m4/free.m4: Likewise.
53603         * m4/frexp.m4: Likewise.
53604         * m4/frexpl.m4: Likewise.
53605         * m4/fsusage.m4: Likewise.
53606         * m4/ftruncate.m4: Likewise.
53607         * m4/gc-camellia.m4: Likewise.
53608         * m4/gc-random.m4: Likewise.
53609         * m4/gc.m4: Likewise.
53610         * m4/getaddrinfo.m4: Likewise.
53611         * m4/getcwd-abort-bug.m4: Likewise.
53612         * m4/getcwd-path-max.m4: Likewise.
53613         * m4/getdate.m4: Likewise.
53614         * m4/getdomainname.m4: Likewise.
53615         * m4/getgroups.m4: Likewise.
53616         * m4/gethostname.m4: Likewise.
53617         * m4/gethrxtime.m4: Likewise.
53618         * m4/getline.m4: Likewise.
53619         * m4/getloadavg.m4: Likewise.
53620         * m4/getndelim2.m4: Likewise.
53621         * m4/getpass.m4: Likewise.
53622         * m4/gettext.m4: Likewise.
53623         * m4/gettime.m4: Likewise.
53624         * m4/gettimeofday.m4: Likewise.
53625         * m4/gnulib-common.m4: Likewise.
53626         * m4/group-member.m4: Likewise.
53627         * m4/host-os.m4: Likewise.
53628         * m4/iconv.m4: Likewise.
53629         * m4/iconv_open.m4: Likewise.
53630         * m4/inet_ntop.m4: Likewise.
53631         * m4/inet_pton.m4: Likewise.
53632         * m4/inline.m4: Likewise.
53633         * m4/intldir.m4: Likewise.
53634         * m4/intlmacosx.m4: Likewise.
53635         * m4/intmax.m4: Likewise.
53636         * m4/intmax_t.m4: Likewise.
53637         * m4/inttypes.m4: Likewise.
53638         * m4/inttypes_h.m4: Likewise.
53639         * m4/inttypes-pri.m4: Likewise.
53640         * m4/isapipe.m4: Likewise.
53641         * m4/isnand.m4: Likewise.
53642         * m4/isnanf.m4: Likewise.
53643         * m4/isnanl.m4: Likewise.
53644         * m4/javacomp.m4: Likewise.
53645         * m4/javaexec.m4: Likewise.
53646         * m4/jm-winsz1.m4: Likewise.
53647         * m4/jm-winsz2.m4: Likewise.
53648         * m4/lchown.m4: Likewise.
53649         * m4/lcmessage.m4: Likewise.
53650         * m4/ldexpl.m4: Likewise.
53651         * m4/lib-ld.m4: Likewise.
53652         * m4/lib-link.m4: Likewise.
53653         * m4/libsigsegv.m4: Likewise.
53654         * m4/link-follow.m4: Likewise.
53655         * m4/localcharset.m4: Likewise.
53656         * m4/locale-fr.m4: Likewise.
53657         * m4/locale-ja.m4: Likewise.
53658         * m4/locale-tr.m4: Likewise.
53659         * m4/locale-zh.m4: Likewise.
53660         * m4/lock.m4: Likewise.
53661         * m4/longlong.m4: Likewise.
53662         * m4/ls-mntd-fs.m4: Likewise.
53663         * m4/lstat.m4: Likewise.
53664         * m4/malloc.m4: Likewise.
53665         * m4/mathl.m4: Likewise.
53666         * m4/mbrtowc.m4: Likewise.
53667         * m4/mbstate_t.m4: Likewise.
53668         * m4/mbswidth.m4: Likewise.
53669         * m4/memchr.m4: Likewise.
53670         * m4/memcmp.m4: Likewise.
53671         * m4/memcpy.m4: Likewise.
53672         * m4/memmem.m4: Likewise.
53673         * m4/memmove.m4: Likewise.
53674         * m4/mempcpy.m4: Likewise.
53675         * m4/memrchr.m4: Likewise.
53676         * m4/memset.m4: Likewise.
53677         * m4/minmax.m4: Likewise.
53678         * m4/mkdir-slash.m4: Likewise.
53679         * m4/mkdtemp.m4: Likewise.
53680         * m4/mktime.m4: Likewise.
53681         * m4/mmap-anon.m4: Likewise.
53682         * m4/mountlist.m4: Likewise.
53683         * m4/nanosleep.m4: Likewise.
53684         * m4/nls.m4: Likewise.
53685         * m4/nocrash.m4: Likewise.
53686         * m4/open.m4: Likewise.
53687         * m4/openat.m4: Likewise.
53688         * m4/openmp.m4: Likewise.
53689         * m4/pathmax.m4: Likewise.
53690         * m4/perl.m4: Likewise.
53691         * m4/physmem.m4: Likewise.
53692         * m4/pipe.m4: Likewise.
53693         * m4/po.m4: Likewise.
53694         * m4/poll.m4: Likewise.
53695         * m4/posixtm.m4: Likewise.
53696         * m4/posixver.m4: Likewise.
53697         * m4/printf-frexp.m4: Likewise.
53698         * m4/printf-frexpl.m4: Likewise.
53699         * m4/printf-posix.m4: Likewise.
53700         * m4/printf-posix-rpl.m4: Likewise.
53701         * m4/printf.m4: Likewise.
53702         * m4/progtest.m4: Likewise.
53703         * m4/putenv.m4: Likewise.
53704         * m4/readline.m4: Likewise.
53705         * m4/readlink.m4: Likewise.
53706         * m4/readutmp.m4: Likewise.
53707         * m4/realloc.m4: Likewise.
53708         * m4/regex.m4: Likewise.
53709         * m4/relocatable.m4: Likewise.
53710         * m4/relocatable-lib.m4: Likewise.
53711         * m4/rename-dest-slash.m4: Likewise.
53712         * m4/rename.m4: Likewise.
53713         * m4/rmdir-errno.m4: Likewise.
53714         * m4/rmdir.m4: Likewise.
53715         * m4/roundf.m4: Likewise.
53716         * m4/roundl.m4: Likewise.
53717         * m4/rpmatch.m4: Likewise.
53718         * m4/save-cwd.m4: Likewise.
53719         * m4/selinux-selinux-h.m4: Likewise.
53720         * m4/setenv.m4: Likewise.
53721         * m4/settime.m4: Likewise.
53722         * m4/sig2str.m4: Likewise.
53723         * m4/sig_atomic_t.m4: Likewise.
53724         * m4/signalblocking.m4: Likewise.
53725         * m4/signbit.m4: Likewise.
53726         * m4/sigpipe.m4: Likewise.
53727         * m4/sockets.m4: Likewise.
53728         * m4/sockpfaf.m4: Likewise.
53729         * m4/st_dm_mode.m4: Likewise.
53730         * m4/stat-time.m4: Likewise.
53731         * m4/stdbool.m4: Likewise.
53732         * m4/stdint.m4: Likewise.
53733         * m4/stdint_h.m4: Likewise.
53734         * m4/stpcpy.m4: Likewise.
53735         * m4/stpncpy.m4: Likewise.
53736         * m4/strcase.m4: Likewise.
53737         * m4/strchrnul.m4: Likewise.
53738         * m4/strcspn.m4: Likewise.
53739         * m4/strdup.m4: Likewise.
53740         * m4/strftime.m4: Likewise.
53741         * m4/strndup.m4: Likewise.
53742         * m4/strnlen.m4: Likewise.
53743         * m4/strpbrk.m4: Likewise.
53744         * m4/strptime.m4: Likewise.
53745         * m4/strsep.m4: Likewise.
53746         * m4/strtod.m4: Likewise.
53747         * m4/strtoimax.m4: Likewise.
53748         * m4/strtok_r.m4: Likewise.
53749         * m4/strtol.m4: Likewise.
53750         * m4/strtoll.m4: Likewise.
53751         * m4/strtoul.m4: Likewise.
53752         * m4/strtoull.m4: Likewise.
53753         * m4/strtoumax.m4: Likewise.
53754         * m4/strverscmp.m4: Likewise.
53755         * m4/threadlib.m4: Likewise.
53756         * m4/timegm.m4: Likewise.
53757         * m4/tm_gmtoff.m4: Likewise.
53758         * m4/tmpdir.m4: Likewise.
53759         * m4/tmpfile.m4: Likewise.
53760         * m4/tzset.m4: Likewise.
53761         * m4/uintmax_t.m4: Likewise.
53762         * m4/unlinkdir.m4: Likewise.
53763         * m4/unlocked-io.m4: Likewise.
53764         * m4/uptime.m4: Likewise.
53765         * m4/userspec.m4: Likewise.
53766         * m4/utimbuf.m4: Likewise.
53767         * m4/utime.m4: Likewise.
53768         * m4/utimes-null.m4: Likewise.
53769         * m4/utimes.m4: Likewise.
53770         * m4/vararrays.m4: Likewise.
53771         * m4/vasnprintf.m4: Likewise.
53772         * m4/vfprintf-posix.m4: Likewise.
53773         * m4/vprintf-posix.m4: Likewise.
53774         * m4/wait-process.m4: Likewise.
53775         * m4/wchar_t.m4: Likewise.
53776         * m4/wint_t.m4: Likewise.
53777         * m4/write-any-file.m4: Likewise.
53778         * m4/yield.m4: Likewise.
53779
53780 2009-01-13  Bruno Haible  <bruno@clisp.org>
53781
53782         Avoid test-copy-file.sh failures when ACL support insufficient.
53783         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53784         TESTS_ENVIRONMENT.
53785         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53786         Reported by Jim Meyering.
53787
53788 2009-01-13  Bruno Haible  <bruno@clisp.org>
53789
53790         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53791         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53792         * modules/unistdio/u8-printf-parse (Files): Likewise.
53793         * modules/unistdio/u32-printf-parse (Files): Likewise.
53794         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53795
53796 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53797
53798         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53799         and m4/inttypes_h.m4 too.
53800
53801 2009-01-12  Eric Blake  <ebb9@byu.net>
53802
53803         tests: IRIX 6.2 cc can't compile -0.0 into .data
53804         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53805         rather than at compile-time.
53806         * tests/test-floorl.c (minus_zero): Likewise.
53807         * tests/test-frexpl.c (minus_zero): Likewise.
53808         * tests/test-isnan.c (minus_zerol): Likewise.
53809         * tests/test-isnanl.h (minus_zero): Likewise.
53810         * tests/test-ldexpl.c (minus_zero): Likewise.
53811         * tests/test-roundl.c (minus_zero): Likewise.
53812         * tests/test-signbit.c (minus_zerol): Likewise.
53813         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53814         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53815         * tests/test-truncl.c (minus_zero): Likewise.
53816         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53817         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53818         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53819
53820 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53821
53822         regex: fix glibc bug 9697
53823         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53824         handling.
53825
53826 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53827
53828         regex: fix glibc bug 697
53829         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53830         being NULL also if there are no backreferences.
53831
53832 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53833
53834         regex: merge glibc changes
53835         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53836         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53837         re_string_skip_chars, re_string_reconstruct): Likewise.
53838         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53839
53840 2009-01-07  Jim Meyering  <meyering@redhat.com>
53841
53842         poll: filter through cppi
53843         * lib/poll.c: Indent cpp directives to reflect nesting.
53844
53845 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53846
53847         poll: don't return uninitialized
53848         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53849
53850 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53851
53852         avoid compile failure on AIX 6.1
53853         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53854         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53855
53856 2009-01-04  Jim Meyering  <meyering@redhat.com>
53857
53858         remove duplicate inclusion of <stdio.h>
53859         * tests/test-fprintf-posix.c: Likewise.
53860         * tests/test-printf-posix.c: Likewise.
53861         * tests/test-snprintf-posix.c: Likewise.
53862         * tests/test-sprintf-posix.c: Likewise.
53863         * tests/test-vasprintf-posix.c: Likewise.
53864         * tests/test-vfprintf-posix.c: Likewise.
53865         * tests/test-vprintf-posix.c: Likewise.
53866         * tests/test-vsnprintf-posix.c: Likewise.
53867         * tests/test-vsprintf-posix.c: Likewise.
53868
53869 2009-01-03  Jim Meyering  <meyering@redhat.com>
53870
53871         gnulib-tool: fix sed-based filtering
53872         * gnulib-tool (func_filter_filelist): Remove extra backslash
53873         in sed_fff_filter definition.
53874
53875 2009-01-02  Jim Meyering  <meyering@redhat.com>
53876
53877         strftime: avoid compilation failure on Solaris 2.6
53878         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53879         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53880         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53881         be available.  Reported by Tom G. Christensen.  Details in
53882         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53883
53884 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53885             Bruno Haible  <bruno@clisp.org>
53886
53887         Speed up gnulib-tool by doing more string processing through shell
53888         built-ins.
53889         * gnulib-tool (fast_func_append): New variable.
53890         (func_remove_prefix, func_remove_suffix): New functions.
53891         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53892         (func_filter_filelist): New function.
53893         (func_get_dependencies): Use func_remove_suffix instead of sed.
53894         (func_get_automake_snippet): Use func_filter_filelist instead of a
53895         subshell and sed invocation.
53896
53897 2009-01-01  Bruno Haible  <bruno@clisp.org>
53898
53899         Fix a security bug.
53900         * gnulib-tool (func_import, import, update): Don't allow the characters
53901         '"', '$', '`', '\' in macro arguments that become part of commands that
53902         are evaluated.
53903
53904 2009-01-01  Bruno Haible  <bruno@clisp.org>
53905
53906         * gnulib-tool (func_reset_sigpipe): Add more comments.
53907
53908 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53909
53910         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53911         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53912         already know the answer.
53913
53914 2009-01-01  Jim Meyering  <meyering@redhat.com>
53915
53916         * lib/version-etc.c (version_etc_va): Update copyright year.
53917
53918 2008-12-30  Bruno Haible  <bruno@clisp.org>
53919
53920         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53921         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53922         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53923
53924 2008-12-29  Eric Blake  <ebb9@byu.net>
53925
53926         multiarch: avoid autoconf AC_REQUIRE bug
53927         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53928         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53929         2.63 and older.
53930         Reported by Bruno Haible, and analyzed in
53931         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53932
53933 2008-12-29  Bruno Haible  <bruno@clisp.org>
53934
53935         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53936         files in subdirectories correctly.
53937         Reported by Ralf Wildenhues.
53938
53939 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53940
53941         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53942         rather than 'join FILE -', for Solaris join.
53943
53944 2008-12-29  Bruno Haible  <bruno@clisp.org>
53945
53946         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53947         quoting.
53948         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53949         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53950         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53951         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53952         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53953         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53954         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53955         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53956         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53957         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53958         * m4/nls.m4 (AM_NLS): Likewise.
53959         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53960         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53961         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53962         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53963         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53964         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53965         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53966         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53967         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53968         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53969         * m4/xsize.m4 (gl_XSIZE): Likewise.
53970         Suggested by Jim Meyering.
53971
53972 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53973
53974         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53975         * lib/parse-duration.c: use a switch instead of cascading if's.
53976
53977 2008-12-29  Eric Blake  <ebb9@byu.net>
53978
53979         wchar.h: supply WEOF on Irix 5.3
53980         * lib/wchar.in.h (wint_t): Also supply WEOF.
53981         * lib/wctype.in.h (wint_t): Likewise.
53982         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53983         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53984         Reported by Tom G. Christensen.
53985
53986 2008-12-26  Bruno Haible  <bruno@clisp.org>
53987
53988         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53989         i486, i586, i686.
53990
53991 2008-12-26  Bruno Haible  <bruno@clisp.org>
53992
53993         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53994
53995 2008-12-26  Bruno Haible  <bruno@clisp.org>
53996
53997         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53998         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53999         not __STDC_CONSTANT_MACROS.
54000         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54001
54002 2008-12-25  Bruno Haible  <bruno@clisp.org>
54003
54004         Add support for universal builds to vasnprintf.
54005         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
54006         universal builds, guess no.
54007         * modules/vasnprintf-posix (Depends-on): Add multiarch.
54008         * modules/vasprintf-posix (Depends-on): Likewise.
54009         * modules/fprintf-posix (Depends-on): Likewise.
54010         * modules/vfprintf-posix (Depends-on): Likewise.
54011         * modules/snprintf-posix (Depends-on): Likewise.
54012         * modules/vsnprintf-posix (Depends-on): Likewise.
54013         * modules/sprintf-posix (Depends-on): Likewise.
54014         * modules/vsprintf-posix (Depends-on): Likewise.
54015         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54016         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54017         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54018         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54019         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54020         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54021         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54022
54023         Add support for universal builds to <inttypes.h>.
54024         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
54025         _SCNu64_PREFIX): In Apple
54026         universal builds, define directly, using _LP64.
54027         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
54028         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
54029         * modules/inttypes (Depends-on): Add multiarch.
54030         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
54031
54032         Add support for universal builds to <stdint.h>.
54033         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
54034         universal builds, define directly, using _LP64.
54035         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
54036         Apple universal builds, don't test for the size and suffix of ptrdiff_t
54037         and size_t.
54038         * modules/stdint (Depends-on): Add multiarch.
54039         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
54040
54041         New module 'multiarch'.
54042         * modules/multiarch: New file.
54043         * m4/multiarch.m4: New file.
54044
54045 2008-12-25  Bruno Haible  <bruno@clisp.org>
54046
54047         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
54048
54049 2008-12-25  Bruno Haible  <bruno@clisp.org>
54050
54051         * modules/btowc (License): Relicense under LGPLv2+.
54052         * modules/mbsinit (License): Likewise.
54053         * modules/mbrtowc (License): Likewise.
54054         * modules/wcrtomb (License): Likewise.
54055         * modules/streq (License): Likewise.
54056         Reported by David Lutterkort <lutter@redhat.com>.
54057
54058 2008-12-23  Bruno Haible  <bruno@clisp.org>
54059
54060         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
54061
54062 2008-12-23  Bruno Haible  <bruno@clisp.org>
54063
54064         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
54065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
54066         GETADDRINFO_LIB, not in LIBS.
54067         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
54068         * modules/canon-host (Link): Likewise.
54069         * NEWS: Mention the change.
54070         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
54071         GETADDRINFO_LIB.
54072
54073 2008-12-22  Bruno Haible  <bruno@clisp.org>
54074
54075         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
54076         * doc/posix-functions/iswalpha_l.texi: Likewise.
54077         * doc/posix-functions/iswblank_l.texi: Likewise.
54078         * doc/posix-functions/iswcntrl_l.texi: Likewise.
54079         * doc/posix-functions/iswctype_l.texi: Likewise.
54080         * doc/posix-functions/iswdigit_l.texi: Likewise.
54081         * doc/posix-functions/iswgraph_l.texi: Likewise.
54082         * doc/posix-functions/iswlower_l.texi: Likewise.
54083         * doc/posix-functions/iswprint_l.texi: Likewise.
54084         * doc/posix-functions/iswpunct_l.texi: Likewise.
54085         * doc/posix-functions/iswspace_l.texi: Likewise.
54086         * doc/posix-functions/iswupper_l.texi: Likewise.
54087         * doc/posix-functions/iswxdigit_l.texi: Likewise.
54088         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
54089         * doc/posix-functions/open_wmemstream.texi: Likewise.
54090         * doc/posix-functions/swscanf.texi: Likewise.
54091         * doc/posix-functions/towctrans_l.texi: Likewise.
54092         * doc/posix-functions/towlower.texi: Likewise.
54093         * doc/posix-functions/towlower_l.texi: Likewise.
54094         * doc/posix-functions/towupper.texi: Likewise.
54095         * doc/posix-functions/towupper_l.texi: Likewise.
54096         * doc/posix-functions/vfwprintf.texi: Likewise.
54097         * doc/posix-functions/vfwscanf.texi: Likewise.
54098         * doc/posix-functions/vswscanf.texi: Likewise.
54099         * doc/posix-functions/vwprintf.texi: Likewise.
54100         * doc/posix-functions/vwscanf.texi: Likewise.
54101         * doc/posix-functions/wcpcpy.texi: Likewise.
54102         * doc/posix-functions/wcpncpy.texi: Likewise.
54103         * doc/posix-functions/wcscasecmp.texi: Likewise.
54104         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
54105         * doc/posix-functions/wcscoll_l.texi: Likewise.
54106         * doc/posix-functions/wcsdup.texi: Likewise.
54107         * doc/posix-functions/wcsncasecmp.texi: Likewise.
54108         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
54109         * doc/posix-functions/wcsnlen.texi: Likewise.
54110         * doc/posix-functions/wcsnrtombs.texi: Likewise.
54111         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
54112         * doc/posix-functions/wctrans_l.texi: Likewise.
54113         * doc/posix-functions/wctype_l.texi: Likewise.
54114         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
54115         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
54116         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
54117         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
54118         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
54119         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
54120         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
54121         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
54122         * doc/glibc-functions/wcschrnul.texi: Likewise.
54123         * doc/glibc-functions/wcsftime_l.texi: Likewise.
54124         * doc/glibc-functions/wcstod_l.texi: Likewise.
54125         * doc/glibc-functions/wcstof_l.texi: Likewise.
54126         * doc/glibc-functions/wcstol_l.texi: Likewise.
54127         * doc/glibc-functions/wcstold_l.texi: Likewise.
54128         * doc/glibc-functions/wcstoll_l.texi: Likewise.
54129         * doc/glibc-functions/wcstoq.texi: Likewise.
54130         * doc/glibc-functions/wcstoul_l.texi: Likewise.
54131         * doc/glibc-functions/wcstoull_l.texi: Likewise.
54132         * doc/glibc-functions/wcstouq.texi: Likewise.
54133         * doc/glibc-functions/wmempcpy.texi: Likewise.
54134
54135 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
54136             Eric Blake  <ebb9@byu.net>
54137             Paolo Bonzini  <bonzini@gnu.org>
54138             Bruno Haible  <bruno@clisp.org>
54139
54140         Make c-stack work on Haiku.
54141         * lib/c-stack.c (SA_ONSTACK): Define fallback.
54142         (c_stack_action): Use SA_ONSTACK flag.
54143
54144 2008-12-22  Bruno Haible  <bruno@clisp.org>
54145
54146         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
54147
54148 2008-12-22  Bruno Haible  <bruno@clisp.org>
54149
54150         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
54151         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
54152         being overridden.
54153         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
54154         New macros.
54155         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
54156         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
54157         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
54158         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
54159
54160 2008-12-22  Bruno Haible  <bruno@clisp.org>
54161
54162         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
54163         from test code.
54164
54165 2008-12-22  Eric Blake  <ebb9@byu.net>
54166
54167         Avoid gcc warnings on cygwin.
54168         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
54169         Avoid unused variable.
54170         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
54171         Likewise.
54172
54173 2008-12-22  Bruno Haible  <bruno@clisp.org>
54174
54175         Remove HAVE_MBRTOWC conditionals.
54176         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
54177         (mbscasecmp): Assume mbrtowc function.
54178         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
54179         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
54180         * lib/mbschr.c: Include mbuiter.h unconditionally.
54181         (mbschr): Assume mbrtowc function.
54182         * lib/mbscspn.c: Include mbuiter.h unconditionally.
54183         (mbscspn): Assume mbrtowc function.
54184         * lib/mbslen.c: Include mbuiter.h unconditionally.
54185         (mbslen): Assume mbrtowc function.
54186         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
54187         (mbsncasecmp): Assume mbrtowc function.
54188         * lib/mbsnlen.c: Include mbiter.h unconditionally.
54189         (mbsnlen): Assume mbrtowc function.
54190         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
54191         (mbspbrk): Assume mbrtowc function.
54192         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
54193         (mbspcasecmp): Assume mbrtowc function.
54194         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
54195         (mbsrchr): Assume mbrtowc function.
54196         * lib/mbssep.c: Include mbuiter.h unconditionally.
54197         (mbssep): Assume mbrtowc function.
54198         * lib/mbsspn.c: Include mbuiter.h unconditionally.
54199         (mbsspn): Assume mbrtowc function.
54200         * lib/mbsstr.c: Include mbuiter.h unconditionally.
54201         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
54202         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
54203         (mbstok_r): Assume mbrtowc function.
54204         * lib/propername.c: Include mbuiter.h unconditionally.
54205         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
54206         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
54207         (trim2): Assume mbrtowc function.
54208         * lib/mbswidth.c (mbsinit): Remove fallback definition.
54209         (mbsnwidth): Assume mbrtowc function.
54210         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
54211         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
54212         fallback definitions.
54213         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
54214
54215 2008-12-22  Bruno Haible  <bruno@clisp.org>
54216
54217         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
54218
54219 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
54220
54221         * modules/regex: Request emulations for the mb*/wc* functions we need.
54222         * m4/regex.m4: Don't look for those functions here.
54223         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
54224
54225 2008-12-22  Bruno Haible  <bruno@clisp.org>
54226
54227         * modules/fnmatch (Depends-on): Remove duplicated dependency.
54228
54229 2008-12-21  Bruno Haible  <bruno@clisp.org>
54230
54231         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
54232         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
54233         (Include): Remove conditionalization.
54234         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
54235         (Include): Remove conditionalization.
54236         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
54237         (Include): Remove conditionalization.
54238         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
54239         * m4/mbfile.m4 (gl_MBFILE): Likewise.
54240         * NEWS: Mention the change.
54241         Reported by Alan Hourihane <alanh@fairlite.co.uk>
54242         via Sergey Poznyakoff <gray@gnu.org.ua>.
54243
54244 2008-12-21  Bruno Haible  <bruno@clisp.org>
54245
54246         * MODULES.html.sh (Extended multibyte and wide character utilities
54247         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
54248         wcrtomb, wcsrtombs.
54249         (Support for systems lacking POSIX:2008): Add accept, bind, close,
54250         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
54251         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
54252         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
54253
54254 2008-12-21  Bruno Haible  <bruno@clisp.org>
54255
54256         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
54257
54258 2008-12-21  Bruno Haible  <bruno@clisp.org>
54259
54260         * modules/wcsnrtombs-tests: New file.
54261         * tests/test-wcsnrtombs1.sh: New file.
54262         * tests/test-wcsnrtombs2.sh: New file.
54263         * tests/test-wcsnrtombs3.sh: New file.
54264         * tests/test-wcsnrtombs4.sh: New file.
54265         * tests/test-wcsnrtombs.c: New file.
54266
54267         New module 'wcsnrtombs'.
54268         * lib/wchar.in.h (wcsnrtombs): New declaration.
54269         * lib/wcsnrtombs.c: New file.
54270         * lib/wcsrtombs-state.c: New file.
54271         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
54272         (internal_state): Remove variable.
54273         * m4/wcsnrtombs.m4: New file.
54274         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
54275         compilation units.
54276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
54277         HAVE_WCSNRTOMBS.
54278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
54279         HAVE_WCSNRTOMBS.
54280         * modules/wcsnrtombs: New file.
54281         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
54282         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
54283
54284 2008-12-21  Bruno Haible  <bruno@clisp.org>
54285
54286         * modules/wcsrtombs-tests: New file.
54287         * tests/test-wcsrtombs1.sh: New file.
54288         * tests/test-wcsrtombs2.sh: New file.
54289         * tests/test-wcsrtombs3.sh: New file.
54290         * tests/test-wcsrtombs4.sh: New file.
54291         * tests/test-wcsrtombs.c: New file.
54292
54293         New module 'wcsrtombs'.
54294         * lib/wchar.in.h (wcsrtombs): New declaration.
54295         * lib/wcsrtombs.c: New file.
54296         * m4/wcsrtombs.m4: New file.
54297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
54298         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54299         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
54300         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54301         * modules/wcsrtombs: New file.
54302         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
54303         bugs.
54304
54305 2008-12-21  Bruno Haible  <bruno@clisp.org>
54306
54307         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
54308         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
54309         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
54310         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
54311         if not correct.
54312         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
54313         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
54314         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54315         m4/locale-zh.m4, m4/codeset.m4.
54316         * doc/posix-functions/wcrtomb.texi: Document the bug.
54317
54318 2008-12-21  Bruno Haible  <bruno@clisp.org>
54319
54320         Work around a btowc() bug on IRIX 6.5.
54321         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
54322         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
54323         REPLACE_WTOBC if not.
54324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
54325         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
54326         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
54327
54328 2008-12-21  Bruno Haible  <bruno@clisp.org>
54329
54330         * modules/wcrtomb-tests: New file.
54331         * tests/test-wcrtomb.sh: New file.
54332         * tests/test-wcrtomb.c: New file.
54333
54334         New module 'wcrtomb'.
54335         * lib/wchar.in.h (wcrtomb): New declaration.
54336         * lib/wcrtomb.c: New file.
54337         * m4/wcrtomb.m4: New file.
54338         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
54339         HAVE_WCRTOMB.
54340         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
54341         HAVE_WCRTOMB.
54342         * modules/wcrtomb: New file.
54343         * doc/posix-functions/wcrtomb.texi: Mention the new module.
54344
54345 2008-12-21  Bruno Haible  <bruno@clisp.org>
54346
54347         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
54348         * modules/mbsrtowcs (Files): Likewise.
54349         * modules/wctob (Files): Likewise.
54350         * modules/c-strcase-tests (Files): Likewise.
54351         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
54352         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
54353         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
54354         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54355         * modules/vasnprintf-posix-tests (Files): Likewise.
54356
54357 2008-12-21  William Pursell  <bill.pursell@gmail.com>
54358
54359         gitlog-to-changelog: pass all command-line arguments to git-log
54360         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
54361         it is sometimes convenient to filter the commits in various ways.
54362         gitlog-to-changelog only allows --since to specify a start date,
54363         but git-log itself supports many other filtering mechanisms.
54364         At the moment, I want to filter by branch name.  Rather than
54365         adding a --branch option to gitlog-to-changelog, it seems more
54366         flexible to simply pass all options directly to git-log and let
54367         git do the work.  Notice that this effectively makes --since a
54368         redundant option for gitlog-to-changelog, but removing it would
54369         require current usage to change since calls would then require
54370         an additional '--'.
54371
54372 2008-12-21  Bruno Haible  <bruno@clisp.org>
54373
54374         * modules/mbsnrtowcs-tests: New file.
54375         * tests/test-mbsnrtowcs1.sh: New file.
54376         * tests/test-mbsnrtowcs2.sh: New file.
54377         * tests/test-mbsnrtowcs3.sh: New file.
54378         * tests/test-mbsnrtowcs4.sh: New file.
54379         * tests/test-mbsnrtowcs.c: New file.
54380
54381         New module 'mbsnrtowcs'.
54382         * lib/wchar.in.h (mbsnrtowcs): New declaration.
54383         * lib/mbsnrtowcs.c: New file.
54384         * lib/mbsrtowcs-state.c: New file.
54385         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
54386         (internal_state): Remove variable.
54387         * m4/mbsnrtowcs.m4: New file.
54388         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
54389         compilation units.
54390         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
54391         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54392         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
54393         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54394         * modules/mbsnrtowcs: New file.
54395         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
54396         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
54397         portability problem.
54398
54399 2008-12-21  Bruno Haible  <bruno@clisp.org>
54400
54401         Work around mbsrtowcs bug.
54402         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
54403         (gl_FUNC_MBSRTOWCS): Invoke it.
54404         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54405         m4/locale-zh.m4.
54406         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
54407
54408 2008-12-21  Bruno Haible  <bruno@clisp.org>
54409
54410         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
54411
54412 2008-12-21  Bruno Haible  <bruno@clisp.org>
54413
54414         Update doc for AIX.
54415         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
54416         16-bit wchar_t type.
54417         * doc/posix-functions/btowc.texi: Likewise.
54418         * doc/posix-functions/fgetwc.texi: Likewise.
54419         * doc/posix-functions/fgetws.texi: Likewise.
54420         * doc/posix-functions/fputwc.texi: Likewise.
54421         * doc/posix-functions/fputws.texi: Likewise.
54422         * doc/posix-functions/fwide.texi: Likewise.
54423         * doc/posix-functions/fwprintf.texi: Likewise.
54424         * doc/posix-functions/fwscanf.texi: Likewise.
54425         * doc/posix-functions/getwchar.texi: Likewise.
54426         * doc/posix-functions/getwc.texi: Likewise.
54427         * doc/posix-functions/iswalnum.texi: Likewise.
54428         * doc/posix-functions/iswalpha.texi: Likewise.
54429         * doc/posix-functions/iswblank.texi: Likewise.
54430         * doc/posix-functions/iswcntrl.texi: Likewise.
54431         * doc/posix-functions/iswctype.texi: Likewise.
54432         * doc/posix-functions/iswdigit.texi: Likewise.
54433         * doc/posix-functions/iswgraph.texi: Likewise.
54434         * doc/posix-functions/iswlower.texi: Likewise.
54435         * doc/posix-functions/iswprint.texi: Likewise.
54436         * doc/posix-functions/iswpunct.texi: Likewise.
54437         * doc/posix-functions/iswspace.texi: Likewise.
54438         * doc/posix-functions/iswupper.texi: Likewise.
54439         * doc/posix-functions/iswxdigit.texi: Likewise.
54440         * doc/posix-functions/mbrtowc.texi: Likewise.
54441         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54442         * doc/posix-functions/mbstowcs.texi: Likewise.
54443         * doc/posix-functions/mbtowc.texi: Likewise.
54444         * doc/posix-functions/putwchar.texi: Likewise.
54445         * doc/posix-functions/putwc.texi: Likewise.
54446         * doc/posix-functions/swprintf.texi: Likewise.
54447         * doc/posix-functions/tolower.texi: Likewise.
54448         * doc/posix-functions/toupper.texi: Likewise.
54449         * doc/posix-functions/towctrans.texi: Likewise.
54450         * doc/posix-functions/ungetwc.texi: Likewise.
54451         * doc/posix-functions/vswprintf.texi: Likewise.
54452         * doc/posix-functions/wcrtomb.texi: Likewise.
54453         * doc/posix-functions/wcscat.texi: Likewise.
54454         * doc/posix-functions/wcschr.texi: Likewise.
54455         * doc/posix-functions/wcscmp.texi: Likewise.
54456         * doc/posix-functions/wcscoll.texi: Likewise.
54457         * doc/posix-functions/wcscpy.texi: Likewise.
54458         * doc/posix-functions/wcscspn.texi: Likewise.
54459         * doc/posix-functions/wcsftime.texi: Likewise.
54460         * doc/posix-functions/wcslen.texi: Likewise.
54461         * doc/posix-functions/wcsncat.texi: Likewise.
54462         * doc/posix-functions/wcsncmp.texi: Likewise.
54463         * doc/posix-functions/wcsncpy.texi: Likewise.
54464         * doc/posix-functions/wcspbrk.texi: Likewise.
54465         * doc/posix-functions/wcsrchr.texi: Likewise.
54466         * doc/posix-functions/wcsrtombs.texi: Likewise.
54467         * doc/posix-functions/wcsspn.texi: Likewise.
54468         * doc/posix-functions/wcsstr.texi: Likewise.
54469         * doc/posix-functions/wcstod.texi: Likewise.
54470         * doc/posix-functions/wcstof.texi: Likewise.
54471         * doc/posix-functions/wcstoimax.texi: Likewise.
54472         * doc/posix-functions/wcstok.texi: Likewise.
54473         * doc/posix-functions/wcstold.texi: Likewise.
54474         * doc/posix-functions/wcstoll.texi: Likewise.
54475         * doc/posix-functions/wcstol.texi: Likewise.
54476         * doc/posix-functions/wcstombs.texi: Likewise.
54477         * doc/posix-functions/wcstoull.texi: Likewise.
54478         * doc/posix-functions/wcstoul.texi: Likewise.
54479         * doc/posix-functions/wcstoumax.texi: Likewise.
54480         * doc/posix-functions/wcswidth.texi: Likewise.
54481         * doc/posix-functions/wcsxfrm.texi: Likewise.
54482         * doc/posix-functions/wctob.texi: Likewise.
54483         * doc/posix-functions/wctomb.texi: Likewise.
54484         * doc/posix-functions/wctrans.texi: Likewise.
54485         * doc/posix-functions/wctype.texi: Likewise.
54486         * doc/posix-functions/wcwidth.texi: Likewise.
54487         * doc/posix-functions/wmemchr.texi: Likewise.
54488         * doc/posix-functions/wmemcmp.texi: Likewise.
54489         * doc/posix-functions/wmemcpy.texi: Likewise.
54490         * doc/posix-functions/wmemmove.texi: Likewise.
54491         * doc/posix-functions/wmemset.texi: Likewise.
54492         * doc/posix-functions/wprintf.texi: Likewise.
54493         * doc/posix-functions/wscanf.texi: Likewise.
54494
54495 2008-12-21  Bruno Haible  <bruno@clisp.org>
54496
54497         Update doc for HP-UX 11.11.
54498         * doc/posix-functions/btowc.texi: Clarify that the function is missing
54499         in HP-UX version 11.00, not in all versions of HP-UX 11.
54500         * doc/posix-functions/fwide.texi: Likewise.
54501         * doc/posix-functions/fwprintf.texi: Likewise.
54502         * doc/posix-functions/fwscanf.texi: Likewise.
54503         * doc/posix-functions/inet_ntop.texi: Likewise.
54504         * doc/posix-functions/inet_pton.texi: Likewise.
54505         * doc/posix-functions/mbrlen.texi: Likewise.
54506         * doc/posix-functions/mbrtowc.texi: Likewise.
54507         * doc/posix-functions/mbsinit.texi: Likewise.
54508         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54509         * doc/posix-functions/swprintf.texi: Likewise.
54510         * doc/posix-functions/swscanf.texi: Likewise.
54511         * doc/posix-functions/towctrans.texi: Likewise.
54512         * doc/posix-functions/vfwprintf.texi: Likewise.
54513         * doc/posix-functions/vswprintf.texi: Likewise.
54514         * doc/posix-functions/vwprintf.texi: Likewise.
54515         * doc/posix-functions/wcrtomb.texi: Likewise.
54516         * doc/posix-functions/wcsrtombs.texi: Likewise.
54517         * doc/posix-functions/wcsstr.texi: Likewise.
54518         * doc/posix-functions/wctob.texi: Likewise.
54519         * doc/posix-functions/wctrans.texi: Likewise.
54520         * doc/posix-functions/wmemchr.texi: Likewise.
54521         * doc/posix-functions/wmemcmp.texi: Likewise.
54522         * doc/posix-functions/wmemcpy.texi: Likewise.
54523         * doc/posix-functions/wmemmove.texi: Likewise.
54524         * doc/posix-functions/wmemset.texi: Likewise.
54525         * doc/posix-functions/wprintf.texi: Likewise.
54526         * doc/posix-functions/wscanf.texi: Likewise.
54527
54528 2008-12-21  Bruno Haible  <bruno@clisp.org>
54529
54530         Work around a portability problem.
54531         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54532         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54533
54534 2008-12-20  Bruno Haible  <bruno@clisp.org>
54535
54536         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54537         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54538         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54539         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54540         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54541
54542         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54543         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54544         set.
54545         (GNULIB_defined_mbstate_t): New macro.
54546         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54547         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54548         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54549         reuses the system's mbrtowc function but works around the bugs.
54550         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54551         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54552         macros.
54553         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54554         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54555         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54556         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54557         REPLACE_MBSINIT if mbsinit needs to be overridden.
54558         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54559         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54560         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54561         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54562         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54563         m4/locale-zh.m4.
54564         (Depends): Add mbsinit.
54565         * modules/mbsinit (Depends): Add mbrtowc.
54566         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54567
54568 2008-12-20  Bruno Haible  <bruno@clisp.org>
54569
54570         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54571         so that there are no conversion errors on AIX.
54572         * tests/test-mbsrtowcs.c (main): LIkewise.
54573
54574 2008-12-20  Bruno Haible  <bruno@clisp.org>
54575
54576         Work around wctob bug on Solaris <= 9.
54577         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54578         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54579         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54580         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54581         * modules/wctob (Files): Add m4/locale-fr.m4.
54582         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54583
54584 2008-12-20  Bruno Haible  <bruno@clisp.org>
54585
54586         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54587         /dev/null.
54588         * tests/test-select-in.sh: Likewise.
54589         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54590
54591 2008-12-20  Bruno Haible  <bruno@clisp.org>
54592
54593         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54594         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54595         Cygwin 1.5.x.
54596
54597 2008-12-20  Bruno Haible  <bruno@clisp.org>
54598
54599         Ensure mbstate_t is defined on HP-UX 11.11.
54600         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54601         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54602         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54603         AC_USE_SYSTEM_EXTENSIONS.
54604         * modules/fnmatch (Depends-on): Add extensions.
54605         * modules/mbrlen (Depends-on): Likewise.
54606         * modules/mbrtowc (Depends-on): Likewise.
54607         * modules/mbsinit (Depends-on): Likewise.
54608         * modules/mbsrtowcs (Depends-on): Likewise.
54609         * modules/mbswidth (Depends-on): Likewise.
54610         * modules/quotearg (Depends-on): Likewise.
54611         * modules/strftime (Depends-on): Likewise.
54612
54613 2008-12-20  Bruno Haible  <bruno@clisp.org>
54614
54615         Ensure wctob is declared on IRIX 6.5.
54616         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54617         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54618         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54619         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54620         of HAVE_WCTOB.
54621         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54622         HAVE_WCTOB.
54623         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54624
54625 2008-12-19  Bruno Haible  <bruno@clisp.org>
54626
54627         * modules/mbsrtowcs-tests: New file.
54628         * tests/test-mbsrtowcs1.sh: New file.
54629         * tests/test-mbsrtowcs2.sh: New file.
54630         * tests/test-mbsrtowcs3.sh: New file.
54631         * tests/test-mbsrtowcs4.sh: New file.
54632         * tests/test-mbsrtowcs.c: New file.
54633
54634         New module 'mbsrtowcs'.
54635         * lib/wchar.in.h (mbsrtowcs): New declaration.
54636         * lib/mbsrtowcs.c: New file.
54637         * m4/mbsrtowcs.m4: New file.
54638         * modules/mbsrtowcs: New file.
54639         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54640         HAVE_MBSRTOWCS.
54641         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54642         HAVE_MBSRTOWCS.
54643         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54644
54645 2008-12-19  Bruno Haible  <bruno@clisp.org>
54646
54647         New module 'mbrlen'.
54648         * lib/wchar.in.h (mbrlen): New declaration.
54649         * lib/mbrlen.c: New file.
54650         * m4/mbrlen.m4: New file.
54651         * modules/mbrlen: New file.
54652         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54653         HAVE_MBRLEN.
54654         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54655         HAVE_MBRLEN.
54656         * doc/posix-functions/mbrlen.texi: Document the new module.
54657
54658 2008-12-19  Bruno Haible  <bruno@clisp.org>
54659
54660         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54661         * modules/mbrtowc (Depends-on): Add verify.
54662         Suggested by Paul Eggert.
54663
54664 2008-12-18  Bruno Haible  <bruno@clisp.org>
54665
54666         * modules/mbsinit-tests: New file.
54667         * tests/test-mbsinit.sh: New file.
54668         * tests/test-mbsinit.c: New file.
54669
54670 2008-12-18  Bruno Haible  <bruno@clisp.org>
54671
54672         * modules/mbrtowc-tests: New file.
54673         * tests/test-mbrtowc1.sh: New file.
54674         * tests/test-mbrtowc2.sh: New file.
54675         * tests/test-mbrtowc3.sh: New file.
54676         * tests/test-mbrtowc4.sh: New file.
54677         * tests/test-mbrtowc.c: New file.
54678
54679         New module 'mbrtowc'.
54680         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54681         mbsinit and mbrtowc.
54682         (mbrtowc): New declaration.
54683         * lib/mbrtowc.c: New file.
54684         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54685         * modules/mbrtowc: New file.
54686         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54687         HAVE_MBRTOWC.
54688         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54689         HAVE_MBRTOWC.
54690         * doc/posix-functions/mbrtowc.texi: Document the new module.
54691
54692 2008-12-18  Bruno Haible  <bruno@clisp.org>
54693
54694         New module 'wctob'.
54695         * lib/wchar.in.h (wctob): New declaration.
54696         * lib/wctob.c: New file.
54697         * m4/wctob.m4: New file.
54698         * modules/wctob: New file.
54699         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54700         HAVE_WCTOB.
54701         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54702         * doc/posix-functions/wctob.texi: Document the new module.
54703
54704 2008-12-18  Bruno Haible  <bruno@clisp.org>
54705
54706         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54707         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54708
54709 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54710
54711         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54712         G. Christensen" <tgc@jupiterrise.com>.
54713
54714         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54715         G. Christensen" <tgc@jupiterrise.com>.
54716
54717         * lib/flock.c: Need to include string.h.  Reported by "Tom
54718         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54719         <ebb9@byu.net>.
54720
54721 2008-12-18  Bruno Haible  <bruno@clisp.org>
54722
54723         * m4/locale-ja.m4: New file, from GNU gettext.
54724
54725 2008-12-17  Bruno Haible  <bruno@clisp.org>
54726
54727         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54728         Suggested by Eric Blake.
54729
54730 2008-12-17  Bruno Haible  <bruno@clisp.org>
54731
54732         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54733
54734 2008-12-17  Bruno Haible  <bruno@clisp.org>
54735
54736         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54737         * modules/mbsinit (Depends-on): Add verify.
54738         Suggested by Paul Eggert.
54739
54740 2008-12-17  Bruno Haible  <bruno@clisp.org>
54741
54742         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54743         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54744         gl_FUNC_MBRTOWC.
54745         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54746         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54747         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54748         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54749         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54750         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54751         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54752         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54753         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54754         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54755         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54756         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54757         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54758         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54759         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54760         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54761         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54762         * modules/trim (configure.ac): Likewise.
54763
54764 2008-12-17  Bruno Haible  <bruno@clisp.org>
54765
54766         * modules/btowc-tests: New file.
54767         * tests/test-btowc1.sh: New file.
54768         * tests/test-btowc2.sh: New file.
54769         * tests/test-btowc.c: New file.
54770
54771         New module 'btowc'.
54772         * lib/wchar.in.h (btowc): New declaration.
54773         * lib/btowc.c: New file.
54774         * m4/btowc.m4: New file.
54775         * modules/btowc: New file.
54776         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54777         HAVE_BTOWC.
54778         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54779         * doc/posix-functions/btowc.texi: Document the new module.
54780
54781 2008-12-17  Bruno Haible  <bruno@clisp.org>
54782
54783         New module 'mbsinit'.
54784         * lib/wchar.in.h (mbsinit): New declaration.
54785         * lib/mbsinit.c: New file.
54786         * m4/mbsinit.m4: New file.
54787         * modules/mbsinit: New file.
54788         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54789         HAVE_MBSINIT.
54790         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54791         HAVE_MBSINIT.
54792         * doc/posix-functions/mbsinit.texi: Document the new module.
54793
54794 2008-12-16  Bruno Haible  <bruno@clisp.org>
54795
54796         * lib/unistd.in.h: Add comment.
54797         * tests/test-environ.c: Don't include <stdlib.h>.
54798
54799 2008-12-16  Bruno Haible  <bruno@clisp.org>
54800
54801         * lib/parse-duration.h (parse_duration): Document return value
54802         convention.
54803         * lib/parse-duration.c: Include specification header first. Add
54804         comments.
54805         (_): Remove macro.
54806         (parse_year_month_day, parse_hour_minute_second): Move side effects
54807         outside of strchr call.
54808         (parse_non_iso8601): Move side effects outside of isspace call.
54809         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54810         call.
54811
54812 2008-12-16  Bruno Haible  <bruno@clisp.org>
54813
54814         * tests/test-parse-duration.sh: Produce no output when the test
54815         succeeds.
54816
54817 2008-12-16  Bruno Haible  <bruno@clisp.org>
54818
54819         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54820         expressions.
54821
54822 2008-12-15  Bruno Haible  <bruno@clisp.org>
54823
54824         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54825         * doc/glibc-functions/flistxattr.texi: Likewise.
54826         * doc/glibc-functions/fopencookie.texi: Likewise.
54827         * doc/glibc-functions/fremovexattr.texi: Likewise.
54828         * doc/glibc-functions/fsetxattr.texi: Likewise.
54829         * doc/glibc-functions/getxattr.texi: Likewise.
54830         * doc/glibc-functions/lgetxattr.texi: Likewise.
54831         * doc/glibc-functions/listxattr.texi: Likewise.
54832         * doc/glibc-functions/llistxattr.texi: Likewise.
54833         * doc/glibc-functions/lremovexattr.texi: Likewise.
54834         * doc/glibc-functions/lsetxattr.texi: Likewise.
54835         * doc/glibc-functions/removexattr.texi: Likewise.
54836         * doc/glibc-functions/setxattr.texi: Likewise.
54837         * doc/posix-functions/open_memstream.texi: Likewise.
54838
54839 2008-12-15  Eric Blake  <ebb9@byu.net>
54840
54841         Update doc for cygwin 1.7.
54842         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54843         functions.
54844         * doc/posix-functions/fchmodat.texi: Likewise.
54845         * doc/posix-functions/fchownat.texi: Likewise.
54846         * doc/posix-functions/fdopendir.texi: Likewise.
54847         * doc/posix-functions/fmemopen.texi: Likewise.
54848         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54849         * doc/posix-functions/fstatat.texi: Likewise.
54850         * doc/posix-functions/futimens.texi: Likewise.
54851         * doc/posix-functions/gai_strerror.texi: Likewise.
54852         * doc/posix-functions/getaddrinfo.texi: Likewise.
54853         * doc/posix-functions/getnameinfo.texi: Likewise.
54854         * doc/posix-functions/if_freenameindex.texi: Likewise.
54855         * doc/posix-functions/if_indextoname.texi: Likewise.
54856         * doc/posix-functions/if_nameindex.texi: Likewise.
54857         * doc/posix-functions/if_nametoindex.texi: Likewise.
54858         * doc/posix-functions/insque.texi: Likewise.
54859         * doc/posix-functions/linkat.texi: Likewise.
54860         * doc/posix-functions/llrint.texi: Likewise.
54861         * doc/posix-functions/llrintf.texi: Likewise.
54862         * doc/posix-functions/llrintl.texi: Likewise.
54863         * doc/posix-functions/lockf.texi: Likewise.
54864         * doc/posix-functions/lrintl.texi: Likewise.
54865         * doc/posix-functions/mkdirat.texi: Likewise.
54866         * doc/posix-functions/mkfifoat.texi: Likewise.
54867         * doc/posix-functions/mknodat.texi: Likewise.
54868         * doc/posix-functions/mq_close.texi: Likewise.
54869         * doc/posix-functions/mq_getattr.texi: Likewise.
54870         * doc/posix-functions/mq_notify.texi: Likewise.
54871         * doc/posix-functions/mq_open.texi: Likewise.
54872         * doc/posix-functions/mq_receive.texi: Likewise.
54873         * doc/posix-functions/mq_send.texi: Likewise.
54874         * doc/posix-functions/mq_setattr.texi: Likewise.
54875         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54876         * doc/posix-functions/mq_timedsend.texi: Likewise.
54877         * doc/posix-functions/mq_unlink.texi: Likewise.
54878         * doc/posix-functions/open_memstream.texi: Likewise.
54879         * doc/posix-functions/openat.texi: Likewise.
54880         * doc/posix-functions/posix_fadvise.texi: Likewise.
54881         * doc/posix-functions/posix_fallocate.texi: Likewise.
54882         * doc/posix-functions/posix_madvise.texi: Likewise.
54883         * doc/posix-functions/posix_memalign.texi: Likewise.
54884         * doc/posix-functions/posix_openpt.texi: Likewise.
54885         * doc/posix-functions/readlinkat.texi: Likewise.
54886         * doc/posix-functions/remque.texi: Likewise.
54887         * doc/posix-functions/renameat.texi: Likewise.
54888         * doc/posix-functions/rintl.texi: Likewise.
54889         * doc/posix-functions/sem_unlink.texi: Likewise.
54890         * doc/posix-functions/shm_open.texi: Likewise.
54891         * doc/posix-functions/shm_unlink.texi: Likewise.
54892         * doc/posix-functions/signgam.texi: Likewise.
54893         * doc/posix-functions/sigset.texi: Likewise.
54894         * doc/posix-functions/stpcpy.texi: Likewise.
54895         * doc/posix-functions/stpncpy.texi: Likewise.
54896         * doc/posix-functions/strerror.texi: Likewise.
54897         * doc/posix-functions/strtod.texi: Likewise.
54898         * doc/posix-functions/symlinkat.texi: Likewise.
54899         * doc/posix-functions/unlinkat.texi: Likewise.
54900         * doc/posix-functions/utimensat.texi: Likewise.
54901         * doc/glibc-functions/bindresvport.texi: Likewise.
54902         * doc/glibc-functions/dn_expand.texi: Likewise.
54903         * doc/glibc-functions/exp10.texi: Likewise.
54904         * doc/glibc-functions/exp10f.texi: Likewise.
54905         * doc/glibc-functions/fgetxattr.texi: Likewise.
54906         * doc/glibc-functions/flistxattr.texi: Likewise.
54907         * doc/glibc-functions/fopencookie.texi: Likewise.
54908         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54909         * doc/glibc-functions/fremovexattr.texi: Likewise.
54910         * doc/glibc-functions/fsetxattr.texi: Likewise.
54911         * doc/glibc-functions/getifaddrs.texi: Likewise.
54912         * doc/glibc-functions/getxattr.texi: Likewise.
54913         * doc/glibc-functions/lgetxattr.texi: Likewise.
54914         * doc/glibc-functions/listxattr.texi: Likewise.
54915         * doc/glibc-functions/llistxattr.texi: Likewise.
54916         * doc/glibc-functions/lremovexattr.texi: Likewise.
54917         * doc/glibc-functions/lsetxattr.texi: Likewise.
54918         * doc/glibc-functions/pow10.texi: Likewise.
54919         * doc/glibc-functions/pow10f.texi: Likewise.
54920         * doc/glibc-functions/rcmd_af.texi: Likewise.
54921         * doc/glibc-functions/removexattr.texi: Likewise.
54922         * doc/glibc-functions/res_init.texi: Likewise.
54923         * doc/glibc-functions/res_mkquery.texi: Likewise.
54924         * doc/glibc-functions/res_query.texi: Likewise.
54925         * doc/glibc-functions/res_querydomain.texi: Likewise.
54926         * doc/glibc-functions/res_send.texi: Likewise.
54927         * doc/glibc-functions/rresvport_af.texi: Likewise.
54928         * doc/glibc-functions/setxattr.texi: Likewise.
54929         * doc/glibc-functions/strcasestr.texi: Likewise.
54930
54931 2008-12-15  Bruno Haible  <bruno@clisp.org>
54932
54933         Fix compilation error on OSF/1 4.0.
54934         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54935         <sys/time.h>, simply delegate to the system header.
54936         Reported by Daniel Richard G. <oss@teragram.com>.
54937
54938 2008-12-15  Bruno Haible  <bruno@clisp.org>
54939
54940         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54941         * doc/posix-functions/fchmodat.texi: Likewise.
54942         * doc/posix-functions/fchownat.texi: Likewise.
54943         * doc/posix-functions/fdopendir.texi: Likewise.
54944         * doc/posix-functions/fstatat.texi: Likewise.
54945         * doc/posix-functions/mkdirat.texi: Likewise.
54946         * doc/posix-functions/unlinkat.texi: Likewise.
54947
54948 2008-12-14  Bruno Haible  <bruno@clisp.org>
54949
54950         Update doc for POSIX:2008.
54951         * doc/posix-functions/faccessat.texi: New file.
54952         * doc/posix-functions/fchmodat.texi: New file.
54953         * doc/posix-functions/fchownat.texi: New file.
54954         * doc/posix-functions/fdopendir.texi: New file.
54955         * doc/posix-functions/fstatat.texi: New file.
54956         * doc/posix-functions/futimens.texi: New file.
54957         * doc/posix-functions/linkat.texi: New file.
54958         * doc/posix-functions/mkdirat.texi: New file.
54959         * doc/posix-functions/mkfifoat.texi: New file.
54960         * doc/posix-functions/mknodat.texi: New file.
54961         * doc/posix-functions/open_wmemstream.texi: New file.
54962         * doc/posix-functions/openat.texi: New file.
54963         * doc/posix-functions/psiginfo.texi: New file.
54964         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54965         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54966         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54967         * doc/posix-functions/readlinkat.texi: New file.
54968         * doc/posix-functions/renameat.texi: New file.
54969         * doc/posix-functions/strerror_l.texi: New file.
54970         * doc/posix-functions/symlinkat.texi: New file.
54971         * doc/posix-functions/unlinkat.texi: New file.
54972         * doc/posix-functions/utimensat.texi: New file.
54973         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54974
54975 2008-12-14  Bruno Haible  <bruno@clisp.org>
54976
54977         Update doc for POSIX:2008.
54978         * doc/posix-functions/alphasort.texi: Renamed from
54979         doc/glibc-functions/alphasort.texi.
54980         * doc/posix-functions/dirfd.texi: Renamed from
54981         doc/glibc-functions/dirfd.texi.
54982         * doc/posix-functions/dprintf.texi: Renamed from
54983         doc/glibc-functions/dprintf.texi.
54984         * doc/posix-functions/duplocale.texi: Renamed from
54985         doc/glibc-functions/duplocale.texi.
54986         * doc/posix-functions/fexecve.texi: Renamed from
54987         doc/glibc-functions/fexecve.texi.
54988         * doc/posix-functions/fmemopen.texi: Renamed from
54989         doc/glibc-functions/fmemopen.texi.
54990         * doc/posix-functions/freelocale.texi: Renamed from
54991         doc/glibc-functions/freelocale.texi.
54992         * doc/posix-functions/getdate_err.texi: Renamed from
54993         doc/glibc-functions/getdate_err.texi.
54994         * doc/posix-functions/isalnum_l.texi: Renamed from
54995         doc/glibc-functions/isalnum_l.texi.
54996         * doc/posix-functions/isalpha_l.texi: Renamed from
54997         doc/glibc-functions/isalpha_l.texi.
54998         * doc/posix-functions/isblank_l.texi: Renamed from
54999         doc/glibc-functions/isblank_l.texi.
55000         * doc/posix-functions/iscntrl_l.texi: Renamed from
55001         doc/glibc-functions/iscntrl_l.texi.
55002         * doc/posix-functions/isdigit_l.texi: Renamed from
55003         doc/glibc-functions/isdigit_l.texi.
55004         * doc/posix-functions/isgraph_l.texi: Renamed from
55005         doc/glibc-functions/isgraph_l.texi.
55006         * doc/posix-functions/islower_l.texi: Renamed from
55007         doc/glibc-functions/islower_l.texi.
55008         * doc/posix-functions/isprint_l.texi: Renamed from
55009         doc/glibc-functions/isprint_l.texi.
55010         * doc/posix-functions/ispunct_l.texi: Renamed from
55011         doc/glibc-functions/ispunct_l.texi.
55012         * doc/posix-functions/isspace_l.texi: Renamed from
55013         doc/glibc-functions/isspace_l.texi.
55014         * doc/posix-functions/isupper_l.texi: Renamed from
55015         doc/glibc-functions/isupper_l.texi.
55016         * doc/posix-functions/iswalnum_l.texi: Renamed from
55017         doc/glibc-functions/iswalnum_l.texi.
55018         * doc/posix-functions/iswalpha_l.texi: Renamed from
55019         doc/glibc-functions/iswalpha_l.texi.
55020         * doc/posix-functions/iswblank_l.texi: Renamed from
55021         doc/glibc-functions/iswblank_l.texi.
55022         * doc/posix-functions/iswcntrl_l.texi: Renamed from
55023         doc/glibc-functions/iswcntrl_l.texi.
55024         * doc/posix-functions/iswctype_l.texi: Renamed from
55025         doc/glibc-functions/iswctype_l.texi.
55026         * doc/posix-functions/iswdigit_l.texi: Renamed from
55027         doc/glibc-functions/iswdigit_l.texi.
55028         * doc/posix-functions/iswgraph_l.texi: Renamed from
55029         doc/glibc-functions/iswgraph_l.texi.
55030         * doc/posix-functions/iswlower_l.texi: Renamed from
55031         doc/glibc-functions/iswlower_l.texi.
55032         * doc/posix-functions/iswprint_l.texi: Renamed from
55033         doc/glibc-functions/iswprint_l.texi.
55034         * doc/posix-functions/iswpunct_l.texi: Renamed from
55035         doc/glibc-functions/iswpunct_l.texi.
55036         * doc/posix-functions/iswspace_l.texi: Renamed from
55037         doc/glibc-functions/iswspace_l.texi.
55038         * doc/posix-functions/iswupper_l.texi: Renamed from
55039         doc/glibc-functions/iswupper_l.texi.
55040         * doc/posix-functions/iswxdigit_l.texi: Renamed from
55041         doc/glibc-functions/iswxdigit_l.texi.
55042         * doc/posix-functions/isxdigit_l.texi: Renamed from
55043         doc/glibc-functions/isxdigit_l.texi.
55044         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
55045         doc/glibc-functions/mbsnrtowcs.texi.
55046         * doc/posix-functions/mkdtemp.texi: Renamed from
55047         doc/glibc-functions/mkdtemp.texi.
55048         * doc/posix-functions/newlocale.texi: Renamed from
55049         doc/glibc-functions/newlocale.texi.
55050         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
55051         doc/glibc-functions/nl_langinfo_l.texi.
55052         * doc/posix-functions/open_memstream.texi: Renamed from
55053         doc/glibc-functions/open_memstream.texi.
55054         * doc/posix-functions/opterr.texi: Renamed from
55055         doc/glibc-functions/opterr.texi.
55056         * doc/posix-functions/optind.texi: Renamed from
55057         doc/glibc-functions/optind.texi.
55058         * doc/posix-functions/optopt.texi: Renamed from
55059         doc/glibc-functions/optopt.texi.
55060         * doc/posix-functions/psignal.texi: Renamed from
55061         doc/glibc-functions/psignal.texi.
55062         * doc/posix-functions/scandir.texi: Renamed from
55063         doc/glibc-functions/scandir.texi.
55064         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
55065         doc/glibc-functions/sched_get_priority_min.texi.
55066         * doc/posix-functions/signgam.texi: Renamed from
55067         doc/glibc-functions/signgam.texi.
55068         * doc/posix-functions/stpcpy.texi: Renamed from
55069         doc/glibc-functions/stpcpy.texi.
55070         * doc/posix-functions/stpncpy.texi: Renamed from
55071         doc/glibc-functions/stpncpy.texi.
55072         * doc/posix-functions/strcasecmp_l.texi: Renamed from
55073         doc/glibc-functions/strcasecmp_l.texi.
55074         * doc/posix-functions/strcoll_l.texi: Renamed from
55075         doc/glibc-functions/strcoll_l.texi.
55076         * doc/posix-functions/strfmon_l.texi: Renamed from
55077         doc/glibc-functions/strfmon_l.texi.
55078         * doc/posix-functions/strftime_l.texi: Renamed from
55079         doc/glibc-functions/strftime_l.texi.
55080         * doc/posix-functions/strncasecmp_l.texi: Renamed from
55081         doc/glibc-functions/strncasecmp_l.texi.
55082         * doc/posix-functions/strndup.texi: Renamed from
55083         doc/glibc-functions/strndup.texi.
55084         * doc/posix-functions/strnlen.texi: Renamed from
55085         doc/glibc-functions/strnlen.texi.
55086         * doc/posix-functions/strsignal.texi: Renamed from
55087         doc/glibc-functions/strsignal.texi.
55088         * doc/posix-functions/strxfrm_l.texi: Renamed from
55089         doc/glibc-functions/strxfrm_l.texi.
55090         * doc/posix-functions/timer_gettime.texi: Renamed from
55091         doc/glibc-functions/timer_gettime.texi.
55092         * doc/posix-functions/tolower_l.texi: Renamed from
55093         doc/glibc-functions/tolower_l.texi.
55094         * doc/posix-functions/toupper_l.texi: Renamed from
55095         doc/glibc-functions/toupper_l.texi.
55096         * doc/posix-functions/towctrans_l.texi: Renamed from
55097         doc/glibc-functions/towctrans_l.texi.
55098         * doc/posix-functions/towlower_l.texi: Renamed from
55099         doc/glibc-functions/towlower_l.texi.
55100         * doc/posix-functions/towupper_l.texi: Renamed from
55101         doc/glibc-functions/towupper_l.texi.
55102         * doc/posix-functions/uselocale.texi: Renamed from
55103         doc/glibc-functions/uselocale.texi.
55104         * doc/posix-functions/vdprintf.texi: Renamed from
55105         doc/glibc-functions/vdprintf.texi.
55106         * doc/posix-functions/wcpcpy.texi:
55107         Renamed from doc/glibc-functions/wcpcpy.texi.
55108         * doc/posix-functions/wcpncpy.texi: Renamed from
55109         doc/glibc-functions/wcpncpy.texi.
55110         * doc/posix-functions/wcscasecmp.texi: Renamed from
55111         doc/glibc-functions/wcscasecmp.texi.
55112         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
55113         doc/glibc-functions/wcscasecmp_l.texi.
55114         * doc/posix-functions/wcscoll_l.texi: Renamed from
55115         doc/glibc-functions/wcscoll_l.texi.
55116         * doc/posix-functions/wcsdup.texi: Renamed from
55117         doc/glibc-functions/wcsdup.texi.
55118         * doc/posix-functions/wcsncasecmp.texi: Renamed from
55119         doc/glibc-functions/wcsncasecmp.texi.
55120         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
55121         doc/glibc-functions/wcsncasecmp_l.texi.
55122         * doc/posix-functions/wcsnlen.texi: Renamed from
55123         doc/glibc-functions/wcsnlen.texi.
55124         * doc/posix-functions/wcsnrtombs.texi: Renamed from
55125         doc/glibc-functions/wcsnrtombs.texi.
55126         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
55127         doc/glibc-functions/wcsxfrm_l.texi.
55128         * doc/posix-functions/wctrans_l.texi: Renamed from
55129         doc/glibc-functions/wctrans_l.texi.
55130         * doc/posix-functions/wctype_l.texi: Renamed from
55131         doc/glibc-functions/wctype_l.texi.
55132         * doc/gnulib.texi (Function Substitutes): Add these subsections.
55133         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
55134         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
55135         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
55136         these subsections.
55137         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
55138         Remove sections.
55139
55140 2008-12-14  Bruno Haible  <bruno@clisp.org>
55141
55142         Update doc for POSIX:2008.
55143         * doc/posix-functions/*.texi: Update URL of POSIX specification.
55144
55145 2008-12-14  Bruno Haible  <bruno@clisp.org>
55146
55147         Update doc for POSIX:2008.
55148         * doc/pastposix-functions/bcmp.texi: Renamed from
55149         doc/posix-functions/bcmp.texi.
55150         * doc/pastposix-functions/bcopy.texi: Renamed from
55151         doc/posix-functions/bcopy.texi.
55152         * doc/pastposix-functions/bsd_signal.texi: Renamed from
55153         doc/posix-functions/bsd_signal.texi.
55154         * doc/pastposix-functions/bzero.texi: Renamed from
55155         doc/posix-functions/bzero.texi.
55156         * doc/pastposix-functions/ecvt.texi: Renamed from
55157         doc/posix-functions/ecvt.texi.
55158         * doc/pastposix-functions/fcvt.texi: Renamed from
55159         doc/posix-functions/fcvt.texi.
55160         * doc/pastposix-functions/ftime.texi: Renamed from
55161         doc/posix-functions/ftime.texi.
55162         * doc/pastposix-functions/gcvt.texi: Renamed from
55163         doc/posix-functions/gcvt.texi.
55164         * doc/pastposix-functions/getcontext.texi: Renamed from
55165         doc/posix-functions/getcontext.texi.
55166         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
55167         doc/posix-functions/gethostbyaddr.texi.
55168         * doc/pastposix-functions/gethostbyname.texi: Renamed from
55169         doc/posix-functions/gethostbyname.texi.
55170         * doc/pastposix-functions/getwd.texi: Renamed from
55171         doc/posix-functions/getwd.texi.
55172         * doc/pastposix-functions/h_errno.texi: Renamed from
55173         doc/posix-functions/h_errno.texi.
55174         * doc/pastposix-functions/index.texi: Renamed from
55175         doc/posix-functions/index.texi.
55176         * doc/pastposix-functions/makecontext.texi: Renamed from
55177         doc/posix-functions/makecontext.texi.
55178         * doc/pastposix-functions/mktemp.texi: Renamed from
55179         doc/posix-functions/mktemp.texi.
55180         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
55181         doc/posix-functions/pthread_attr_getstackaddr.texi.
55182         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
55183         doc/posix-functions/pthread_attr_setstackaddr.texi.
55184         * doc/pastposix-functions/rindex.texi: Renamed from
55185         doc/posix-functions/rindex.texi.
55186         * doc/pastposix-functions/scalb.texi: Renamed from
55187         doc/posix-functions/scalb.texi.
55188         * doc/pastposix-functions/setcontext.texi: Renamed from
55189         doc/posix-functions/setcontext.texi.
55190         * doc/pastposix-functions/swapcontext.texi: Renamed from
55191         doc/posix-functions/swapcontext.texi.
55192         * doc/pastposix-functions/ualarm.texi: Renamed from
55193         doc/posix-functions/ualarm.texi.
55194         * doc/pastposix-functions/usleep.texi: Renamed from
55195         doc/posix-functions/usleep.texi.
55196         * doc/pastposix-functions/vfork.texi: Renamed from
55197         doc/posix-functions/vfork.texi.
55198         * doc/pastposix-functions/wcswcs.texi: Renamed from
55199         doc/posix-functions/wcswcs.texi.
55200         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
55201         (Function Substitutes): Update.
55202
55203 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55204
55205         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
55206         m4/strerror.m4.
55207
55208 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55209             Bruno Haible  <bruno@clisp.org>
55210
55211         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
55212
55213 2008-12-13  Bruno Haible  <bruno@clisp.org>
55214
55215         * modules/strtoull (Depends-on): Remove unistd.
55216
55217 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55218
55219         * modules/strtoull (Depends-on): Add stdlib.
55220
55221 2008-12-11  Simon Josefsson  <simon@josefsson.org>
55222
55223         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
55224
55225 2008-12-10  Jim Meyering  <meyering@redhat.com>
55226
55227         gl_ASSERT: don't say assertions are disabled when they're not
55228         * m4/assert.m4 (gl_ASSERT): Do not make configure report
55229         "checking whether to enable assertions... no", when they are in
55230         fact enabled.  This is solely a bug in the output of configure.
55231         In spite of saying "no", NDEBUG was not defined in that case.
55232         Also, as noted by Eric Blake, leave assertions enabled upon
55233         --enable-assert=INVALID.
55234
55235 2008-12-10  Bruno Haible  <bruno@clisp.org>
55236
55237         Change MODULES.html to refer to POSIX:2008 where possible.
55238         * MODULES.html.sh (POSIX2008_URL): New variable.
55239         (posix_headers): Remove sys/timeb, ucontext.
55240         (posix2001_headers): New variable.
55241         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
55242         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
55243         index, makecontext, mktemp, pthread_attr_getstackaddr,
55244         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
55245         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
55246         (posix2001_functions): New variable.
55247         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
55248         otherwise.
55249
55250 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55251
55252         add missing include to parse-duration.c
55253         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
55254         * modules/parse-duration (Depends-on): Add xalloc.
55255
55256         fix sed script reading maint.mk
55257         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
55258         (syntax-check-rules): Use it.
55259
55260 2008-12-09  Bruno Haible  <bruno@clisp.org>
55261
55262         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
55263         MacOS X 10.4/PowerPC.
55264         Reported by Simon Josefsson.
55265
55266 2008-12-08  Jim Meyering  <meyering@redhat.com>
55267
55268         work around mingw's lack of some S_IF definitions
55269         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
55270         Reported by Simon Josefsson.
55271
55272 2008-12-08  Bruno Haible  <bruno@clisp.org>
55273
55274         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
55275         applied to variables. Needed on MacOS X 10.4/PowerPC.
55276         Reported by Simon Josefsson.
55277
55278 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
55279         and Eric Blake  <ebb9@byu.net>
55280
55281         assert: honor --enable-assert
55282         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
55283         order to honor --enable-assert, rather than treating it as a
55284         synonym for --disable-assert.
55285
55286 2008-12-08  Jim Meyering  <meyering@redhat.com>
55287
55288         * lib/posixtm.c: Remove now-useless declaration of mktime.
55289
55290         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
55291
55292 2008-12-07  Bruno Haible  <bruno@clisp.org>
55293
55294         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
55295         test_once): Mark functions as static.
55296         * tests/test-tls.c (test_tls): Likewise.
55297
55298 2008-12-07  Bruno Haible  <bruno@clisp.org>
55299
55300         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
55301         iconv_register_autodetect.
55302
55303 2008-12-07  Jim Meyering  <meyering@redhat.com>
55304
55305         posixtm.c: avoid a warning
55306         * lib/posixtm.c (posixtime): Don't initialize tm0.
55307         It's no longer needed to placate gcc4's -Wuninitialized,
55308         and the attempt to placate would elicit a new warning.
55309
55310         unicodeio.c: mark unused parameters
55311         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55312         (fallback_failure_callback): Likewise.
55313
55314 2008-12-07  Bruno Haible  <bruno@clisp.org>
55315
55316         * gnulib-tool (func_create_testdir): When building the tests
55317         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
55318         Reported by Simon Josefsson.
55319
55320 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55321
55322         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
55323
55324 2008-12-06  Bruno Haible  <bruno@clisp.org>
55325
55326         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
55327         Suggested by Eric Blake.
55328
55329 2008-12-06  Bruno Haible  <bruno@clisp.org>
55330
55331         Fix a c-stack test failure on MacOS X.
55332         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
55333         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
55334         handler for SIGBUS as well.
55335         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
55336         install a signal handler for SIGBUS as well.
55337         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
55338
55339 2008-12-06  Bruno Haible  <bruno@clisp.org>
55340
55341         Advocacy documentation.
55342         * doc/gnulib-intro.texi (Benefits): New section.
55343         * doc/gnulib.texi: Update.
55344
55345 2008-12-06  Bruno Haible  <bruno@clisp.org>
55346
55347         Document the 'manywarnings' module.
55348         * doc/manywarnings.texi: New file.
55349         * doc/gnulib.texi: Include it.
55350
55351 2008-12-05  Eric Blake  <ebb9@byu.net>
55352
55353         tests: silence some gcc warnings
55354         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
55355         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
55356         type mismatches.
55357
55358 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55359             Bruno Haible  <bruno@clisp.org>
55360
55361         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
55362
55363 2008-11-29  Jim Meyering  <meyering@redhat.com>
55364
55365         unicodeio.c: mark unused parameters
55366         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55367         (fallback_failure_callback): Likewise.
55368
55369         fts: fix a thinko
55370         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
55371         (set_stat_type): Return S_IF*-valued "type" directly.
55372         Prompted by James Youngman's spotting a related bug.
55373         Confirmed by further testing through find.
55374
55375         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
55376         * lib/fts.c (D_TYPE): Define.
55377         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
55378         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
55379         (s_ifmt_shift_bits): New function.
55380         (set_stat_type): New function.
55381         (fts_build): When not calling fts_stat, call set_stat_type
55382         to propagate dirent.d_type info to fts_read caller.
55383         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
55384         fts_statp->st_mode type information may be valid.
55385
55386 2008-11-28  Simon Josefsson  <simon@josefsson.org>
55387
55388         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
55389         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
55390         <sds@gnu.org>.
55391
55392 2008-11-20  Bruno Haible  <bruno@clisp.org>
55393
55394         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
55395         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
55396         INCLUDE_NEXT.
55397         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
55398         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
55399         * modules/math (Makefile.am): Substitute
55400         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
55401         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55402
55403 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
55404             Bruno Haible  <bruno@clisp.org>
55405
55406         * lib/stdint.in.h: Define all type macros so that their expansion is
55407         a single typedef'ed token. Fixes a compilation failure in Boost which
55408         does "using ::int8_t;".
55409
55410 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55411
55412         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
55413         gl_MANYWARN_ALL_GCC.
55414         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
55415         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
55416         * modules/manywarnings: New file.
55417         * MODULES.html.sh: Mention manywarnings module.
55418
55419 2008-11-18  Bruno Haible  <bruno@clisp.org>
55420
55421         * doc/gnulib-tool.texi (Unit tests): New section.
55422
55423 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55424
55425         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
55426         paths like 'lib/po/foo.po'.
55427
55428 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55429
55430         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
55431         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
55432
55433 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55434
55435         * m4/warnings.m4: Use CPPFLAGS to really check whether the
55436         parameter works.
55437
55438 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55439
55440         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
55441
55442 2008-11-17  Bruce Korb  <bkorb@gnu.org>
55443
55444         * modules/parse-duration-tests: New file.
55445         * tests/test-parse-duration.sh: New file.
55446         * tests/test-parse-duration.c: New file.
55447
55448         New module 'parse-duration'.
55449         * lib/parse-duration.h: New file.
55450         * lib/parse-duration.c: New file.
55451         * modules/parse-duration: New file.
55452
55453 2008-11-17  Bruno Haible  <bruno@clisp.org>
55454
55455         * tests/test-select-out.sh: Comment out the first pipe test.
55456         Reported by Simon Josefsson.
55457
55458 2008-11-17  Bruno Haible  <bruno@clisp.org>
55459
55460         * modules/getaddrinfo (Depends-on): Add servent, hostent.
55461         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
55462         gl_HOSTENT.
55463
55464 2008-11-17  Bruno Haible  <bruno@clisp.org>
55465
55466         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
55467         -lnetwork and -lnet. Needed for Haiku and BeOS.
55468
55469 2008-11-16  Bruno Haible  <bruno@clisp.org>
55470
55471         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
55472
55473 2008-11-16  Bruno Haible  <bruno@clisp.org>
55474
55475         Avoid test failure on Haiku.
55476         * tests/test-fsync.c: Include <errno.h>.
55477         (main): Don't require that fsync (0) fails.
55478
55479 2008-11-15  Bruno Haible  <bruno@clisp.org>
55480
55481         New module 'hostent'.
55482         * modules/hostent: New file.
55483         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
55484
55485 2008-11-15  Bruno Haible  <bruno@clisp.org>
55486
55487         New module 'servent'.
55488         * modules/servent: New file.
55489         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
55490
55491 2008-11-15  Bruno Haible  <bruno@clisp.org>
55492
55493         Avoid generating same test program with two different rules.
55494         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
55495         test-frexp to test-frexp-nolibm.
55496         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
55497         test-frexpl to test-frexpl-nolibm.
55498
55499 2008-11-15  Bruno Haible  <bruno@clisp.org>
55500
55501         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
55502         $(FREXPL_LIBM).
55503
55504 2008-11-15  Bruno Haible  <bruno@clisp.org>
55505
55506         * lib/netdb.in.h: Activate the definitions also when the system's
55507         <netdb.h> has 'struct addrinfo'.
55508         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55509         EAI_OVERFLOW or AI_NUMERICSERV.
55510         * doc/posix-headers/netdb.texi: Document the problem.
55511
55512 2008-11-15  Bruno Haible  <bruno@clisp.org>
55513
55514         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55515
55516         Make the 'sched' module work on platforms where <sched.h> exists but
55517         is incomplete (such as Haiku).
55518         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55519         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55520         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55521         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55522         HAVE_STRUCT_SCHED_PARAM.
55523         * modules/sched (Depends-on): Add include_next.
55524         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55525         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55526         * doc/posix-headers/sched.texi: Document the issue.
55527
55528 2008-11-13  Jim Meyering  <meyering@redhat.com>
55529
55530         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55531         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55532         test would fail due to the difference in the Report bugs to ...
55533         line.  The expected address is empty, "<>", while the actual
55534         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55535
55536 2008-11-12  Bruno Haible  <bruno@clisp.org>
55537
55538         lstat: don't compile lstat.c on systems lacking lstat
55539         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55540         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55541         Reported by Daniel P. Berrange via Jim Meyering.
55542
55543 2008-11-12  Jim Meyering  <meyering@redhat.com>
55544
55545         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55546
55547 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55548
55549         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55550         instead.
55551
55552 2008-11-12  Bruno Haible  <bruno@clisp.org>
55553
55554         * lib/unicodeio.c: Include unistr.h.
55555         (utf8_wctomb): Remove function.
55556         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55557
55558 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55559
55560         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55561         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55562         <bruno@clisp.org>.
55563         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55564
55565 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55566
55567         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55568         * doc/gnulib.texi: Add section for warnings.
55569
55570 2008-11-11  Bruno Haible  <bruno@clisp.org>
55571
55572         * lib/sockets.h: Add a comment.
55573
55574 2008-11-11  Karl Berry  <karl@gnu.org>
55575
55576         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55577
55578 2008-11-11  Eric Blake  <ebb9@byu.net>
55579
55580         fdl.texi: avoid git symlinks
55581         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55582
55583 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55584
55585         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55586
55587 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55588
55589         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55590         (gl_WARN_ADD): Substitute $2 if literal.
55591
55592 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55593
55594         * m4/warning.m4: Remove.
55595
55596 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55597
55598         * m4/warnings.m4: Almost complete rewrite. :-)
55599
55600 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55601
55602         * modules/warnings: New module.
55603         * m4/warnings.m4: New file.
55604         * MODULES.html.sh: Mention warnings module.
55605         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55606         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55607
55608 2008-11-10  Eric Blake  <ebb9@byu.net>
55609
55610         fdl.texi: make a symlink to the latest version
55611         * doc/standards.texi: Revert today's earlier change.
55612         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55613         * doc/fdl.texi: ...and replace this with a symlink to the newer
55614         fdl-1.3.texi.
55615
55616 2008-11-10  Bruno Haible  <bruno@clisp.org>
55617
55618         * tests/test-select-fd.c (main): Accept the result file name as fourth
55619         argument.
55620         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55621         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55622
55623 2008-11-10  Bruno Haible  <bruno@clisp.org>
55624
55625         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55626         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55627         as autoconf-substituted macros.
55628         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55629         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55630         gl_NETDB_H_DEFAULTS. Set these variables.
55631         * modules/netdb (Makefile.am): Substitute these variables.
55632
55633 2008-11-10  Eric Blake  <ebb9@byu.net>
55634
55635         standards.texi: include correct file for FDL 1.3
55636         * doc/standards.texi (GNU Free Documentation License): Change
55637         include file to pull in FDL 1.3, not 1.2.
55638
55639         fdl.texi: revert accidental change to license
55640         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55641
55642 2008-11-10  Bruno Haible  <bruno@clisp.org>
55643
55644         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55645         cross-compiling guesses also when the native compile gives no result.
55646
55647 2008-11-10  Bruno Haible  <bruno@clisp.org>
55648
55649         * lib/spawni.c (__spawni): Force variable into the stack.
55650
55651 2008-11-10  Bruno Haible  <bruno@clisp.org>
55652
55653         Add support for Haiku.
55654         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55655         glibc and BeOS, but also on Haiku.
55656         * lib/fpurge.c (fpurge): Likewise.
55657         * lib/freadable.c (freadable): Likewise.
55658         * lib/freadahead.c (freadahead): Likewise.
55659         * lib/freading.c (freading): Likewise.
55660         * lib/freadptr.c (freadptr): Likewise.
55661         * lib/freadseek.c (freadptrinc): Likewise.
55662         * lib/fseeko.c (rpl_fseeko): Likewise.
55663         * lib/fseterr.c (fseterr): Likewise.
55664         * lib/fwritable.c (fwritable): Likewise.
55665         * lib/fwriting.c (fwriting): Likewise.
55666         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55667
55668 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55669
55670         * lib/config.charset: Treat Haiku like BeOS.
55671
55672 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55673
55674         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55675         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55676
55677 2008-11-08  Bruno Haible  <bruno@clisp.org>
55678
55679         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55680         AC_CACHE_CHECK.
55681
55682 2008-11-08  Bruno Haible  <bruno@clisp.org>
55683
55684         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55685
55686 2008-11-08  Bruno Haible  <bruno@clisp.org>
55687
55688         * tests/test-select-fd.c: New file.
55689         * tests/test-select-in.sh: New file.
55690         * tests/test-select-out.sh: New file.
55691         * tests/test-select-stdin.c: New file.
55692         * modules/select-tests (Files): Add the new files.
55693         (Depends-on): Add gettimeofday.
55694         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55695         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55696         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55697
55698 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55699             Bruno Haible  <bruno@clisp.org>
55700
55701         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55702
55703 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55704
55705         * build-aux/pmccabe2html: Added support for C++ source files.
55706
55707 2008-11-05  Ben Pfaff  <blp@gnu.org>
55708
55709         Fix lib/close.c build on Windows.
55710         * modules/close (Files): Add lib/w32sock.h.
55711
55712 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55713
55714         Accept Bison's NEWS format.
55715         * build-aux/announce-gen (print_news_deltas): Tweak
55716         $re_prefix.
55717
55718 2008-11-04  Bruno Haible  <bruno@clisp.org>
55719
55720         * modules/random_r (Maintainer): Add glibc.
55721
55722 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55723
55724         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55725         by karl@freefriends.org (Karl Berry).
55726         * doc/alloca.texi: Likewise.
55727         * doc/c-ctype.texi: Likewise.
55728         * doc/c-strcase.texi: Likewise.
55729         * doc/c-strcaseeq.texi: Likewise.
55730         * doc/c-strcasestr.texi: Likewise.
55731         * doc/c-strstr.texi: Likewise.
55732         * doc/c-strtod.texi: Likewise.
55733         * doc/c-strtold.texi: Likewise.
55734         * doc/ctime.texi: Likewise.
55735         * doc/error.texi: Likewise.
55736         * doc/fdl.texi: Likewise.
55737         * doc/gcd.texi: Likewise.
55738         * doc/getdate.texi: Likewise.
55739         * doc/gnulib-intro.texi: Likewise.
55740         * doc/gnulib-tool.texi: Likewise.
55741         * doc/gnulib.texi: Likewise.
55742         * doc/inet_ntoa.texi: Likewise.
55743         * doc/maintain.texi: Likewise.
55744         * doc/make-stds.texi: Likewise.
55745         * doc/quote.texi: Likewise.
55746         * doc/regexprops-generic.texi: Likewise.
55747         * doc/standards.texi: Likewise.
55748         * doc/verify.texi: Likewise.
55749         * doc/visibility.texi: Likewise.
55750         * doc/gnulib.texi (GNU Free Documentation License): Include
55751         fdl-1.3.texi instead of fdl.texi.
55752
55753 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55754
55755         * doc/fdl-1.3.texi: New file, from
55756         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55757         * modules/fdl-1.3: Add.
55758         * MODULES.html.sh: Add fdl-1.3.
55759
55760 2008-11-03  Bruno Haible  <bruno@clisp.org>
55761
55762         Make determination of absolute name of header file work with AIX xlc.
55763         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55764         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55765         preprocessing.
55766         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55767         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55768
55769 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55770
55771         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55772         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55773         <ludo@gnu.org>.
55774
55775 2008-11-02  Bruno Haible  <bruno@clisp.org>
55776
55777         Mark 'strpbrk' obsolete.
55778         * modules/strpbrk (Status, Notice): New sections.
55779         * modules/strtok_r (Depends-on): Add strpbrk.
55780
55781 2008-11-02  Bruno Haible  <bruno@clisp.org>
55782
55783         Mark 'strdup' obsolete.
55784         * modules/strdup (Status, Notice): New sections.
55785         * modules/findprog (Depends-on): Add strdup.
55786         * modules/getaddrinfo (Depends-on): Likewise.
55787         * modules/localename (Depends-on): Likewise.
55788         * modules/relocatable-lib (Depends-on): Likewise.
55789         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55790         * modules/relocatable-prog (Depends-on): Likewise.
55791         * modules/trim (Depends-on): Likewise.
55792         * modules/unictype/gen-ctype (Depends-on): Likewise.
55793         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55794
55795 2008-11-02  Bruno Haible  <bruno@clisp.org>
55796
55797         Mark 'strcspn' obsolete.
55798         * modules/strcspn (Status, Notice): New sections.
55799
55800 2008-11-02  Bruno Haible  <bruno@clisp.org>
55801
55802         Mark 'rmdir' obsolete.
55803         * modules/rmdir (Status, Notice): New sections.
55804         * modules/clean-temp (Depends-on): Add rmdir.
55805         * modules/openat (Depends-on): Likewise.
55806
55807 2008-11-02  Bruno Haible  <bruno@clisp.org>
55808
55809         Mark 'raise' obsolete.
55810         * modules/raise (Status, Notice): New sections.
55811         (Include): Specify <signal.h>.
55812         * modules/stdio (Depends-on): Add raise.
55813         * modules/write (Depends-on): Likewise.
55814
55815 2008-11-02  Bruno Haible  <bruno@clisp.org>
55816
55817         Mark 'memset' obsolete.
55818         * modules/memset (Status, Notice): New sections.
55819
55820 2008-11-02  Bruno Haible  <bruno@clisp.org>
55821
55822         Mark 'memmove' obsolete.
55823         * modules/memmove (Status, Notice): New sections.
55824         * modules/argp (Depends-on): Add memmove.
55825         * modules/argz (Depends-on): Likewise.
55826         * modules/canonicalize (Depends-on): Likewise.
55827         * modules/canonicalize-lgpl (Depends-on): Likewise.
55828         * modules/fts (Depends-on): Likewise.
55829         * modules/getcwd (Depends-on): Likewise.
55830         * modules/human (Depends-on): Likewise.
55831         * modules/regex (Depends-on): Likewise.
55832         * modules/striconveh (Depends-on): Likewise.
55833         * modules/trim (Depends-on): Likewise.
55834         * modules/unistr/u8-move (Depends-on): Likewise.
55835         * modules/unistr/u16-move (Depends-on): Likewise.
55836         * modules/unistr/u32-move (Depends-on): Likewise.
55837
55838 2008-11-02  Bruno Haible  <bruno@clisp.org>
55839
55840         Mark 'memcpy' obsolete.
55841         * modules/memcpy (Status, Notice): New sections.
55842
55843 2008-11-02  Bruno Haible  <bruno@clisp.org>
55844
55845         Mark 'memcmp' obsolete.
55846         * modules/memcmp (Status, Notice): New sections.
55847         * modules/argmatch (Depends-on): Add memchr.
55848         * modules/backupfile (Depends-on): Likewise.
55849         * modules/c-strcasestr (Depends-on): Likewise.
55850         * modules/crypto/des (Depends-on): Likewise.
55851         * modules/csharpcomp (Depends-on): Likewise.
55852         * modules/fnmatch (Depends-on): Likewise.
55853         * modules/git-merge-changelog (Depends-on): Likewise.
55854         * modules/isnand (Depends-on): Likewise.
55855         * modules/isnand-nolibm (Depends-on): Likewise.
55856         * modules/isnanf (Depends-on): Likewise.
55857         * modules/isnanf-nolibm (Depends-on): Likewise.
55858         * modules/isnanl (Depends-on): Likewise.
55859         * modules/isnanl-nolibm (Depends-on): Likewise.
55860         * modules/mbchar (Depends-on): Likewise.
55861         * modules/memcoll (Depends-on): Likewise.
55862         * modules/quotearg (Depends-on): Likewise.
55863         * modules/regex (Depends-on): Likewise.
55864         * modules/relocatable-prog (Depends-on): Likewise.
55865         * modules/same (Depends-on): Likewise.
55866         * modules/signbit (Depends-on): Likewise.
55867         * modules/strcasestr-simple (Depends-on): Likewise.
55868         * modules/unictype/gen-ctype (Depends-on): Likewise.
55869         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55870         * modules/uniname/uniname (Depends-on): Likewise.
55871         * modules/unistr/u8-cmp (Depends-on): Likewise.
55872
55873 2008-11-02  Bruno Haible  <bruno@clisp.org>
55874
55875         Mark 'memchr' obsolete.
55876         * modules/memchr (Status, Notice): New sections.
55877         * modules/argp (Depends-on): Add memchr.
55878         * modules/base64 (Depends-on): Likewise.
55879         * modules/c-strcasestr (Depends-on): Likewise.
55880         * modules/chdir-long (Depends-on): Likewise.
55881         * modules/fnmatch (Depends-on): Likewise.
55882         * modules/getsubopt (Depends-on): Likewise.
55883         * modules/git-merge-changelog (Depends-on): Likewise.
55884         * modules/glob (Depends-on): Likewise.
55885         * modules/strcasestr-simple (Depends-on): Likewise.
55886         * modules/strnlen (Depends-on): Likewise.
55887
55888 2008-11-02  Bruno Haible  <bruno@clisp.org>
55889
55890         Mark 'atexit' obsolete.
55891         * modules/atexit (Status, Notice): New sections.
55892         * modules/chdir-long (Depends-on): Add atexit.
55893         * modules/wait-process (Depends-on): Likewise.
55894
55895 2008-11-02  Bruno Haible  <bruno@clisp.org>
55896
55897         * gnulib-tool: New option --with-obsolete.
55898         (func_usage): Document it.
55899         (func_modules_transitive_closure): Drop obsolete dependencies if
55900         incobsolete is not true.
55901         (func_import): Read and save the incobsolete variable to the cache.
55902
55903 2008-11-02  Bruno Haible  <bruno@clisp.org>
55904
55905         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55906         * gnulib-tool: New option --extract-status.
55907         (func_usage): Document it.
55908         (sed_extract_prog): Recognize it.
55909         (func_get_status): New function.
55910
55911 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55912
55913         * modules/sockets (License): Change from LGPL to LGPLv2+.
55914
55915 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55916
55917         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55918
55919 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55920
55921         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55922         Mention times and sys_times.
55923         * modules/sys_times, modules/sys_times-tests: New modules.
55924         * modules/times, modules/times-tests: Likewise
55925         * m4/sys_times_h.m4: New file.
55926         * lib/sys_times.in.h: Likewise
55927         * lib/times.c: Likewise.
55928         * tests/test-sys_times.c: Likewise.
55929         * tests/test-times.c: Likewise.
55930         * doc/posix-headers/sys_times.texi: Update.
55931         * doc/posix-functions/times.texi: Update.
55932
55933 2008-10-28  Jim Meyering  <meyering@redhat.com>
55934
55935         * modules/tempname (Depends-on): Add lstat.
55936
55937         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55938
55939 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55940
55941         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55942         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55943         using idiom used elsewhere in gnulib.
55944
55945 2008-10-27  Jim Meyering  <meyering@redhat.com>
55946
55947         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55948
55949 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55950
55951         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55952         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55953         programs.
55954         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55955
55956 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55957
55958         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55959
55960 2008-10-27  Bruno Haible  <bruno@clisp.org>
55961
55962         * tests/test-lstat.c: Include <stdio.h>.
55963
55964 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55965
55966         * modules/lstat-tests: New module.
55967         * tests/test-lstat.c: New file.
55968
55969 2008-10-26  Jim Meyering  <meyering@redhat.com>
55970
55971         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55972
55973 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55974             Bruno Haible  <bruno@clisp.org>
55975
55976         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55977         * modules/configmake (Include): Add a note that the include must come
55978         after all system headers.
55979         * lib/javaversion.c: Include configmake.h after all other includes.
55980
55981 2008-10-26  Bruno Haible  <bruno@clisp.org>
55982
55983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55984         HAVE_STRUCT_RANDOM_DATA to 1.
55985         (gl_STDLIB_H): Simplify.
55986
55987 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55988
55989         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55990         substitute HAVE_STRUCT_RANDOM_DATA.
55991         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55992         random_data.
55993         * modules/stdlib (Makefile.am): Substitute
55994         HAVE_STRUCT_RANDOM_DATA.
55995
55996 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55997
55998         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55999         * doc/gnulib-intro.texi (Copyright): Likewise.
56000
56001 2008-10-26  Simon Josefsson  <simon@josefsson.org>
56002
56003         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
56004         findings.
56005
56006 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
56007             Bruno Haible  <bruno@clisp.org>
56008
56009         * lib/unistd.in.h: Include <winsock2.h>.
56010         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
56011         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
56012         Provide dummy declarations.
56013         (gethostname): Override.
56014         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
56015         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
56016         gl_PREREQ_SYS_H_WINSOCK2.
56017         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
56018         * doc/posix-functions/gethostname.texi: More details.
56019
56020 2008-10-25  Bruno Haible  <bruno@clisp.org>
56021
56022         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56023         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
56024         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
56025
56026         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
56027         here ...
56028         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
56029         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
56030         gl_UNISTD_H_DEFAULTS.
56031
56032 2008-10-25  Eric Blake  <ebb9@byu.net>
56033
56034         signbit: avoid spurious compiler failure
56035         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
56036         declarations inside function.
56037
56038 2008-10-24  Simon Josefsson  <simon@josefsson.org>
56039             Bruno Haible  <bruno@clisp.org>
56040
56041         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
56042         * modules/random_r (Depends-on): Add stdint.
56043
56044 2008-10-24  Bruno Haible  <bruno@clisp.org>
56045
56046         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
56047         Eggert.
56048         * modules/strerror (License): Likewise.
56049
56050 2008-10-24  Jim Meyering  <meyering@redhat.com>
56051
56052         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
56053         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
56054
56055 2008-10-24  Eric Blake  <ebb9@byu.net>
56056
56057         getgroups: fix compilation when getgroups is available
56058         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
56059         but with <config.h> override of getgroups disabled.
56060
56061 2008-10-24  Simon Josefsson  <simon@josefsson.org>
56062
56063         * doc/gnulib.texi (Header files): Add note about C++ problems.
56064         Explained by Bruno Haible <bruno@clisp.org>.
56065
56066 2008-10-23  Bruno Haible  <bruno@clisp.org>
56067
56068         Define a dummy SA_NODEFER macro on Interix.
56069         * lib/signal.in.h (SA_NODEFER): Define fallback.
56070         Reported by Aleksey Cheusov <cheusov@tut.by> via
56071         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
56072
56073 2008-10-23  Bruno Haible  <bruno@clisp.org>
56074
56075         * modules/freadahead (License): Change to LGPLv2+.
56076         Suggested by Simon Josefsson.
56077
56078 2008-10-23  Jim Meyering  <meyering@redhat.com>
56079
56080         random_r: new module
56081         * modules/random_r: New file.
56082         * m4/random_r.m4: New file.
56083         * lib/random_r.c: New file, from glibc.
56084         * modules/random_r-tests: New file.
56085         * tests/test-random_r.c: New file.
56086         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
56087          Declare.
56088         (RAND_MAX): Define.
56089         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
56090         * modules/stdlib: Substitute them, too.
56091         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
56092         * doc/glibc-functions/initstate_r.texi: Mention the new module.
56093         * doc/glibc-functions/random_r.texi: Likewise.
56094         * doc/glibc-functions/setstate_r.texi: Likewise.
56095         * doc/glibc-functions/srandom_r.texi: Likewise.
56096         * config/srclist.txt: Mention it.
56097
56098 2008-10-23  David Lutterkort  <lutter@redhat.com>
56099
56100         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
56101         link requirement
56102
56103 2008-10-23  Jim Meyering  <meyering@redhat.com>
56104
56105         selinux-h: mark parameters of stub functions as intentionally unused
56106         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
56107         * lib/se-context.in.h: Likewise.
56108
56109 2008-10-22  Simon Josefsson  <simon@josefsson.org>
56110
56111         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
56112
56113 2008-10-22  Simon Josefsson  <simon@josefsson.org>
56114
56115         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
56116
56117 2008-10-22  Eric Blake  <ebb9@byu.net>
56118
56119         glthread/thread: avoid compiler warning
56120         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
56121         Add unreachable abort to silence compiler.
56122
56123 2008-10-22  Eric Blake  <ebb9@byu.net>
56124
56125         netdb: also supply struct addrinfo for cygwin 1.5.x
56126         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
56127         older cygwin.
56128         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
56129         cygwin.
56130         * doc/posix-headers/netdb.texi (netdb.h): Document this.
56131
56132 2008-10-22  Bruno Haible  <bruno@clisp.org>
56133
56134         * users.txt: Update entry about pspp.
56135
56136 2008-10-21  Bruno Haible  <bruno@clisp.org>
56137
56138         Simplification.
56139         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
56140         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
56141
56142         Simplification.
56143         * lib/ioctl.c (ioctl): Don't undefine.
56144         * lib/socket.c (socket): Don't undefine.
56145
56146         Remove unused module indicator macros.
56147         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
56148         GNULIB_$1 as a C macro.
56149
56150         * doc/posix-functions/close.texi: Undo last change.
56151         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
56152         Windows platforms.
56153
56154 2008-10-21  Bruno Haible  <bruno@clisp.org>
56155
56156         Add gethostname() declaration to <unistd.h>.
56157         * lib/unistd.in.h (gethostname): New declaration.
56158         * lib/gethostname.c: Include <unistd.h>.
56159         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
56160         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
56161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
56162         and HAVE_GETHOSTNAME.
56163         * modules/gethostname (Depends-on): Add unistd.
56164         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56165         (Include): Specify <unistd.h>.
56166         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
56167         HAVE_GETHOSTNAME.
56168         * tests/test-gethostname.c: Include <unistd.h> first.
56169
56170 2008-10-21  Bruno Haible  <bruno@clisp.org>
56171
56172         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
56173         * modules/select-tests (Depends-on): Likewise.
56174         Reported by Simon Josefsson.
56175
56176 2008-10-21  Simon Josefsson  <simon@josefsson.org>
56177
56178         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
56179         * lib/accept.c: New file, based on winsock.c.
56180         * lib/bind.c: New file, based on winsock.c.
56181         * lib/connect.c: New file, based on winsock.c.
56182         * lib/getpeername.c: New file, based on winsock.c.
56183         * lib/getsockname.c: New file, based on winsock.c.
56184         * lib/getsockopt.c: New file, based on winsock.c.
56185         * lib/ioctl.c: New file, based on winsock.c.
56186         * lib/listen.c: New file, based on winsock.c.
56187         * lib/recv.c: New file, based on winsock.c.
56188         * lib/recvfrom.c: New file, based on winsock.c.
56189         * lib/send.c: New file, based on winsock.c.
56190         * lib/sendto.c: New file, based on winsock.c.
56191         * lib/setsockopt.c: New file, based on winsock.c.
56192         * lib/shutdown.c: New file, based on winsock.c.
56193         * lib/socket.c: New file, based on winsock.c.
56194         * lib/w32sock.h: New file, based on winsock.c.
56195         * lib/winsock.c: Remove file.
56196         * modules/accept: Likewise.
56197         * modules/bind: Likewise.
56198         * modules/connect: Likewise.
56199         * modules/getpeername: Likewise.
56200         * modules/getsockname: Likewise.
56201         * modules/getsockopt: Likewise.
56202         * modules/ioctl: Likewise.
56203         * modules/listen: Likewise.
56204         * modules/recv: Likewise.
56205         * modules/recvfrom: Likewise.
56206         * modules/send: Likewise.
56207         * modules/sendto: Likewise.
56208         * modules/setsockopt: Likewise.
56209         * modules/shutdown: Likewise.
56210         * modules/socket: Use socket.c instead of winsock.c.
56211         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
56212         * doc/posix-functions/accept.texi: Doc fix.
56213         * doc/posix-functions/bind.texi: Doc fix.
56214         * doc/posix-functions/close.texi: Doc fix.
56215         * doc/posix-functions/connect.texi: Doc fix.
56216         * doc/posix-functions/getpeername.texi: Doc fix.
56217         * doc/posix-functions/getsockname.texi: Doc fix.
56218         * doc/posix-functions/getsockopt.texi: Doc fix.
56219         * doc/posix-functions/ioctl.texi: Doc fix.
56220         * doc/posix-functions/listen.texi: Doc fix.
56221         * doc/posix-functions/recv.texi: Doc fix.
56222         * doc/posix-functions/recvfrom.texi: Doc fix.
56223         * doc/posix-functions/send.texi: Doc fix.
56224         * doc/posix-functions/sendto.texi: Doc fix.
56225         * doc/posix-functions/setsockopt.texi: Doc fix.
56226         * doc/posix-functions/shutdown.texi: Doc fix.
56227         * doc/posix-functions/socket.texi: Doc fix.
56228
56229 2008-10-20  Bruno Haible  <bruno@clisp.org>
56230
56231         Take into account the role of SIGABRT_COMPAT on Windows 2008.
56232         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
56233         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
56234         as an alias for SIGABRT.
56235         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
56236         (sigaction): Map it to SIGABRT.
56237         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
56238
56239 2008-10-20  Bruno Haible  <bruno@clisp.org>
56240
56241         * lib/fts.c: Don't include lstat.h.
56242         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
56243
56244         Move the lstat() declaration to <sys/stat.h>.
56245         * lib/lstat.h: Remove file.
56246         * lib/sys_stat.in.h: Add special invocation convention.
56247         (lstat): New declaration.
56248         * lib/lstat.c (orig_lstat): New function.
56249         (rpl_lstat): Use orig_lstat instead of lstat.
56250         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
56251         AC_C_INLINE. Set REPLACE_LSTAT.
56252         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
56253         and REPLACE_LSTAT.
56254         * modules/lstat (Files): Remove lib/lstat.h.
56255         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56256         (Include): Specify <sys/stat.h> instead of lstat.h.
56257         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
56258         REPLACE_LSTAT.
56259         * NEWS: Mention the change.
56260
56261 2008-10-20  Bruno Haible  <bruno@clisp.org>
56262
56263         * modules/posix_spawn-tests: New file.
56264         * tests/test-posix_spawn3.c: New file.
56265
56266 2008-10-20  Bruno Haible  <bruno@clisp.org>
56267
56268         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
56269         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56270         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
56271         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56272         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
56273
56274 2008-10-20  Bruno Haible  <bruno@clisp.org>
56275
56276         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
56277         of posix_spawn on AIX 5.3.
56278
56279 2008-10-20  Bruno Haible  <bruno@clisp.org>
56280
56281         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
56282
56283 2008-10-20  Bruno Haible  <bruno@clisp.org>
56284
56285         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
56286         of AC_LANG_PROGRAM.
56287
56288 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56289
56290         * lib/netdb.in.h: Don't define GNU specific constants until they
56291         are supported or needed.  Reported by Bruno Haible
56292         <bruno@clisp.org>.
56293
56294 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56295
56296         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
56297
56298 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56299
56300         * lib/getaddrinfo.h: Remove file.
56301         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
56302         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
56303         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
56304         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
56305         * modules/netdb: Substitute GNULIB_GETADDRINFO.
56306         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
56307         * tests/test-getaddrinfo.c: Likewise.
56308         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
56309         * NEWS: Mention change.
56310
56311 2008-10-19  Bruno Haible  <bruno@clisp.org>
56312
56313         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
56314
56315 2008-10-19  Bruno Haible  <bruno@clisp.org>
56316
56317         * lib/wait-process.c: Include simply <sys/wait.h>.
56318         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
56319         WIFSTOPPED): Remove fallback definitions.
56320         * modules/wait-process (Depends-on): Add sys_wait.
56321
56322         New module 'sys_wait'.
56323         * modules/sys_wait: New file.
56324         * lib/sys_wait.in.h: New file, partially copied from
56325         lib/wait-process.c.
56326         * m4/sys_wait_h.m4: New file.
56327         * doc/posix-headers/sys_wait.texi: Mention the new module.
56328
56329 2008-10-19  Bruno Haible  <bruno@clisp.org>
56330
56331         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
56332
56333 2008-10-19  Bruno Haible  <bruno@clisp.org>
56334
56335         Assume that waitpid() fills an 'int' status, not a 'union wait'.
56336         * lib/wait-process.c (WAIT_T): Remove type.
56337         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
56338         (wait_subprocess): Update.
56339
56340 2008-10-19  Bruno Haible  <bruno@clisp.org>
56341
56342         New module 'atoll'.
56343         * modules/atoll: New file.
56344         * lib/stdlib.in.h (atoll): New declaration.
56345         * lib/atoll.c: New file, from glibc with modifications.
56346         * m4/atoll.m4: New file.
56347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
56348         HAVE_ATOLL.
56349         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
56350         * doc/posix-functions/atoll.texi: Mention the new module.
56351
56352 2008-10-19  Bruno Haible  <bruno@clisp.org>
56353
56354         Add strtoull() declaration to <stdlib.h>.
56355         * lib/stdlib.in.h (strtoull): New declaration.
56356         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56357         Set HAVE_STRTOULL.
56358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
56359         HAVE_STRTOULL.
56360         * modules/strtoull (Depends-on): Add stdlib.
56361         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56362         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
56363         HAVE_STRTOULL.
56364
56365 2008-10-19  Bruno Haible  <bruno@clisp.org>
56366
56367         Add strtoll() declaration to <stdlib.h>.
56368         * lib/stdlib.in.h (strtoll): New declaration.
56369         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56370         Set HAVE_STRTOLL.
56371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
56372         HAVE_STRTOLL.
56373         * modules/strtoll (Depends-on): Add stdlib.
56374         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56375         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
56376
56377 2008-10-19  Bruno Haible  <bruno@clisp.org>
56378
56379         * modules/bcopy (Depends-on): Add strings.
56380         (Include): Specify <strings.h>.
56381
56382 2008-10-19  Bruno Haible  <bruno@clisp.org>
56383
56384         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
56385
56386 2008-10-19  Bruno Haible  <bruno@clisp.org>
56387
56388         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
56389         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
56390         mingw.
56391
56392 2008-10-19  Bruno Haible  <bruno@clisp.org>
56393
56394         * lib/atanl.c: Don't include isnanl.h.
56395         * lib/cosl.c: Likewise.
56396         * lib/ldexpl.c: Likewise.
56397         * lib/logl.c: Likewise.
56398         * lib/sinl.c: Likewise.
56399         * lib/sqrtl.c: Likewise.
56400         * lib/tanl.c: Likewise.
56401
56402         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
56403         * lib/isnanf.h: Remove file.
56404         * lib/isnand.h: Remove file.
56405         * lib/isnanl.h: Remove file.
56406         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
56407         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
56408         macros.
56409         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
56410         HAVE_ISNANF, don't define it as a C macro.
56411         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
56412         HAVE_ISNAND, don't define it as a C macro.
56413         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
56414         HAVE_ISNANL, don't define it as a C macro.
56415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
56416         HAVE_ISNAN[FDL].
56417         * modules/isnanf (Files): Remove lib/isnanf.h.
56418         (Depends-on): Add math.
56419         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56420         (Include): Specify <math.h> instead of isnanf.h.
56421         * modules/isnand (Files): Remove lib/isnand.h.
56422         (Depends-on): Add math.
56423         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56424         (Include): Specify <math.h> instead of isnand.h.
56425         * modules/isnanl (Files): Remove lib/isnanl.h.
56426         (Depends-on): Add math.
56427         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56428         (Include): Specify <math.h> instead of isnanl.h.
56429         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
56430         HAVE_ISNAN[FDL].
56431         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
56432         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
56433         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
56434         * NEWS: Mention the change.
56435
56436 2008-10-18  Bruno Haible  <bruno@clisp.org>
56437
56438         Add getusershell(), setusershell(), endusershell() declarations to
56439         <unistd.h>.
56440         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
56441         declarations.
56442         * lib/getusershell.c: Include unistd.h.
56443         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
56444         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56445         HAVE_GETUSERSHELL.
56446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
56447         and HAVE_GETUSERSHELL.
56448         * modules/getusershell (Depends-on): Add unistd, extensions.
56449         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56450         (Include): Specify <unistd.h>.
56451         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
56452         HAVE_GETUSERSHELL.
56453
56454 2008-10-18  Bruno Haible  <bruno@clisp.org>
56455
56456         Add a getloadavg() declaration to <stdlib.h>.
56457         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
56458         getloadavg declaration.
56459         (getloadavg): New declaration.
56460         * lib/getloadavg.c: Include <stdlib.h> first.
56461         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
56462         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
56463         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
56464         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
56465         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56466         * modules/getloadavg (Depends-on): Add stdlib, extensions.
56467         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56468         (Include): Specify <stdlib.h>.
56469         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
56470         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56471
56472 2008-10-18  Bruno Haible  <bruno@clisp.org>
56473
56474         * lib/dirchownmod.c: Don't include lchmod.h.
56475
56476         Move the lchmod() declaration to <sys/stat.h>.
56477         * lib/lchmod.h: Remove file.
56478         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
56479         (lchmod): New declaration, moved here from lib/lchown.h.
56480         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
56481         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
56482         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
56483         and HAVE_LCHMOD.
56484         * modules/lchmod (Files): Remove lib/lchmod.h.
56485         (Depends-on): Add sys_stat, extensions.
56486         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56487         (Include): Specify <sys/stat.h> instead of lchmod.h.
56488         * modules/sys_stat (Depends-on): Add link-warning.
56489         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
56490         definition of GL_LINK_WARNING.
56491         * NEWS: Mention the change.
56492
56493 2008-10-18  Bruno Haible  <bruno@clisp.org>
56494
56495         * lib/fchdir.c: Don't include dirfd.h.
56496         * lib/fts.c: Likewise.
56497         * lib/getcwd.c: Likewise.
56498         * lib/glob.c: Likewise.
56499
56500         Move the dirfd() declaration to <dirent.h>.
56501         * lib/dirfd.h: Remove file.
56502         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
56503         (dirfd): New declaration.
56504         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
56505         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56506         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56507         HAVE_DECL_DIRFD.
56508         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56509         HAVE_DECL_DIRFD.
56510         * modules/dirfd (Files): Remove lib/dirfd.h.
56511         (Depends-on): Add dirent, extensions.
56512         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56513         (Include): Specify <dirent.h> instead of dirfd.h.
56514         * modules/dirent (Depends-on): Add link-warning.
56515         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56516         definition of GL_LINK_WARNING.
56517         * NEWS: Mention the change.
56518
56519 2008-10-18  Bruno Haible  <bruno@clisp.org>
56520
56521         Move the euidaccess() declaration to <unistd.h>.
56522         * lib/euidaccess.h: Remove file.
56523         * lib/unistd.in.h (euidaccess): New declaration.
56524         * lib/euidaccess.c: Don't include euidaccess.h.
56525         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56526         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56528         and HAVE_EUIDACCESS.
56529         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56530         (Depends-on): Add unistd.
56531         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56532         (Include): Specify <unistd.h> instead of euidaccess.h.
56533         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56534         HAVE_EUIDACCESS.
56535         * NEWS: Mention the change.
56536
56537 2008-10-18  Bruno Haible  <bruno@clisp.org>
56538
56539         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56540
56541         Move the getdomainname() declaration to <unistd.h>.
56542         * lib/getdomainname.h: Remove file.
56543         * lib/unistd.in.h (getdomainname): New declaration.
56544         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56545         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56546         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56547         HAVE_GETDOMAINNAME.
56548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56549         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56550         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56551         (Depends-on): Add unistd, extensions.
56552         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56553         (Includes): Specify <unistd.h> instead of getdomainname.h.
56554         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56555         HAVE_GETDOMAINNAME.
56556         * NEWS: Mention the change.
56557
56558 2008-10-18  Bruno Haible  <bruno@clisp.org>
56559
56560         * modules/dirent: New file.
56561         * m4/dirent_h.m4: New file.
56562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56563         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56564         * modules/fchdir (Files): Remove lib/dirent.in.h.
56565         (Depends-on): Add dirent.
56566         (Makefile.am): Move rules to modules/dirent.
56567         * doc/posix-headers/dirent.texi: Mention the new module.
56568
56569 2008-10-18  Bruno Haible  <bruno@clisp.org>
56570
56571         Avoid -Wunused-parameter warnings in public gnulib header files.
56572         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56573         macro.
56574         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56575
56576 2008-10-18  Bruno Haible  <bruno@clisp.org>
56577
56578         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56579         * doc/glibc-functions/error.texi: Mention the module 'error'.
56580         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56581         * doc/glibc-functions/getdomainname.texi: Mention the module
56582         'getdomainname'.
56583         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56584         * doc/glibc-functions/getpagesize.texi: Mention the module
56585         'getpagesize'.
56586         * doc/glibc-functions/getusershell.texi: Mention the module
56587         'getusershell'.
56588         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56589         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56590         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56591         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56592         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56593         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56594         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56595         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56596         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56597         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56598         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56599         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56600         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56601         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56602
56603 2008-10-17  Bruno Haible  <bruno@clisp.org>
56604
56605         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56606         HP-UX and IRIX, use -0.0L.
56607         * tests/test-ceill.c (minus_zero): Likewise.
56608         * tests/test-floorl.c (minus_zero): Likewise.
56609         * tests/test-frexpl.c (minus_zero): Likewise.
56610         * tests/test-isnan.c (minus_zerol): Likewise.
56611         * tests/test-isnanl.h (minus_zero): Likewise.
56612         * tests/test-ldexpl.c (minus_zero): Likewise.
56613         * tests/test-roundl.c (minus_zero): Likewise.
56614         * tests/test-signbit.c (minus_zerol): Likewise.
56615         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56616         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56617         * tests/test-truncl.c (minus_zero): Likewise.
56618         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56619         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56620         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56621         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56622
56623 2008-10-17  Bruno Haible  <bruno@clisp.org>
56624
56625         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56626         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56627         that it gets activated only for gcc >= 3.0.
56628         * lib/dirent.in.h: Likewise.
56629         * lib/errno.in.h: Likewise.
56630         * lib/fcntl.in.h: Likewise.
56631         * lib/float.in.h: Likewise.
56632         * lib/iconv.in.h: Likewise.
56633         * lib/inttypes.in.h: Likewise.
56634         * lib/locale.in.h: Likewise.
56635         * lib/math.in.h: Likewise.
56636         * lib/netdb.in.h: Likewise.
56637         * lib/netinet_in.in.h: Likewise.
56638         * lib/search.in.h: Likewise.
56639         * lib/signal.in.h: Likewise.
56640         * lib/spawn.in.h: Likewise.
56641         * lib/stdarg.in.h: Likewise.
56642         * lib/stdint.in.h: Likewise.
56643         * lib/stdio.in.h: Likewise.
56644         * lib/stdlib.in.h: Likewise.
56645         * lib/string.in.h: Likewise.
56646         * lib/strings.in.h: Likewise.
56647         * lib/sys_file.in.h: Likewise.
56648         * lib/sys_ioctl.in.h: Likewise.
56649         * lib/sys_select.in.h: Likewise.
56650         * lib/sys_socket.in.h: Likewise.
56651         * lib/sys_stat.in.h: Likewise.
56652         * lib/sys_time.in.h: Likewise.
56653         * lib/sysexits.in.h: Likewise.
56654         * lib/time.in.h: Likewise.
56655         * lib/unistd.in.h: Likewise.
56656         * lib/wchar.in.h: Likewise.
56657         * lib/wctype.in.h: Likewise.
56658         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56659
56660 2008-10-17  Jim Meyering  <meyering@redhat.com>
56661
56662         ignore-value: don't depend on inline module
56663         * modules/ignore-value (Depends-on): Remove 'inline'.
56664         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56665         Suggestion from Bruno Haible.
56666
56667 2008-10-17  Bruno Haible  <bruno@clisp.org>
56668
56669         New implementation of condition variables for Win32.
56670         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56671         (gl_linked_waitqueue_t): New type.
56672         (gl_cond_t): Use it.
56673         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56674         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56675         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56676         (glthread_cond_init_func, glthread_cond_wait_func,
56677         glthread_cond_timedwait_func, glthread_cond_signal_func,
56678         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56679         Reimplemented on the basis of gl_linked_waitqueue_t.
56680         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56681         gl_waitqueue_t.
56682         (gl_rwlock_t): Update.
56683         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56684
56685 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56686
56687         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56688         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56689
56690 2008-10-17  Jim Meyering  <meyering@redhat.com>
56691
56692         ignore-value: new module
56693         * modules/ignore-value: New file.
56694         * lib/ignore-value.h: New file.
56695         * MODULES.html.sh (Compiler warning management): New section,
56696         just for this module.  More to come.
56697
56698 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56699
56700         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56701         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56702         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56703
56704 2008-10-16  Jim Meyering  <meyering@redhat.com>
56705
56706         openat-die.c: avoid 'no previous prototype' warning
56707         * lib/openat-die.c: Include "openat.h".
56708         Reported by Reuben Thomas <rrt@sc3d.org>.
56709
56710 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56711
56712         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56713         * lib/netdb.in.h: Fix typo.
56714         Reported by Bruno Haible  <bruno@clisp.org>
56715
56716         * lib/netdb.in.h: Include sys/socket.h for platforms without
56717         netdb.h, to get structures like hostent on MinGW.
56718         * modules/netdb (Depends-on): Add sys_socket.
56719
56720 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56721
56722         * modules/netdb, modules/netdb-tests: New file.
56723         * m4/netdb_h.m4: New file.
56724         * lib/netdb.in.h: Add, currently just an empty file pending
56725         definitions.
56726         * tests/test-netdb.c: New file.
56727         * doc/posix-headers/netdb.texi: Mention that we replace it if
56728         needed.
56729         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56730         netdb.
56731
56732 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56733
56734         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56735         with code.
56736
56737 2008-10-13  Bruno Haible  <bruno@clisp.org>
56738
56739         * lib/glthread/cond.c (glthread_cond_wait_func,
56740         glthread_cond_timedwait_func): Add a comment.
56741
56742 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56743
56744         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56745         * tests/test-select.c: Likewise,
56746
56747 2008-10-13  Bruno Haible  <bruno@clisp.org>
56748
56749         * lib/glthread/cond.c (glthread_cond_wait_func,
56750         glthread_cond_timedwait_func): Fix variable name.
56751         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56752
56753 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56754
56755         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56756         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56757         struct sockaddr.sa_len.
56758         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56759
56760 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56761
56762         * build-aux/pmccabe2html: Add css and css_url parameters.
56763
56764 2008-10-12  Bruno Haible  <bruno@clisp.org>
56765
56766         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56767         calling aclx_get.
56768         Reported by Rainer Tammer <tammer@tammer.net>.
56769
56770 2008-10-12  Bruno Haible  <bruno@clisp.org>
56771
56772         Use msvcrt aware primitives for creation/termination of Win32 threads.
56773         * lib/glthread/thread.c: Include <process.h>.
56774         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56775         (wrapper_func): Update signature.
56776         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56777
56778 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56779             Bruno Haible  <bruno@clisp.org>
56780
56781         Provide a Win32 implementation of the 'cond' module.
56782         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56783         * lib/glthread/cond.c (glthread_cond_init_func,
56784         glthread_cond_wait_func, glthread_cond_timedwait_func,
56785         glthread_cond_signal_func, glthread_cond_broadcast_func,
56786         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56787         * modules/cond (Dependencies): Add gettimeofday.
56788
56789 2008-10-11  Bruno Haible  <bruno@clisp.org>
56790
56791         Make sleep work on older versions of mingw.
56792         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56793         only whether it exists.
56794         * doc/posix-functions/sleep.texi: Mention the problem with older
56795         versions of mingw.
56796
56797 2008-10-11  Bruno Haible  <bruno@clisp.org>
56798
56799         New module 'shutdown'.
56800         * modules/shutdown: New file.
56801         * lib/sys_socket.in.h (shutdown): New declaration.
56802         * lib/winsock.c (shutdown): New function.
56803         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56804         GNULIB_SHUTDOWN.
56805         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56806         * doc/posix-functions/shutdown.texi: Document the new module.
56807
56808 2008-10-11  Jim Meyering  <meyering@redhat.com>
56809
56810         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56811
56812 2008-10-11  Bruno Haible  <bruno@clisp.org>
56813
56814         New module 'fclose'.
56815         * modules/fclose: New file.
56816         * lib/stdio.in.h (fclose): New declaration.
56817         * lib/fclose.c: New file.
56818         * m4/fclose.m4: New file.
56819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56820         REPLACE_FCLOSE.
56821         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56822         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56823         REPLACE_FCLOSE.
56824         * modules/close (Depends-on): fclose.
56825         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56826
56827 2008-10-11  Bruno Haible  <bruno@clisp.org>
56828
56829         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56830         set errno and don't call _close.
56831
56832 2008-10-10  Bruno Haible  <bruno@clisp.org>
56833
56834         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56835         ACL, not afterwards. Fixes test failure on Cygwin.
56836
56837 2008-10-09  Ben Pfaff  <blp@gnu.org>
56838
56839         * build-aux/announce-gen: Fix gnulib version related part of usage
56840         message.  Die with a useful error message if no tarballs are
56841         found.
56842
56843 2008-10-10  Jim Meyering  <meyering@redhat.com>
56844
56845         bootstrap: use git's --depth=N option only if it's supported
56846         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56847         recognize the --depth option.  Reported by Pádraig Brady.
56848
56849 2008-10-09  Bruno Haible  <bruno@clisp.org>
56850
56851         New module 'ioctl'.
56852         * modules/ioctl: New file.
56853         * lib/sys_socket.in.h (ioctl): Remove declaration.
56854         * lib/winsock.c: Include <sys/ioctl.h>.
56855         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56856         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56857         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56858         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56859         * doc/posix-functions/ioctl.texi: Mention the new module.
56860
56861 2008-10-09  Bruno Haible  <bruno@clisp.org>
56862
56863         New module 'sys_ioctl'.
56864         * lib/sys_ioctl.in.h: New file.
56865         * m4/sys_ioctl_h.m4: New file.
56866         * modules/sys_ioctl: New file.
56867         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56868
56869 2008-10-09  Bruno Haible  <bruno@clisp.org>
56870
56871         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56872         * lib/winsock.c: Include <stdarg.h>.
56873         (rpl_ioctl): Change to second argument 'int' and then varargs.
56874
56875 2008-10-09  Bruno Haible  <bruno@clisp.org>
56876
56877         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56878         when the sys_socket module is present and the system has <winsock2.h>.
56879
56880 2008-10-09  Bruno Haible  <bruno@clisp.org>
56881
56882         * doc/posix-functions/close.texi: Mention module 'close' instead of
56883         module 'sys_socket'.
56884
56885 2008-10-09  Bruno Haible  <bruno@clisp.org>
56886
56887         * doc/glibc-headers/sys_ioctl.texi: New file.
56888         * doc/gnulib.texi: Include it.
56889
56890 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56891             Bruno Haible  <bruno@clisp.org>
56892
56893         Combine the two replacements of 'close'.
56894         * lib/sys_socket.in.h (close): Define to a reminder to include
56895         <unistd.h>.
56896         (_gl_close_fd_maybe_socket): New declaration.
56897         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56898         * lib/winsock.c (close): Remove undefinition.
56899         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56900         needed for the gnulib module 'close'.
56901         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56902         define to an error symbol or to a warning, if suitable.
56903         * lib/close.c: Include <sys/socket.h>.
56904         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56905         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56906         UNISTD_H_HAVE_WINSOCK2_H.
56907         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56909         UNISTD_H_HAVE_WINSOCK2_H.
56910         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56911         (configure.ac): Set a module indicator.
56912         (Makefile.am): Substitute GNULIB_CLOSE.
56913         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56914         * modules/poll-tests (Depends-on): Add close.
56915         * modules/select-tests (Depends-on): Likewise.
56916
56917 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56918             Bruno Haible  <bruno@clisp.org>
56919
56920         New module 'close'.
56921         * modules/close: New file.
56922         * lib/unistd.in.h (close): Move declaration out of the
56923         FCHDIR_REPLACEMENT scope.
56924         (_gl_unregister_fd): New declaration.
56925         * lib/close.c: New file.
56926         * lib/fchdir.c (rpl_close): Remove function.
56927         * m4/close.m4: New file.
56928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56929         close.
56930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56931         REPLACE_CLOSE.
56932         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56933         REPLACE_CLOSE.
56934         * modules/fchdir (Depends-on): Add close.
56935
56936 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56937             Bruno Haible  <bruno@clisp.org>
56938
56939         * lib/fcntl.in.h (open): Simplify conditionals.
56940         (_gl_register_fd): New declaration.
56941         * lib/fchdir.c (rpl_open): Remove function.
56942         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56943         also.
56944         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56945         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56946         open.
56947
56948 2008-10-09  Jim Meyering  <meyering@redhat.com>
56949
56950         GNUmakefile: use the more name-space-friendly "_version"
56951         * top/GNUmakefile (_dummy): Update.
56952         (_version): Rename from "version".
56953
56954 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56955             Bruno Haible  <bruno@clisp.org>
56956
56957         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56958         rpl_close.
56959         (_gl_register_fd): New function, extracted from rpl_open.
56960         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56961         (rpl_open, rpl_opendir): Use _gl_register_fd.
56962
56963 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56964
56965         Fix organization of 'open' replacement.
56966         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56967         (gl_FUNC_OPEN): Use it.
56968         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56969
56970 2008-10-08  Bruno Haible  <bruno@clisp.org>
56971
56972         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56973
56974 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56975
56976         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56977         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56978         listen).
56979
56980 2008-10-08  Eric Blake  <ebb9@byu.net>
56981
56982         GNUmakefile: add 'make version' target
56983         * top/GNUmakefile (_curr-ver): Split version update rules...
56984         (version): ...into a target.
56985
56986 2008-10-07  Bruno Haible  <bruno@clisp.org>
56987
56988         Use a more portable replacement expression for -0.0L.
56989         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56990         instead of -0.0L. Fix m4 quotation.
56991
56992         * tests/test-signbit.c: Include <float.h>.
56993         (minus_zero): New variable.
56994         (test_signbitl): Use minus_zero instead of -zero.
56995         * modules/signbit-tests (Depends-on): Add float.
56996
56997         * tests/test-ceill.c: Include <float.h>.
56998         (zero): Remove variable.
56999         (minus_zero): New variable.
57000         (main): Use minus_zero instead of -zero.
57001         * modules/ceill-tests (Depends-on): Add float.
57002
57003         * tests/test-floorl.c: Include <float.h>.
57004         (zero): Remove variable.
57005         (minus_zero): New variable.
57006         (main): Use minus_zero instead of -zero.
57007         * modules/floorl-tests (Depends-on): Add float.
57008
57009         * tests/test-roundl.c: Include <float.h>.
57010         (zero): Remove variable.
57011         (minus_zero): New variable.
57012         (main): Use minus_zero instead of -zero.
57013         * modules/roundl-tests (Depends-on): Add float.
57014
57015         * tests/test-truncl.c: Include <float.h>.
57016         (zero): Remove variable.
57017         (minus_zero): New variable.
57018         (main): Use minus_zero instead of -zero.
57019         * modules/truncl-tests (Depends-on): Add float.
57020
57021         * tests/test-frexpl.c (zero): Remove variable.
57022         (minus_zero): New variable.
57023         (main): Use minus_zero instead of -zero.
57024         * modules/frexpl-tests (Depends-on): Add float.
57025
57026         * tests/test-isnan.c (zerol): Remove variable.
57027         (minus_zerol): New variable.
57028         (test_long_double): Use minus_zerol instead of -zerol.
57029         * modules/isnan-tests (Depends-on): Add float.
57030
57031         * tests/test-isnanl.h (zero): Remove variable.
57032         (minus_zero): New variable.
57033         (main): Use minus_zero instead of -zero.
57034         * modules/isnanl-nolibm-tests (Depends-on): Add float.
57035         * modules/isnanl-tests (Depends-on): Add float.
57036
57037         * tests/test-ldexpl.c (zero): Remove variable.
57038         (minus_zero): New variable.
57039         (main): Use minus_zero instead of -zero.
57040         * modules/ldexpl-tests (Depends-on): Add float.
57041
57042         * tests/test-snprintf-posix.h (zerol): Remove variable.
57043         (minus_zerol): New variable.
57044         (test_function): Use minus_zerol instead of -zerol.
57045         * modules/snprintf-posix-tests (Depends-on): Add float.
57046         * modules/vsnprintf-posix-tests (Depends-on): Add float.
57047
57048         * tests/test-sprintf-posix.h (zerol): Remove variable.
57049         (minus_zerol): New variable.
57050         (test_function): Use minus_zerol instead of -zerol.
57051         * modules/sprintf-posix-tests (Depends-on): Add float.
57052         * modules/vsprintf-posix-tests (Depends-on): Add float.
57053
57054         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
57055         (minus_zerol): New variable.
57056         (test_function): Use minus_zerol instead of -zerol.
57057         * modules/vasnprintf-posix-tests (Depends-on): Add float.
57058
57059         * tests/test-vasprintf-posix.c (zerol): Remove variable.
57060         (minus_zerol): New variable.
57061         (test_function): Use minus_zerol instead of -zerol.
57062         * modules/vasprintf-posix-tests (Depends-on): Add float.
57063
57064 2008-10-07  Simon Josefsson  <simon@josefsson.org>
57065
57066         * MODULES.html.sh (Support for building documentation): Mention
57067         pmccabe2html.  Sort entries.
57068
57069         Add pmccabe2html module, from gnupdf.
57070         * build-aux/pmccabe.css: New file.
57071         * build-aux/pmccabe2html: New file.
57072         * m4/pmccabe2html.m4: New file.
57073         * modules/pmccabe2html: New file.
57074
57075 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
57076
57077         flock: new module
57078         * MODULES.html.sh: Add to list of modules.
57079         * lib/flock.c: flock implementation for Windows and Unix systems
57080         which have fcntl.
57081         * doc/glibc-functions/flock.texi: Update documentation.
57082         * lib/sys_file.in.h: <sys/file.h> header file.
57083         * m4/flock.m4: M4 macros.
57084         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
57085         * modules/flock: flock module.
57086         * modules/flock-tests: flock tests module.
57087         * modules/sys_file: sys/file.h module.
57088         * tests/test-flock.c: test suite for flock.
57089
57090 2008-10-06  Jim Meyering  <meyering@redhat.com>
57091
57092         bootstrap: check for LT_INIT more portably still ;-)
57093         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
57094         Spotted by Bruno Haible.
57095
57096 2008-10-06  Eric Blake  <ebb9@byu.net>
57097
57098         test-signbit: avoid tripping Irix cc bug on -0.0L
57099         * tests/test-signbit.c (minus_zerol): Delete, and replace with
57100         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
57101         entire testsuite consistent and avoids an Irix 6.2 bug.
57102
57103 2008-10-05  Bruno Haible  <bruno@clisp.org>
57104             Jim Meyering  <jim@meyering.net>
57105
57106         Add an option for ignoring EPIPE during close_stdout.
57107         * lib/closeout.h: Include <stdbool.h>.
57108         (close_stdout_set_ignore_EPIPE): New declaration.
57109         * lib/closeout.c: Include <stdbool.h>.
57110         (ignore_EPIPE): New variable.
57111         (close_stdout_set_ignore_EPIPE): New function.
57112         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
57113         * lib/close-stream.c (close_stream): Mention the possible EPIPE
57114         failure.
57115         * modules/closeout (Depends-on): Add stdbool.
57116
57117 2008-10-05  Bruno Haible  <bruno@clisp.org>
57118
57119         * modules/accept: New file.
57120         * modules/bind: New file.
57121         * modules/connect: New file.
57122         * modules/getpeername: New file.
57123         * modules/getsockname: New file.
57124         * modules/getsockopt: New file.
57125         * modules/listen: New file.
57126         * modules/recv: New file.
57127         * modules/recvfrom: New file.
57128         * modules/send: New file.
57129         * modules/sendto: New file.
57130         * modules/setsockopt: New file.
57131         * modules/socket: New file.
57132         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
57133         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
57134         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
57135         the particular module is requested. Add a link warning when the
57136         particular module is not requested.
57137         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
57138         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
57139         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
57140         the particular module is requested.
57141         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
57142         gl_SYS_SOCKET_H_DEFAULTS): New macros.
57143         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
57144         * modules/sys_socket (Depends-on): Add link-warning.
57145         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
57146         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
57147         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
57148         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
57149         GL_LINK_WARNING.
57150         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
57151         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
57152         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
57153         * doc/posix-functions/getpeername.texi: Mention the new module
57154         'getpeername'.
57155         * doc/posix-functions/getsockname.texi: Mention the new module
57156         'getsockname'.
57157         * doc/posix-functions/getsockopt.texi: Mention the new module
57158         'getsockopt'.
57159         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
57160         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
57161         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
57162         * doc/posix-functions/send.texi: Mention the new module 'send'.
57163         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
57164         * doc/posix-functions/setsockopt.texi: Mention the new module
57165         'setsockopt'.
57166         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
57167         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
57168         listen, connect, accept.
57169         * modules/select-tests (Depends-on): Likewise.
57170
57171 2008-10-05  Bruno Haible  <bruno@clisp.org>
57172
57173         * lib/winsock.c (strerror): Remove unused #undef.
57174         (rpl_close): Remove unused local variable.
57175
57176         * modules/sys_socket (Depends-on); Add errno.
57177
57178 2008-10-05  Bruno Haible  <bruno@clisp.org>
57179
57180         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
57181         (select): Add a link warning when the 'select' module is not used.
57182         * modules/sys_select (Depends-on): Add link-warning.
57183         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
57184         Suggested by Paolo Bonzini.
57185
57186 2008-10-05  Jim Meyering  <meyering@redhat.com>
57187
57188         bootstrap: check for LT_INIT more portably
57189         * build-aux/bootstrap: Avoid using grep -E, since it's not
57190         portable enough.  Suggestion from Bruno Haible.
57191
57192 2008-10-05  Bruno Haible  <bruno@clisp.org>
57193
57194         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
57195         as being fixed by gnulib.
57196
57197 2008-10-05  Bruno Haible  <bruno@clisp.org>
57198
57199         * modules/select-tests: New file, mostly copied from
57200         modules/sys_select-tests.
57201         * tests/test-select.c: New file, mostly copied from
57202         tests/test-sys_select.c.
57203         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
57204         * modules/sys_select-tests (Depends-on): Remove all dependencies.
57205         (Makefile.am): Remove test_sys_select_LDADD.
57206
57207         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
57208         to an undefined symbol, for an error message.
57209         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
57210         (gl_SYS_SELECT_H_DEFAULTS): New macro.
57211         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
57212         winsock-select.c here.
57213         * modules/sys_select (Files): Remove lib/winsock-select.c.
57214         (Depends-on): Remove alloca.
57215         (Makefile.am): Substitute GNULIB_SELECT.
57216         * modules/select: New file.
57217         * doc/posix-functions/select.texi: Update.
57218
57219 2008-10-05  Bruno Haible  <bruno@clisp.org>
57220
57221         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
57222         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
57223         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
57224         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
57225         getdtablesize.
57226         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
57227         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
57228
57229 2008-10-05  Bruno Haible  <bruno@clisp.org>
57230
57231         * modules/getdtablesize-tests: New file.
57232         * tests/test-getdtablesize.c: New file.
57233
57234         New module 'getdtablesize'.
57235         * lib/unistd.in.h (getdtablesize): New declaration.
57236         * lib/getdtablesize.c: New file.
57237         * m4/getdtablesize.m4: New file.
57238         * modules/getdtablesize: New file.
57239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57240         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
57241         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
57242         HAVE_GETDTABLESIZE.
57243         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
57244
57245 2008-10-05  Bruno Haible  <bruno@clisp.org>
57246
57247         * modules/sched (Makefile.am): Fix typo.
57248         Reported by Simon Josefsson.
57249
57250 2008-10-05  Jim Meyering  <meyering@redhat.com>
57251
57252         bootstrap: check for LT_INIT, too
57253         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
57254         are deprecated.  Suggestion from Ralf Wildenhues.
57255
57256 2008-10-05  Bruno Haible  <bruno@clisp.org>
57257
57258         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
57259         overriding them by ours.
57260         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
57261
57262 2008-10-05  Jim Meyering  <meyering@redhat.com>
57263
57264         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
57265         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
57266         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
57267
57268 2008-10-04  Bruno Haible  <bruno@clisp.org>
57269
57270         * modules/dup2 (License): Change to LGPLv2+.
57271         * modules/sleep (License): Likewise.
57272         * modules/perror (License): Likewise.
57273         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
57274         Blake.
57275         * modules/signal (License): Likewise.
57276         * modules/sigprocmask (License): Likewise.
57277         * modules/raise (License): Change to LGPLv2+, with approval by Jim
57278         Meyering.
57279
57280 2008-10-04  Bruno Haible  <bruno@clisp.org>
57281
57282         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
57283         Reported by Rainer Tammer <tammer@tammer.net>.
57284
57285 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
57286             Bruno Haible  <bruno@clisp.org>
57287
57288         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
57289         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
57290         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
57291
57292 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
57293
57294         filevercmp: new module
57295         * lib/filevercmp.h: New function filevercmp comparing version strings.
57296         * lib/filevercmp.c: Implementation of filevercmp function.
57297         * modules/filevercmp: Module metadata.
57298         * tests/test-filevercmp.c: Unit test for new module.
57299         * modules/filevercmp-tests: Unit test metadata.
57300         * MODULES.html.sh: Add filevercmp module.
57301
57302 2008-10-03  Bruno Haible  <bruno@clisp.org>
57303
57304         * lib/c-ctype.h: Add comment.
57305         Reported by Jim Meyering.
57306
57307 2008-10-02  Bruno Haible  <bruno@clisp.org>
57308
57309         * modules/posix_spawn-internal (Depends-on): Add 'open'.
57310
57311 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57312
57313         * build-aux/bootstrap: Allow renaming bootstrap, and change the
57314         name of bootstrap.conf accordingly.
57315
57316 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57317
57318         * build-aux/bootstrap: Install git-merge-changelog configuration
57319         items into .gitconfig if needed.
57320
57321 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57322
57323         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
57324         git repository, and initialize/update it accordingly.
57325
57326 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
57327
57328         * modules/fsync-tests: New file.
57329         * tests/test-fsync.c: New file.
57330
57331         New module 'fsync'.
57332         * lib/fsync.c: New file.
57333         * m4/fsync.m4: New file.
57334         * modules/fsync: New file.
57335         * lib/unistd.in.h (fsync): New declaration.
57336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
57337         GNULIB_FSYNC and HAVE_FSYNC.
57338         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
57339         * MODULES.html.sh (posix_functions): Add fsync.
57340         * doc/posix-functions/fsync.texi: Mention the new module.
57341
57342 2008-10-02  Jim Meyering  <meyering@redhat.com>
57343
57344         fts.c: sync with similar code from coreutils' remove.c
57345         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
57346         Guard also with "#if defined __linux__", since for now at least,
57347         this code is Linux-kernel-specific.
57348
57349 2008-10-02  Jim Meyering  <meyering@redhat.com>
57350
57351         fts: bug fixes
57352         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
57353         Include <sys/vfs.h>, not <sys/statfs.h>.
57354
57355         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
57356         Include <sys/vfs.h>, not <sys/statfs.h>.
57357
57358 2008-10-01  Bruno Haible  <bruno@clisp.org>
57359
57360         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
57361         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
57362         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
57363         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
57364         * doc/posix-functions/posix_spawnp.texi: Likewise.
57365         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
57366         whether posix_spawn actually works.
57367         * m4/pipe.m4 (gl_PIPE): Likewise.
57368         * modules/execute (Files): Add m4/posix_spawn.m4.
57369         * modules/pipe (Files): Add m4/posix_spawn.m4.
57370         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
57371
57372 2008-10-01  Jim Meyering  <meyering@redhat.com>
57373
57374         remove trailing spaces
57375         * NEWS: Likewise.
57376         * lib/poll.c (poll): Likewise.
57377         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
57378         * lib/winsock.c (rpl_close): Likewise.
57379         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
57380         * modules/yield: Likewise.
57381         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
57382         * tests/test-sys_select.c (connect_to_socket): Likewise.
57383
57384         fts.c: adjust a new interface to be more generally useful
57385         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
57386         (fts_build): Adjust caller.
57387
57388 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57389
57390         * modules/cond-tests: New file.
57391         * tests/test-cond.c: New file.
57392
57393 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57394             Bruno Haible  <bruno@clisp.org>
57395
57396         * modules/cond (Dependencies): Add errno, time.
57397         * lib/glthread/cond.h: Include <time.h>.
57398         (gl_cond_define, gl_cond_define_initialized): Use the same definition
57399         across platforms.
57400
57401 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57402             Bruno Haible  <bruno@clisp.org>
57403
57404         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
57405
57406 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57407             Bruno Haible  <bruno@clisp.org>
57408
57409         * modules/tls-tests (Depends-on): Add thread, yield.
57410         (configure.ac): Remove all checks.
57411         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
57412         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57413         gl_thread_self): Remove definitions. Include glthread/thread.h and
57414         glthread/yield.h instead.
57415         (test_tls): Pass an additional NULL argument to gl_thread_join.
57416
57417 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57418             Bruno Haible  <bruno@clisp.org>
57419
57420         * modules/lock-tests (Depends-on): Add thread, yield.
57421         (configure.ac): Remove all checks.
57422         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
57423         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57424         gl_thread_self): Remove definitions. Include glthread/thread.h and
57425         glthread/yield.h instead.
57426         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
57427         additional NULL argument to gl_thread_join.
57428
57429 2008-09-30  Bruno Haible  <bruno@clisp.org>
57430
57431         Fix the Win32 implementation of the 'thread' module.
57432         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
57433         pointer type.
57434         (gl_thread_self): Invoke gl_thread_self_func.
57435         (gl_thread_self_func): New declaration.
57436         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
57437         (do_init_self_key, init_self_key): New functions.
57438         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
57439         Remove some fields.
57440         (running_threads, running_lock): Remove variables.
57441         (get_current_thread_handle): New function.
57442         (gl_thread_self_func, wrapper_func, glthread_create_func,
57443         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57444         simplified.
57445
57446 2008-09-30  Bruno Haible  <bruno@clisp.org>
57447
57448         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
57449         files.
57450
57451 2008-09-30  Jim Meyering  <meyering@redhat.com>
57452
57453         fts.m4: correct the test for statfs.f_type
57454         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
57455         when checking for statfs.f_type.
57456
57457 2008-09-15  Simon Josefsson  <simon@josefsson.org>
57458
57459         tests: avoid some compiler warnings
57460         * tests/test-memchr.c (main): Pass NULL indirectly.
57461         * tests/test-getdate.c (main): Remove unused variable 'ret'.
57462
57463 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
57464
57465         getdate.y: disallow countable dayshifts like "4 yesterday ago"
57466         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
57467         exactly specified dayshifts.
57468         (dayshift): New rule.
57469         (rel): Add dayshift.
57470         (relative_time_table) [tomorrow, yesterday, today, now]:
57471         Use tDAY_SHIFT in place of tDAY_UNIT.
57472         * tests/test-getdate.c: Add tests for now-disallowed countable
57473         dayshifts, e.g., "4 yesterday ago".
57474
57475 2008-09-29  Bruno Haible  <bruno@clisp.org>
57476
57477         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
57478         * tests/test-posix_spawn1.in.sh: Renamed from
57479         tests/test-posix_spawn.in.sh.
57480         * tests/test-posix_spawn2.c: New file.
57481         * tests/test-posix_spawn2.in.sh: New file.
57482         * modules/posix_spawnp-tests (Files): Update.
57483         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
57484
57485 2008-09-29  Bruno Haible  <bruno@clisp.org>
57486
57487         Propagate effects of putenv/setenv/unsetenv to child processes.
57488         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
57489         * lib/pipe.c (create_pipe): Likewise.
57490
57491 2008-09-29  Bruno Haible  <bruno@clisp.org>
57492
57493         Enable use of shell scripts as executables in mingw.
57494         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
57495         run the program as a shell script.
57496         * lib/pipe.c (create_pipe): Likewise.
57497         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
57498         resulting array.
57499
57500 2008-09-29  Eric Blake  <ebb9@byu.net>
57501
57502         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
57503
57504 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
57505
57506         * doc/posix-functions/accept.texi: Update mingw problems.
57507         * doc/posix-functions/bind.texi: Update mingw problems.
57508         * doc/posix-functions/close.texi: Update mingw problems.
57509         * doc/posix-functions/connect.texi: Update mingw problems.
57510         * doc/posix-functions/getpeername.texi: Update mingw problems.
57511         * doc/posix-functions/getsockname.texi: Update mingw problems.
57512         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57513         * doc/posix-functions/ioctl.texi: Update mingw problems.
57514         * doc/posix-functions/listen.texi: Update mingw problems.
57515         * doc/posix-functions/recv.texi: Update mingw problems.
57516         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57517         * doc/posix-functions/select.texi: Update mingw problems.
57518         * doc/posix-functions/send.texi: Update mingw problems.
57519         * doc/posix-functions/sendto.texi: Update mingw problems.
57520         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57521         * doc/posix-functions/socket.texi: Update mingw problems.
57522
57523 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57524             Bruno Haible  <bruno@clisp.org>
57525
57526         * lib/sys_select.in.h: Include sys/time.h.
57527         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57528         * modules/sys_select: Depend on sys_time.
57529         * tests/test-sys_select.c: Test that sys/select.h defines struct
57530         timeval fully.
57531
57532 2008-09-29  Bruno Haible  <bruno@clisp.org>
57533
57534         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57535         * lib/sys_select.in.h: Likewise.
57536
57537 2008-09-29  Bruno Haible  <bruno@clisp.org>
57538
57539         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57540
57541 2008-09-29  Bruno Haible  <bruno@clisp.org>
57542
57543         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57544         Set LIBSOCKET instead of augmenting LIBS.
57545         * modules/sockets (Link): New section.
57546         * modules/sockets-tests (test_sockets_LDADD): New variable.
57547         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57548         * modules/poll-tests (test_poll_LDADD): New variable.
57549         * NEWS: Document the change.
57550
57551 2008-09-29  Bruno Haible  <bruno@clisp.org>
57552
57553         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57554         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57555         ARPA_INET_H directly.
57556         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57557
57558 2008-09-28  Bruno Haible  <bruno@clisp.org>
57559
57560         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57561         from gl_HEADER_SYS_SOCKET.
57562         (gl_HEADER_SYS_SOCKET): Invoke it.
57563         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57564
57565 2008-09-28  Bruno Haible  <bruno@clisp.org>
57566
57567         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57568         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57569         Needed on OSF/1 4.0.
57570
57571 2008-09-28  Bruno Haible  <bruno@clisp.org>
57572
57573         Override open more carefully.
57574         * lib/open.c (orig_open): New function.
57575         (rpl_open): Use orig_open instead of open.
57576         * lib/fcntl.in.h: Add special invocation convention.
57577         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57578         (gl_FUNC_OPEN): Invoke it.
57579
57580         Override freopen more carefully.
57581         * lib/freopen.c (orig_freopen): New function.
57582         (rpl_freopen): Use orig_freopen instead of freopen.
57583         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57584         (gl_FUNC_FREOPEN): Invoke it.
57585
57586         Override fopen more carefully.
57587         * lib/fopen.c (orig_fopen): New function.
57588         (rpl_fopen): Use orig_fopen instead of fopen.
57589         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57590         (gl_FUNC_FOPEN): Invoke it.
57591         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57592
57593 2008-09-28  Bruno Haible  <bruno@clisp.org>
57594
57595         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57596         SIGPIPE.
57597
57598 2008-09-28  Bruno Haible  <bruno@clisp.org>
57599
57600         * tests/test-sigaction.c (handler, main): Disable the check whether
57601         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57602         glibc systems with LinuxThreads.
57603
57604 2008-09-28  Bruno Haible  <bruno@clisp.org>
57605
57606         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57607
57608         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57609         with AIX xlc.
57610         * lib/fcntl.in.h (open): Likewise.
57611         Reported by Rainer Tammer <tammer@tammer.net>.
57612
57613 2008-09-28  Bruno Haible  <bruno@clisp.org>
57614
57615         * modules/posix_spawnp-tests: New file.
57616         * tests/test-posix_spawn.c: New file.
57617         * tests/test-posix_spawn.in.sh: New file.
57618
57619         New module 'posix_spawnp'.
57620         * modules/posix_spawnp: New file.
57621         * lib/spawnp.c: New file, from GNU libc with modifications.
57622         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57623
57624         New module 'posix_spawn'.
57625         * modules/posix_spawn: New file.
57626         * lib/spawn.c: New file, from GNU libc with modifications.
57627         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57628
57629         New module 'posix_spawnattr_destroy'.
57630         * modules/posix_spawnattr_destroy: New file.
57631         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57632         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57633         module.
57634
57635         New module 'posix_spawnattr_setsigmask'.
57636         * modules/posix_spawnattr_setsigmask: New file.
57637         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57638         modifications.
57639         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57640         new module.
57641
57642         New module 'posix_spawnattr_getsigmask'.
57643         * modules/posix_spawnattr_getsigmask: New file.
57644         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57645         modifications.
57646         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57647         new module.
57648
57649         New module 'posix_spawnattr_setsigdefault'.
57650         * modules/posix_spawnattr_setsigdefault: New file.
57651         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57652         modifications.
57653         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57654         new module.
57655
57656         New module 'posix_spawnattr_getsigdefault'.
57657         * modules/posix_spawnattr_getsigdefault: New file.
57658         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57659         modifications.
57660         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57661         new module.
57662
57663         New module 'posix_spawnattr_setschedpolicy'.
57664         * modules/posix_spawnattr_setschedpolicy: New file.
57665         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57666         modifications.
57667         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57668         new module.
57669
57670         New module 'posix_spawnattr_getschedpolicy'.
57671         * modules/posix_spawnattr_getschedpolicy: New file.
57672         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57673         modifications.
57674         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57675         new module.
57676
57677         New module 'posix_spawnattr_setschedparam'.
57678         * modules/posix_spawnattr_setschedparam: New file.
57679         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57680         modifications.
57681         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57682         new module.
57683
57684         New module 'posix_spawnattr_getschedparam'.
57685         * modules/posix_spawnattr_getschedparam: New file.
57686         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57687         modifications.
57688         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57689         new module.
57690
57691         New module 'posix_spawnattr_setpgroup'.
57692         * modules/posix_spawnattr_setpgroup: New file.
57693         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57694         modifications.
57695         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57696         module.
57697
57698         New module 'posix_spawnattr_getpgroup'.
57699         * modules/posix_spawnattr_getpgroup: New file.
57700         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57701         modifications.
57702         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57703         module.
57704
57705         New module 'posix_spawnattr_setflags'.
57706         * modules/posix_spawnattr_setflags: New file.
57707         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57708         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57709         module.
57710
57711         New module 'posix_spawnattr_getflags'.
57712         * modules/posix_spawnattr_getflags: New file.
57713         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57714         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57715         module.
57716
57717         New module 'posix_spawnattr_init'.
57718         * modules/posix_spawnattr_init: New file.
57719         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57720         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57721         module.
57722
57723         New module 'posix_spawn_file_actions_destroy'.
57724         * modules/posix_spawn_file_actions_destroy: New file.
57725         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57726         modifications.
57727         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57728         the new module.
57729
57730         New module 'posix_spawn_file_actions_addopen'.
57731         * modules/posix_spawn_file_actions_addopen: New file.
57732         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57733         modifications.
57734         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57735         the new module.
57736
57737         New module 'posix_spawn_file_actions_adddup2'.
57738         * modules/posix_spawn_file_actions_adddup2: New file.
57739         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57740         modifications.
57741         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57742         the new module.
57743
57744         New module 'posix_spawn_file_actions_addclose'.
57745         * modules/posix_spawn_file_actions_addclose: New file.
57746         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57747         modifications.
57748         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57749         the new module.
57750
57751         New module 'posix_spawn_file_actions_init'.
57752         * modules/posix_spawn_file_actions_init: New file.
57753         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57754         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57755         new module.
57756
57757         New module 'posix_spawn-internal'.
57758         * modules/posix_spawn-internal: New file.
57759         * lib/spawn_int.h: New file, from GNU libc with modifications.
57760         * lib/spawni.c: New file, from GNU libc with modifications.
57761         * m4/posix_spawn.m4: New file.
57762
57763         New module 'spawn'.
57764         * modules/spawn: New file.
57765         * lib/spawn.in.h: New file, from GNU libc with modifications.
57766         * m4/spawn_h.m4: New file.
57767         * doc/posix-headers/spawn.texi: Mention the new module.
57768
57769 2008-09-28  Bruno Haible  <bruno@clisp.org>
57770
57771         * modules/sched-tests: New file.
57772         * tests/test-sched.c: New file.
57773
57774         New module 'sched'.
57775         * modules/sched: New file.
57776         * lib/sched.in.h: New file.
57777         * m4/sched_h.m4: New file.
57778         * doc/posix-headers/sched.texi: Mention the new module.
57779
57780 2008-09-27  Eric Blake  <ebb9@byu.net>
57781
57782         Fix previous patch, and tweak references to $0.
57783         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57784         (func_version, func_gnulib_dir): Don't call this program
57785         gnulib-tool.
57786         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57787         with using $0 in function.
57788         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57789         (func_fatal_error): Reuse the name the user invoked us with.
57790
57791 2008-09-27  Bruno Haible  <bruno@clisp.org>
57792
57793         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57794         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57795         (gl_ICONV_H): Not here.
57796         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57797         instead of assigning ICONV_H directly.
57798
57799         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57801         WCHAR_H directly.
57802
57803 2008-09-27  Bruno Haible  <bruno@clisp.org>
57804
57805         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57806         * modules/arpa_inet (Depends-on): Add link-warning.
57807         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57808         * modules/unistd (Makefile.am): Likewise.
57809
57810 2008-09-26  Bruno Haible  <bruno@clisp.org>
57811
57812         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57813         variables.
57814         (func_version): Essentially copied from gnulib-tool.
57815         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57816         func_readlink): Copied from gnulib-tool.
57817
57818 2008-09-26  Bruno Haible  <bruno@clisp.org>
57819
57820         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57821         invoking git-version-gen.
57822
57823 2008-09-26  Bruno Haible  <bruno@clisp.org>
57824
57825         * posix-modules: Update to directory names changed on 2008-01-19.
57826         Remove commas in output before splitting into words. No more need to
57827         avoid 'ftruncate' since 2007-02-19.
57828
57829 2008-09-26  Bruno Haible  <bruno@clisp.org>
57830
57831         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57832
57833 2008-09-26  Bruno Haible  <bruno@clisp.org>
57834
57835         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57836         * modules/fwriteerror (Depends-on): Add errno.
57837
57838 2008-09-26  Bruno Haible  <bruno@clisp.org>
57839
57840         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57841         * tests/test-vc-list-files-cvs.sh: Likewise.
57842
57843 2008-09-26  Bruno Haible  <bruno@clisp.org>
57844
57845         * doc/posix-headers/sys_resource.texi: Reorder items.
57846
57847 2008-09-26  Jim Meyering  <meyering@redhat.com>
57848
57849         fts: tweak inode comparison function
57850         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57851         inode numbers, as documented.
57852
57853         fts: sort dirent entries on inode number before traversing
57854         This avoids a quadratic, seek-related performance penalty when
57855         operating on a directory containing many entries (measurable at 10k;
57856         3.5 hours at 2 million entries with a cold cache) on certain types
57857         of file systems, including ext3 and ext4, but not tmpfs.
57858         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57859         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57860         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57861         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57862         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57863         (fts_build): Set the stat.st_ino member from D_INO.
57864         If it is likely to be useful, sort dirent entries on inode number.
57865
57866         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57867         and the struct statfs.f_type member.
57868         * modules/fts (Depends-on): Add d-ino.
57869
57870 2008-09-26  Bruno Haible  <bruno@clisp.org>
57871
57872         * modules/sigpipe-die (Depends-on): Add sigpipe.
57873
57874         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57875         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57876         and GNULIB_STDIO_H_SIGPIPE are set.
57877         * lib/stdio-write.c: New file.
57878         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57879         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57880         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57881         REPLACE_STDIO_WRITE_FUNCS.
57882         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57883         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57884         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57885         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57886         * modules/stdio (Files): Add lib/stdio-write.c.
57887         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57888         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57889         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57890         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57891         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57892         REPLACE_FPRINTF_POSIX.
57893         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57894         REPLACE_PRINTF_POSIX.
57895         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57896         REPLACE_VFPRINTF_POSIX.
57897         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57898         REPLACE_VPRINTF_POSIX.
57899         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57900         SIGPIPE issue.
57901         * doc/posix-functions/fputc.texi: Likewise.
57902         * doc/posix-functions/fputs.texi: Likewise.
57903         * doc/posix-functions/fwrite.texi: Likewise.
57904         * doc/posix-functions/printf.texi: Likewise.
57905         * doc/posix-functions/putc.texi: Likewise.
57906         * doc/posix-functions/putchar.texi: Likewise.
57907         * doc/posix-functions/puts.texi: Likewise.
57908         * doc/posix-functions/vfprintf.texi: Likewise.
57909         * doc/posix-functions/vprintf.texi: Likewise.
57910
57911         * modules/safe-write (Depends-on): Add write.
57912
57913         * modules/sigpipe-tests: New file.
57914         * tests/test-sigpipe.c: New file.
57915         * tests/test-sigpipe.sh: New file.
57916
57917         * modules/write: New file.
57918         * lib/unistd.in.h: Include <sys/types.h>.
57919         (write): New declaration.
57920         * lib/write.c: New file.
57921         * m4/write.m4: New file.
57922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57923         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57924         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57925         GNULIB_WRITE, REPLACE_WRITE.
57926         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57927         and the SIGPIPE issue.
57928
57929         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57930         (raise): New declaration.
57931         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57932         (ext_signal): New function.
57933         (rpl_raise): New function.
57934         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57935         GNULIB_SIGNAL_H_SIGPIPE.
57936         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57937         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57938
57939         * modules/sigpipe: New file.
57940         * m4/sigpipe.m4: New file.
57941
57942 2008-09-25  Derek Price  <derek@ximbiot.com>
57943             Bruno Haible  <bruno@clisp.org>
57944
57945         * gnulib-tool (func_import): Report all license incompatibilities, not
57946         just the first one.
57947
57948 2008-09-25  Bruno Haible  <bruno@clisp.org>
57949
57950         * gnulib-tool (func_import): When computing the edits, consider not
57951         only the Makefile.ams that exist but also those that will be generated.
57952
57953 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57954
57955         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57956         fixes gnulib-tool --test warning about duplicate dependency.
57957
57958 2008-09-25  Bruno Haible  <bruno@clisp.org>
57959
57960         * gnulib-tool: Don't ask the user to perform edits in the generated
57961         Makefile.ams.
57962         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57963         apply to the Makefile.am being generated.
57964         (func_emit_tests_Makefile_am): Execute edits that apply to the
57965         Makefile.am being generated.
57966         (func_import): Setup list of Makefile.am edits before emitting the
57967         Makefile.ams, not at the end.
57968         (func_create_testdir): Update.
57969         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57970
57971 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57972
57973         * gnulib-tool (func_import): Store the --tests-base option in the
57974         comment in gnulib-cache.m4.
57975
57976 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57977
57978         * NEWS: Document increased portability that sys_select now provides.
57979
57980         * lib/sys_select.in.h: Install select wrapper.
57981         * lib/sys_socket.in.h: Use more descriptive name when there is no
57982         select wrapper.
57983         * lib/winsock-select.c: New.
57984         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57985         Require gl_HEADER_SYS_SOCKET.
57986         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57987         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57988         * tests/test-sys_select.c: Add functional tests.
57989
57990 2008-09-24  Eric Blake  <ebb9@byu.net>
57991
57992         open, fopen: close fd leak in last patch
57993         * lib/open.c (rpl_open): Close fd before returning error.
57994         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57995         * doc/posix-functions/open.texi (open): Document that Irix also
57996         has the bug.
57997         * doc/posix-functions/fopen.texi (fopen): Likewise.
57998         Reported by Paolo Bonzini.
57999
58000 2008-09-24  Bruno Haible  <bruno@clisp.org>
58001
58002         Ensure that a filename ending in a slash cannot be used to access a
58003         non-directory.
58004         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
58005         to check whether it's really a directory.
58006         * lib/fopen.c: Include fcntl.h, unistd.h.
58007         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
58008         and fdopen().
58009         * modules/fopen (Depends-on): Add unistd.
58010         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
58011         * tests/test-fopen.c (main): Likewise.
58012         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
58013         * doc/posix-functions/fopen.texi: Likewise.
58014         Reported by Eric Blake.
58015
58016 2008-09-23  Eric Blake  <ebb9@byu.net>
58017
58018         c-stack: avoid compiler optimizations when provoking overflow
58019         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
58020         recursion harder to optimize, to ensure a stack overflow occurs.
58021         * tests/test-c-stack.c (recurse): Likewise.
58022         Borrowed from libsigsegv.
58023
58024         c-stack: work around Irix sigaltstack bug
58025         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
58026         whether sigaltstack uses wrong end of stack_t (copied in part from
58027         libsigsegv).
58028         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
58029         Irix bug, without requiring an over-allocation.
58030         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
58031         bug.
58032
58033         fopen: document mingw bug on directories
58034         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
58035         not allowing a stream visiting a directory, even though reading
58036         from such a stream is not portable.
58037
58038 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
58039
58040         * lib/poll.c: Rewrite.
58041         * modules/poll: Depend on alloca.
58042
58043 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
58044
58045         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
58046         instead define prototypes for a full set of wrappers.  Ensure
58047         that Cygwin does not use the compatibility code, which is only
58048         for MinGW.
58049         * lib/winsock.c: New.
58050         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
58051         * modules/sys_socket: Add lib/winsock.c.
58052
58053         * modules/poll-tests: Add errno and perror.
58054         * tests/test-poll.c: Use ioctl, not ioctlsocket.
58055
58056 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
58057
58058         * tests/test-poll.c: Downgrade minimum needed Winsock version.
58059
58060 2008-09-23  Bruno Haible  <bruno@clisp.org>
58061
58062         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
58063         * doc/glibc-functions/*: Likewise.
58064
58065 2008-09-23  Simon Josefsson  <simon@josefsson.org>
58066
58067         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
58068         success.
58069
58070 2008-09-22  Eric Blake  <ebb9@byu.net>
58071             Bruno Haible  <bruno@clisp.org>
58072
58073         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
58074         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
58075         supply %A but mishandle pseudo-NaN.
58076         Reported by Simon Josefsson.
58077
58078 2008-09-21  Bruno Haible  <bruno@clisp.org>
58079
58080         * tests/test-lock.c (main): Tweak skip message.
58081         * tests/test-tls.c (main): Likewise.
58082
58083 2008-09-21  Bruno Haible  <bruno@clisp.org>
58084
58085         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
58086         whether 'struct sigaction' has sa_sigaction here...
58087         (gl_PREREQ_SIG_HANDLER_H): ... not here.
58088         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
58089
58090 2008-09-21  Bruno Haible  <bruno@clisp.org>
58091
58092         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
58093         section.
58094         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
58095         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
58096         the new section.
58097         (Support for obsolete systems lacking POSIX:2001): New section.
58098         (String handling <string.h>): Move strdup to the new section.
58099         Suggested by Simon Josefsson and Paolo Bonzini.
58100
58101 2008-09-21  Bruno Haible  <bruno@clisp.org>
58102
58103         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
58104         exponents in %e and %g results on 'long double'. Needed for mingw's
58105         improved *printf functions.
58106         * tests/test-vasprintf-posix.c (test_function): Likewise.
58107         * tests/test-snprintf-posix.h (test_function): Likewise.
58108         * tests/test-sprintf-posix.h (test_function): Likewise.
58109         Reported by Eric Blake.
58110
58111 2008-09-21  Bruno Haible  <bruno@clisp.org>
58112
58113         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
58114         * tests/test-sprintf-posix.h (test_function): Likewise.
58115
58116 2008-09-21  Bruno Haible  <bruno@clisp.org>
58117
58118         * modules/getpass (Depends-on): Add strdup-posix.
58119
58120         New module 'strdup-posix'.
58121         * modules/strdup-posix: New file.
58122         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
58123         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
58124         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58125         REPLACE_STRDUP.
58126         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
58127         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
58128         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58129         strdup-posix.
58130
58131         * modules/strdup (Depends-on): Remove malloc-posix.
58132
58133 2008-09-20  Bruno Haible  <bruno@clisp.org>
58134
58135         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
58136         Wildenhues.
58137
58138 2008-09-20  Bruno Haible  <bruno@clisp.org>
58139
58140         Ensure that wint_t gets defined on IRIX 5.3.
58141         * lib/wchar.in.h (wint_t): Define if not defined by the system.
58142         * lib/wctype.in.h (wint_t): Likewise.
58143         (__wctype_wint_t): Remove type.
58144         (isw*): Use wint_t instead of __wctype_wint_t.
58145         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
58146         * modules/wchar (Files): Add m4/wint_t.m4.
58147         (Makefile.am): Substitute HAVE_WINT_T.
58148         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
58149         * tests/test-wctype.c: Check that wint_t is defined.
58150         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
58151         * doc/posix-headers/wctype.texi: Likewise.
58152         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58153
58154 2008-09-18  Bruno Haible  <bruno@clisp.org>
58155
58156         * gnulib-tool (func_exit): Update comment.
58157
58158 2008-09-18  Simon Josefsson  <simon@josefsson.org>
58159
58160         * modules/getaddrinfo (Depends-on): Remove strdup, this module
58161         assumes strdup exists and does not depend on strdup to return
58162         ENOMEM on out of memory conditions.
58163
58164 2008-09-18  Bruno Haible  <bruno@clisp.org>
58165
58166         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
58167         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
58168         digits for the exponent.
58169
58170 2008-09-18  Jim Meyering  <meyering@redhat.com>
58171             Bruno Haible  <bruno@clisp.org>
58172
58173         * lib/vasnprintf.c (decimal_point_char): Define also if
58174         NEED_PRINTF_INFINITE_LONG_DOUBLE.
58175
58176 2008-09-16  Bruno Haible  <bruno@clisp.org>
58177         and Eric Blake  <ebb9@byu.net>
58178
58179         vasnprintf: support Irix 5.3
58180         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
58181         that mishandle long double infinity.
58182         Reported by Tom G. Christensen.
58183
58184 2008-09-16  Bruno Haible  <bruno@clisp.org>
58185
58186         * doc/glibc-functions/scandir.texi: Mention the function is missing on
58187         Solaris 9.
58188         * doc/glibc-functions/alphasort.texi: Likewise.
58189         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
58190
58191 2008-09-16  Jim Meyering  <meyering@redhat.com>
58192
58193         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
58194         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
58195         a umask modification leak out of a subshell.  Otherwise, the
58196         opensolaris /bin/sh would be accepted and thus cause unwarranted
58197         failures in the coreutils test suite.
58198
58199 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
58200
58201         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
58202         to succeed.
58203
58204 2008-09-16  Jim Meyering  <meyering@redhat.com>
58205
58206         avoid spurious test failure when library is built without ACL support
58207         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
58208         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
58209         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
58210         * tests/test-copy-acl.sh: Likewise.
58211
58212 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58213
58214         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
58215         based on character occurrence counts.
58216
58217 2008-09-15  Eric Blake  <ebb9@byu.net>
58218
58219         tests: avoid some compiler warnings
58220         * tests/test-memchr.c (main): Pass NULL indirectly.
58221         * tests/test-closein.c (main): Avoid unused variable.
58222
58223 2008-09-15  Bruno Haible  <bruno@clisp.org>
58224
58225         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
58226         are missing on OpenBSD 4.0 individually.
58227         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58228
58229 2008-09-15  Bruno Haible  <bruno@clisp.org>
58230
58231         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
58232         * doc/posix-functions/strerror.texi: Mention also Cygwin.
58233         * doc/posix-functions/perror.texi: Likewise.
58234         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
58235         is missing.
58236         Reported by Eric Blake.
58237
58238         * lib/errno.in.h: Use replacement values >= 2000.
58239         Reported by Eric Blake.
58240
58241 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58242
58243         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
58244         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
58245         limit.
58246         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
58247         compareseq was aborted.
58248
58249 2008-09-14  Bruno Haible  <bruno@clisp.org>
58250
58251         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
58252         yvec_edit_count.
58253         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
58254         (fstrcmp_bounded): Simplify result computation accordingly.
58255
58256 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58257
58258         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
58259         (fstrcmp): Define in terms of fstrcmp_bounded.
58260         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
58261         lower_bound argument.
58262         Return quickly if the result is certainly < lower_bound.
58263         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
58264
58265 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58266
58267         * lib/diffseq.h (EARLY_ABORT): New macro.
58268         (compareseq): Change return type to bool. Return true when EARLY_ABORT
58269         evaluates to true.
58270
58271 2008-09-14  Bruno Haible  <bruno@clisp.org>
58272
58273         * modules/perror-tests: New file.
58274         * tests/test-perror.sh: New file.
58275         * tests/test-perror.c: New file.
58276
58277         New module 'perror'.
58278         * lib/stdio.in.h (perror): New declaration.
58279         * lib/perror.c: New file.
58280         * m4/perror.m4: New file.
58281         * modules/perror: New file.
58282         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
58283         * doc/posix-functions/perror.texi: Mention the perror module.
58284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
58285         REPLACE_PERROR.
58286         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
58287         REPLACE_PERROR.
58288
58289 2008-09-14  Bruno Haible  <bruno@clisp.org>
58290
58291         * modules/stdio (Makefile.am): Reorder to match the order in
58292         lib/stdio.in.h.
58293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58294
58295 2008-09-13  Bruno Haible  <bruno@clisp.org>
58296
58297         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
58298
58299 2008-09-13  Bruno Haible  <bruno@clisp.org>
58300
58301         Extend strerror to cover the added errno values.
58302         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
58303         (rpl_strerror): Provide error messages for the added errno values and
58304         for the WSA* values.
58305         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
58306         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
58307         strerror.
58308         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
58309         * modules/strerror (Depends-on): Add errno.
58310         * doc/posix-functions/strerror.texi: Document the change.
58311         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
58312         and EOVERFLOW.
58313
58314 2008-09-13  Bruno Haible  <bruno@clisp.org>
58315
58316         * modules/EOVERFLOW: Remove file.
58317         * m4/eoverflow.m4: Remove file.
58318         * modules/EOVERFLOW-tests: Remove file.
58319         * tests/test-EOVERFLOW.c: Remove file.
58320         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
58321         * modules/ftell (Depends-on): Likewise.
58322         * modules/getdelim (Depends-on): Likewise.
58323         * modules/getugroups (Depends-on): Likewise.
58324         * modules/poll (Depends-on): Likewise.
58325         * modules/snprintf (Depends-on): Likewise.
58326         * modules/sprintf-posix (Depends-on): Likewise.
58327         * modules/vasnprintf (Depends-on): Likewise.
58328         * modules/vasprintf (Depends-on): Likewise.
58329         * modules/vfprintf-posix (Depends-on): Likewise.
58330         * modules/vsnprintf (Depends-on): Likewise.
58331         * modules/vsprintf-posix (Depends-on): Likewise.
58332         * modules/xvasprintf (Depends-on): Likewise.
58333         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58334         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
58335         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
58336         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
58337         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58338         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
58339         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
58340         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
58341         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58342         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
58343         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
58344         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
58345         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58346         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
58347         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
58348         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
58349         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58350         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
58351         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
58352         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
58353         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58354         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
58355         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
58356         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
58357         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
58358         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58359         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
58360         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
58361         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
58362         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
58363         * MODULES.html.sh: Remove EOVERFLOW.
58364         * NEWS: Mention the change.
58365
58366 2008-09-13  Bruno Haible  <bruno@clisp.org>
58367
58368         * modules/errno-tests: New file.
58369         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
58370
58371         * lib/errno.in.h: New file.
58372         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
58373         * modules/errno: New file.
58374         * doc/posix-headers/errno.texi: Update documentation.
58375         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
58376
58377 2008-09-13  Bruno Haible  <bruno@clisp.org>
58378
58379         * tests/test-poll.c: Use #if for native Windows, rather than testing
58380         __MSVCRT__.
58381
58382 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58383             Bruno Haible  <bruno@clisp.org>
58384
58385         * lib/glob.c: Don't include <pwd.h> on native Windows.
58386         (WINDOWS32): New macro.
58387         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
58388
58389 2008-09-13  Bruno Haible  <bruno@clisp.org>
58390
58391         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
58392         (ETIMEDOUT): Remove macro.
58393         (glthread_cond_timedwait_multithreaded): New declaration.
58394         (glthread_cond_timedwait): Use it.
58395         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
58396         (glthread_cond_timedwait_multithreaded): New function.
58397
58398 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58399
58400         * modules/poll-tests: Do not check for io.h.
58401         * tests/test-poll.c: Check for __MSVCRT__ instead.
58402
58403 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58404
58405         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
58406         * modules/poll-tests: Add inet_pton, stdbool, sockets.
58407         * tests/test-poll.c: Use them.  Use _pipe on Windows.
58408
58409 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58410
58411         * modules/poll-tests: New.
58412         * tests/test-poll.c: New.
58413
58414 2008-09-12  Eric Blake  <ebb9@byu.net>
58415
58416         frexp: test for NetBSD failure on -0.0
58417         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
58418         not all, bugs from NetBSD 3.0 have been fixed.
58419         * doc/posix-functions/frexp.texi (frexp): Document bug.
58420         Reported by Thomas Klausner.
58421
58422         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
58423         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
58424         literal -0.0.
58425         Reported by Jonathan C. Patschke <jp@centtech.com>.
58426
58427 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58428
58429         * lib/glthread/cond.h: Use dummy implementation also if
58430         USE_WIN32_THREADS.
58431
58432 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58433
58434         * modules/fnmatch-posix (License): Change to LGPLv2+.
58435         * modules/fnmatch-gnu (License): Likewise.
58436
58437 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58438
58439         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
58440
58441 2008-09-11  Jim Meyering  <meyering@redhat.com>
58442
58443         * users.txt: Add gtk-vnc.
58444
58445 2008-09-08  Simon Josefsson  <simon@josefsson.org>
58446
58447         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
58448         rotate amounts.
58449
58450         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
58451         required for 16-bit and 8-bit rotates.
58452         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
58453         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
58454         UINT8_MAX instead of hard-coded constants.
58455         Suggested by Paul Eggert.
58456
58457 2008-09-07  Bruno Haible  <bruno@clisp.org>
58458
58459         * tests/test-striconveh.c (main): Check behaviour when converting from
58460         UTF-7.
58461
58462         Make striconveh work better with stateful encodings.
58463         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
58464         that iconv does not increment the inptr when returning -1/EINVAL.
58465
58466 2008-09-07  Bruno Haible  <bruno@clisp.org>
58467
58468         * build-aux/config.rpath: Update according to libtool-2.2.6.
58469         * build-aux/config.libpath: Likewise.
58470
58471 2008-09-06  Bruno Haible  <bruno@clisp.org>
58472
58473         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
58474         * lib/freadptr.c (freadptr): Likewise.
58475         * lib/freadseek.c (freadptrinc): Likewise.
58476         Reported by Simon Josefsson.
58477
58478 2008-09-06  Bruno Haible  <bruno@clisp.org>
58479
58480         * modules/freadptr (License): Change to LGPLv2+.
58481         * modules/freadseek (License): Likewise.
58482         Suggested by Eric Blake.
58483
58484         * modules/memchr2 (License): Change to LGPLv2+.
58485         Approved by Eric Blake.
58486
58487 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58488             Bruno Haible  <bruno@clisp.org>
58489
58490         Make gnulib-tool work with native 'sed' on AIX.
58491         * gnulib-tool (sed_noop): New variable.
58492         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
58493         func_add_or_update, func_create_testdir): Use it to initialize sed
58494         script variables.
58495         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58496
58497 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
58498             Bruno Haible  <bruno@clisp.org>
58499
58500         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
58501         also works after #include directives.
58502
58503 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
58504
58505         getdate.y: reject an out-of-range timezone value
58506         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58507         the range [-24...+24].  When specified with only one or two digits,
58508         * tests/test-getdate.c: Tests for the fix.
58509         * doc/getdate.texi: Document this change.
58510
58511 2008-09-03  Bruno Haible  <bruno@clisp.org>
58512
58513         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58514
58515 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58516
58517         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58518         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58519         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58520         Blake <ebb9@byu.net>.
58521
58522         * tests/test-bitrotate.c: Add more test vectors.
58523
58524 2008-09-02  Eric Blake  <ebb9@byu.net>
58525
58526         vasnprintf-posix: handle large precision via %.*d
58527         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58528         when handling it ourselves.
58529         * tests/test-vasnprintf-posix.c (test_function): Add test.
58530         * tests/test-snprintf-posix.h (test_function): Likewise.
58531         * tests/test-sprintf-posix.h (test_function): Likewise.
58532         * tests/test-vasprintf-posix.c (test_function): Likewise.
58533         Reported by Alain Guibert.
58534
58535 2008-09-01  Eric Blake  <ebb9@byu.net>
58536
58537         c-stack: make configure-time check more robust
58538         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58539         successful sigaction call.
58540         Reported by Tom G. Christensen.
58541
58542 2008-09-01  Bruno Haible  <bruno@clisp.org>
58543
58544         New module 'findprog-lgpl'.
58545         * modules/findprog-lgpl: New file.
58546         * lib/findprog-lgpl.c: New file.
58547         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58548         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58549         to decide whether to use strdup or xstrdup, concatenated_filename or
58550         xconcatenated_filename.
58551
58552 2008-09-01  Bruno Haible  <bruno@clisp.org>
58553
58554         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58555         'xconcat-filename' (GPL).
58556         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58557         (License): Change to LGPLv2+.
58558         * modules/xconcat-filename: New file.
58559         * lib/concat-filename.h (concatenated_filename): Change specification.
58560         (xconcatenated_filename): New declaration.
58561         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58562         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58563         memory situations.
58564         * lib/xconcat-filename.c: New file.
58565         * NEWS: Mention the change.
58566         * lib/findprog.c: Include concat-filename.h, not filename.h.
58567         (find_in_path): Use xconcatenated_filename instead of
58568         concatenated_filename.
58569         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58570         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58571         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58572         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58573         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58574         instead of concatenated_filename.
58575         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58576         (execute_java_class): Use xconcatenated_filename instead of
58577         concatenated_filename.
58578         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58579         * modules/javacomp (Depends-on): Likewise.
58580         * modules/javaexec (Depends-on): Likewise.
58581
58582 2008-09-01  Bruno Haible  <bruno@clisp.org>
58583
58584         Split module 'filename' into 'filename' and 'concat-filename'.
58585         * modules/filename: Keep only lib/filename.h.
58586         (License): Change to LGPLv2+.
58587         * modules/concat-filename: New file, extracted from modules/filename.
58588         * lib/filename.h (concatenated_filename): Remove declaration.
58589         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58590         * lib/concat-filename.c: Include concat-filename.h.
58591         * NEWS: Mention the change.
58592
58593 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58594
58595         * lib/bitrotate.h (rotl8, rotr8): Add.
58596
58597         * modules/bitrotate (configure.ac): Need
58598         AC_REQUIRE([AC_C_INLINE]).
58599         (Description): Mention stdint.h.  Reported by Bruno Haible
58600         <bruno@clisp.org>.
58601
58602         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58603         Paolo Bonzini <bonzini@gnu.org>.
58604
58605 2008-08-31  Bruno Haible  <bruno@clisp.org>
58606
58607         Assume Solaris specific bi-arch conventions on Solaris systems.
58608         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58609         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58610         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58611         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58612         like acl_libdirstem.
58613         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58614         acl_libdirstem.
58615         * NEWS: Mention the change.
58616         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58617
58618 2008-08-31  Jim Meyering  <meyering@redhat.com>
58619
58620         * lib/strftime.h: Add comments describing the two added arguments.
58621
58622         remove duplicate #include directives
58623         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58624         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58625
58626 2008-08-31  Bruno Haible  <bruno@clisp.org>
58627
58628         New module 'sigpipe-die'.
58629         * modules/sigpipe-die: New file.
58630         * lib/sigpipe-die.h: New file.
58631         * lib/sigpipe-die.c: New file.
58632         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58633
58634 2008-08-31  Bruno Haible  <bruno@clisp.org>
58635
58636         Don't override previously installed signal handlers.
58637         * lib/fatal-signal.c (saved_sigactions): New variable.
58638         (uninstall_handlers): Reset the signal to the saved handler, not
58639         to SIG_DFL (except when ignored).
58640         (install_handlers): Save the previous handlers.
58641
58642 2008-08-30  Bruno Haible  <bruno@clisp.org>
58643
58644         * gnulib-tool (func_reset_sigpipe): New function.
58645         (func_get_automake_snippet, func_modules_transitive_closure,
58646         func_import): Invoke it before a join command that reads from stdin,
58647         to avoid "echo: write error: Broken pipe" error messages on stderr.
58648         Reported by Sam Steingold <sds@gnu.org>.
58649
58650 2008-08-30  Bruno Haible  <bruno@clisp.org>
58651
58652         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58653         Code copied from m4/open.m4.
58654         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58655         access and the filename ends in a slash. Code copied from lib/open.c.
58656         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58657         * tests/test-fopen.c (main): Check against bug with trailing slash.
58658
58659 2008-08-29  Bruno Haible  <bruno@clisp.org>
58660
58661         Avoid some "gcc -pedantic" warnings.
58662         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58663         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58664         * lib/dirent.in.h: Likewise.
58665         * lib/fcntl.in.h: Likewise.
58666         * lib/float.in.h: Likewise.
58667         * lib/iconv.in.h: Likewise.
58668         * lib/inttypes.in.h: Likewise.
58669         * lib/locale.in.h: Likewise.
58670         * lib/math.in.h: Likewise.
58671         * lib/netinet_in.in.h: Likewise.
58672         * lib/search.in.h: Likewise.
58673         * lib/signal.in.h: Likewise.
58674         * lib/stdarg.in.h: Likewise.
58675         * lib/stdint.in.h: Likewise.
58676         * lib/stdio.in.h: Likewise.
58677         * lib/stdlib.in.h: Likewise.
58678         * lib/string.in.h: Likewise.
58679         * lib/strings.in.h: Likewise.
58680         * lib/sys_select.in.h: Likewise.
58681         * lib/sys_socket.in.h: Likewise.
58682         * lib/sys_stat.in.h: Likewise.
58683         * lib/sys_time.in.h: Likewise.
58684         * lib/sysexits.in.h: Likewise.
58685         * lib/time.in.h: Likewise.
58686         * lib/unistd.in.h: Likewise.
58687         * lib/wchar.in.h: Likewise.
58688         * lib/wctype.in.h: Likewise.
58689         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58690         * modules/fchdir (Makefile.am): Likewise.
58691         * modules/fcntl (Makefile.am): Likewise.
58692         * modules/float (Makefile.am): Likewise.
58693         * modules/iconv_open (Makefile.am): Likewise.
58694         * modules/inttypes (Makefile.am): Likewise.
58695         * modules/locale (Makefile.am): Likewise.
58696         * modules/math (Makefile.am): Likewise.
58697         * modules/netinet_in (Makefile.am): Likewise.
58698         * modules/search (Makefile.am): Likewise.
58699         * modules/signal (Makefile.am): Likewise.
58700         * modules/stdarg (Makefile.am): Likewise.
58701         * modules/stdint (Makefile.am): Likewise.
58702         * modules/stdio (Makefile.am): Likewise.
58703         * modules/stdlib (Makefile.am): Likewise.
58704         * modules/string (Makefile.am): Likewise.
58705         * modules/strings (Makefile.am): Likewise.
58706         * modules/sys_select (Makefile.am): Likewise.
58707         * modules/sys_socket (Makefile.am): Likewise.
58708         * modules/sys_stat (Makefile.am): Likewise.
58709         * modules/sys_time (Makefile.am): Likewise.
58710         * modules/sysexits (Makefile.am): Likewise.
58711         * modules/time (Makefile.am): Likewise.
58712         * modules/unistd (Makefile.am): Likewise.
58713         * modules/wchar (Makefile.am): Likewise.
58714         * modules/wctype (Makefile.am): Likewise.
58715         Reported by Reuben Thomas <rrt@sc3d.org>.
58716
58717 2008-08-29  Bruno Haible  <bruno@clisp.org>
58718
58719         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58720         any more.
58721
58722 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58723
58724         * MODULES.html.sh (Misc): Add bitrotate.
58725
58726         * modules/bitrotate: New file.
58727
58728         * lib/bitrotate.h: New file.
58729
58730         * modules/bitrotate-tests: New file.
58731
58732         * tests/test-bitrotate.c: New file.
58733
58734         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58735         on the bitrotate module.
58736
58737         * lib/arctwo.c: Use new bitrotate module.
58738
58739 2008-08-29  Jim Meyering  <meyering@redhat.com>
58740
58741         bootstrap: merge changes from coreutils
58742         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58743         of copied files.  Remove a kludge, now that this is fixed.
58744         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58745         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58746         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58747
58748 2008-08-29  Bruno Haible  <bruno@clisp.org>
58749
58750         * MODULES.html.sh: Remove --cvs-urls option.
58751
58752 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58753
58754         maint.mk: adjust to file name change
58755         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58756
58757 2008-08-28  Jim Meyering  <meyering@redhat.com>
58758
58759         * modules/getndelim2 (License): Relicense to LGPLv2+.
58760         Approved by Richard Stallman for the version of 1995, and by
58761         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58762
58763 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58764
58765         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58766         dummy if one is not available.  Do not touch them if
58767         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58768         (getc_maybe_unlocked): New.
58769         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58770
58771 2008-08-26  Eric Blake  <ebb9@byu.net>
58772
58773         doc/INSTALL: resync from autoconf
58774         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58775         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58776         moving...
58777         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58778         * INSTALL: Regenerate.
58779         * INSTALL.ISO: New file.
58780         * INSTALL.UTF-8: Likewise.
58781
58782 2008-08-26  Jim Meyering  <meyering@redhat.com>
58783
58784         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58785         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58786         these definitions conditional, so that they may be overridden, too.
58787
58788 2008-08-26  Bruno Haible  <bruno@clisp.org>
58789
58790         Generate INSTALL file variants with prettier quotes.
58791         * doc/Makefile (INSTALL_PRELUDE): New macro.
58792         (INSTALL): Use it.
58793         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58794
58795 2008-08-26  Bruno Haible  <bruno@clisp.org>
58796
58797         Run makeinfo in an English locale.
58798         * doc/Makefile (MAKEINFO): New variable.
58799
58800 2008-08-26  Bruno Haible  <bruno@clisp.org>
58801
58802         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58803         Suggested by Eric Blake.
58804
58805 2008-08-25  Bruno Haible  <bruno@clisp.org>
58806
58807         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58808
58809 2008-08-25  Eric Blake  <ebb9@byu.net>
58810
58811         c-stack: test that stack overflow can be caught
58812         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58813         that platform allows handling stack overflow; at least OS/2 EMX
58814         has sigaltstack, but crashes before transferring control to
58815         handler on stack overflow.
58816         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58817         check for HAVE_STACK_OVERFLOW_HANDLING.
58818         Reported by Elbert Pol.
58819
58820 2008-08-25  Bruno Haible  <bruno@clisp.org>
58821
58822         * doc/posix-functions/strftime.texi: Fix description of strftime
58823         module.
58824
58825 2008-08-24  Bruno Haible  <bruno@clisp.org>
58826
58827         * tests/uniwidth/test-uc_width2.c: New file.
58828         * tests/uniwidth/test-uc_width2.sh: New file.
58829         * modules/uniwidth/width-tests (Files): Add the new files.
58830         (TESTS): Add uniwidth/test-uc_width2.sh.
58831         (TESTS_ENVIRONMENT): New variable.
58832         (check_PROGRAMS): Add test-uc_width2.
58833         (test_uc_width2_SOURCES): New variable.
58834
58835         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58836         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58837         not 0x00AB.
58838         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58839
58840 2008-08-22  Eric Blake  <ebb9@byu.net>
58841
58842         test-lock, test-tls: mention why a test is skipped
58843         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58844         skipped.
58845         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58846
58847         count-one-bits: relax license
58848         * modules/count-one-bits (License): Relicense to LGPLv2+.
58849         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58850
58851 2008-08-22  Andreas Schwab  <schwab@suse.de>
58852
58853         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58854         Remove spurious space in assignment.
58855
58856 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58857
58858         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58859         Paul Eggert <eggert@CS.UCLA.EDU>.
58860
58861 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58862
58863         * modules/gettext: Add m4/threadlib.m4.
58864
58865 2008-08-19  Eric Blake  <ebb9@byu.net>
58866
58867         test-c-stack: fix compilation failure on FreeBSD 5.0
58868         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58869         headers before <sys/resource.h>.
58870         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58871         the bug.
58872         Reported by Nelson H. F. Beebe.
58873
58874         strverscmp: migrate from "strverscmp.h" to <string.h>
58875         * modules/string (Makefile.am): Add new hooks.
58876         * modules/strverscmp (Files): Remove strverscmp.h.
58877         (Depends-on): Add string.
58878         (configure.ac): Add indicator.
58879         (Include): Mention new header.
58880         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58881         defaults.
58882         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58883         results.
58884         * lib/strverscmp.h: Delete.
58885         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58886         * tests/test-strverscmp.c (includes): Adjust client.
58887         * lib/check-version.c (includes): Likewise.
58888         * NEWS: Document the change.
58889
58890         strverscmp: add unit test
58891         * modules/strverscmp-tests: New file.
58892         * tests/test-strverscmp.c: Likewise.
58893
58894 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58895
58896         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58897         regarding Windows crypto stuff, from Mono.
58898
58899 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58900
58901         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58902         if present, for intel RND.  Return error on failures.
58903
58904 2008-08-18  Ben Pfaff  <blp@gnu.org>
58905
58906         gitlog-to-changelog: give better diagnostic for failed pipe-open
58907         * build-aux/gitlog-to-changelog: Improve error message: suggest
58908         that the version of Git may be too old.
58909
58910 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58911
58912         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58913         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58914
58915 2008-08-18  Bruno Haible  <bruno@clisp.org>
58916
58917         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58918         pthread_in_use().
58919
58920 2008-08-18  Bruno Haible  <bruno@clisp.org>
58921
58922         * lib/glthread/threadlib.c: Include <pthread.h>.
58923
58924 2008-08-18  Bruno Haible  <bruno@clisp.org>
58925
58926         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58927         glthread_recursive_lock_* macros.
58928         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58929         Fix syntax error.
58930
58931 2008-08-18  Bruno Haible  <bruno@clisp.org>
58932
58933         * lib/glthread/thread.c: Avoid forcing a context switch right after
58934         thread creation.
58935
58936 2008-08-17  Bruno Haible  <bruno@clisp.org>
58937
58938         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58939         * lib/glthread/thread.h: Provide Win32 specific implementation.
58940         * modules/thread (Files): Add lib/glthread/thread.c.
58941         (Depends-on): Add lock.
58942         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58943
58944 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58945
58946         New module 'yield'.
58947         * modules/yield: New file.
58948         * lib/glthread/yield.h: New file.
58949         * m4/yield.m4: New file.
58950         * MODULES.html.sh (Multithreading): Add yield.
58951
58952 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58953
58954         New module 'thread'.
58955         * modules/thread: New file.
58956         * lib/glthread/thread.h: New file.
58957         * m4/thread.m4: New file.
58958         * MODULES.html.sh (Multithreading): Add thread.
58959
58960 2008-08-17  Bruno Haible  <bruno@clisp.org>
58961
58962         * lib/glthread/lock.h: Include <stdlib.h> always.
58963         * lib/glthread/tls.h: Likewise.
58964         * lib/glthread/cond.h: Likewise.
58965
58966 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58967
58968         New module 'cond'.
58969         * modules/cond: New file.
58970         * lib/glthread/cond.h: New file.
58971         * lib/glthread/cond.c: New file.
58972         * m4/cond.m4: New file.
58973         * MODULES.html.sh (Multithreading): Add cond.
58974
58975 2008-08-16  Eric Blake  <ebb9@byu.net>
58976
58977         c-stack: fix regression on Irix 5.3 from 2008-06-21
58978         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58979         sa_sigaction...
58980         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58981         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58982         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58983         * modules/signal (Makefile.am): Use the value.
58984         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58985         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58986         * doc/posix-headers/signal.texi (signal.h): Document this
58987         portability issue.
58988         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58989         Reported by Tom G. Christensen.
58990
58991 2008-08-17  Bruno Haible  <bruno@clisp.org>
58992
58993         New module 'threadlib'.
58994         * modules/threadlib: New file.
58995         * lib/glthread/threadlib.c: New file, extracted from
58996         lib/glthread/lock.c.
58997         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58998         functions.
58999         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
59000         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
59001         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
59002         macros.
59003         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
59004         (gl_DISABLE_THREADS): Remove macro.
59005         * modules/lock (Files): Remove build-aux/config.rpath.
59006         (Depends-on): Remove havelib. Add threadlib.
59007         (configure.ac-early): Remove section.
59008         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
59009         * modules/tls (Depends-on): Remove lock. Add threadlib.
59010         (Link): New section, copied from threadlib.
59011         * MODULES.html.sh (Multithreading): Add threadlib.
59012
59013 2008-08-14  Bruno Haible  <bruno@clisp.org>
59014
59015         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
59016         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
59017         glthread_rwlock_unlock, glthread_rwlock_destroy,
59018         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
59019         glthread_recursive_lock_destroy): Define as macros always.
59020         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
59021         glthread_lock_lock.
59022         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
59023         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
59024         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
59025         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
59026         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
59027         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
59028         (glthread_recursive_lock_lock_func): Renamed from
59029         glthread_recursive_lock_lock.
59030         (glthread_recursive_lock_unlock_func): Renamed from
59031         glthread_recursive_lock_unlock.
59032         (glthread_recursive_lock_destroy_func): Renamed from
59033         glthread_recursive_lock_destroy.
59034
59035 2008-08-14  Bruno Haible  <bruno@clisp.org>
59036
59037         * lib/glthread/lock.h: Renamed from lib/lock.h.
59038         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
59039         * lib/glthread/tls.h: Renamed from lib/tls.h.
59040         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
59041         * lib/fstrcmp.c: Update includes.
59042         * lib/strsignal.c: Update includes.
59043         * modules/lock (Files, Makefile.am): Update.
59044         (Include): Change to "glthread/lock.h".
59045         * modules/tls (Files, Makefile.am): Update.
59046         (Include): Change to "glthread/tls.h".
59047         * tests/test-lock.c: Update includes.
59048         * tests/test-tls.c: Update includes.
59049         * NEWS: Mention the renamed header files.
59050
59051 2008-08-11  Jim Meyering  <meyering@redhat.com>
59052
59053         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
59054
59055 2008-08-11  Eric Blake  <ebb9@byu.net>
59056
59057         test-c-stack: avoid C99-ism
59058         * tests/test-c-stack.c (main): Fix whitespace, move declaration
59059         before statement.
59060         Reported by Alain Guibert.
59061
59062 2008-08-10  Jim Meyering  <meyering@redhat.com>
59063
59064         ensure that return value of uinttostr et al are not ignored
59065         * lib/inttostr.h (__GNUC_PREREQ): Define.
59066         (__attribute_warn_unused_result__): Define.
59067         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
59068
59069 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
59070
59071         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
59072         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
59073
59074 2008-08-07  Jim Meyering  <meyering@redhat.com>
59075
59076         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
59077
59078         * modules/mkstemp (License): Relicense under LGPLv2+.
59079         * modules/tempname (License): Likewise.
59080
59081 2008-08-06  Bruno Haible  <bruno@clisp.org>
59082
59083         * lib/poll.c (poll): Further micro-optimization.
59084
59085 2008-08-06  Jim Meyering  <meyering@redhat.com>
59086
59087         inet_pton.c: use locale-independent tolower
59088         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
59089         (inet_pton6): Use c_tolower rather than tolower.
59090         * modules/inet_pton (Depends-on): Add c-ctype.
59091
59092 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
59093
59094         * lib/poll.c (poll): Avoid division when timeout is 0, cache
59095         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
59096
59097 2008-08-06  Jim Meyering  <meyering@redhat.com>
59098
59099         * modules/inet_pton (License): Relicense under LGPLv2+.
59100
59101 2008-08-03  Bruno Haible  <bruno@clisp.org>
59102
59103         Additional non-aborting API for lock and tls.
59104         * lib/lock.h: Include <errno.h>.
59105         (glthread_lock_init): New macro/function.
59106         (gl_lock_init): Define as wrapper around glthread_lock_init.
59107         (glthread_lock_lock): New macro/function.
59108         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
59109         (glthread_lock_unlock): New macro/function.
59110         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
59111         (glthread_lock_destroy): New macro/function.
59112         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
59113         (glthread_rwlock_init): New macro/function.
59114         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
59115         (glthread_rwlock_rdlock): New macro/function.
59116         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
59117         (glthread_rwlock_wrlock): New macro/function.
59118         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
59119         (glthread_rwlock_unlock): New macro/function.
59120         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
59121         (glthread_rwlock_destroy): New macro/function.
59122         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
59123         (glthread_recursive_lock_init): New macro/function.
59124         (gl_recursive_lock_init): Define as wrapper around
59125         glthread_recursive_lock_init.
59126         (glthread_recursive_lock_lock): New macro/function.
59127         (gl_recursive_lock_lock): Define as wrapper around
59128         glthread_recursive_lock_lock.
59129         (glthread_recursive_lock_unlock): New macro/function.
59130         (gl_recursive_lock_unlock): Define as wrapper around
59131         glthread_recursive_lock_unlock.
59132         (glthread_recursive_lock_destroy): New macro/function.
59133         (gl_recursive_lock_destroy): Define as wrapper around
59134         glthread_recursive_lock_destroy.
59135         (glthread_once): New macro/function.
59136         (gl_once): Define as wrapper around glthread_once.
59137         Update function declarations.
59138         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
59139         glthread_rwlock_init. Return error code.
59140         (glthread_rwlock_rdlock_multithreaded): Renamed from
59141         glthread_rwlock_rdlock. Return error code.
59142         (glthread_rwlock_wrlock_multithreaded): Renamed from
59143         glthread_rwlock_wrlock. Return error code.
59144         (glthread_rwlock_unlock_multithreaded): Renamed from
59145         glthread_rwlock_unlock. Return error code.
59146         (glthread_rwlock_destroy_multithreaded): Renamed from
59147         glthread_rwlock_destroy. Return error code.
59148         (glthread_recursive_lock_init_multithreaded): Renamed from
59149         glthread_recursive_lock_init. Return error code.
59150         (glthread_recursive_lock_lock_multithreaded): Renamed from
59151         glthread_recursive_lock_lock. Return error code.
59152         (glthread_recursive_lock_unlock_multithreaded): Renamed from
59153         glthread_recursive_lock_unlock. Return error code.
59154         (glthread_recursive_lock_destroy_multithreaded): Renamed from
59155         glthread_recursive_lock_destroy. Return error code.
59156         (glthread_once_call): Make static.
59157         (glthread_once_multithreaded): Renamed from glthread_once.
59158         * lib/tls.h: Include <errno.h>.
59159         (glthread_tls_key_init): New macro/function.
59160         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
59161         (glthread_tls_set): New macro/function.
59162         (gl_tls_set): Define as wrapper around glthread_tls_set.
59163         (glthread_tls_key_destroy): New macro/function.
59164         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
59165         Update function declarations.
59166         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
59167         glthread_tls_get.
59168         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59169
59170 2008-08-04  Eric Blake  <ebb9@byu.net>
59171
59172         gnumakefile: use space, not TAB, outside of targets
59173         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
59174
59175 2008-08-02  Jim Meyering  <meyering@redhat.com>
59176
59177         getdate.y: avoid locale-dependent date parsing failure
59178         In Turkish locales, getdate would fail to recognize keywords
59179         containing a lowercase "i".  The solution is not to rely on
59180         locale-sensitive case-conversion.
59181         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
59182         (lookup_word): Use c_toupper in place of toupper.
59183         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
59184         Reported by Vefa Bicakci <bicave@superonline.com> in
59185         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
59186         * modules/getdate (Depends-on): Add c-ctype.
59187
59188 2008-08-02  Bruno Haible  <bruno@clisp.org>
59189
59190         * gnulib-tool (func_import): When updating or creating a .gitignore
59191         file, prepend each added line with a slash, and ignore leading slashes
59192         from the existing lines.
59193         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59194
59195 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59196
59197         Portability fix for GNU make 3.79.1.
59198         * top/GNUmakefile: Avoid 'else COND', which older GNU make
59199         versions do not understand.
59200
59201 2008-08-01  Bruno Haible  <bruno@clisp.org>
59202
59203         Work around bug of HP-UX 10.20 cc with -0.0 literal.
59204         * tests/test-isnanf.h (zero): New variable.
59205         (main): Avoid literal -0.0f.
59206         * tests/test-isnand.h (zero): New variable.
59207         (main): Avoid literal -0.0.
59208         * tests/test-isnanl.h (zero): New variable.
59209         (main): Avoid literal -0.0L.
59210         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
59211         (test_float, test_double, test_long_double): Avoid literals -0.0f,
59212         -0.0, -0.0L.
59213         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
59214         (test_signbitd): Avoid literal -0.0.
59215         (test_signbitl): Avoid literal -0.0L.
59216         * tests/test-ceilf1.c (zero): New variable.
59217         (main): Avoid literal -0.0f.
59218         * tests/test-ceill.c (zero): New variable.
59219         (main): Avoid literal -0.0L.
59220         * tests/test-floorf1.c (zero): New variable.
59221         (main): Avoid literal -0.0f.
59222         * tests/test-floorl.c (zero): New variable.
59223         (main): Avoid literal -0.0L.
59224         * tests/test-roundf1.c (zero): New variable.
59225         (main): Avoid literal -0.0f.
59226         * tests/test-round1.c (zero): New variable.
59227         (main): Avoid literal -0.0.
59228         * tests/test-roundl.c (zero): New variable.
59229         (main): Avoid literal -0.0L.
59230         * tests/test-truncf1.c (zero): New variable.
59231         (main): Avoid literal -0.0f.
59232         * tests/test-trunc1.c (zero): New variable.
59233         (main): Avoid literal -0.0.
59234         * tests/test-truncl.c (zero): New variable.
59235         (main): Avoid literal -0.0L.
59236         * tests/test-frexp.c (zero): New variable.
59237         (main): Avoid literal -0.0.
59238         * tests/test-frexpl.c (zero): New variable.
59239         (main): Avoid literal -0.0L.
59240         * tests/test-ldexpl.c (zero): New variable.
59241         (main): Avoid literal -0.0L.
59242         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59243         (zerod, zerol): New variables.
59244         (test_function): Avoid literals -0.0, -0.0L.
59245         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59246         (zerod, zerol): New variables.
59247         (test_function): Avoid literals -0.0, -0.0L.
59248         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59249         (zerod, zerol): New variables.
59250         (test_function): Avoid literals -0.0, -0.0L.
59251         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59252         (zerod, zerol): New variables.
59253         (test_function): Avoid literals -0.0, -0.0L.
59254         * tests/test-strtod.c (zero): New variable.
59255         (main): Avoid literal -0.0.
59256         Reported by Jonathan C. Patschke <jp@centtech.com>.
59257
59258 2008-07-31  Jim Meyering  <meyering@redhat.com>
59259
59260         sha256.h: correct definition of SHA224_DIGEST_SIZE
59261         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
59262         Reported by Paulie Pena IV <paulie4@gmail.com>.
59263         Define as 224 / 8, rather than as a literal.
59264         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
59265         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
59266         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
59267
59268 2008-07-31  Bruno Haible  <bruno@clisp.org>
59269
59270         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
59271         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
59272         Reported by Jonathan Patschke <jp@centtech.com>.
59273
59274 2008-07-31  Bruno Haible  <bruno@clisp.org>
59275
59276         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
59277         Reported by Paolo Bonzini <bonzini@gnu.org>.
59278
59279 2008-07-30  Eric Blake  <ebb9@byu.net>
59280
59281         test-strtod: allow compilation without -lm
59282         * tests/test-strtod.c (main): Avoid link dependence on fabs.
59283         Reported by Dennis Clarke <blastwave@gmail.com>.
59284
59285 2008-07-28  Jim Meyering  <meyering@redhat.com>
59286
59287         bootstrap: work also when there are no .po files in po/
59288         * build-aux/bootstrap (update_po_files): Complete the change
59289         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
59290
59291 2008-07-27  Jim Meyering  <meyering@redhat.com>
59292
59293         * users.txt: Add zile.
59294
59295 2008-07-26  Ben Pfaff  <blp@gnu.org>
59296
59297         Add missing dependencies on new m4/exponent[fdl].m4 files.
59298         * modules/isnanf-nolibm: Add m4/exponentf.m4.
59299         * modules/isnand-nolibm: Add m4/exponentd.m4.
59300         * modules/isnanl-nolibm: Add m4/exponentl.m4.
59301         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
59302         m4/isnan[fdl].m4, because the macros actually used moved.
59303         Reported by Jim Meyering.
59304
59305 2008-07-14  Ben Pfaff  <blp@gnu.org>
59306
59307         Add isinf module.
59308         * lib/isinf.c: New file.
59309         * lib/math.in.h: Define isinf macro if we have decided to replace
59310         it.
59311         * m4/isinf.m4: New file.
59312         * m4/math_h.m4: Initialize and substitute variables for isinf
59313         module.
59314         * modules/isinf: New file.
59315         * modules/isinf-tests: New file.
59316         * modules/math: Add substitutions for new module.
59317         * tests/test-isinf.c: New file.
59318         * doc/posix-functions/isinf.texi: Mention new module.
59319         * MODULES.html.sh: Mention new module.
59320
59321 2008-07-14  Ben Pfaff  <blp@gnu.org>
59322
59323         Factor out some macros for use by additional modules.
59324         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
59325         exponentf.m4.
59326         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
59327         exponentd.m4.
59328         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
59329         file exponentl.m4.
59330         * m4/exponentf.m4: New file.
59331         * m4/exponentd.m4: New file.
59332         * m4/exponentl.m4: New file.
59333         * modules/isnanf: Use new file m4/exponentf.m4.
59334         * modules/isnand: Use new file m4/exponentd.m4.
59335         * modules/isnanl: Use new file m4/exponentl.m4.
59336
59337 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
59338
59339         mktime.c: normalize tp->tm_isdst value to -1/0/1.
59340         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
59341         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
59342         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
59343
59344         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
59345         readlink on platforms without PATH_MAX.
59346
59347 2008-07-21  Eric Blake  <ebb9@byu.net>
59348
59349         Warn, not fail, on stale version.
59350         * top/GNUmakefile (_curr-ver): Tone down previous patch.
59351
59352         Don't allow installation with stale devel version number.
59353         * top/GNUmakefile (_is-install-target): New macro.
59354         (_curr-ver): Forbid installation with stale version number.
59355
59356 2008-07-20  Bruno Haible  <bruno@clisp.org>
59357
59358         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
59359         TESTS_ENVIRONMENT.
59360         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
59361
59362 2008-07-20  Bruno Haible  <bruno@clisp.org>
59363
59364         * lib/c-stack.h (c_stack_action): Add documentation.
59365         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
59366
59367 2008-07-20  Bruno Haible  <bruno@clisp.org>
59368
59369         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
59370         * modules/readlink (License): Likewise.
59371
59372 2008-07-17  Eric Blake  <ebb9@byu.net>
59373
59374         * modules/c-stack (Link): Fix typo.
59375
59376         Make c-stack use libsigsegv, when available.
59377         * modules/c-stack (Depends-on): Add libsigsegv.
59378         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
59379         needed.
59380         * lib/c-stack.c (SIGSTKSZ): Define fallback.
59381         (segv_handler, overflow_handler, c_stack_action)
59382         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
59383         implementation when libsigsegv is available, but only when using
59384         the library is necessary.
59385         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
59386         comment, explaining why XSI check fails on Linux.
59387         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
59388         * tests/test-c-stack2.sh: Tweak skip message.
59389         * NEWS: Document new link-time requirements.
59390
59391 2008-07-16  Eric Blake  <ebb9@byu.net>
59392
59393         c-stack: Expose false positives when not using libsigsegv.
59394         * modules/c-stack-tests (Files): Expand test.
59395         * tests/test-c-stack.c (main): Add means to conditionally trigger
59396         non-overflow SIGSEGV.
59397         * tests/test-c-stack2.sh: New file.
59398
59399 2008-07-14  Bruno Haible  <bruno@clisp.org>
59400
59401         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
59402         Reported by Eric Blake.
59403
59404 2008-07-14  Sam Steingold  <sds@gnu.org>
59405             Bruno Haible  <bruno@clisp.org>
59406
59407         New module libsigsegv.
59408         * modules/libsigsegv: New file.
59409         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
59410         modifications.
59411         * MODULES.html.sh (Signal handling): New section.
59412
59413 2008-07-14  Bruno Haible  <bruno@clisp.org>
59414
59415         * modules/unictype/ctype-* (Description): Add the word "function".
59416         Improves the resulting doc in MODULES.html.
59417
59418 2008-07-12  Ben Pfaff  <blp@gnu.org>
59419
59420         Add longlong module.
59421         * modules/longlong: New file.
59422
59423 2008-07-12  Bruno Haible  <bruno@clisp.org>
59424
59425         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
59426         to empty.
59427
59428 2008-07-10  Ben Pfaff  <blp@gnu.org>
59429
59430         Add isnan module.
59431         * doc/posix-functions/isnan.texi: Mention new module.
59432         * lib/math.in.h: Define isnan macro if we have decided to replace
59433         it.
59434         * m4/isnan.m4: New file.
59435         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
59436         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
59437         also.
59438         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
59439         redundancy.
59440         * m4/math_h.m4: Initialize and substitute variables for isnan
59441         module.
59442         * modules/isnan: New file.
59443         * modules/isnan-tests: New file.
59444         * modules/math: Add substitutions for new module.
59445         * tests/test-isnan.c: New file.
59446         * MODULES.html.sh: Mention new module.
59447
59448 2008-07-10  Ben Pfaff  <blp@gnu.org>
59449
59450         Add isnanf module.
59451         * lib/isnanf.m4: New file.
59452         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
59453         (gl_HAVE_ISNANF_IN_LIBM): New macro.
59454         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
59455         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
59456         * modules/isnanf: New file.
59457         * modules/isnanf-tests: New file.
59458         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
59459         files.
59460         * tests/test-isnanf-nolibm.c: factored most of its contents into
59461         new file tests/test-isnanf.h.
59462         * tests/test-isnanf.h: New file.
59463         * tests/test-isnanf.c: New file.
59464         * MODULES.html.sh: Mention new module.
59465         * doc/glibc-functions/isnanf.texi: Mention new module.
59466
59467 2008-07-10  Ben Pfaff  <blp@gnu.org>
59468
59469         Add isnand module.
59470         * lib/isnand.h: New file.
59471         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
59472         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
59473         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
59474         functionality also.
59475         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
59476         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
59477         (gl_HAVE_ISNAND_IN_LIBM): New macro.
59478         * modules/isnand: New file.
59479         * modules/isnand-tests: New file.
59480         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
59481         files.
59482         * tests/test-isnand-nolibm.c: factored most of its contents into
59483         new file tests/test-isnand.h.
59484         * tests/test-isnand.h: New file.
59485         * tests/test-isnand.c: New file.
59486         * MODULES.html.sh: Mention new module.
59487
59488 2008-07-10  Ben Pfaff  <blp@gnu.org>
59489
59490         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
59491         * lib/isnand.h: Rename lib/isnand-nolibm.h.
59492         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
59493         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
59494         * modules/isnanf-nolibm: Update references to renamed files.
59495         * modules/isnand-nolibm: Likewise.
59496         * modules/isnanf-nolibm-tests: Likewise.
59497         * modules/isnand-nolibm-tests: Likewise.
59498         * lib/frexp.c: Likewise.
59499         * lib/isfinite.c: Likewise.
59500         * lib/signbitd.c: Likewise.
59501         * lib/signbitf.c: Likewise.
59502         * lib/vasnprintf.c: Likewise.
59503         * tests/test-ceilf1.c: Likewise.
59504         * tests/test-ceilf2.c: Likewise.
59505         * tests/test-floorf1.c: Likewise.
59506         * tests/test-floorf2.c: Likewise.
59507         * tests/test-frexp.c: Likewise.
59508         * tests/test-round1.c: Likewise.
59509         * tests/test-round2.c: Likewise.
59510         * tests/test-roundf1.c: Likewise.
59511         * tests/test-strtod.c: Likewise.
59512         * tests/test-trunc1.c: Likewise.
59513         * tests/test-trunc2.c: Likewise.
59514         * tests/test-truncf1.c: Likewise.
59515         * tests/test-truncf2.c: Likewise.
59516         * NEWS: Mention the renamed header files.
59517
59518 2008-07-11  Jim Meyering  <meyering@redhat.com>
59519
59520         vc-list-files: make the last-resort awk code more portable
59521         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59522         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59523         does not support it.
59524
59525 2008-07-10  Eric Blake  <ebb9@byu.net>
59526
59527         Work with tar's bootstrap.
59528         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59529         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59530         an m4 comment.
59531
59532 2008-07-09  Jim Meyering  <meyering@redhat.com>
59533
59534         posix-shell.m4: fix typo that made this test malfunction
59535         * m4/posix-shell.m4: Remove capitalization in variable name.
59536
59537 2008-07-08  Bruno Haible  <bruno@clisp.org>
59538
59539         * m4/onceonly.m4: Update comments.
59540         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59541
59542 2008-07-04  Jim Meyering  <meyering@redhat.com>
59543
59544         * users.txt: Add vc-dwim.
59545         (bison, coreutils): Use the gitweb URL.
59546
59547 2008-07-03  Jim Meyering  <meyering@redhat.com>
59548
59549         * users.txt: Add libffcall.  From Sam Steingold.
59550
59551 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
59552
59553         getdate.y: do not ignore TZ with relative day, month or year offset
59554         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59555         relative-date-handling, since otherwise, the latter would clobber the
59556         sole output (an updated Start value) of the tz-handling block.
59557         * tests/test-getdate.c: Tests for the fix
59558
59559 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59560
59561         Recognize 'foo_LIBRARIES += libgnu.a'.
59562         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59563         makefile snippet has already specified an installation location,
59564         also using '+='.
59565
59566 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59567
59568         getdate.y: factor out common actions
59569         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59570         Use them in place of open-coded actions.
59571
59572 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59573
59574         Add self-test for getdate module.
59575         * modules/getdate-tests: New file.
59576         * tests/test-getdate.c: New file.
59577
59578 2008-06-29  Bruno Haible  <bruno@clisp.org>
59579
59580         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59581         .gitignore.
59582         Reported by Sylvain Beucler <beuc@beuc.net>.
59583
59584 2008-06-29  Bruno Haible  <bruno@clisp.org>
59585
59586         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59587         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59588
59589 2008-06-29  Bruno Haible  <bruno@clisp.org>
59590
59591         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59592         EXTRA_DIST.
59593         Reported by Sylvain Beucler <beuc@beuc.net>.
59594
59595 2008-06-26  Jim Meyering  <meyering@redhat.com>
59596
59597         make several modules depend on the "open" module
59598         This provides slightly increased consistency when opening-for-write
59599         the name of a non-directory spelled with a trailing slash.
59600         * modules/chdir-safer: Likewise.
59601         * modules/chown: Likewise.
59602         * modules/clean-temp: Likewise.
59603         * modules/copy-file: Likewise.
59604         * modules/fchdir: Likewise.
59605         * modules/fcntl-safer: Likewise.
59606         * modules/pipe: Likewise.
59607         * modules/utime: Likewise.
59608         Prompted by Eric Blake and Bruno Haible.
59609
59610 2008-06-24  Andreas Schwab  <schwab@suse.de>
59611
59612         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59613         literals can be used as initializers for global variables.
59614
59615 2008-06-23  Eric Blake  <ebb9@byu.net>
59616
59617         Make gnulib-cache.m4 easier to diff.
59618         * gnulib-tool (func_import): Allow newlines when reading cached
59619         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59620
59621 2008-06-23  Bruno Haible  <bruno@clisp.org>
59622
59623         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59624         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59625         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59626         m4/signalblocking.m4.
59627         (gl_PREREQ_SIGACTION): Don't invoke it.
59628         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59629         gl_PREREQ_SIG_HANDLER_H.
59630         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59631         Don't check for sigaction here.
59632
59633 2008-06-23  Bruno Haible  <bruno@clisp.org>
59634
59635         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59636         (install_handlers): Don't set the SA_RESETHAND flag.
59637
59638 2008-06-23  Bruno Haible  <bruno@clisp.org>
59639
59640         * m4/sigaction.m4: Comment fixes.
59641         * lib/signal.in.h: Likewise.
59642
59643 2008-06-23  Eric Blake  <ebb9@byu.net>
59644
59645         Fix typo.
59646         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59647
59648         Avoid SA_ namespace.
59649         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59650         Reported by Ralf Wildenhues.
59651
59652         Avoid test failure due to SA_RESTORER.
59653         * tests/test-sigaction.c (SA_MASK): New macro.
59654         (main): Avoid failing due to extension flags being set.
59655         Reported by Jim Meyering.
59656
59657         Revert use of sig-handler.h in sigprocmask.c.
59658         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59659         it requires the existence of struct sigaction.
59660         * lib/sigprocmask.c (handler_t): Restore typedef.
59661         (rpl_signal, old_handlers): Use local type.
59662
59663 2008-06-22  Bruno Haible  <bruno@clisp.org>
59664
59665         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59666         conditionally.
59667         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59668
59669 2008-06-22  Bruno Haible  <bruno@clisp.org>
59670
59671         * doc/posix-functions/siginterrupt.texi: Move note.
59672
59673         * lib/signal.in.h (SA_RESTART): New macro.
59674         * lib/sigaction.c: Update comment.
59675
59676         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59677
59678         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59679         (gl_PREREQ_SIGPROCMASK): Invoke it.
59680         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59681
59682         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59683
59684         * lib/sigprocmask.c: Update a comment.
59685
59686 2008-06-21  Eric Blake  <ebb9@byu.net>
59687
59688         Use sigaction module rather than signal().
59689         * modules/c-stack (Depends-on): Add sigaction.
59690         * modules/fatal-signal (Depends-on): Likewise.
59691         * modules/nanosleep (Depends-on): Likewise.
59692         * modules/sigprocmask (Files): Add sig-handler.h.
59693         * modules/sigaction (Files): Likewise.
59694         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59695         Eggert.
59696         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59697         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59698         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59699         (init_fatal_signals): Likewise.
59700         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59701         (siginterrupt): Delete fallback.
59702         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59703         instead.
59704         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59705         siginterrupt.
59706
59707         New module sigaction, for mingw.
59708         * modules/sigaction: New module...
59709         * modules/sigaction-tests: ...and its test.
59710         * m4/sigaction.m4: New file.
59711         * lib/sigaction.c: Likewise.
59712         * tests/test-sigaction.c: Likewise.
59713         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59714         * modules/signal (Makefile.am): Likewise.
59715         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59716         needed.
59717         * doc/posix-headers/signal.texi (signal.h): Mention provided
59718         types.
59719         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59720         that sigaction is preferable.
59721         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59722         module.
59723         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59724         sigaction.
59725
59726         Improve robustness of sigprocmask by overriding signal.
59727         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59728         is in use.
59729         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59730         (SIGKILL, SIGSTOP): Provide fallbacks.
59731         (rpl_signal): Implement.
59732         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59733         signal can be called inside handlers.
59734
59735         Fix nanosleep module on mingw.
59736         * modules/nanosleep (Depends-on): Add sys_select.
59737         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59738
59739         Fix licensing of sigprocmask.
59740         * modules/raise (License): Relicense as LGPL.
59741
59742 2008-06-21  Bruno Haible  <bruno@clisp.org>
59743
59744         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59745         result if it contains question marks.
59746         Reported by Michael Geng <linux@michaelgeng.de>.
59747
59748 2008-06-19  Bruno Haible  <bruno@clisp.org>
59749
59750         Fix CVS-ism.
59751         * doc/gnulib.texi: Include updated-stamp.texi.
59752         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59753         (updated-stamp.texi): New rule.
59754         (gnulib.info): Depend on it.
59755         * doc/.gitignore: Add updated-stamp.texi.
59756         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59757
59758 2008-06-19  Bruno Haible  <bruno@clisp.org>
59759
59760         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59761         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59762
59763 2008-06-19  Eric Blake  <ebb9@byu.net>
59764
59765         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59766         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59767         Reported by Stepan Kasal.
59768
59769 2008-06-18  Bruno Haible  <bruno@clisp.org>
59770
59771         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59772         Reported by Eric Blake.
59773
59774 2008-06-18  Eric Blake  <ebb9@byu.net>
59775
59776         Work around cygwin 1.5.25 strsignal bug.
59777         * tests/test-strsignal.c: Allow for const char *.
59778         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59779
59780 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59781
59782         * users.txt: Update URL to article and add author/date
59783         information.
59784
59785 2008-06-17  Bruno Haible  <bruno@clisp.org>
59786
59787         New macro gl_DISABLE_THREADS.
59788         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59789         if the user did not pass --enable-threads or --disable-threads option.
59790         (gl_DISABLE_THREADS): New macro.
59791         Reported by Eric Blake <ebb9@byu.net>.
59792
59793 2008-06-17  Bruno Haible  <bruno@clisp.org>
59794
59795         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59796         when the macro ignores it.
59797         Based on a patch by Eric Blake <ebb9@byu.net>.
59798
59799 2008-06-17  Bruno Haible  <bruno@clisp.org>
59800
59801         * modules/tls (License): Change to LGPLv2+.
59802         Reported by Eric Blake.
59803
59804 2008-06-17  Eric Blake  <ebb9@byu.net>
59805
59806         Simplify c-stack prerequisites.
59807         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59808         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59809         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59810         check.
59811         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59812         <sys/resource.h>.
59813
59814         Move c-stack test into testsuite.
59815         * modules/c-stack-tests: New file.
59816         * lib/c-stack.c [DEBUG]: Move test program...
59817         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59818         fail test if sigaltstack is lacking.
59819         * tests/test-c-stack.sh: New driver file.
59820
59821 2008-06-16  Eric Blake  <ebb9@byu.net>
59822
59823         Use raise module consistently.
59824         * modules/fatal-signal (Depends-on): Add raise.
59825         * modules/sigprocmask (Depends-on): Likewise.
59826         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59827         * lib/sigprocmask.c (sigprocmask): Likewise.
59828         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59829         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59830
59831         Fix compliance bug in sigpending.
59832         * lib/sigprocmask.c (sigpending): Return pending array via
59833         parameter, not return value.
59834
59835 2008-06-14  Eric Blake  <ebb9@byu.net>
59836
59837         Improve obstack-printf test code.
59838         * tests/test-obstack-printf.c (test_function): Fix comment, and
59839         simplify usage of obstack_* in macros.  Add a test for coverage.
59840         Reported by Bruno Haible.
59841
59842 2008-06-14  Bruno Haible  <bruno@clisp.org>
59843
59844         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59845         array size as a constant, not as a const variable.
59846         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59847         AC_USE_SYSTEM_EXTENSIONS.
59848         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59849         Test whether the obstack_printf function actually exists.
59850         * modules/obstack-printf (Depends-on): Add extensions.
59851         (Include): Remove obstack.h.
59852         * modules/obstack-printf-posix (Depends-on): Add extensions.
59853         (Include): Remove obstack.h.
59854
59855 2008-06-13  Eric Blake  <ebb9@byu.net>
59856
59857         Add obstack-printf and obstack-printf-posix modules.
59858         * modules/obstack-printf: New file.
59859         * modules/obstack-printf-posix: Likewise.
59860         * MODULES.html.sh (Misc): Mention them.
59861         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59862         Likewise.
59863         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59864         Likewise.
59865         * modules/stdio (Makefile.am): Accomodate new modules.
59866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59867         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59868         Declare.
59869         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59870         functions.
59871         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59872         (gl_REPLACE_OBSTACK_PRINTF): New macros
59873         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59874         * tests/test-obstack-printf.c: New file.
59875         * modules/obstack-printf-tests: Likewise.
59876         * modules/obstack-printf-posix-tests: Likewise.
59877
59878 2008-06-11  Bruno Haible  <bruno@clisp.org>
59879
59880         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59881         * lib/open.c: Include errno.h.
59882         (open): Fail when attempting to write to a file that has a trailing
59883         slash.
59884         * tests/test-open.c (main): Test against trailing slash bug.
59885         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59886
59887 2008-06-10  Bruno Haible  <bruno@clisp.org>
59888
59889         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59890         for $? to work inside the trap command, with various /bin/sh-s.
59891         * tests/test-vc-list-files-cvs.sh: Likewise.
59892
59893 2008-06-10  Bruno Haible  <bruno@clisp.org>
59894
59895         * lib/acl-internal.h: Don't include gettext.h here.
59896         * lib/set-mode-acl.c: Include gettext.h here.
59897         * lib/copy-acl.c: Likewise.
59898
59899 2008-06-10  Bruno Haible  <bruno@clisp.org>
59900
59901         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59902         * lib/wait-process.c (wait_subprocess): Likewise.
59903         * lib/execute.h (execute): Add termsigp argument.
59904         * lib/execute.c (execute): Likewise.
59905         * lib/csharpcomp.c (compile_csharp_using_pnet,
59906         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59907         * lib/csharpexec.c (execute_csharp_using_pnet,
59908         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59909         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59910         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59911         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59912         is_jikes_present): Update.
59913         * lib/javaexec.c (execute_java_class): Update.
59914         * lib/javaversion.c (execute_and_read_line): Update.
59915         * NEWS: Document the changes.
59916         Reported by Eric Blake.
59917
59918 2008-06-10  Eric Blake  <ebb9@byu.net>
59919
59920         Add missing include.
59921         * tests/test-strstr.c (includes): Add <signal.h>.
59922         * tests/test-strcasestr.c (includes): Likewise.
59923         * tests/test-memmem.c (includes): Likewise.
59924
59925 2008-06-10  Bruno Haible  <bruno@clisp.org>
59926
59927         * lib/wait-process.c (wait_subprocess): Add an assertion.
59928
59929 2008-06-10  Bruno Haible  <bruno@clisp.org>
59930
59931         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59932
59933 2008-06-10  Bruno Haible  <bruno@clisp.org>
59934
59935         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59936         using alarm().
59937         * tests/test-strcasestr.c (main): Likewise.
59938         * tests/test-strstr.c (main): Likewise.
59939
59940 2008-06-09  Bruno Haible  <bruno@clisp.org>
59941
59942         Work around the Solaris 10 ACE ACLs ABI change.
59943         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59944         declare if ACL_NO_TRIVIAL is present.
59945         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59946         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59947         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59948         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59949         define if ACL_NO_TRIVIAL is present.
59950         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59951         and use the current ABI.
59952         (file_has_acl): Use same #if condition as elsewhere.
59953         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59954         in use, and use the current ABI.
59955         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59956         Reported by Jim Meyering.
59957
59958 2008-06-09  Eric Blake  <ebb9@byu.net>
59959
59960         Work around environments that (stupidly) ignore SIGALRM.
59961         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59962         before using alarm().
59963         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59964         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59965         Reported by Ian Beckwith <ianb@erislabs.net>.
59966
59967         Produce autobuild blurb earlier in log.
59968         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59969
59970 2008-06-09  Jim Meyering  <meyering@redhat.com>
59971         and Ondřej Vašík  <ovasik@redhat.com>
59972
59973         utimens.c: correct kernel bug work-around
59974         Ondřej Vašík found that the invalid return value of 280 indicates
59975         failure, not success, and the kernel bug we're trying to work
59976         around affects not just the utimensat call, but also the fallback
59977         futimens call.
59978         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59979         not success.
59980         [HAVE_FUTIMENS]: Use the same work-around, here.
59981
59982 2008-06-09  Jim Meyering  <meyering@redhat.com>
59983
59984         add more guards around definition of ACE_-related code
59985         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59986         ALLOW and ACE_OWNER are also defined.
59987
59988 2008-06-08  Bruno Haible  <bruno@clisp.org>
59989
59990         * lib/acl-internal.h: Add me as co-author.
59991         * lib/file-has-acl.c: Likewise.
59992         * lib/set-mode-acl.c: Likewise.
59993         * lib/copy-acl.c: Likewise.
59994
59995 2008-06-08  Bruno Haible  <bruno@clisp.org>
59996
59997         Add support for AIX ACLs.
59998         * lib/acl-internal.h (acl_nontrivial): New declaration.
59999         * lib/file-has-acl.c (acl_nontrivial): New function.
60000         (file_has_acl): Add implementation using AIX 4 ACL API.
60001         * lib/set-mode-acl.c (qset_acl): Likewise.
60002         * lib/copy-acl.c (qcopy_acl): Likewise.
60003
60004 2008-06-08  Bruno Haible  <bruno@clisp.org>
60005
60006         Add support for HP-UX ACLs.
60007         * lib/acl-internal.h (acl_nontrivial): New declaration.
60008         * lib/file-has-acl.c (acl_nontrivial): New function.
60009         (file_has_acl): Add implementation using HP-UX 11 ACL API.
60010         * lib/set-mode-acl.c (qset_acl): Likewise.
60011         * lib/copy-acl.c (qcopy_acl): Likewise.
60012
60013 2008-06-08  Bruno Haible  <bruno@clisp.org>
60014
60015         Add support for Cygwin ACLs.
60016         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
60017         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
60018         the chmod_or_fchmod call.
60019         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
60020
60021 2008-06-08  Bruno Haible  <bruno@clisp.org>
60022
60023         Fix bug with setuid modes in Solaris 10+ code.
60024         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
60025         succeeded, when the mode contains some special bits.
60026
60027 2008-06-08  Bruno Haible  <bruno@clisp.org>
60028
60029         Add support for Solaris 7..10 ACLs.
60030         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
60031         declarations.
60032         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
60033         functions.
60034         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
60035         * lib/set-mode-acl.c (qset_acl): Likewise.
60036         * lib/copy-acl.c (qcopy_acl): Likewise.
60037
60038 2008-06-08  Bruno Haible  <bruno@clisp.org>
60039
60040         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
60041         declaration.
60042         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
60043         (acl_access_nontrivial): Remove MacOS X case.
60044         (file_has_acl): Use acl_extended_nontrivial.
60045         * lib/copy-acl.c (qcopy_acl): Likewise.
60046
60047 2008-06-08  Bruno Haible  <bruno@clisp.org>
60048
60049         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
60050
60051 2008-06-08  Jim Meyering  <meyering@redhat.com>
60052
60053         * modules/acl (Maintainer): Add Bruno Haible.
60054
60055 2008-06-07  Bruno Haible  <bruno@clisp.org>
60056
60057         Improve support for Tru64 ACLs.
60058         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
60059         ACL on OSF/1.
60060
60061 2008-06-07  Bruno Haible  <bruno@clisp.org>
60062
60063         Add support for MacOS X ACLs.
60064         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
60065         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
60066         * lib/set-mode-acl.c (qset_acl): Likewise.
60067         * lib/copy-acl.c (qcopy_acl): Likewise.
60068
60069 2008-06-07  Bruno Haible  <bruno@clisp.org>
60070
60071         Fix memory leak introduced on 2008-05-22.
60072         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
60073         use.
60074
60075 2008-06-07  Bruno Haible  <bruno@clisp.org>
60076
60077         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
60078         to construct an empty ACL.
60079
60080 2008-06-07  Bruno Haible  <bruno@clisp.org>
60081
60082         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
60083         precisely.
60084         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
60085
60086 2008-06-07  Bruno Haible  <bruno@clisp.org>
60087
60088         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
60089         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
60090
60091 2008-06-07  Bruno Haible  <bruno@clisp.org>
60092
60093         * doc/posix-functions/_setjmp.texi: Explain the use of this function
60094         regardless of POSIX.
60095         * doc/posix-functions/_longjmp.texi: Likewise.
60096         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
60097         SystemV platform in this case.
60098
60099 2008-06-06  Eric Blake  <ebb9@byu.net>
60100
60101         Document abort() bugs.
60102         * doc/posix-functions/abort.texi (abort): Mention anomalies.
60103
60104         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
60105         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
60106         sigsetjmp.
60107         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
60108         siglongjmp, but only as a macro.
60109         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
60110         is obsolete.
60111         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
60112
60113         Tweak documentation to cover cygwin argz bugs.
60114         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
60115         argz bug fix; no code change needed since no cygwin releases
60116         occurred between the last fix and the bug being tested.
60117         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
60118         module and recently fixed cygwin bugs.
60119         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
60120         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
60121         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
60122         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
60123         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
60124         Likewise.
60125         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
60126         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
60127         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
60128         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
60129         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
60130         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
60131         Likewise.
60132
60133         Avoid gcc warning on cygwin.
60134         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
60135         !ACL_NO_TRIVIAL]: Avoid unused variable.
60136
60137 2008-06-05  Eric Blake  <ebb9@byu.net>
60138
60139         Be tolerant of UNKNOWN version in gnulib-tool test dir.
60140         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
60141         git-version-gen fails to come up with a version.
60142         Reported by Simon Josefsson.
60143
60144 2008-06-05  Jim Meyering  <meyering@redhat.com>
60145             Paul Eggert  <eggert@cs.ucla.edu>
60146
60147         utimens.c: work around a probable Linux kernel bug
60148         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
60149         appears to be a kernel bug that causes utimensat to return 280
60150         instead of 0, indicating success.
60151
60152 2008-06-04  Bruno Haible  <bruno@clisp.org>
60153
60154         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
60155         2008-06-01 commit.
60156
60157 2008-06-04  Bruno Haible  <bruno@clisp.org>
60158
60159         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
60160         * lib/file-has-acl.c (acl_access_nontrivial): New function.
60161         (file_has_acl): Use it. Save errno afterwards.
60162         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
60163
60164 2008-06-03  Bruno Haible  <bruno@clisp.org>
60165
60166         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
60167         draft code. Simplify #ifs.
60168         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
60169         Put Solaris code after POSIX-draft code. Fix comments regarding
60170         Solaris 10, HP-UX. Mention Cygwin.
60171         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
60172
60173 2008-06-03  Eric Blake  <ebb9@byu.net>
60174
60175         Provide fallback for older kernels.
60176         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
60177         Provide runtime fallback if kernel lacks support.
60178         Reported by Mike Frysinger.
60179
60180 2008-06-02  Bruno Haible  <bruno@clisp.org>
60181
60182         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
60183         it exists.
60184
60185 2008-06-02  Bruno Haible  <bruno@clisp.org>
60186
60187         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
60188         * lib/copy-acl.c (qcopy_acl): Update comment.
60189
60190 2008-06-02  Bruno Haible  <bruno@clisp.org>
60191
60192         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
60193         like ACL APIs.
60194
60195 2008-06-02  Bruno Haible  <bruno@clisp.org>
60196
60197         * tests/test-file-has-acl.sh: Use different code for Cygwin.
60198         * tests/test-set-mode-acl.sh: Likewise.
60199         * tests/test-copy-acl.sh: Likewise.
60200         * tests/test-copy-file.sh: Likewise.
60201
60202 2008-06-02  Bruno Haible  <bruno@clisp.org>
60203
60204         * tests/test-file-has-acl.sh: Remove unused code.
60205
60206 2008-06-01  Bruno Haible  <bruno@clisp.org>
60207
60208         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
60209         (copy_acl): Just a wrapper around qcopy_acl that emits the error
60210         messages.
60211         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
60212
60213 2008-06-01  Bruno Haible  <bruno@clisp.org>
60214
60215         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
60216         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
60217         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
60218         APIs.
60219         * modules/acl-tests (configure.ac): Remove tests now contained in
60220         m4/acl.m4.
60221
60222 2008-06-02  Jim Meyering  <meyering@redhat.com>
60223
60224         announce-gen: use a better key-server host name
60225         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
60226         it may be more consistently reliable.  Suggested by Werner Koch
60227         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
60228
60229 2008-06-01  Bruno Haible  <bruno@clisp.org>
60230
60231         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
60232         Reported by Voroskoi Andras <voroskoi@gmail.com>.
60233
60234 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
60235
60236         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
60237
60238 2008-06-01  Bruno Haible  <bruno@clisp.org>
60239
60240         New ACL tests.
60241         * tests/test-file-has-acl.sh: New file.
60242         * tests/test-file-has-acl.c: New file.
60243         * tests/test-set-mode-acl.sh: New file.
60244         * tests/test-set-mode-acl.c: New file.
60245         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
60246         * tests/test-copy-acl.c: New file.
60247         * modules/acl-tests: New file, based on modules/copy-file-tests.
60248         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
60249         (Depends-on): Add acl-tests.
60250         (configure.ac): Remove checks.
60251         (Makefile.am): Don't create test-sameacls program here any more.
60252
60253 2008-06-01  Bruno Haible  <bruno@clisp.org>
60254
60255         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
60256         * tests/test-sameacls.c: Include progname.h.
60257         (main): Invoke set_program_name. Portability fixes for MacOS X,
60258         Solaris, HP-UX.
60259
60260 2008-06-01  Bruno Haible  <bruno@clisp.org>
60261
60262         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
60263         function.
60264         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
60265
60266 2008-06-01  Bruno Haible  <bruno@clisp.org>
60267
60268         * modules/rpmatch (Depends-on): Add strdup.
60269
60270 2008-06-01  Bruno Haible  <bruno@clisp.org>
60271
60272         * lib/pipe.c: Include unistd-safer.h.
60273         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
60274         * modules/pipe (Depends-on): Add unistd-safer.
60275
60276 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60277
60278         * modules/autobuild (configure.ac): Call AB_INIT.
60279
60280 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60281
60282         * tests/test-getaddrinfo.c: Don't print debug messages by default.
60283         Suggested by Bruno Haible <bruno@clisp.org>.
60284
60285 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60286
60287         * tests/test-base64.c: Cast size_t to unsigned long when invoking
60288         printf.  Use %lu instead of %d.  Reported by Bruno Haible
60289         <bruno@clisp.org>.
60290
60291 2008-05-29  Eric Blake  <ebb9@byu.net>
60292
60293         Prefer new POSIX 200x interfaces over futimesat.
60294         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
60295         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
60296         when available.
60297         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
60298
60299 2008-05-28  Bruno Haible  <bruno@clisp.org>
60300
60301         * modules/stpcpy (License): Change to LGPLv2+.
60302         Requested by David Lutterkort <dlutter@redhat.com>.
60303
60304 2008-05-27  Bruno Haible  <bruno@clisp.org>
60305
60306         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
60307         current mingw.
60308         Reported by Jose E. Marchesi <jemarch@gnu.org>.
60309
60310 2008-05-27  Bruno Haible  <bruno@clisp.org>
60311
60312         * modules/iconv_open (Link): New section, from module 'iconv'.
60313         * modules/striconv (Link): Likewise.
60314         * modules/striconveh (Link): Likewise.
60315         * modules/xstriconv (Link): Likewise.
60316         * modules/unicodeio (Link): Likewise.
60317         * modules/propername (Link): Likewise.
60318         Reported by Jim Meyering.
60319
60320 2008-05-26  Jim Meyering  <meyering@redhat.com>
60321
60322         sha256: do not artificially restrict buffer length to be < 2^32
60323         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
60324         uint32_t to size_t.
60325         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
60326         to match.
60327
60328         avoid unaligned access errors, e.g., on sparc
60329         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
60330         direct access through a possibly-unaligned uint64* pointer.
60331         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
60332         direct access through a possibly-unaligned uint32* pointer.
60333         Prompted by this patch from Tom "spot" Callaway:
60334         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
60335
60336         sha512.c: fix typo in comment
60337         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
60338
60339 2008-05-25  Bruno Haible  <bruno@clisp.org>
60340
60341         * lib/set-mode-acl.c: Renamed from lib/acl.c.
60342         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
60343         (Makefile.am): Update lib_SOURCES.
60344
60345 2008-05-25  Bruno Haible  <bruno@clisp.org>
60346
60347         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
60348
60349 2008-05-25  Jim Meyering  <meyering@redhat.com>
60350
60351         useless-if-before-free: freed expr may have white-space differences
60352         * build-aux/useless-if-before-free: Recognize cases in which the
60353         freed expression differs from the tested one in embedded white
60354         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
60355         $1 was used, so we can't make any regexp shy.  Improved tests now
60356         detect this.
60357
60358         useless-if-before-free: accept white space in the expression.
60359         * build-aux/useless-if-before-free: For now, any white space
60360         in the expression must be identical in the free argument.
60361
60362         useless-if-before-free: efficiency tweak
60363         * build-aux/useless-if-before-free: Make the expression-matching
60364         regexp "shy".
60365         Make the *outer* regexp shy, not the expr-matching one.
60366
60367         update code-in-comment to accept cast of free arg
60368         * build-aux/useless-if-before-free: Update regexp.
60369
60370 2008-05-25  Bruno Haible  <bruno@clisp.org>
60371
60372         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
60373         * modules/copy-file-tests (Files, Makefile.am): Update.
60374         * tests/test-copy-file.c (func_test_copy): Update.
60375
60376 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
60377
60378         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
60379
60380 2008-05-23  Bruno Haible  <bruno@clisp.org>
60381
60382         Improve support for ACLs on OSF/1.
60383         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
60384         Remove fallback for unknown flavors of ACLs.
60385
60386 2008-05-22  Bruno Haible  <bruno@clisp.org>
60387
60388         Add support for ACLs on OSF/1.
60389         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
60390         replacements.
60391         (acl_free_text): New macro fallback.
60392         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
60393         acl_free.
60394         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
60395         acl_free_text function. Require AC_C_INLINE.
60396
60397 2008-05-22  Bruno Haible  <bruno@clisp.org>
60398
60399         Make copy_acl work on MacOS X 10.5.
60400         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
60401         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
60402         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
60403         If MODE_INSIDE_ACL, don't assume that every system has the same text
60404         representation for ACLs as FreeBSD.
60405         * lib/copy-acl.c (copy_acl): Add support for platforms with
60406         !MODE_INSIDE_ACL.
60407         * lib/file-has-acl.c (file_has_acl): Likewise.
60408         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
60409         FreeBSD, MacOS X, or IRIX, respectively.
60410
60411 2008-05-22  Bruno Haible  <bruno@clisp.org>
60412
60413         * lib/acl.h: Don't include <sys/acl.h>.
60414         (GETACLCNT): Move fallback to lib/acl-internal.h.
60415         * lib/acl-internal.h: Include <sys/acl.h> here.
60416         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
60417
60418 2008-05-22  Bruno Haible  <bruno@clisp.org>
60419
60420         Split off copy_acl function to separate file.
60421         * lib/copy-acl.c: New file, extracted from lib/acl.c.
60422         * lib/acl.c (copy_acl): Moved function to separate file.
60423         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
60424         * modules/acl (Files): Add lib/copy-acl.c.
60425         (Makefiles.am): Augment lib_SOURCES.
60426
60427 2008-05-22  Bruno Haible  <bruno@clisp.org>
60428
60429         * modules/copy-file-tests: New file.
60430         * tests/test-copy-file.sh: New file.
60431         * tests/test-copy-file.c: New file.
60432         * tests/test-copy-file-sameacls.c: New file.
60433
60434 2008-05-22  Eric Blake  <ebb9@byu.net>
60435
60436         Avoid gcc warning.
60437         * tests/test-memcmp.c (main): Pass NULL indirectly.
60438
60439 2008-05-21  Bruno Haible  <bruno@clisp.org>
60440
60441         Add reference doc about ACLs.
60442         * doc/acl-resources.txt: New file.
60443         * doc/acl-cygwin.txt: New file.
60444
60445 2008-05-21  Bruno Haible  <bruno@clisp.org>
60446
60447         Avoid one more warning from gcc.
60448         * lib/vasnprintf.c (IF_LINT): Update comments.
60449         (VASNPRINTF): Use it also for the 'prefix' array initializer.
60450
60451 2008-05-21  Jim Meyering  <meyering@redhat.com>
60452
60453         avoid a warning from gcc
60454         * lib/vasnprintf.c (IF_LINT): Define.
60455         (scale10_round_decimal_long_double):
60456         Use it to avoid a "may be used uninitialized" warning.
60457         (scale10_round_decimal_double): Likewise.
60458
60459 2008-05-21  Simon Josefsson  <simon@josefsson.org>
60460
60461         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
60462         declared.
60463
60464 2008-05-20  Bruno Haible  <bruno@clisp.org>
60465
60466         * tests/test-memcmp.c (main): Test also the sign of the result. Test
60467         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
60468
60469 2008-05-20  Simon Josefsson  <simon@josefsson.org>
60470
60471         * modules/memcmp-tests: New file.
60472         * tests/test-memcmp.c: New file.
60473
60474 2008-05-19  Bruno Haible  <bruno@clisp.org>
60475
60476         * modules/propername (Notice, configure.ac): Put quoted "..." into
60477         --keyword option.
60478         * lib/propername.h: Update comments accordingly.
60479         Reported by Eric Blake.
60480
60481 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
60482
60483         * modules/getpass-gnu (Depends-on): Add fseeko.
60484
60485 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60486
60487         * modules/base64-tests: New file.
60488
60489 2008-05-19  Bo Borgerson <gigabo@gmail.com>
60490
60491         * lib/base64.c (base64_decode_ctx): If a decode context structure
60492         was passed in use it to ignore newlines.  If a context structure
60493         was _not_ passed in, continue to treat newlines as garbage (this
60494         is the historical behavior).  Formerly base64_decode.
60495         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60496         takes a decode context structure.
60497         * lib/base64.h (base64_decode): Macro for four-argument calls.
60498         (base64_decode_alloc): Likewise.
60499         * lib/base64.c (base64_decode_ctx): If a decode context structure
60500         was passed in use it to ignore newlines.  If a context structure
60501         was _not_ passed in, continue to treat newlines as garbage (this
60502         is the historical behavior).  Formerly base64_decode.
60503         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60504         takes a decode context structure.
60505         * lib/base64.h (base64_decode): Macro for four-argument calls.
60506         (base64_decode_alloc): Likewise.
60507
60508 2008-05-19  Jim Meyering  <meyering@redhat.com>
60509
60510         avoid a warning from gcc
60511         * lib/trim.c (IF_LINT): Define.
60512         (trim2): Use it to avoid a "may be used uninitialized" warning.
60513
60514         Fix doc typo.
60515         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60516
60517 2008-05-19  Bruno Haible  <bruno@clisp.org>
60518
60519         * doc/glibc-functions/getpass.texi: Document limits of other
60520         implementations.
60521
60522 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60523             Bruno Haible <bruno@clisp.org>
60524
60525         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60526
60527 2008-05-18  Bruno Haible  <bruno@clisp.org>
60528
60529         * modules/propername: New file, from GNU gettext.
60530         * lib/propername.h: New file, from GNU gettext.
60531         * lib/propername.c: New file, from GNU gettext.
60532         * MODULES.html.sh (Internationalization functions): Add propername.
60533
60534 2008-05-16  Jim Meyering  <meyering@redhat.com>
60535             Bruno Haible  <bruno@clisp.org>
60536
60537         Avoid some warnings from "gcc -Wshadow".
60538         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60539
60540 2008-05-15  Eric Blake  <ebb9@byu.net>
60541
60542         Extend previous patch to cygwin 1.7.0.
60543         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60544         fast implementation in cygwin >= 1.7.0.
60545         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60546         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60547
60548 2008-05-15  Bruno Haible  <bruno@clisp.org>
60549
60550         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60551         implementation in glibc >= 2.9.
60552         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60554
60555 2008-05-15  Bruno Haible  <bruno@clisp.org>
60556
60557         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60558         (Unicode string functions): Add unilbrk/*.
60559         Reported by Karl Berry.
60560
60561 2008-05-15  Eric Blake  <ebb9@byu.net>
60562
60563         Fix violation of <stdbool.h> replacement in regex.
60564         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60565         * lib/regexec.c (re_search_internal): Likewise.
60566         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60567
60568 2008-05-15  Jim Meyering  <meyering@redhat.com>
60569
60570         avoid distracting test output when git or cvs is not found
60571         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60572         * tests/test-vc-list-files-git.sh: Likewise.
60573
60574 2008-05-15  Eric Blake  <ebb9@byu.net>
60575
60576         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60577         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60578         glibc version.
60579         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60580         * doc/posix-functions/strstr.texi (strstr): Likewise.
60581         * lib/str-two-way.h (MAX): Sychronize with glibc.
60582
60583 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60584
60585         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60586         opr.ctx_type.
60587         (calc_first): Initialize constraint field.
60588         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60589         Fix grammar.
60590         (duplicate_node): Merge constraint field for all node types.
60591         (calc_eclosure_iter): Look at constraint field for all node types.
60592         * lib/regex_internal.c (create_cd_newstate): Don't look at
60593         opr.ctx_type.
60594
60595 2008-05-14  Bruno Haible  <bruno@clisp.org>
60596
60597         Help GCC to do better code generation.
60598         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60599         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60600         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60601         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60602         Declare with attribute 'malloc' if supported.
60603
60604 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60605
60606         use "echo STR|wc -c" rather than unportable "expr length STR"
60607         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60608         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60609
60610 2008-05-14  Jim Meyering  <meyering@redhat.com>
60611
60612         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60613         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60614         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60615         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60616         via Collin Lasse.
60617
60618 2008-05-14  Eric Blake  <ebb9@byu.net>
60619
60620         Avoid quadratic growth in gl_LIBSOURCES.
60621         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60622         Suggested by Bruno Haible.
60623
60624         Test xmemdup0.
60625         * modules/xmemdup0-tests: New file.
60626         * tests/test-xmemdup0.c: Likewise.
60627
60628 2008-05-13  Eric Blake  <ebb9@byu.net>
60629
60630         Split xmemdup0 into its own module.
60631         * modules/xmemdup0: New file.
60632         * lib/xmemdup0.h: Likewise.
60633         * lib/xmemdup0.c: Likewise.
60634         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60635         * lib/xalloc.h (xmemdup0): Remove.
60636         * lib/xmalloc.c (xmemdup0): Likewise.
60637
60638 2008-05-13  Eric Blake  <ebb9@byu.net>
60639             Bruno Haible  <bruno@clisp.org>
60640
60641         Reduce number of forks required during autoconf.
60642         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60643         and gl_LIBSOURCES_DIR.
60644         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60645         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60646         m4_syscmd per file.
60647         <m4_foreach_w>: Move...
60648         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60649
60650 2008-05-13  Eric Blake  <ebb9@byu.net>
60651
60652         * gnulib-tool: Fix various comment typos.
60653
60654 2008-05-12  Bruno Haible  <bruno@clisp.org>
60655
60656         Tailor the linebreaking algorithm.
60657         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60658
60659 2008-05-12  Bruno Haible  <bruno@clisp.org>
60660
60661         Update to Unicode 5.0.0.
60662         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60663         LBP_JV, LBP_JT. Redistribute values.
60664         (unilbrk_table): Change size.
60665         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60666         Unicode TR#14 rev. 22.
60667         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60668         LBP_JV, LBP_JT. Redistribute values.
60669         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60670         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60671         Update.
60672         * lib/unilbrk/lbrkprop1.h: Regenerated.
60673         * lib/unilbrk/lbrkprop2.h: Regenerated.
60674         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60675         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60676         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60677         Likewise.
60678         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60679         Likewise.
60680         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60681         result.
60682         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60683         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60684         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60685         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60686         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60687         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60688
60689 2008-05-11  Bruno Haible  <bruno@clisp.org>
60690
60691         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60692
60693 2008-05-11  Bruno Haible  <bruno@clisp.org>
60694
60695         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60696         * modules/unilbrk/gen-lbrk: New file.
60697
60698 2008-05-11  Bruno Haible  <bruno@clisp.org>
60699
60700         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60701         * m4/sha512.m4 (gl_SHA512): Likewise.
60702
60703 2008-05-11  Jim Meyering  <meyering@redhat.com>
60704
60705         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60706         * modules/crypto/sha256: New file.
60707         * modules/crypto/sha512: Likewise.
60708         * lib/sha256.c: Likewise.
60709         * lib/sha256.h: Likewise.
60710         * lib/sha512.c: Likewise.
60711         * lib/sha512.h: Likewise.
60712         * lib/u64.h: Likewise.
60713         * m4/sha256.m4: Likewise.
60714         * m4/sha512.m4: Likewise.
60715         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60716
60717 2008-05-10  Bruno Haible  <bruno@clisp.org>
60718
60719         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60720         (Input/Output <stdio.h>): Add xprintf.
60721         (Signal handling <signal.h>): Add strsignal.
60722         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60723         (Core language properties): Add func.
60724         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60725         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60726         strings.
60727         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60728         (Input/output): New section.
60729         (File system functions): Add openat-die, stat-macros.
60730         (Networking functions): Add sockets.
60731         (Unicode string functions): Add unictype/*.
60732         (Support for building libraries and executables): Add gperf.
60733         (Support for building documentation): Add agpl-3.0.
60734         (Misc): Add nocrash.
60735
60736 2008-05-10  Bruno Haible  <bruno@clisp.org>
60737
60738         * modules/unictype/gen-ctype: New file.
60739
60740 2008-05-10  Jim Meyering  <meyering@redhat.com>
60741
60742         Make chdir-safer.c more efficient on a system with no symlinks.
60743         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60744         also if ELOOP is zero.  Suggested by Bruno Haible.
60745
60746         Make chdir-safer.c slightly safer.
60747         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60748         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60749
60750         Avoid compile failure on systems without ELOOP (like mingw).
60751         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60752         Reported by Bruno Haible.
60753
60754 2008-05-10  Bruno Haible  <bruno@clisp.org>
60755
60756         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60757         (is_utf8_encoding): Use a case-insensitive comparison.
60758         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60759         streq.
60760
60761 2008-05-10  Bruno Haible  <bruno@clisp.org>
60762
60763         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60764         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60765         * lib/unilbrk/ulc-common.h (iconv_string_length,
60766         iconv_string_keeping_offsets): Remove declarations.
60767         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60768         Don't include <iconv.h>, streq.h, xsize.h.
60769         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60770         conversion.
60771         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60772         <iconv.h>, streq.h, xsize.h.
60773         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60774         conversion.
60775         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60776         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60777         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60778         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60779
60780 2008-05-10  Bruno Haible  <bruno@clisp.org>
60781
60782         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60783         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60784
60785         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60786         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60787
60788         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60789         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60790
60791         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60792         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60793
60794         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60795         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60796
60797         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60798         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60799
60800         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60801         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60802
60803         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60804         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60805
60806 2008-05-10  Bruno Haible  <bruno@clisp.org>
60807
60808         Split up 'linebreak' module.
60809         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60810         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60811         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60812         modifications.
60813         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60814         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60815         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60816         lib/linebreak.c.
60817         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60818         lib/linebreak.c.
60819         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60820         lib/linebreak.c.
60821         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60822         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60823         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60824         lib/linebreak.c.
60825         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60826         lib/linebreak.c.
60827         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60828         lib/linebreak.c.
60829         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60830         lib/linebreak.c.
60831         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60832         lib/linebreak.c.
60833         * modules/unilbrk/base: New file.
60834         * modules/unilbrk/tables: New file.
60835         * modules/unilbrk/u8-possible-linebreaks: New file.
60836         * modules/unilbrk/u16-possible-linebreaks: New file.
60837         * modules/unilbrk/u32-possible-linebreaks: New file.
60838         * modules/unilbrk/ulc-common: New file.
60839         * modules/unilbrk/ulc-possible-linebreaks: New file.
60840         * modules/unilbrk/u8-width-linebreaks: New file.
60841         * modules/unilbrk/u16-width-linebreaks: New file.
60842         * modules/unilbrk/u32-width-linebreaks: New file.
60843         * modules/unilbrk/ulc-width-linebreaks: New file.
60844         * lib/linebreak.h: Remove file.
60845         * lib/linebreak.c: Remove file.
60846         * m4/linebreak.m4: Remove file.
60847         * modules/linebreak: Remove file.
60848         * NEWS: Mention the changes.
60849
60850 2008-05-09  Eric Blake  <ebb9@byu.net>
60851
60852         Add xmemdup0.
60853         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60854         implementation.
60855         * lib/xmalloc.c (xmemdup0): New C implementation.
60856
60857 2008-05-08  Bruno Haible  <bruno@clisp.org>
60858
60859         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60860
60861 2008-05-07  Eric Blake  <ebb9@byu.net>
60862
60863         Support cross-compilation of <wctype.h>.
60864         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60865         AC_CACHE_CHECK.
60866
60867 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60868
60869         * build-aux/vc-list-files: Add support for bzr.
60870
60871 2008-05-03  Jim Meyering  <meyering@redhat.com>
60872
60873         avoid failed assertion with tight malloc
60874         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60875
60876 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60877
60878         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60879         are needed from arpa/inet.h.
60880         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60881         Reported by Bruno Haible.
60882
60883 2008-05-02  Jim Meyering  <meyering@redhat.com>
60884
60885         avoid compilation error on FreeBSD 6
60886         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60887
60888 2008-05-01  Jim Meyering  <meyering@redhat.com>
60889
60890         useless-if-before-free: correct --help's exit status description
60891         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60892         for one or more matches, etc.  Reported by Bruno Haible.
60893
60894         vc-list-files: make the stand-alone gnulib test work
60895         * modules/vc-list-files-tests (configure.ac):
60896         Define and AC_SUBST abs_aux_dir.
60897         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60898         $(abs_top_srcdir) to each script and having each of them
60899         duplicate the work of setting PATH, set PATH here, using
60900         the new variable, abs_aux_dir instead.
60901         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60902         * tests/test-vc-list-files-git.sh: Likewise.
60903         Reported by Bruno Haible.
60904
60905 2008-05-01  Bruno Haible  <bruno@clisp.org>
60906
60907         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60908         reallocation. Rename 'done' to 'found_delimiter'.
60909
60910 2008-05-01  Jim Meyering  <meyering@redhat.com>
60911
60912         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60913         * build-aux/vc-list-files: Use `...`, not $(...).
60914
60915 2008-04-30  Jim Meyering  <meyering@redhat.com>
60916
60917         add tests for vc-list-files
60918         * modules/vc-list-files-tests: New module.
60919         * tests/test-vc-list-files-cvs.sh: New file.
60920         * tests/test-vc-list-files-git.sh: New file.
60921
60922         avoid a warning from gcc
60923         * lib/getndelim2.c (IF_LINT): Define.
60924         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60925
60926         vc-list-files: work properly with build-aux/cvsu, too
60927         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60928         to all cvs-based clauses.
60929
60930         vc-list-files: work properly in the CVS+awk case, too
60931         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60932
60933         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60934         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60935         take more than one file argument, so .  Add quotes, just in case $dir
60936         ever contains a shell meta-character.  Prompted by Soren Hansen in
60937         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60938
60939 2008-04-29  Eric Blake  <ebb9@byu.net>
60940
60941         Optimize getndelim2 to use block operations when possible.
60942         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60943         freadseek, and memchr2.
60944         * lib/getndelim2.c (getndelim2): Use them for block reads.
60945
60946 2008-04-29  Bruno Haible  <bruno@clisp.org>
60947
60948         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60949         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60950         * modules/inet_ntop (Depends-on): Add extensions.
60951         * modules/inet_pton (Depends-on): Likewise.
60952         Reported by Simon Josefsson.
60953
60954 2008-04-29  Jim Meyering  <meyering@redhat.com>
60955
60956         When the is more than one match in a block, match all of them.
60957         * build-aux/useless-if-before-free: Iterate through each block
60958         until there are no more matches.
60959
60960         Fix broken useless-if-before-free script.
60961         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60962         the expression to match cast of argument to free-like function.
60963
60964 2008-04-29  Eric Blake  <ebb9@byu.net>
60965
60966         Use new header.
60967         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60968
60969 2008-04-29  Jim Meyering  <meyering@redhat.com>
60970
60971         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60972         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60973         by gnulib to exist and to declare e.g., inet_ntop.
60974         Don't include "inet_ntop.h", now removed.
60975
60976         * m4/arpa_inet_h.m4: Remove trailing blanks.
60977
60978 2008-04-29  Eric Blake  <ebb9@byu.net>
60979
60980         Silence valgrind on safe reads beyond potential array bounds.
60981         * lib/rawmemchr.valgrind: New file.
60982         * lib/strchrnul.valgrind: Likewise.
60983         * modules/rawmemchr (Files): Distribute new file.
60984         * modules/strchrnul (Files): Likewise.
60985         Suggested by Bruno Haible.
60986
60987 2008-04-29  Bruno Haible  <bruno@clisp.org>
60988
60989         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60990         (inet_ntop, inet_pton): Change portability warning's wording.
60991         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60992         Invoke gl_CHECK_NEXT_HEADERS.
60993         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60994         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60995         set ARPA_INET_H.
60996         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60997         * modules/arpa_inet (Description): No longer only for systems that
60998         lack it.
60999         (Depends-on): Add include_next.
61000         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
61001         HAVE_ARPA_INET_H.
61002
61003 2008-04-29  Jim Meyering  <meyering@redhat.com>
61004
61005         * modules/mkdir (License): Re-license as LGPLv2+.
61006
61007 2008-04-29  Bruno Haible  <bruno@clisp.org>
61008
61009         * modules/rawmemchr (Maintainer): Set to Eric.
61010         * modules/strchrnul (Maintainer): Likewise.
61011
61012 2008-04-29  Simon Josefsson  <simon@josefsson.org>
61013
61014         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
61015         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
61016
61017         * modules/arpa_inet (arpa/inet.h): Use them.
61018
61019 2008-04-28  Eric Blake  <ebb9@byu.net>
61020
61021         Test getndelim2.
61022         * modules/getndelim2-tests: New file.
61023         * tests/test-getndelim2.c: Likewise.
61024         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
61025         stream.
61026         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
61027
61028         * MODULES.html.sh: Document new module.
61029
61030 2008-04-20  Bruno Haible  <bruno@clisp.org>
61031
61032         * lib/c-stack.c (die): Use raise.
61033         * modules/c-stack (Depends-on): Add raise.
61034
61035 2008-04-28  Bruno Haible  <bruno@clisp.org>
61036
61037         Expect rpmatch to be declared.
61038         * lib/yesno.c (rpmatch): Remove declaration.
61039
61040         Declare rpmatch.
61041         * lib/stdlib.in.h (rpmatch): New declaration.
61042         * lib/rpmatch.c: Include <stdlib.h> first.
61043         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
61044         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
61045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
61046         HAVE_RPMATCH.
61047         * modules/rpmatch (Depends-on): Add stdlib, extensions.
61048         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61049         (Include): Set to <stdlib.h>.
61050         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
61051         HAVE_RPMATCH.
61052         * NEWS: Document the change.
61053
61054 2008-04-28  Bruno Haible  <bruno@clisp.org>
61055
61056         Change rpmatch to use nl_langinfo when appropriate.
61057         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
61058         (N_): New macro.
61059         (localized_pattern): New function/macro.
61060         (try): Remove match, nomatch arguments. Copy the pattern into safe
61061         memory before caching it.
61062         (rpmatch): Use localized_pattern. Add translator comments.
61063         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
61064         Suggested by Eric Blake.
61065         * modules/rpmatch (Depends-on): Add stdbool.
61066
61067 2008-04-28  Eric Blake  <ebb9@byu.net>
61068
61069         Add rawmemchr module, matching glibc.
61070         * modules/string (Makefile.am): New indicator.
61071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
61072         * lib/string.in.h (rawmemchr): Declare when appropriate.
61073         * modules/rawmemchr: New file.
61074         * m4/rawmemchr.m4: Likewise.
61075         * lib/rawmemchr.c: Likewise.
61076         * modules/rawmemchr-tests: Likewise.
61077         * tests/test-rawmemchr.c: Likewise.
61078         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
61079         module.
61080         * modules/strchrnul (Depends-on): Add rawmemchr.
61081         * lib/strchrnul.c (strchrnul): Optimize a corner case.
61082
61083         Whitespace cleanup.
61084         * tests/test-strchrnul.c: Reindent.
61085         * lib/strchrnul.c: Likewise.
61086
61087         Optimize and test strchrnul.
61088         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
61089         * modules/strchrnul-tests: New file.
61090         * tests/test-strchrnul.c: Likewise.
61091
61092         Remove intprops dependency.
61093         * modules/memchr (Depends-on): Remove intprops.
61094         * modules/memrchr (Depends-on): Likewise.
61095         * modules/memchr2 (Depends-on): Likewise.
61096         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
61097         * lib/memrchr.c (__memrchr): Likewise.
61098         * lib/memrchr2.c (memchr2): Likewise.
61099         Reported by Simon Josefsson.
61100
61101 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61102
61103         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
61104         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61105
61106 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61107
61108         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
61109
61110         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
61111
61112         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
61113
61114         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
61115         declarations.
61116         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
61117
61118         * m4/inet_pton.m4: Don't check for header files.
61119
61120         * m4/inet_ntop.m4: Don't check for header files.
61121
61122 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61123
61124         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
61125         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
61126         trigger for cygwin).
61127         Reported by Bruno Haible  <bruno@clisp.org>.
61128
61129 2008-04-28  Bruno Haible  <bruno@clisp.org>
61130
61131         * doc/posix-functions/strdup.texi: Mention mingw problem.
61132
61133 2008-04-27  Bruno Haible  <bruno@clisp.org>
61134
61135         * modules/stat-time-tests (Depends-on): Add sleep.
61136         * tests/test-stat-time.c (force_unlink): New function.
61137         (cleanup): Use it.
61138         (test_mtime): Remove the ctime related tests.
61139         (test_ctime): New function, containing the ctime related tests.
61140         (main): Call test_ctime, except on native Windows platforms.
61141
61142 2008-04-27  Bruno Haible  <bruno@clisp.org>
61143
61144         * lib/rpmatch.c (rpmatch): Add some comments.
61145         Reported by James Youngman <jay@gnu.org>.
61146
61147 2008-04-27  Bruno Haible  <bruno@clisp.org>
61148
61149         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
61150         quiet NaNs.
61151
61152 2008-04-27  Bruno Haible  <bruno@clisp.org>
61153
61154         Make test-yesno.sh work on mingw.
61155         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
61156         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
61157         (main): Set stdin to binary mode.
61158         * modules/yesno-tests (Depends-on): Add binary-io.
61159
61160 2008-04-27  Bruno Haible  <bruno@clisp.org>
61161
61162         Fix 'isfinite' on x86, x86_64, ia64 platforms.
61163         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
61164         argument that lie outside the IEEE 854 domain.
61165         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
61166         (gl_ISFINITE): Use it.
61167         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
61168
61169 2008-04-27  Bruno Haible  <bruno@clisp.org>
61170
61171         Allow local renaming in config.h.
61172         * lib/memrchr.c (memrchr): Don't undefine outside libc.
61173
61174 2008-04-27  Bruno Haible  <bruno@clisp.org>
61175
61176         * lib/memchr.c (__memchr): Change type of 'i'.
61177         * lib/memchr2.c (memchr2): Likewise.
61178
61179 2008-04-26  Eric Blake  <ebb9@byu.net>
61180         and Bruno Haible  <bruno@clisp.org>
61181
61182         Optimize and test memrchr.
61183         * modules/memrchr (Depends-on): Add intprops.
61184         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
61185         * modules/memrchr-tests: New file.
61186         * tests/test-memrchr.c: New file.
61187
61188 2008-04-26  Bruno Haible  <bruno@clisp.org>
61189
61190         Add tentative support for DragonFly BSD.
61191         * lib/stdio-impl.h: Add macros for DragonFly BSD.
61192         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
61193         fp.
61194         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61195         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
61196         * lib/fpurge.c (fpurge): Likewise.
61197         * lib/freadable.c (freaadable): Likewise.
61198         * lib/freadahead.c (freadahead): Likewise.
61199         * lib/freading.c (freading): Likewise.
61200         * lib/freadptr.c (freadptr): Likewise.
61201         * lib/freadseek.c (freadptrinc): Likewise.
61202         * lib/fseeko.c (fseeko): Likewise.
61203         * lib/fseterr.c (fseterr): Likewise.
61204         * lib/fwritable.c (fwritable): Likewise.
61205         * lib/fwriting.c (fwriting): Likewise.
61206
61207 2008-04-26  Bruno Haible  <bruno@clisp.org>
61208
61209         * lib/stdio-impl.h: New file.
61210         * lib/fbufmode.c: Include stdio-impl.h.
61211         (fbufmode): Use fp_, remove redundant #defines.
61212         * lib/fflush.c: Include stdio-impl.h.
61213         (clear_ungetc_buffer): Remove redundant #defines.
61214         * lib/fpurge.c: Include stdio-impl.h.
61215         (fpurge): Remove redundant #defines.
61216         * lib/freadable.c: Include stdio-impl.h.
61217         (freadable): Remove redundant #defines.
61218         * lib/freadahead.c: Include stdio-impl.h.
61219         (freadahead): Remove redundant #defines.
61220         * lib/freading.c: Include stdio-impl.h.
61221         (freading): Remove redundant #defines.
61222         * lib/freadptr.c: Include stdio-impl.h.
61223         (freadptr): Remove redundant #defines.
61224         * lib/freadseek.c: Include stdio-impl.h.
61225         (freadptrinc): Remove redundant #defines.
61226         * lib/fseeko.c: Include stdio-impl.h.
61227         (rpl_fseeko): Remove redundant #defines.
61228         * lib/fseterr.c: Include stdio-impl.h.
61229         (fseterr): Remove redundant #defines.
61230         * lib/fwritable.c: Include stdio-impl.h.
61231         (fwritable: Remove redundant #defines.
61232         * lib/fwriting.c: Include stdio-impl.h.
61233         (fwriting): Remove redundant #defines.
61234         * modules/fbufmode (Files): Add lib/stdio-impl.h.
61235         * modules/fflush (Files): Likewise.
61236         * modules/fpurge (Files): Likewise.
61237         * modules/freadable (Files): Likewise.
61238         * modules/freadahead (Files): Likewise.
61239         * modules/freading (Files): Likewise.
61240         * modules/freadptr (Files): Likewise.
61241         * modules/freadseek (Files): Likewise.
61242         * modules/fseeko (Files): Likewise.
61243         * modules/fseterr (Files): Likewise.
61244         * modules/fwritable (Files): Likewise.
61245         * modules/fwriting (Files): Likewise.
61246
61247 2008-04-26  Bruno Haible  <bruno@clisp.org>
61248
61249         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61250         restore_seek_optimization, update_fpos_cache): New functions, extracted
61251         from rpl_fflush.
61252         (rpl_fflush): Use them.
61253         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
61254         (gl_REPLACE_FFLUSH): Use it.
61255
61256 2008-04-26  Bruno Haible  <bruno@clisp.org>
61257
61258         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
61259         on Solaris.
61260         * tests/test-xstrtoimax.sh: Likewise.
61261         * tests/test-xstrtoumax.sh: Likewise.
61262         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61263
61264 2008-04-26  Bruno Haible  <bruno@clisp.org>
61265
61266         * modules/memchr-tests: New file.
61267         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
61268
61269 2008-04-26  Eric Blake  <ebb9@byu.net>
61270             Bruno Haible  <bruno@clisp.org>
61271
61272         * lib/memchr.c: Include intprops.h.
61273         (__memchr): Optimize parallel detection of matching bytes. Rename local
61274         variables. Add explanatory comments.
61275
61276 2008-04-26  Bruno Haible  <bruno@clisp.org>
61277
61278         Fix module 'memchr', broken since 2000-10-28.
61279         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
61280
61281 2008-04-26  Bruno Haible  <bruno@clisp.org>
61282
61283         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
61284         comments.
61285
61286 2008-04-25  Eric Blake  <ebb9@byu.net>
61287
61288         Use native fstatat on cygwin 1.7.0.
61289         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
61290         first.
61291
61292 2008-04-23  Eric Blake  <ebb9@byu.net>
61293
61294         Improve memchr2 performance.
61295         * lib/memchr2.c (memchr2): Further optimize parallel detection of
61296         NUL bytes.
61297         * modules/memchr2 (Depends-on): Use intprops.h.
61298
61299 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61300
61301         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
61302         an inline function instead of a CPP macro.  Patch by Ben Pfaff
61303         <blp@cs.stanford.edu>.
61304
61305 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61306
61307         * lib/arpa_inet.in.h: New file.
61308
61309         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
61310         (Makefile.am): Sed in substitute header file.
61311
61312         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
61313         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
61314
61315         * modules/inet_ntop (configure.ac): Use
61316         gl_ARPA_INET_MODULE_INDICATOR.
61317
61318         * modules/inet_pton (configure.ac): Use
61319         gl_ARPA_INET_MODULE_INDICATOR.
61320
61321 2008-04-22  Jim Meyering  <meyering@redhat.com>
61322
61323         * modules/verify (License): Re-license as LGPLv2+.
61324
61325 2008-04-22  Simon Josefsson  <simon@josefsson.org>
61326
61327         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
61328         parameter to void* as per POSIX standard (MinGW uses char*).
61329
61330 2008-04-21  Bruno Haible  <bruno@clisp.org>
61331
61332         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61333         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61334         Define to replacements if REPLACE_ISWCNTRL is 1.
61335         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
61336         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
61337         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
61338         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
61339         what it fixes.
61340         * doc/posix-functions/iswalpha.texi: Likewise.
61341         * doc/posix-functions/iswblank.texi: Likewise.
61342         * doc/posix-functions/iswcntrl.texi: Likewise.
61343         * doc/posix-functions/iswdigit.texi: Likewise.
61344         * doc/posix-functions/iswgraph.texi: Likewise.
61345         * doc/posix-functions/iswlower.texi: Likewise.
61346         * doc/posix-functions/iswprint.texi: Likewise.
61347         * doc/posix-functions/iswpunct.texi: Likewise.
61348         * doc/posix-functions/iswspace.texi: Likewise.
61349         * doc/posix-functions/iswupper.texi: Likewise.
61350         * doc/posix-functions/iswxdigit.texi: Likewise.
61351         Reported by Alain Guibert.
61352
61353 2008-04-21  Bruno Haible  <bruno@clisp.org>
61354
61355         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
61356         Patch by Alain Guibert.
61357
61358 2008-04-21  Bruno Haible  <bruno@clisp.org>
61359
61360         Fix test failures on mingw.
61361         * tests/test-xstrtol.c (print_no_progname): New function.
61362         (main): Install it in error_print_progname hook.
61363         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
61364         * tests/test-xstrtoimax.sh: Likewise.
61365         * tests/test-xstrtoumax.sh: Likewise.
61366
61367 2008-04-21  Bruno Haible  <bruno@clisp.org>
61368
61369         Fix test failure on mingw.
61370         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
61371
61372 2008-04-21  Bruno Haible  <bruno@clisp.org>
61373
61374         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
61375         Actually assign a value.
61376
61377 2008-04-20  Bruno Haible  <bruno@clisp.org>
61378
61379         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
61380         take 2.
61381         * lib/canonicalize.c (canonicalize_file_name): Elide if the
61382         'canonicalize-lgpl' module is also used.
61383         * lib/canonicalize-lgpl.c: Undo last change.
61384         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
61385
61386 2008-04-20  Bruno Haible  <bruno@clisp.org>
61387
61388         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
61389         config.h. Provide _mkdir based fallback for mingw.
61390         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
61391         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
61392         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
61393         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
61394         rather than defining mkdir in config.h.
61395         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
61396         (gl_SYS_STAT_H_DEFAULTS): New macro.
61397         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
61398         HAVE_IO_H any more.
61399         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
61400         HAVE_DECL_MKDIR and HAVE_IO_H.
61401
61402 2008-04-20  Bruno Haible  <bruno@clisp.org>
61403
61404         * lib/isapipe.c: Port to native Windows platforms.
61405
61406 2008-04-20  Bruno Haible  <bruno@clisp.org>
61407
61408         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
61409
61410 2008-04-21  Eric Blake  <ebb9@byu.net>
61411
61412         Work around preprocessors that don't handle UINTMAX_MAX.
61413         * lib/memchr2.c (memchr2): Avoid embedded #if.
61414         Reported by Alain Guibert, fix suggested by Bruno Haible.
61415
61416 2008-04-21  Simon Josefsson  <simon@josefsson.org>
61417
61418         * doc/posix-functions/strftime.texi (strftime): Explain better
61419         Windows incompatibility.  Suggested by Micah Cowan
61420         <micah@cowan.name>.
61421
61422 2008-04-20  Bruno Haible  <bruno@clisp.org>
61423
61424         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
61425         unistr/u8-mblen.
61426
61427 2008-04-20  Bruno Haible  <bruno@clisp.org>
61428
61429         Fix test failure on platforms with non-GNU iconv.
61430         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
61431         (U_TO_U8): Use it, rather than u16_to_u8.
61432         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
61433         units at the end of the input string.
61434         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
61435
61436 2008-04-20  Bruno Haible  <bruno@clisp.org>
61437
61438         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
61439         when the resulting length is 0.
61440         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
61441
61442 2008-04-20  Bruno Haible  <bruno@clisp.org>
61443
61444         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
61445         works.
61446         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
61447
61448 2008-04-20  Bruno Haible  <bruno@clisp.org>
61449
61450         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
61451         * modules/tsearch-tests (configure.ac): Test for initstate function.
61452
61453 2008-04-20  Bruno Haible  <bruno@clisp.org>
61454
61455         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
61456         for nlink_t if missing.
61457         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
61458
61459 2008-04-19  Bruno Haible  <bruno@clisp.org>
61460
61461         Work around snprintf bug on Linux libc5.
61462         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
61463         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61464         gl_SNPRINTF_SIZE1.
61465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61466         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
61467         that test failed.
61468         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
61469         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
61470         * modules/snprintf (Files): Add m4/printf.m4.
61471         * modules/vsnprintf (Files): Likewise.
61472         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
61473         * doc/posix-functions/vsnprintf.texi: Likewise.
61474
61475 2008-04-19  Bruno Haible  <bruno@clisp.org>
61476
61477         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
61478         from 0.0058 to less than 10^-7.
61479
61480 2008-04-19  Bruno Haible  <bruno@clisp.org>
61481
61482         Fix rounding when a precision is given.
61483         * lib/vasnprintf.c (is_borderline): New function.
61484         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
61485         9...9x.
61486         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
61487         %e, %g.
61488         * tests/test-vasprintf-posix.c (test_function): Likewise.
61489         * tests/test-snprintf-posix.h (test_function): Likewise.
61490         * tests/test-sprintf-posix.h (test_function): Likewise.
61491         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
61492         * tests/test-printf-posix.h (test_function): Likewise.
61493         * tests/test-printf-posix.output: Update.
61494         Reported by John Darrington <john@darrington.wattle.id.au> via
61495         Ben Pfaff <blp@cs.stanford.edu>.
61496
61497 2008-04-18  Simon Josefsson  <simon@josefsson.org>
61498
61499         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
61500         Suggested by Bruno Haible <bruno@clisp.org>.
61501
61502 2008-04-17  Bruno Haible  <bruno@clisp.org>
61503
61504         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
61505         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61506         implementation.
61507         Patch by Bruce Merry <bmerry@gmail.com>.
61508
61509 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61510
61511         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61512         doesn't work under Windows.
61513
61514 2008-04-16  Bruno Haible  <bruno@clisp.org>
61515
61516         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61517         New macros.
61518         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61519         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61520         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61521         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61522         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61523         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61524         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61525         macros.
61526         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61527         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61528         Northern Sotho, Uighur.
61529
61530 2008-04-16  Bruno Haible  <bruno@clisp.org>
61531
61532         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61533         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61534         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61535         Reported by Daniel Bergström <daniel@octocode.com>.
61536
61537 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61538             Bruno Haible  <bruno@clisp.org>
61539
61540         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61541         function.
61542         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61543         New functions, mostly extracted from gl_locale_name_default.
61544         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61545
61546 2008-04-16  Eric Blake  <ebb9@byu.net>
61547
61548         Adjust strtod detection to catch glibc 2.7 bug.
61549         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61550         Reported by John Gatewood Ham.
61551
61552 2008-04-16  Bruno Haible  <bruno@clisp.org>
61553
61554         Add tentative support for Linux libc5.
61555         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61556         * lib/fpurge.c (fpurge): Likewise.
61557         * lib/freadable.c (freadable): Likewise.
61558         * lib/freadahead.c (freadahead): Likewise.
61559         * lib/freading.c (freading): Likewise.
61560         * lib/freadptr.c (freadptr): Likewise.
61561         * lib/freadseek.c (freadptrinc): Likewise.
61562         * lib/fseeko.c (rpl_fseeko): Likewise.
61563         * lib/fseterr.c (fseterr): Likewise.
61564         * lib/fwritable.c (fwritable): Likewise.
61565         * lib/fwriting.c (fwriting): Likewise.
61566         Reported by Alain Guibert <alguibert+bts@free.fr>.
61567
61568 2008-04-15  Bruno Haible  <bruno@clisp.org>
61569
61570         * modules/mathl (configure.ac): Define module indicator.
61571
61572 2008-04-15  Bruno Haible  <bruno@clisp.org>
61573
61574         * lib/logl.c (logl): Remove unused variables.
61575
61576 2008-04-15  Bruno Haible  <bruno@clisp.org>
61577
61578         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61579         fails.
61580
61581 2008-04-15  Bruno Haible  <bruno@clisp.org>
61582
61583         * lib/trim.c (trim2): Fix argument of isspace() macro.
61584
61585 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61586
61587         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61588         to 0.
61589         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61590
61591 2008-04-14  Bruno Haible  <bruno@clisp.org>
61592
61593         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61594         AC_LANG_PROGRAM argument.
61595         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61596         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61597         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61598         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61599         * m4/math_h.m4 (gl_MATH_H): Likewise.
61600         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61601         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61602         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61603         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61604         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61605         * m4/regex.m4 (gl_REGEX): Likewise.
61606         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61607         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61608         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61609         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61610         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61611         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61612         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61613         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61614
61615 2008-04-14  Jim Meyering  <meyering@redhat.com>
61616
61617         test-strtod: fix typos: s/abs/fabs/
61618         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61619
61620 2008-04-13  Bruno Haible  <bruno@clisp.org>
61621
61622         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61623         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61624         module is also used and while not building the reloc-wrapper.
61625
61626 2008-04-13  Bruno Haible  <bruno@clisp.org>
61627
61628         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61629
61630 2008-04-13  Bruno Haible  <bruno@clisp.org>
61631
61632         Fix AIX compilation failure introduced on 2008-04-02.
61633         * tests/test-frexp.c (exp): Undefine before redefining.
61634         * tests/test-frexpl.c (exp): Likewise.
61635
61636 2008-04-13  Bruno Haible  <bruno@clisp.org>
61637
61638         Work around a HP-UX stdio bug.
61639         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61640         * tests/test-ftello.c (main): Likewise.
61641         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61642         * doc/posix-functions/ftello.texi: Likewise.
61643
61644 2008-04-13  Bruno Haible  <bruno@clisp.org>
61645
61646         Make test-signbit pass on HP-UX/hppa.
61647         * tests/test-signbit.c (minus_zerol): New variable.
61648         (test_signbitl): Use it.
61649
61650 2008-04-13  Bruno Haible  <bruno@clisp.org>
61651
61652         Make truncl work on OSF/1 4.0.
61653         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61654         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61655         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61657         HAVE_DECL_TRUNCL.
61658         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61659         HAVE_DECL_TRUNCL.
61660         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61661
61662 2008-04-13  Bruno Haible  <bruno@clisp.org>
61663
61664         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61665
61666 2008-04-13  Bruno Haible  <bruno@clisp.org>
61667
61668         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61669         expression, so as to avoid HP-UX 11 cc compiler bug.
61670
61671 2008-04-13  Bruno Haible  <bruno@clisp.org>
61672
61673         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61674
61675 2008-04-13  Bruno Haible  <bruno@clisp.org>
61676
61677         * lib/git-merge-changelog.c: Remove empty declaration outside of
61678         functions.
61679
61680 2008-04-13  Bruno Haible  <bruno@clisp.org>
61681
61682         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61683
61684 2008-04-13  Bruno Haible  <bruno@clisp.org>
61685
61686         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61687         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61688         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61689         also if it exists but lacks definitions of the SHUT_* macros.
61690         * modules/sys_socket (Description): Update.
61691         Reported by Elbert Pol <e.pol@chello.nl>.
61692
61693 2008-04-13  Bruno Haible  <bruno@clisp.org>
61694
61695         * lib/localcharset.c (OS2): Don't redefine if already defined.
61696         Reported by Elbert Pol <e.pol@chello.nl>.
61697
61698 2008-04-13  Bruno Haible  <bruno@clisp.org>
61699
61700         * lib/binary-io.h [__EMX__]: Include <io.h>.
61701         Reported by Elbert Pol <e.pol@chello.nl>.
61702
61703 2008-04-12  Bruno Haible  <bruno@clisp.org>
61704
61705         * lib/fpucw.h: Enable the definitions also for x86_64.
61706         Needed for NetBSD/x86_64.
61707         Reported by Thomas Klausner <tk@giga.or.at>.
61708
61709 2008-04-12  Bruno Haible  <bruno@clisp.org>
61710
61711         * tests/test-strtod.c: Include isnand.h.
61712         (main): Use isnand instead of isnan.
61713         Reported by Jim Meyering.
61714
61715 2008-04-12  Bruno Haible  <bruno@clisp.org>
61716
61717         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61718         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61719
61720 2008-04-12  Jim Meyering  <meyering@redhat.com>
61721
61722         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61723
61724 2008-04-12  Bruno Haible  <bruno@clisp.org>
61725
61726         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61727         Reported by Elbert Pol <e.pol@chello.nl>.
61728
61729 2008-04-12  Eric Blake  <ebb9@byu.net>
61730
61731         Work around Solaris 10 math.h bug.
61732         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61733         (gl_MATH_H_DEFAULTS): Set up default.
61734         * modules/math (Makefile.am): Replace new indicators.
61735         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61736         * tests/test-math.c (main): Test this.
61737         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61738         * doc/posix-headers/math.texi (math.h): Mention bug.
61739         Reported by Nelson H. F. Beebe and Jim Meyering.
61740
61741 2008-04-11  Bruno Haible  <bruno@clisp.org>
61742
61743         Adapt to future versions of Apple GCC.
61744         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61745         Reported by Peter O'Gorman <peter@pogma.com>.
61746
61747 2008-04-11  Bruno Haible  <bruno@clisp.org>
61748
61749         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61750
61751 2008-04-11  Bruno Haible  <bruno@clisp.org>
61752
61753         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61754
61755         * modules/getaddrinfo-tests (Makefile.am): Define
61756         test_getaddrinfo_LDADD.
61757
61758 2008-04-11  Bruno Haible  <bruno@clisp.org>
61759
61760         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61761         (init): Fix syntax error.
61762         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61763         is declared.
61764
61765 2008-04-11  Bruno Haible  <bruno@clisp.org>
61766
61767         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61768         * modules/glob (Depends-on): Add stdbool.
61769
61770 2008-04-11  Bruno Haible  <bruno@clisp.org>
61771
61772         * lib/trim.c: Include <string.h>.
61773
61774 2008-04-11  Eric Blake  <ebb9@byu.net>
61775
61776         Avoid compile failure on OS/2.
61777         * lib/regex_internal.h (internal_function): Disable optimization
61778         on OS/2 (__EMX__), where it caused compiler error.
61779         Reported by Elbert Pol.
61780
61781 2008-04-11  Bruno Haible  <bruno@clisp.org>
61782
61783         Flush the standard error stream before aborting. Needed on mingw.
61784         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61785         * tests/test-array_list.c (ASSERT): Likewise.
61786         * tests/test-array_oset.c (ASSERT): Likewise.
61787         * tests/test-avltree_list.c (ASSERT): Likewise.
61788         * tests/test-avltree_oset.c (ASSERT): Likewise.
61789         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61790         * tests/test-binary-io.c (ASSERT): Likewise.
61791         * tests/test-byteswap.c (ASSERT): Likewise.
61792         * tests/test-c-ctype.c (ASSERT): Likewise.
61793         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61794         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61795         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61796         * tests/test-c-strstr.c (ASSERT): Likewise.
61797         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61798         * tests/test-canonicalize.c (ASSERT): Likewise.
61799         * tests/test-carray_list.c (ASSERT): Likewise.
61800         * tests/test-ceilf1.c (ASSERT): Likewise.
61801         * tests/test-ceilf2.c (ASSERT): Likewise.
61802         * tests/test-ceill.c (ASSERT): Likewise.
61803         * tests/test-count-one-bits.c (ASSERT): Likewise.
61804         * tests/test-fbufmode.c (ASSERT): Likewise.
61805         * tests/test-fflush2.c (ASSERT): Likewise.
61806         * tests/test-floorf1.c (ASSERT): Likewise.
61807         * tests/test-floorf2.c (ASSERT): Likewise.
61808         * tests/test-floorl.c (ASSERT): Likewise.
61809         * tests/test-fopen.c (ASSERT): Likewise.
61810         * tests/test-fpending.c (ASSERT): Likewise.
61811         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61812         * tests/test-fpurge.c (ASSERT): Likewise.
61813         * tests/test-freadable.c (ASSERT): Likewise.
61814         * tests/test-freadahead.c (ASSERT): Likewise.
61815         * tests/test-freading.c (ASSERT): Likewise.
61816         * tests/test-freadptr.c (ASSERT): Likewise.
61817         * tests/test-freadptr2.c (ASSERT): Likewise.
61818         * tests/test-freadseek.c (ASSERT): Likewise.
61819         * tests/test-freopen.c (ASSERT): Likewise.
61820         * tests/test-frexp.c (ASSERT): Likewise.
61821         * tests/test-frexpl.c (ASSERT): Likewise.
61822         * tests/test-fseek.c (ASSERT): Likewise.
61823         * tests/test-fseeko.c (ASSERT): Likewise.
61824         * tests/test-fstrcmp.c (ASSERT): Likewise.
61825         * tests/test-ftell.c (ASSERT): Likewise.
61826         * tests/test-ftello.c (ASSERT): Likewise.
61827         * tests/test-func.c (ASSERT): Likewise.
61828         * tests/test-fwritable.c (ASSERT): Likewise.
61829         * tests/test-fwriting.c (ASSERT): Likewise.
61830         * tests/test-getdelim.c (ASSERT): Likewise.
61831         * tests/test-getline.c (ASSERT): Likewise.
61832         * tests/test-i-ring.c (ASSERT): Likewise.
61833         * tests/test-iconv-utf.c (ASSERT): Likewise.
61834         * tests/test-iconv.c (ASSERT): Likewise.
61835         * tests/test-isfinite.c (ASSERT): Likewise.
61836         * tests/test-isnand.c (ASSERT): Likewise.
61837         * tests/test-isnanf.c (ASSERT): Likewise.
61838         * tests/test-isnanl.h (ASSERT): Likewise.
61839         * tests/test-ldexpl.c (ASSERT): Likewise.
61840         * tests/test-linked_list.c (ASSERT): Likewise.
61841         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61842         * tests/test-localename.c (ASSERT): Likewise.
61843         * tests/test-lseek.c (ASSERT): Likewise.
61844         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61845         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61846         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61847         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61848         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61849         * tests/test-mbschr.c (ASSERT): Likewise.
61850         * tests/test-mbscspn.c (ASSERT): Likewise.
61851         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61852         * tests/test-mbspbrk.c (ASSERT): Likewise.
61853         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61854         * tests/test-mbsrchr.c (ASSERT): Likewise.
61855         * tests/test-mbsspn.c (ASSERT): Likewise.
61856         * tests/test-mbsstr1.c (ASSERT): Likewise.
61857         * tests/test-mbsstr2.c (ASSERT): Likewise.
61858         * tests/test-mbsstr3.c (ASSERT): Likewise.
61859         * tests/test-memchr2.c (ASSERT): Likewise.
61860         * tests/test-memmem.c (ASSERT): Likewise.
61861         * tests/test-open.c (ASSERT): Likewise.
61862         * tests/test-printf-frexp.c (ASSERT): Likewise.
61863         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61864         * tests/test-printf-posix.c (ASSERT): Likewise.
61865         * tests/test-quotearg.c (ASSERT): Likewise.
61866         * tests/test-rbtree_list.c (ASSERT): Likewise.
61867         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61868         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61869         * tests/test-round1.c (ASSERT): Likewise.
61870         * tests/test-roundf1.c (ASSERT): Likewise.
61871         * tests/test-roundl.c (ASSERT): Likewise.
61872         * tests/test-signbit.c (ASSERT): Likewise.
61873         * tests/test-sleep.c (ASSERT): Likewise.
61874         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61875         * tests/test-snprintf.c (ASSERT): Likewise.
61876         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61877         * tests/test-stat-time.c (ASSERT): Likewise.
61878         * tests/test-strcasestr.c (ASSERT): Likewise.
61879         * tests/test-strerror.c (ASSERT): Likewise.
61880         * tests/test-striconv.c (ASSERT): Likewise.
61881         * tests/test-striconveh.c (ASSERT): Likewise.
61882         * tests/test-striconveha.c (ASSERT): Likewise.
61883         * tests/test-strsignal.c (ASSERT): Likewise.
61884         * tests/test-strstr.c (ASSERT): Likewise.
61885         * tests/test-strtod.c (ASSERT): Likewise.
61886         * tests/test-trunc1.c (ASSERT): Likewise.
61887         * tests/test-trunc2.c (ASSERT): Likewise.
61888         * tests/test-truncf1.c (ASSERT): Likewise.
61889         * tests/test-truncf2.c (ASSERT): Likewise.
61890         * tests/test-truncl.c (ASSERT): Likewise.
61891         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61892         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61893         * tests/test-vasnprintf.c (ASSERT): Likewise.
61894         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61895         * tests/test-vasprintf.c (ASSERT): Likewise.
61896         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61897         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61898         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61899         * tests/test-vsnprintf.c (ASSERT): Likewise.
61900         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61901         * tests/test-wcwidth.c (ASSERT): Likewise.
61902         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61903         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61904         * tests/test-xvasprintf.c (ASSERT): Likewise.
61905         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61906         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61907         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61908         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61909         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61910         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61911         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61912         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61913         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61914         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61915         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61916         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61917         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61918         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61919         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61920         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61921         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61922         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61923         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61924         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61925         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61926         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61927         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61928         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61929         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61930         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61931         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61932         * tests/unictype/test-combining.c (ASSERT): Likewise.
61933         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61934         * tests/unictype/test-digit.c (ASSERT): Likewise.
61935         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61936         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61937         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61938         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61939         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61940         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61941         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61942         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61943         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61944         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61945         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61946         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61947         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61948         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61949         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61950         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61951         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61952         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61953         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61954         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61955         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61956         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61957         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61958         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61959         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61960         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61961         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61962         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61963         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61964         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61965         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61966         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61967         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61968         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61969         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61970         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61971         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61972         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61973         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61974         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61975         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61976         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61977         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61978         Reported by Eric Blake.
61979
61980 2008-04-11  Bruno Haible  <bruno@clisp.org>
61981
61982         * lib/wchar.in.h: Tweak comment.
61983
61984 2008-04-11  Bruno Haible  <bruno@clisp.org>
61985
61986         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61987         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61988         gl_COMMON.
61989         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61990
61991 2008-04-11  Bruno Haible  <bruno@clisp.org>
61992
61993         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61994
61995 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61996
61997         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61998         of attempting to use non-existing /dev/*random.  Based on patch
61999         from Adam Strzelecki <ono@java.pl> in
62000         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
62001
62002 2008-04-08  Bruno Haible  <bruno@clisp.org>
62003
62004         Add tentative support for emx+gcc.
62005         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
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         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
62017
62018 2008-04-09  Eric Blake  <ebb9@byu.net>
62019
62020         Avoid some autoconf warnings.
62021         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
62022         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
62023         * m4/afs.m4 (gl_AFS): Likewise.
62024         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
62025         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
62026         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62027         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
62028         (gl_INTEGER_TYPE_SUFFIX): Likewise.
62029         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
62030         (AC_CHECK_DECLS_ONCE): Likewise.
62031         Rename file...
62032         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
62033         gnulib-tool requires autoconf 2.59 or better.
62034         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
62035
62036 2008-04-08  Eric Blake  <ebb9@byu.net>
62037
62038         Use 'git describe --match' if present (added in git 1.5.5).
62039         * build-aux/git-version-gen: Limit result to tags that match 'v*'
62040         if possible.
62041
62042 2008-04-08  Bruno Haible  <bruno@clisp.org>
62043
62044         Add tentative support for OpenServer.
62045         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
62046         _ptr, _cnt.
62047         * lib/fpurge.c (fpurge): Likewise.
62048         * lib/freadable.c (freadable): Likewise.
62049         * lib/freadahead.c (freadahead): Likewise.
62050         * lib/freading.c (freading): Likewise.
62051         * lib/freadptr.c (freadptr): Likewise.
62052         * lib/freadseek.c (freadptrinc): Likewise.
62053         * lib/fseeko.c (rpl_fseeko): Likewise.
62054         * lib/fseterr.c (fseterr): Likewise.
62055         * lib/fwritable.c (fwritable): Likewise.
62056         * lib/fwriting.c (fwriting): Likewise.
62057         Reported by Roger Cornelius <rac@tenzing.org> and
62058         Brian K. White <brian@aljex.com>.
62059
62060 2008-04-06  Jim Meyering  <meyering@redhat.com>
62061
62062         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
62063
62064 2008-04-06  Bruno Haible  <bruno@clisp.org>
62065
62066         Avoid possible error with non-ASCII bytes in UTF-8 locales.
62067         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
62068         * tests/test-printf-posix.sh: Likewise.
62069         * tests/test-vfprintf-posix.sh: Likewise.
62070         * tests/test-vprintf-posix.sh: Likewise.
62071         * tests/test-xprintf-posix.sh: Likewise.
62072
62073 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62074
62075         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
62076         hide error from 'ls', needed on OS/2.
62077         Report by Elbert Pol <elbert.pol@gmail.com>.
62078
62079 2008-04-04  Eric Blake  <ebb9@byu.net>
62080
62081         Make test-fseeko.c failures meaningful.
62082         * tests/test-fseeko.c: Print line number on failure.
62083         * tests/test-fseek.c: Likewise.
62084         Reported by Nelson H. F. Beebe.
62085
62086         Improve strtod bug detection check.
62087         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
62088         required for Solaris 10.
62089         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
62090
62091 2008-04-04  Bruno Haible  <bruno@clisp.org>
62092
62093         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
62094         by m4/setenv.m4.
62095
62096 2008-04-03  Eric Blake  <ebb9@byu.net>
62097
62098         Ensure sane .version contents.
62099         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
62100         version string.
62101         * build-aux/git-version-gen: Improve documentation.
62102
62103         Make GNU make output nicer.
62104         * top/GNUmakefile [!_have-Makefile]: Add dependency on
62105         MAKECMDGOALS to enforce message for all command line targets.  Set
62106         srcdir for use in maint.mk.
62107
62108         Another maintainer tweak.
62109         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
62110         a target that regenerates version.
62111
62112 2008-04-03  Jim Meyering  <meyering@redhat.com>
62113
62114         vc-list-files: don't cause coreutils "make po-check" failure
62115         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
62116
62117 2008-04-03  Eric Blake  <ebb9@byu.net>
62118
62119         Allow VPATH usage of vc-list-files.
62120         * build-aux/vc-list-files (scriptversion): Add timestamp.
62121         (options): Add --help, --version, -C.
62122         (CVS): Support installed cvsu.
62123
62124 2008-04-02  Bruno Haible  <bruno@clisp.org>
62125
62126         Avoid some "statement with no effect" warnings from gcc.
62127         * tests/test-wctype.c (main): Explicitly ignore unused values.
62128         Reported by Jim Meyering.
62129
62130 2008-04-02  Jim Meyering  <meyering@redhat.com>
62131
62132         Avoid some warnings from "gcc -Wshadow".
62133         * tests/test-frexp.c (exp): Define to a different identifier.
62134         * tests/test-frexpl.c (exp): Likewise.
62135
62136 2008-04-03  Jim Meyering  <meyering@redhat.com>
62137
62138         bootstrap: remove dangling *.[ch] symlinks from lib
62139         * build-aux/bootstrap [dangling symlink removal]: Move find's
62140         -depth option to precede all others, to avoid a warning.
62141         Remove *.[ch] files too, and from "$source_base" (usually lib/).
62142
62143 2008-04-02  Bruno Haible  <bruno@clisp.org>
62144
62145         Avoid some warnings from "gcc -Wshadow".
62146         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
62147         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
62148         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
62149         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
62150         Reported by Jim Meyering.
62151
62152 2008-04-01  Bruno Haible  <bruno@clisp.org>
62153
62154         Fix test to work on IRIX 6.5 with cc.
62155         * tests/test-math.c (numeric_equal): New function.
62156         (main): Use it.
62157
62158 2008-04-01  Bruno Haible  <bruno@clisp.org>
62159
62160         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
62161
62162 2008-04-01  Bruno Haible  <bruno@clisp.org>
62163
62164         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
62165         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62166         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
62167         (Depends-on): Remove math.
62168
62169         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
62170         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62171         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
62172         (Depends-on): Remove math.
62173
62174         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
62175         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62176         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
62177         (Depends-on): Remove math.
62178         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
62179         (Depends-on): Remove math.
62180
62181         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
62182         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62183         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
62184         (Depends-on): Remove math.
62185         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
62186         (Depends-on): Remove math.
62187
62188         * tests/test-round1.c: Include nan.h.
62189         (main): Use NaNd instead of NAN.
62190         * modules/round-tests (Files): Add tests/nan.h.
62191
62192         * tests/test-trunc1.c: Include nan.h.
62193         (main): Use NaNd instead of NAN.
62194         * modules/trunc-tests (Files): Add tests/nan.h.
62195
62196         * tests/test-roundf1.c: Include nan.h.
62197         (main): Use NaNf instead of NAN.
62198         * modules/roundf-tests (Files): Add tests/nan.h.
62199
62200         * tests/test-truncf1.c: Include nan.h.
62201         (main): Use NaNf instead of NAN.
62202         * modules/truncf-tests (Files): Add tests/nan.h.
62203
62204         * tests/test-ceilf1.c: Include nan.h.
62205         (main): Use NaNf instead of NAN.
62206         * modules/ceilf-tests (Files): Add tests/nan.h.
62207
62208         * tests/test-floorf1.c: Include nan.h.
62209         (main): Use NaNf instead of NAN.
62210         * modules/floorf-tests (Files): Add tests/nan.h.
62211
62212         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
62213         (main): Use NaNf instead of NAN.
62214         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
62215
62216         * tests/test-isnand.c: Include nan.h instead of <math.h>.
62217         (main): Use NaNd instead of NAN.
62218         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
62219
62220         * tests/test-frexp.c: Include nan.h.
62221         (main): Use NaNd instead of NAN.
62222         * modules/frexp-tests (Files): Add tests/nan.h.
62223
62224         * lib/isnan.c: Don't include <math.h>.
62225         (FUNC): Don't use NAN macro.
62226         * modules/isnand-nolibm (Depends-on): Remove math.
62227         * modules/isnanf-nolibm (Depends-on): Remove math.
62228         * modules/isnanl (Depends-on): Remove math.
62229         * modules/isnanl-nolibm (Depends-on): Remove math.
62230
62231         * tests/nan.h: New file.
62232
62233 2008-04-01  Eric Blake  <ebb9@byu.net>
62234
62235         Fix typos.
62236         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
62237         values to be the right type.
62238
62239         For now, cater to gnulib strtod inaccuracies.
62240         * tests/test-strtod.c (main): Allow 1-ulp error on expected
62241         fractional results.  While not as nice from a QoI perspective, it
62242         is a quicker patch than correctly implementing decimal to binary
62243         rounding.
62244
62245 2008-03-31  Eric Blake  <ebb9@byu.net>
62246
62247         Guarantee a definition of NAN.
62248         * lib/math.in.h (NAN): Define if missing.
62249         * tests/test-math.c (main): Test it.
62250         * doc/posix-headers/math.texi (math.h): Document this.
62251         * lib/isnan.c (rpl_isnand): Use it.
62252         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
62253         * tests/test-floorf1.c (NaN): Likewise.
62254         * tests/test-frexp.c (NaN): Likewise.
62255         * tests/test-isnand.c (NaN): Likewise.
62256         * tests/test-isnanf.c (NaN): Likewise.
62257         * tests/test-round1.c (NaN): Likewise.
62258         * tests/test-roundf1.c (NaN): Likewise.
62259         * tests/test-snprintf-posix.h (NaN): Likewise.
62260         * tests/test-sprintf-posix.h (NaN): Likewise.
62261         * tests/test-trunc1.c (NaN): Likewise.
62262         * tests/test-truncf1.c (NaN): Likewise.
62263         * tests/test-vasnprintf-posix.c (NaN): Likewise.
62264         * tests/test-vasprintf-posix.c (NaN): Likewise.
62265         * modules/isnand-nolibm (Depends-on): Add math.
62266         * modules/isnanf-nolibm (Depends-on): Likewise.
62267         * modules/isnanl (Depends-on): Likewise.
62268         * modules/isnanl-nolibm (Depends-on): Likewise.
62269         * modules/snprintf-posix-tests (Depends-on): Likewise.
62270         * modules/sprintf-posix-tests (Depends-on): Likewise.
62271         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
62272         * modules/vsprintf-posix-tests (Depends-on): Likewise.
62273         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
62274         * modules/vasprintf-posix-tests (Depends-on): Likewise.
62275
62276 2008-03-31  Bruno Haible  <bruno@clisp.org>
62277
62278         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
62279         * doc/posix-functions/strtod.texi: Likewise.
62280
62281 2008-03-31  Bruno Haible  <bruno@clisp.org>
62282
62283         * tests/test-strtod.c (main): Don't use C99 syntax.
62284
62285 2008-03-31  Bruno Haible  <bruno@clisp.org>
62286
62287         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
62288         Reported by Eric Blake.
62289
62290 2008-03-31  Jim Meyering  <meyering@redhat.com>
62291
62292         Don't compare actual signbit return values.
62293         * tests/test-strtod.c (main): Rather, compare only their
62294         zero/non-zero nature.
62295
62296 2008-03-31  Eric Blake  <ebb9@byu.net>
62297
62298         More strtod documentation.
62299         * doc/posix-functions/strtod.texi (strtod): Interpret more test
62300         failures as distinct bugs.
62301
62302 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62303
62304         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
62305         Problem reported by Erik Benada in
62306         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
62307
62308 2008-03-30  Bruno Haible  <bruno@clisp.org>
62309
62310         * tests/test-strtod.c: Add comments about which assertion fails on which
62311         platform.
62312         * doc/posix-functions/strtod.texi: Add info about many more platforms.
62313
62314 2008-03-30  Eric Blake  <ebb9@byu.net>
62315
62316         Test signbit behavior on zeros.
62317         * tests/test-signbit.c (test_signbitf): Add tests for zero.
62318         (test_signbitd, test_signbitl): Likewise.
62319
62320         More strtod touchups.
62321         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
62322         sign of negative underflow, for now.  Use .5, not .1.
62323         * doc/posix-functions/strtod.texi (strtod): Mention these
62324         limitations.
62325         Reported by Jim Meyering.
62326
62327 2008-03-30  Bruno Haible  <bruno@clisp.org>
62328
62329         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
62330         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
62331
62332 2008-03-30  Bruno Haible  <bruno@clisp.org>
62333
62334         Avoid failure when attempting to return empty iconv results on some
62335         platforms.
62336         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
62337         allocation, don't report ENOMEM when the resulting string is empty.
62338
62339 2008-03-30  Bruno Haible  <bruno@clisp.org>
62340
62341         Fix buffer overrun.
62342         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
62343         Don't consider the width for tmp_length. Check count against tmp_length
62344         before doing the padding. Ensure enough allocation during padding.
62345
62346 2008-03-30  Eric Blake  <ebb9@byu.net>
62347
62348         strtod touchups.
62349         * lib/strtod.c (strtod): Avoid compiler warnings.
62350         Reported by Jim Meyering.
62351
62352 2008-03-30  Bruno Haible  <bruno@clisp.org>
62353
62354         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
62355         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
62356         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
62357         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
62358         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
62359         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
62360         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
62361         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
62362
62363         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
62364         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
62365         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
62366         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
62367         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
62368         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
62369         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
62370         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
62371
62372         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
62373         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
62374         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
62375         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
62376         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
62377         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
62378         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
62379         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
62380
62381         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
62382         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
62383
62384         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
62385         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
62386
62387         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
62388         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
62389
62390         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
62391         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
62392         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
62393
62394         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
62395         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
62396         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
62397
62398         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
62399         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
62400         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
62401
62402         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
62403         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
62404         * modules/vasprintf (Depends-on): Add EOVERFLOW.
62405
62406         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
62407         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
62408         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
62409         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
62410         (Depends-on): Add EOVERFLOW.
62411         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
62412         (Depends-on): Add EOVERFLOW.
62413         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62414         (Depends-on): Add EOVERFLOW.
62415         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62416         (Depends-on): Add EOVERFLOW.
62417         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62418         (Depends-on): Add EOVERFLOW.
62419         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62420         (Depends-on): Add EOVERFLOW.
62421         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62422         (Depends-on): Add EOVERFLOW.
62423         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62424         (Depends-on): Add EOVERFLOW.
62425
62426         * lib/sprintf.c (EOVERFLOW): Remove fallback.
62427         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
62428         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
62429
62430         * lib/snprintf.c (EOVERFLOW): Remove fallback.
62431         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
62432         * modules/snprintf (Depends-on): Add EOVERFLOW.
62433
62434         * lib/poll.c (EOVERFLOW): Remove fallback.
62435         * modules/poll (Depends-on): Add EOVERFLOW.
62436
62437         * lib/getugroups.c (EOVERFLOW): Remove fallback.
62438         * modules/getugroups (Depends-on): Add EOVERFLOW.
62439
62440         * lib/getdelim.c (EOVERFLOW): Remove fallback.
62441         * modules/getdelim (Depends-on): Add EOVERFLOW.
62442
62443         * lib/ftell.c (EOVERFLOW): Remove fallback.
62444         * modules/ftell (Depends-on): Add EOVERFLOW.
62445
62446         * lib/fprintf.c (EOVERFLOW): Remove fallback.
62447         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
62448         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
62449
62450         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
62451
62452         * modules/EOVERFLOW-tests: New file.
62453         * tests/test-EOVERFLOW.c: New file.
62454
62455         * modules/EOVERFLOW: New file.
62456         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
62457
62458 2008-03-30  Bruno Haible  <bruno@clisp.org>
62459
62460         Fix bug introduced on 2007-06-10.
62461         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
62462         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
62463
62464 2008-03-30  Bruno Haible  <bruno@clisp.org>
62465
62466         Improve freadseek's efficiency after ungetc.
62467         * lib/freadseek.c: Include freadahead.h.
62468         (freadptrinc): New function, extracted from freadseek.
62469         (freadseek): Use it in a loop. Use freadahead to determine the number
62470         of loop iterations.
62471         * modules/freadseek (Depends-on): Add freadahead.
62472         (configure.ac): Require AC_C_INLINE.
62473
62474 2008-03-30  Bruno Haible  <bruno@clisp.org>
62475
62476         * lib/freadseek.c (freadseek): Don't ignore the return value of
62477         freadptr.
62478
62479 2008-03-29  Eric Blake  <ebb9@byu.net>
62480
62481         Add hex float support.
62482         * modules/strtod (Depends-on): Add c-ctype.
62483         (Link): Mention POW_LIB.
62484         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
62485         whitespace between 'e' and exponent.
62486         * tests/test-strtod.c (main): Enable hex float tests.
62487         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
62488         now provides.
62489
62490         Document various strtod bugs, with some fixes.
62491         * doc/posix-functions/strtod.texi (strtod): Document bugs with
62492         "-0x", "inf", "nan", and hex constants.
62493         * doc/posix-functions/atof.texi (atof): Likewise.
62494         * modules/stdlib (Makefile.am): Support strtod.
62495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62496         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
62497         detect additional strtod bugs.
62498         * lib/stdlib.in.h (rpl_strtod): Add declarations.
62499         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
62500         bool where appropriate.  Parse 'inf' and 'nan'.
62501         * tests/test-strtod.c: New file.
62502         * modules/strtod (Depends-on): Add stdbool, stdlib.
62503         (configure.ac): Turn on module indicator.
62504         * modules/strtod-tests: New module.
62505
62506 2008-03-29  Eric Blake  <ebb9@byu.net>
62507
62508         Fix ftell on mingw.
62509         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62510         * modules/ftell-tests (Depends-on): Add binary-io.
62511         * modules/ftello-tests (Depends-on): Likewise.
62512         * tests/test-ftell.c (main): Enhance test to cover behavior after
62513         ungetc.  Enforce binary mode.
62514         * tests/test-ftello.c (main): Likewise.
62515
62516         Pass test-freadseek on cygwin.
62517         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62518         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62519         ungetc buffer.
62520
62521         * tests/test-fflush2.c (main): Fix typo.
62522
62523 2008-03-29  Bruno Haible  <bruno@clisp.org>
62524
62525         * tests/test-fflush2.c (main): Temporarily disable the contents of
62526         this test.
62527         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62528         Reported by Eric Blake.
62529
62530 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62531
62532         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62533         (GC_SHA224_DIGEST_SIZE): Add.
62534
62535         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62536         (gc_hash_digest_length): Likewise.
62537         (gc_hash_buffer): Likewise.
62538
62539 2008-03-25  Bruno Haible  <bruno@clisp.org>
62540
62541         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62542         detail which gettext release to use.
62543         Reported by Simon Josefsson.
62544
62545 2008-03-26  Jim Meyering  <meyering@redhat.com>
62546
62547         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62548         * modules/gnumakefile (clean-GNUmakefile): Also, use
62549         test ... && ... || : syntax rather than if-then ... fi.
62550
62551         gnumakefile: Don't double-quote-expand $(VPATH) value.
62552         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62553
62554 2008-03-24  Eric Blake  <ebb9@byu.net>
62555
62556         Alter GNUmakefile to install into top directory.
62557         * modules/maintainer-makefile: Split, and add dependency...
62558         * modules/gnumakefile: to this new module.
62559         * build-aux/GNUmakefile: Move...
62560         * top/GNUmakefile: ...here.
62561         * build-aux/maint.mk: Move...
62562         * top/maint.mk: ...here.
62563         * MODULES.html.sh (Support for maintaining...): Document new
62564         module.
62565
62566 2008-03-23  Bruno Haible  <bruno@clisp.org>
62567
62568         * gnulib-tool: New options --vc-files, --no-vc-files.
62569         (func_usage): Document them.
62570         (vc_files): New variable.
62571         (func_import): Consider vc_files.
62572         (func_create_testdir): Set vc_files to empty.
62573         Suggested by Jim Meyering and Karl Berry.
62574
62575 2008-03-23  Bruno Haible  <bruno@clisp.org>
62576
62577         Fix regex compilation error on HP-UX 11.
62578         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62579         * modules/regex (Files): Add m4/mbstate_t.m4.
62580         Reported by Ton Voon <ton.voon@altinity.com>.
62581
62582 2008-03-23  Bruno Haible  <bruno@clisp.org>
62583
62584         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62585
62586 2008-03-23  Eric Blake  <ebb9@byu.net>
62587             Bruno Haible  <bruno@clisp.org>
62588
62589         Install files from top/ in the destination directory.
62590         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62591         augmentation also for the files from top/.
62592         (func_import, func_create_testdir): Rewrite file names:
62593         top/filename -> filename.
62594
62595 2008-03-23  Bruno Haible  <bruno@clisp.org>
62596
62597         Tweak "gnulib --version" output.
62598         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62599
62600 2008-03-23  Bruno Haible  <bruno@clisp.org>
62601
62602         Tweak "gnulib --version" output.
62603         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62604         rather than contents of ChangeLog, when possible.
62605
62606 2008-03-21  Eric Blake  <ebb9@byu.net>
62607
62608         More --version tweaks.
62609         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62610         date of last ChangeLog entry.
62611
62612 2008-03-21  Jim Meyering  <meyering@redhat.com>
62613
62614         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62615
62616 2008-03-20  Eric Blake  <ebb9@byu.net>
62617
62618         VPATH fix.
62619         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62620
62621 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62622
62623         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62624         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62625
62626 2008-03-20  Eric Blake  <ebb9@byu.net>
62627
62628         Sync GNUmakefile with coreutils.
62629         * build-aux/GNUmakefile (have-Makefile): Rename...
62630         (_have-Makefile): ...to this, for namespace consideration.
62631         (GNUmakefile.cfg): Include, if present.
62632         (_autoreconf): Define a default.
62633         (_is-dist-target): New rule for rebuilds to pick up intra-release
62634         version.
62635         (maint-cfg.mk): Rename...
62636         (cfg.mk): ...to this.
62637
62638 2008-03-18  Jim Meyering  <meyering@redhat.com>
62639
62640         New script and module: mktempd
62641         * MODULES.html.sh (maint+release support): Add mktempd.
62642         * build-aux/mktempd: New file.
62643         * modules/mktempd: New file.
62644
62645 2008-03-15  Jim Meyering  <meyering@redhat.com>
62646
62647         Undo last change.
62648         * lib/sha1.c, lib/md5.c: 63 != ~63.
62649         Reported by Andreas Schwab.
62650
62651         sha1.c, md5.c: Hoist a redundant expression.
62652         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62653         "ctx->buflen" only once, before calling *_process_block.
62654         * lib/md5.c (md5_process_bytes): Likewise.
62655
62656 2008-03-14  Eric Blake  <ebb9@byu.net>
62657
62658         Bump copyright year in files generated by gnulib-tool.
62659         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62660         gnulib-tool, rather than hard-coding it.
62661
62662         Fix 'gnulib-tool --version' output to work with git.
62663         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62664         (startup): ...here.
62665         (func_version): Use it to invoke git-version-gen, rather than
62666         relying on CVS keyword expansion.  Modernize wording.
62667         (cvsdatestamp, last_checkin_date, version): Kill unused
62668         variables.
62669
62670 2008-03-12  Jim Meyering  <meyering@redhat.com>
62671
62672         Recognize optional cast of the argument to free.
62673         * build-aux/useless-if-before-free: Update regexps.
62674
62675         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62676
62677 2008-03-11  Bruno Haible  <bruno@clisp.org>
62678
62679         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62680         by a single package.
62681         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62682         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62683         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62684         Reported by Sam Steingold <sds@gnu.org>.
62685
62686 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62687
62688         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62689         repositories.
62690
62691 2008-03-11  Bruno Haible  <bruno@clisp.org>
62692
62693         Avoid conflicts between local macro definitions.
62694         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62695         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62696
62697 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62698             Bruno Haible  <bruno@clisp.org>
62699
62700         Make va_copy work with some version of xlc on AIX 5.1.
62701         * lib/stdarg.in.h: New file.
62702         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62703         On AIX, use a <stdarg.h> file substitute.
62704         * modules/stdarg (Files): Add lib/stdarg.in.h.
62705         (Depends-on): Add include_next.
62706         (Makefile.am): Build a stdarg.h substitute if requested.
62707         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62708
62709 2008-03-10  Bruno Haible  <bruno@clisp.org>
62710
62711         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62712         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62713         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62714
62715 2008-03-10  Bruno Haible  <bruno@clisp.org>
62716
62717         * modules/stdlib (Depends-on): Add include_next, remove
62718         absolute-header.
62719
62720 2008-03-09  Bruno Haible  <bruno@clisp.org>
62721
62722         * lib/freadahead.h (freadahead): Document more precisely.
62723         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62724         the sum of both buffer sizes.
62725         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62726         * NEWS: Document the change.
62727
62728 2008-03-09  Bruno Haible  <bruno@clisp.org>
62729
62730         Extend freadptr to return also the buffer size.
62731         * lib/freadptr.h (freadptr): Add sizep argument.
62732         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62733         (freadptr): Add sizep argument. Determine buffer size like freadahead
62734         does.
62735         * tests/test-freadptr.c: Don't include freadahead.h.
62736         (main): Adapt for new calling convention of freadptr.
62737         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62738         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62739         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62740         tests/test-freadptr2.sh.
62741         (Depends): Remove freadahead.
62742         (TESTS): Add test-freadptr2.sh.
62743         (check_PROGRAMS): Add test-freadptr2.
62744
62745 2008-03-09  Bruno Haible  <bruno@clisp.org>
62746
62747         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62748         Report and solution by Simon Josefsson.
62749
62750 2008-03-06  Bruno Haible  <bruno@clisp.org>
62751
62752         Make fflush after ungetc work on BSD platforms.
62753         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62754         * tests/test-fflush2.c: New file.
62755         * tests/test-fflush2.sh: New file.
62756         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62757         tests/test-fflush2.c.
62758         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62759         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62760
62761 2008-03-06  Eric Blake  <ebb9@byu.net>
62762
62763         Likewise for ftello.
62764         * modules/ftello (Dependencies): Add extensions.
62765         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62766
62767 2008-03-06  Bruno Haible  <bruno@clisp.org>
62768
62769         * modules/fseeko (Dependencies): Add extensions.
62770         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62771         Needed on glibc systems.
62772
62773 2008-03-06  Bruno Haible  <bruno@clisp.org>
62774
62775         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62776         email address.
62777         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62778
62779 2008-03-06  Bruno Haible  <bruno@clisp.org>
62780
62781         * users.txt: Add libgnupdf.
62782
62783 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62784
62785         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62786         (Header File Substitutes, Function Substitutes,
62787         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62788         (Build robot for gnulib): Fix typo.
62789
62790 2008-03-06  Bruno Haible  <bruno@clisp.org>
62791
62792         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62793         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62794
62795 2008-03-06  Bruno Haible  <bruno@clisp.org>
62796
62797         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62798         * doc/gnulib.texi: Include it.
62799
62800 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62801
62802         * modules/func (License): Change license to unlimited; there was
62803         no LGPL parts in the module anyway.
62804
62805 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62806
62807         * modules/__func__: Renamed to modules/func.
62808         * modules/__func__-tests: Renamed to modules/func-tests.
62809         * tests/test-__func__.c: Renamed to tests/test-func.c.
62810         * m4/__func__.m4: Renamed to m4/func.m4.
62811         * doc/gnulib.texi (__func__): Section renamed to func.
62812         Suggested by Eric Blake <ebb9@byu.net>.
62813
62814 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62815
62816         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62817         about __func__.  Make example self-contained.  Suggested by Eric
62818         Blake <ebb9@byu.net>.
62819
62820         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62821         Suggested by Eric Blake <ebb9@byu.net>.
62822
62823 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62824
62825         * modules/__func__: New file.
62826         * modules/__func__-tests: New file.
62827         * tests/test-__func__.c: New file.
62828         * m4/__func__.m4: New file.
62829         * doc/gnulib.texi (__func__): Document __func__ module.
62830
62831 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62832
62833         * modules/byteswap (License): Re-license as LGPLv2+.
62834
62835 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62836
62837         * doc/Makefile: Add pdf target.
62838
62839 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62840
62841         * modules/inline (License): Use 'unlimited', since there are only
62842         *.m4 files in this module.
62843
62844 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62845             Bruno Haible  <bruno@clisp.org>
62846
62847         Add support for HP C 7.1 on OpenVMS 8.3.
62848         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62849
62850 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62851
62852         Update VMS specifics.
62853         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62854
62855 2008-03-02  Jim Meyering  <meyering@redhat.com>
62856
62857         Remove the last dependency on the "free" module.
62858         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62859         Reported by Bob Proulx.
62860
62861         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62862
62863         Remove useless "if" tests before free.  Deprecate "free" module.
62864         * doc/posix-functions/free.texi: Mention that this
62865         module is no longer useful.
62866         * modules/free (Notice): Say this module is obsolete.
62867         * modules/readutmp (Depends-on): Remove free.
62868         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62869         * lib/putenv.c (putenv): Likewise.
62870         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62871         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62872         * tests/test-c-strcasestr.c (main): Likewise.
62873         * tests/test-c-strstr.c (main): Likewise.
62874         * tests/test-mbscasestr1.c (main): Likewise.
62875         * tests/test-mbscasestr2.c (main): Likewise.
62876         * tests/test-mbsstr1.c (main): Likewise.
62877         * tests/test-mbsstr2.c (main): Likewise.
62878         * tests/test-memmem.c (main): Likewise.
62879         * tests/test-strcasestr.c (main): Likewise.
62880         * tests/test-striconv.c (main): Likewise.
62881         * tests/test-striconveh.c (main): Likewise.
62882         * tests/test-striconveha.c (main): Likewise.
62883         * tests/test-strstr.c (main): Likewise.
62884
62885         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62886
62887         bootstrap: sync from coreutils again
62888         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62889
62890 2008-03-01  Jim Meyering  <meyering@redhat.com>
62891
62892         bootstrap: sync from coreutils
62893         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62894         also when the target doesn't exist.
62895
62896 2008-03-01  Eric Blake  <ebb9@byu.net>
62897
62898         Fix bugs in last patch.
62899         * lib/memchr2.c (memchr2): Fix typo.
62900         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62901         extension.
62902         Reported by Bruce Korb.
62903
62904         New module 'memchr2'.
62905         * modules/memchr2: New file.
62906         * modules/memchr2-tests: Likewise.
62907         * lib/memchr2.h: Likewise.
62908         * lib/memchr2.c: Likewise, based on memchr.c.
62909         * tests/test-memchr2.c: New test.
62910         * MODULES.html.sh (String handling): Add memchr2.
62911
62912 2008-02-29  Bruno Haible  <bruno@clisp.org>
62913
62914         * modules/freadseek-tests: New file.
62915         * tests/test-freadseek.sh: New file.
62916         * tests/test-freadseek.c: New file.
62917
62918         New module 'freadseek'.
62919         * modules/freadseek: New file.
62920         * lib/freadseek.h: New file.
62921         * lib/freadseek.c: New file.
62922         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62923
62924 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62925
62926         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62927         wydawca.
62928
62929         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62930         program_invocation_name and program_invocation_short_name are
62931         present.
62932
62933 2008-02-28  Bruno Haible  <bruno@clisp.org>
62934
62935         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62936         * tests/test-freadptr.sh: Also test non-seekable stdin.
62937
62938 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62939
62940         * build-aux/bootstrap (source_base, m4_base)
62941         (doc_base, tests_base): New variables.
62942         (gnulib_tool_options): Do not hardcode base directories, use
62943         the above variables instead.
62944
62945 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62946
62947         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62948
62949 2008-02-28  Bruno Haible  <bruno@clisp.org>
62950
62951         * modules/freadptr-tests: New file.
62952         * tests/test-freadptr.sh: New file.
62953         * tests/test-freadptr.c: New file.
62954
62955         New module 'freadptr'.
62956         * modules/freadptr: New file.
62957         * lib/freadptr.h: New file.
62958         * lib/freadptr.c: New file.
62959         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62960
62961 2008-02-26  Karl Berry  <karl@freefriends.org>
62962
62963         Sync from Libtool:
62964         * libltdl/argz.c (argz_add, argz_count): New functions.
62965         * libltdl/argz.in.h: Declare them.
62966         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62967
62968 2008-02-22  Bruno Haible  <bruno@clisp.org>
62969
62970         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62971         is a pointer type.  Needed for HP-UX 10.
62972         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62973         * doc/posix-functions/gmtime_r.texi: Likewise.
62974         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62975
62976 2008-02-24  Bruno Haible  <bruno@clisp.org>
62977
62978         * modules/environ-tests: New file.
62979         * tests/test-environ.c: New file.
62980
62981         New module 'environ'.
62982         * modules/environ: New file.
62983         * lib/unistd.in.h (environ): New declaration.
62984         * m4/environ.m4: New file.
62985         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62986         after use.
62987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62988         HAVE_DECL_ENVIRON.
62989         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62990         HAVE_DECL_ENVIRON.
62991         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62992         wrong claim that 'environ' is missing on some systems.
62993         * modules/execute (Depends-on): Add environ.
62994         * lib/execute.c (environ): Remove fallback declaration.
62995         * modules/pipe (Depends-on): Add environ.
62996         * lib/pipe.c (environ): Remove fallback declaration.
62997         * modules/setenv (Depends-on): Add environ.
62998         * lib/setenv.c (environ): Remove fallback declaration.
62999         * modules/unsetenv (Depends-on): Add environ.
63000         * lib/unsetenv.c (environ): Remove fallback declaration.
63001         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
63002         m4/environ.m4.
63003         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
63004         (gl_PREREQ_UNSETENV): Likewise.
63005
63006 2008-02-24  Bruno Haible  <bruno@clisp.org>
63007
63008         * doc/posix-functions/environ.texi: Document the MacOS X problem.
63009
63010 2008-02-20  Bob Proulx  <bob@proulx.com>
63011
63012         Enable use of older two part flavor 'git describe'.
63013         * build-aux/git-version-gen: If using the older two part flavor of
63014         git version then recreate the third part now present in the
63015         newer three part flavor of git describe.
63016
63017 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
63018
63019         * lib/fts.c (fts_build): Typo correction to comment.
63020
63021 2008-02-17  Bruno Haible  <bruno@clisp.org>
63022
63023         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
63024         generating no-op conflicts.
63025
63026 2008-02-17  Bruno Haible  <bruno@clisp.org>
63027
63028         Speed up by 10%.
63029         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
63030         result_entries, rather than an index-based loop.
63031
63032 2008-02-17  Bruno Haible  <bruno@clisp.org>
63033
63034         Speed up by 25%.
63035         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
63036         'hashcode_cached'.
63037         (entry_create): New function.
63038         (entry_hashcode): Use the cached hashcode if possible.
63039         (read_changelog_file, try_split_merged_entry): Use entry_create.
63040
63041 2008-02-17  Bruno Haible  <bruno@clisp.org>
63042
63043         Speed up from O(n^2) to O(n) for long ChangeLog files.
63044         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
63045         (read_changelog_file): Change implementation of entries_reversed list
63046         to rbtreehash.
63047         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
63048
63049 2008-02-17  Bruno Haible  <bruno@clisp.org>
63050
63051         New option --split-merged-entry.
63052         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
63053         (find_paragraph_end, try_split_merged_entry): New functions.
63054         (long_options): Add option --split-merged-entry.
63055         (usage): Document option --split-merged-entry.
63056         (main): Implement option --split-merged-entry.
63057         Reported by Eric Blake.
63058
63059 2008-02-17  Bruno Haible  <bruno@clisp.org>
63060
63061         * lib/git-merge-changelog.c: Include c-strstr.h.
63062         (main): Support the "git pull --rebase" situation.
63063         * modules/git-merge-changelog (Depends-on): Add c-strstr.
63064         Reported by Eric Blake.
63065
63066 2008-02-16  Eric Blake  <ebb9@byu.net>
63067
63068         Avoid doubling \ in common case of "c-maybe" quoting style.
63069         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
63070         eliding outer quotes.
63071         * lib/quotearg.h: Document this.
63072         * tests/test-quotearg.c (result_strings, inputs, results_g)
63073         (flag_results, locale_results): Test it by adding a new string to
63074         each test group.
63075         (compare_strings): Test new string.
63076
63077 2008-02-13  Eric Blake  <ebb9@byu.net>
63078
63079         Avoid trigraph quoting in default output.
63080         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
63081         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
63082         unless explicitly requested.
63083         * tests/test-quotearg.c (flag_results, main): Add additional tests.
63084
63085 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
63086
63087         Don't rely on signed integer overflowing to negative value.
63088         * lib/getugroups.c (getugroups): Include <limits.h>.
63089         Instead, compare against INT_MAX, and increment only if the test passes.
63090
63091 2008-02-13  Jim Meyering  <meyering@redhat.com>
63092         and Eric Blake  <ebb9@byu.net>
63093
63094         Avoid shadowing warning and compile errors on Linux.
63095         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
63096         forwarding macros on Linux.
63097         (dcgettext): Define a stub, for Linux.
63098         (results_g, main): Avoid warnings.
63099
63100 2008-02-12  Eric Blake  <ebb9@byu.net>
63101
63102         Silence warning in last patch.
63103         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
63104
63105         Quotearg part 4: add tests, fix c-maybe colon quoting.
63106         * lib/quotearg.h: Improve documentation.
63107         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
63108         escapes when adding outer quotes.  When quoting trigraphs, use
63109         valid C notation.  When quoting NUL, omit extra characters if next
63110         character is not digit.  Alter prototype.
63111         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
63112         callers.
63113         * modules/quotearg-tests: New module.
63114         * tests/test-quotearg.c: New test.
63115
63116 2008-02-07  Eric Blake  <ebb9@byu.net>
63117
63118         Quotearg part 3: add flag to control outer quote elision.
63119         * lib/quotearg.h (c_maybe_quoting_style): New style.
63120         (enum quoting_flags): Better documentation of flags.
63121         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
63122         c-maybe style.
63123         (quotearg_buffer_restyled): Handle new flag to elide outer
63124         quotes.
63125
63126         Quotearg part 2: add flag that can control NUL elision.
63127         * lib/quotearg.h (set_quoting_flags): New prototype.
63128         * lib/quotearg.c (struct quoting_options): Add flag field.
63129         (set_quoting_flags): New function.
63130         (quotearg_buffer_restyled): Add flags parameter.
63131         (quotearg_alloc_mem): Set the flag if length cannot be returned.
63132         (quotearg_n_options): Set the flag, since length cannot be
63133         returned.
63134         (quoting_options_from_style): Default flags correctly.
63135
63136         Quotearg part 1: more wrappers, restore quotearg_char state.
63137         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
63138         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
63139         (quotearg_colon_mem): New wrappers.
63140         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
63141         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
63142         functions.
63143         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
63144         (quotearg_colon_mem): New functions.
63145
63146 2008-02-11  Bruno Haible  <bruno@clisp.org>
63147
63148         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
63149         library in the current directory: it does not work with parallel make.
63150         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63151
63152 2008-02-11  Bruno Haible  <bruno@clisp.org>
63153
63154         * .gitattributes: New file.
63155
63156 2008-02-11  Jim Meyering  <meyering@redhat.com>
63157
63158         useless-if-before-free: Fix reversed exit values.
63159         * build-aux/useless-if-before-free: Use correct values
63160         for EXIT_MATCH and EXIT_NO_MATCH.
63161
63162         * build-aux/useless-if-before-free: Close stdout carefully.
63163
63164 2008-02-10  Bruno Haible  <bruno@clisp.org>
63165
63166         New module 'git-merge-changelog'.
63167         * modules/git-merge-changelog: New file.
63168         * lib/git-merge-changelog.c: New file.
63169
63170 2008-02-10  Jim Meyering  <meyering@redhat.com>
63171
63172         useless-if-before-free: New option: --list (-l).
63173
63174         useless-if-before-free: Don't exit immediately upon open failure.
63175         * build-aux/useless-if-before-free: Exit 2 for errors.
63176         Upon failure to open a file, don't exit immediately.
63177         Rather, just warn and continue with any remaining files.
63178
63179 2008-02-10  Bruno Haible  <bruno@clisp.org>
63180
63181         New abstract list operation 'node_set_value'.
63182         * lib/gl_list.h (gl_list_node_set_value): New function.
63183         (struct gl_list_implementation): New field node_set_value.
63184         * lib/gl_list.c (gl_list_node_set_value): New function.
63185         * lib/gl_array_list.c (gl_array_node_set_value): New function.
63186         (gl_array_list_implementation): Update.
63187         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
63188         (gl_carray_list_implementation): Update.
63189         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
63190         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63191         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63192         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
63193         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63194         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63195         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63196         Update.
63197         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63198         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
63199         (gl_sublist_list_implementation): Update.
63200
63201 2008-02-10  Bruno Haible  <bruno@clisp.org>
63202
63203         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
63204         Needed when ELEMENT is #defined to 'some_type *'.
63205
63206 2008-02-10  Jim Meyering  <meyering@redhat.com>
63207
63208         New script and module: useless-if-before-free
63209         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
63210         * build-aux/useless-if-before-free: New file.
63211         * modules/useless-if-before-free: New file.
63212
63213         * build-aux/gitlog-to-changelog: Use committer date, not author date.
63214
63215         xstrtol_error: Fix typo.
63216         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
63217         s/exit_failure/exit_status/.
63218
63219 2008-02-09  Jim Meyering  <meyering@redhat.com>
63220
63221         New script and module: gitlog-to-changelog
63222         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
63223         * modules/gitlog-to-changelog: New file.
63224         * build-aux/gitlog-to-changelog: New file.
63225
63226 2008-02-08  Jim Meyering  <meyering@redhat.com>
63227
63228         Avoid two "parameter unused" warnings.
63229         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
63230         Mark "st" as used.
63231
63232         Use "git COMMAND", not "git-COMMAND".
63233         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
63234         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
63235         * build-aux/git-version-gen: Use "git status", not "git-status".
63236
63237 2008-02-07  Bruno Haible  <bruno@clisp.org>
63238
63239         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
63240         Avoids a crash on Windows Vista.
63241         Reported by Adam Strzelecki <ono@java.pl> via
63242         Simon Josefsson <simon@josefsson.org>.
63243
63244 2008-02-06  Bruno Haible  <bruno@clisp.org>
63245
63246         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
63247         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
63248         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
63249         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
63250         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63251         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63252         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
63253         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
63254         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63255         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63256         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63257         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63258         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63259         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63260         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63261         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
63262         left-adjust flag.
63263         * tests/test-snprintf-posix.h (test_function): Likewise.
63264         * tests/test-sprintf-posix.h (test_function): Likewise.
63265         * tests/test-vasprintf-posix.c (test_function): Likewise.
63266         * doc/posix-functions/fprintf.texi: Update.
63267         * doc/posix-functions/printf.texi: Update.
63268         * doc/posix-functions/snprintf.texi: Update.
63269         * doc/posix-functions/sprintf.texi: Update.
63270         * doc/posix-functions/vfprintf.texi: Update.
63271         * doc/posix-functions/vprintf.texi: Update.
63272         * doc/posix-functions/vsnprintf.texi: Update.
63273         * doc/posix-functions/vsprintf.texi: Update.
63274         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63275
63276 2008-02-06  Bruno Haible  <bruno@clisp.org>
63277
63278         Fix bug introduced on 2008-01-26.
63279         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
63280
63281 2008-02-06  Bruno Haible  <bruno@clisp.org>
63282
63283         Fix bug introduced on 2007-06-10.
63284         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
63285         !NEED_PRINTF_FLAG_ZERO.
63286
63287 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
63288
63289         getloadavg: use libperfstat on AIX5
63290         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
63291
63292 2008-02-03  Bruno Haible  <bruno@clisp.org>
63293
63294         * lib/diffseq.h: Add comments about required #includes.
63295         Reported by Michael Biggs <gnulib@doubleplum.net>.
63296
63297 2008-02-01  Bruno Haible  <bruno@clisp.org>
63298
63299         * users.txt: Add gnuit.
63300
63301 2008-01-31  Bruno Haible  <bruno@clisp.org>
63302
63303         * lib/md4.c (set_uint32): Mark as inline.
63304         * lib/md5.c (set_uint32): Likewise.
63305         * lib/sha1.c (set_uint32): Likewise.
63306         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
63307         * m4/md5.m4 (gl_MD5): Likewise.
63308         * m4/sha1.m4 (gl_SHA1): Likewise.
63309
63310 2008-01-31  Jim Meyering  <meyering@redhat.com>
63311
63312         Use "sizeof VAR", rather than a literal "4".
63313         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
63314         * lib/md4.c (md4_read_ctx): Likewise.
63315         * lib/sha1.c (sha1_read_ctx): Likewise.
63316
63317 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63318
63319         * tests/test-sha1.c: New file, based on test-md5.c.
63320
63321         * modules/crypto/sha1-tests: New file.
63322
63323 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63324
63325         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
63326
63327 2008-01-31  Jim Meyering  <meyering@redhat.com>
63328
63329         Prefer "sizeof v" over the equivalent "4".
63330         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
63331         * lib/md5.c (set_uint32): Likewise.
63332         * lib/sha1.c (set_uint32): Likewise.
63333
63334 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63335
63336         * lib/sha1.c (set_uint32): Mark function as static.
63337
63338 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63339
63340         md2: clarify comments to say that alignment is not required.
63341         * lib/md2.h: Remove warning about alignment in comment.
63342         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
63343         never been required.
63344
63345 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63346
63347         md4: adapt alignment constraint fix from sha1.
63348         * lib/md4.c (set_uint32): New function, from sha1.c
63349         (md4_read_ctx): Use it.
63350         (md4_finish_ctx): Doc fix.
63351         * lib/md4.h: Doc fix.
63352
63353 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63354
63355         md5: adapt alignment constraint fix from sha1.
63356         * lib/md5.c (set_uint32): New function, from sha1.c
63357         (md5_read_ctx): Use it.
63358         (md5_finish_ctx): Doc fix.
63359         * lib/md5.h: Doc fix.
63360
63361 2008-01-30  Peter Palfrader  <weasel@debian.org>
63362
63363         sha1: remove the result buffer alignment constraint
63364         * lib/sha1.c (set_uint32): New function.
63365         (sha1_read_ctx): Rewrite to remove the result buffer alignment
63366         constraint.
63367         (sha1_finish_ctx): Remove comment warning about alignment constraint.
63368         * lib/sha1.h: Likewise.
63369
63370 2008-01-30  Andreas Schwab  <schwab@suse.de>
63371             Bruno Haible  <bruno@clisp.org>
63372
63373         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
63374         correct definition of LDBL_MIN_EXP.
63375
63376 2008-01-30  Karl Berry  <karl@gnu.org>
63377
63378         * config/srclist-update: try to preserve x bit on updates.
63379         * config/srclistvars.sh: update for karl.
63380
63381 2008-01-29  Jim Meyering  <meyering@redhat.com>
63382
63383         vasnprintf.c: Avoid warning about unused label
63384         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
63385         "overflow" label definition and associated code with the
63386         same cpp condition that guards the sole use of that label.
63387
63388 2008-01-26  Bruno Haible  <bruno@clisp.org>
63389
63390         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
63391         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
63392         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
63393         * lib/isnanl-nolibm.h (isnanl): Likewise.
63394         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63395
63396 2008-01-26  Bruno Haible  <bruno@clisp.org>
63397
63398         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
63399         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
63400
63401 2008-01-26  Bruno Haible  <bruno@clisp.org>
63402
63403         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
63404         GCC >= 4.0 built-in.
63405         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
63406
63407 2008-01-26  Bruno Haible  <bruno@clisp.org>
63408
63409         Rename isnan, applicable to 'double' only, to isnand.
63410         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
63411         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
63412         (configure.ac): Update.
63413         (Include): Replace "isnan.h" with "isnand.h".
63414         * m4/isnand.m4: Renamed from m4/isnan.m4.
63415         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
63416         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
63417         instead of isnan.c.
63418         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
63419         instead of HAVE_ISNAN_IN_LIBC.
63420         (isnand): Renamed from isnan.
63421         * lib/isnand.c: New file.
63422         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
63423         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
63424         (Makefile.am): Update.
63425         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
63426         Include isnand.h instead of isnan.h.
63427         (main): Test isnand instead of isnan.
63428         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
63429         isnan-nolibm.
63430         * modules/frexp (Depends-on): Likewise.
63431         * modules/frexp-tests (Depends-on): Likewise.
63432         * modules/frexp-nolibm (Depends-on): Likewise.
63433         * modules/frexp-nolibm-tests (Depends-on): Likewise.
63434         * modules/isfinite (Depends-on): Likewise.
63435         * modules/round-tests (Depends-on): Likewise.
63436         * modules/signbit (Depends-on): Likewise.
63437         * modules/signbit-tests (Depends-on): Likewise.
63438         * modules/snprintf-posix (Depends-on): Likewise.
63439         * modules/sprintf-posix (Depends-on): Likewise.
63440         * modules/trunc-tests (Depends-on): Likewise.
63441         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63442         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63443         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63444         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63445         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63446         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63447         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63448         * modules/vasnprintf-posix (Depends-on): Likewise.
63449         * modules/vasprintf-posix (Depends-on): Likewise.
63450         * modules/vfprintf-posix (Depends-on): Likewise.
63451         * modules/vsnprintf-posix (Depends-on): Likewise.
63452         * modules/vsprintf-posix (Depends-on): Likewise.
63453         * lib/frexp.c: Include isnand.h instead of isnan.h.
63454         (ISNAN): Set to isnand instead of isnan.
63455         * lib/isfinite.c: Include isnand.h instead of isnan.h.
63456         (gl_isfinited): Use isnand instead of isnan.
63457         * lib/signbitd.c: Include isnand.h instead of isnan.h.
63458         (gl_signbitd): Use isnand instead of isnan.
63459         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
63460         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
63461         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
63462         (main): Use isnand instead of isnan.
63463         * tests/test-round1.c: Include isnand.h.
63464         (main): Use isnand instead of isnan.
63465         * tests/test-round2.c: Include isnand.h instead of isnan.h.
63466         (ISNAN): Set to isnand instead of isnan.
63467         * tests/test-trunc1.c: Include isnand.h.
63468         (main): Use isnand instead of isnan.
63469         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
63470         (equal): Use isnand instead of isnan.
63471         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
63472         isnand-nolibm.
63473         * NEWS: Mention the change.
63474
63475 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63476             Bruno Haible  <bruno@clisp.org>
63477
63478         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
63479         the GCC builtins for signbits are present and set
63480         REPLACE_SIGNBIT_USING_GCC if so.
63481         * lib/math.in.h (signbit): Define using GCC builtins if
63482         REPLACE_SIGNBIT_USING_GCC is set.
63483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
63484         REPLACE_SIGNBIT_USING_GCC.
63485         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
63486
63487 2008-01-25  Jim Meyering  <meyering@redhat.com>
63488
63489         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
63490         * lib/poll.c: Include <config.h>, not "config.h".
63491         * tests/test-getaddrinfo.c: Likewise.
63492
63493 2008-01-25  Simon Josefsson  <simon@josefsson.org>
63494
63495         * modules/sockets-tests: New file.
63496
63497 2008-01-24  Simon Josefsson  <simon@josefsson.org>
63498
63499         * modules/sockets: New module, can be used to call WSA_Startup and
63500         WSA_Cleanup when needed.
63501
63502         * lib/sockets.h, lib/sockets.c: New files.
63503
63504         * m4/sockets.m4: New file.
63505
63506         * tests/test-sockets.c: New file.
63507
63508 2008-01-19  Bruno Haible  <bruno@clisp.org>
63509
63510         * doc/posix-headers: Renamed from doc/headers.
63511         * doc/posix-functions: Renamed from doc/functions.
63512         * doc/gnulib.texi: Update.
63513
63514 2008-01-19  Bruno Haible  <bruno@clisp.org>
63515
63516         * doc/glibc-functions/strcasestr.texi: Include contents of
63517         doc/functions/strcasestr.texi, fixing the list of platforms.
63518         * doc/functions/strcasestr.texi: Remove file.
63519
63520 2008-01-19  Bruno Haible  <bruno@clisp.org>
63521
63522         * doc/glibc-functions/memmem.texi: Include contents of
63523         doc/functions/memmem.texi.
63524         * doc/functions/memmem.texi: Remove file.
63525
63526 2008-01-18  Bruno Haible  <bruno@clisp.org>
63527
63528         * doc/glibc-functions/*.texi: New files.
63529         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63530         to use the new files.
63531
63532 2008-01-17  Bruno Haible  <bruno@clisp.org>
63533
63534         * tests/test-gethostname.c (main): Fix printf statement.
63535
63536 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63537
63538         * modules/gethostname-tests: New file.
63539
63540         * tests/test-gethostname.c: New file.
63541
63542 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63543
63544         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63545         used by the UNAME case.  Reported by Bruno Haible
63546         <bruno@clisp.org>.
63547
63548 2008-01-17  Eric Blake  <ebb9@byu.net>
63549
63550         Convert c-strcasestr to be more efficient.
63551         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63552         (Depends-on): Add c-strcase, remove malloca, strnlen.
63553         * tests/test-c-strcasestr.c (main): Enhance test.
63554         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63555
63556 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63557
63558         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63559         Use it in creating po/Makevars.
63560
63561 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63562
63563         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63564         Applications that requires it should initialize libgcrypt
63565         manually.
63566
63567 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63568
63569         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63570
63571 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63572
63573         Fix problem with getdate on mingw32 reported by Simon Josefsson
63574         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63575         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63576         tzname", when deciding whether to declare tzname.
63577         * lib/strftime.c (tzname): Likewise.
63578
63579 2008-01-15  Bruno Haible  <bruno@clisp.org>
63580
63581         Work around a MacOS X 10.5 bug in frexpl().
63582         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63583         * doc/functions/frexpl.texi: Document the bug.
63584         Reported by Elias Pipping <pipping@gentoo.org>.
63585
63586 2008-01-14  Eric Blake  <ebb9@byu.net>
63587
63588         Touch up previous patch.
63589         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63590         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63591
63592         Convert strcasestr module to use Two-Way algorithm.
63593         * modules/strcasestr-simple: New module, based on the old
63594         strcasestr, but with Two-Way rather than KMP.
63595         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63596         * lib/string.in.h (rpl_strcasestr): Declare.
63597         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63598         performance.
63599         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63600         * modules/string (Makefile.am): Support strcasestr.
63601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63602         * modules/strcasestr-tests (Depends-on): Check for alarm.
63603         * tests/test-strcasestr.c: Augment test.
63604         * lib/str-two-way.h: Clean up stray macro.
63605         * NEWS: Document new module.
63606         * MODULES.html.sh (string handling): Likewise.
63607         * doc/functions/strcasestr.texi: New file.
63608         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63609         here, since it is not a POSIX function.
63610
63611 2008-01-14  Colin Watson  <cjwatson@debian.org>
63612             Bruno Haible  <bruno@clisp.org>
63613
63614         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63615         works fine; if not, set REPLACE_STRSIGNAL.
63616         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63617         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63618         REPLACE_STRSIGNAL.
63619         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63620         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63621         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63622
63623 2008-01-14  Bruno Haible  <bruno@clisp.org>
63624
63625         * modules/strsignal (Include): Change to <string.h>.
63626
63627 2008-01-14  Colin Watson  <cjwatson@debian.org>
63628
63629         * modules/argp (Notice): Add a notice recommending to change
63630         XGETTEXT_OPTIONS.
63631         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63632
63633 2008-01-13  Colin Watson  <cjwatson@debian.org>
63634
63635         * modules/strsignal-tests: New file.
63636         * tests/test-strsignal.c: New file.
63637
63638         * lib/strsignal.c: New file, from glibc with modifications.
63639         * lib/siglist.h: New file, from glibc with modifications.
63640         * lib/string.in.h (strsignal): New declaration.
63641         * m4/strsignal.m4: New file.
63642         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63643         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63644         * modules/strsignal: New file.
63645         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63646         HAVE_DECL_STRSIGNAL.
63647
63648 2008-01-13  Bruno Haible  <bruno@clisp.org>
63649
63650         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63651         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63652         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63653         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63654
63655 2008-01-13  Bruno Haible  <bruno@clisp.org>
63656
63657         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63658         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63659         * lib/argp.h (__attribute__): Likewise.
63660         * lib/c-stack.c (__attribute__): Likewise.
63661         * lib/error.h (__attribute__): Likewise.
63662         * lib/fts.c (__attribute__): Likewise.
63663         * lib/openat.h (__attribute__): Likewise.
63664         * lib/stdio.in.h (__attribute__): Likewise.
63665         * lib/string.in.h (__attribute__): Likewise.
63666         * lib/utimens.c (__attribute__): Likewise.
63667         * lib/vasnprintf.h (__attribute__): Likewise.
63668         * lib/xalloc.h (__attribute__): Likewise.
63669         * lib/xprintf.h (__attribute__): Likewise.
63670         * lib/xstrtol.h (__attribute__): Likewise.
63671         * lib/xvasprintf.h (__attribute__): Likewise.
63672
63673 2008-01-12  Bruno Haible  <bruno@clisp.org>
63674
63675         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63676         * doc/glibc-headers/a.out.texi: New file.
63677         * doc/glibc-headers/aliases.texi: New file.
63678         * doc/glibc-headers/alloca.texi: New file.
63679         * doc/glibc-headers/ar.texi: New file.
63680         * doc/glibc-headers/argp.texi: New file.
63681         * doc/glibc-headers/argz.texi: New file.
63682         * doc/glibc-headers/byteswap.texi: New file.
63683         * doc/glibc-headers/crypt.texi: New file.
63684         * doc/glibc-headers/endian.texi: New file.
63685         * doc/glibc-headers/envz.texi: New file.
63686         * doc/glibc-headers/err.texi: New file.
63687         * doc/glibc-headers/error.texi: New file.
63688         * doc/glibc-headers/execinfo.texi: New file.
63689         * doc/glibc-headers/fpu_control.texi: New file.
63690         * doc/glibc-headers/fstab.texi: New file.
63691         * doc/glibc-headers/fts.texi: New file.
63692         * doc/glibc-headers/getopt.texi: New file.
63693         * doc/glibc-headers/ieee754.texi: New file.
63694         * doc/glibc-headers/ifaddrs.texi: New file.
63695         * doc/glibc-headers/libintl.texi: New file.
63696         * doc/glibc-headers/mcheck.texi: New file.
63697         * doc/glibc-headers/mntent.texi: New file.
63698         * doc/glibc-headers/obstack.texi: New file.
63699         * doc/glibc-headers/paths.texi: New file.
63700         * doc/glibc-headers/printf.texi: New file.
63701         * doc/glibc-headers/pty.texi: New file.
63702         * doc/glibc-headers/resolv.texi: New file.
63703         * doc/glibc-headers/shadow.texi: New file.
63704         * doc/glibc-headers/sysexits.texi: New file.
63705         * doc/glibc-headers/ttyent.texi: New file.
63706
63707 2008-01-12  Jim Meyering  <meyering@redhat.com>
63708
63709         announce-gen: emit Gnulib's git-based version string.
63710         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63711         New option --gnulib-version=V, where V is expected to be
63712         the output of running git describe in the gnulib directory.
63713         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63714         not useful, and plan to stop publishing an xdelta file with each
63715         coreutils release.
63716
63717         * build-aux/announce-gen: Also check for lzma-compressed files.
63718
63719 2008-01-11  Bruno Haible  <bruno@clisp.org>
63720
63721         * tests/test-memmem.c (main): Increase maximum allowed time.
63722         * tests/test-strstr.c (main): Likewise.
63723
63724 2008-01-11  Bruno Haible  <bruno@clisp.org>
63725
63726         * doc/functions/memmem.texi: Add more precisions about platforms.
63727         * doc/functions/strstr.texi: Likewise.
63728
63729 2008-01-10  Eric Blake  <ebb9@byu.net>
63730
63731         * m4/strstr.m4: Delete cruft from copy-n-paste.
63732         Reported by Bruno Haible.
63733
63734 2008-01-10  Bruno Haible  <bruno@clisp.org>
63735
63736         Make c-strstr rely on strstr.
63737         * lib/c-strstr.c: Don't include str-kmp.h.
63738         (c_strstr): Define in terms of strstr.
63739         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63740         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63741
63742 2008-01-10  Bruno Haible  <bruno@clisp.org>
63743
63744         * doc/gnulib.texi (String Functions in C Locale): New section.
63745         * doc/c-ctype.texi: New file.
63746         * doc/c-strcase.texi: New file.
63747         * doc/c-strcaseeq.texi: New file.
63748         * doc/c-strcasestr.texi: New file.
63749         * doc/c-strstr.texi: New file.
63750         * doc/c-strtod.texi: New file.
63751         * doc/c-strtold.texi: New file.
63752
63753 2008-01-10  Eric Blake  <ebb9@byu.net>
63754
63755         * lib/relocatable.h: Fix a comment.
63756
63757 2008-01-10  Eric Blake  <ebb9@byu.net>
63758
63759         Share two-way algorithm.
63760         * lib/str-two-way.h: New file, merged from...
63761         * lib/memmem.c: ...here...
63762         * lib/strstr.c: ...and here.
63763         * modules/memmem (Files): Use it.
63764         * modules/strstr (Files): Likewise.
63765
63766         Avoid quadratic strstr implementations.
63767         * lib/strstr.c: New file.
63768         * m4/strstr.m4: Likewise.
63769         * modules/strstr: Likewise.
63770         * modules/strstr-tests: Likewise.
63771         * tests/test-strstr.c: Likewise.
63772         * lib/string.in.h (rpl_strstr): Declare.
63773         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63775         * modules/string (Makefile.am): Likewise.
63776         * MODULES.html.sh (string handling): Mention new module.
63777         * doc/functions/strstr.texi (strstr): Document the bug.
63778
63779 2008-01-10  Bruno Haible  <bruno@clisp.org>
63780
63781         * lib/relocatable.h (relocate): State whether result is freshly
63782         allocated or not.
63783         * lib/relocatable.c (relocate): Return a freshly allocated string
63784         instead of a pointer to a privately held string.
63785         Reported by Sylvain Beucler <beuc@gnu.org>.
63786
63787 2008-01-10  Colin Watson  <cjwatson@debian.org>
63788
63789         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63790         s/S_ISNLK/S_ISLNK/.
63791
63792 2008-01-09  Bruno Haible  <bruno@clisp.org>
63793
63794         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63795         and other files.
63796         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63797         if it's only a guess.
63798         * modules/memmem: Simplify by depending on memmem-simple.
63799
63800 2008-01-09  Bruno Haible  <bruno@clisp.org>
63801
63802         Work around OpenBSD 4.0 tdelete() bug.
63803         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63804         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63805         macros and don't redefine the enum values.
63806         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63807         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63808         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63809
63810 2008-01-09  Bruno Haible  <bruno@clisp.org>
63811
63812         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63813         (main): Don't perform the tests if setlocale did not install a UTF-8
63814         locale. Needed on OpenBSD 4.0.
63815         * modules/wcwidth-tests (Depends-on): Add localcharset.
63816
63817 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63818
63819         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63820         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63821         * NEWS: announce this.
63822         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63823
63824 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63825         and Eric Blake  <ebb9@byu.net>
63826
63827         Add memmem-simple module.
63828         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63829         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63830         * modules/memmem-simple: New file.
63831         * modules/memmem (Description): Tweak.
63832         * MODULES.html.sh (string handling): Mention new module.
63833         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63834         addressed by memmem-simple.
63835         * NEWS: Document the difference.
63836
63837 2008-01-09  Eric Blake  <ebb9@byu.net>
63838
63839         Give gcc some memmem optimization hints.
63840         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63841         (strcasestr): Declare as pure.
63842         * modules/memmem (Maintainer): Claim my implementation.
63843
63844 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63845
63846         Support AIX 6.1 and higher.
63847         * build-aux/config.libpath: Likewise.
63848         * build-aux/config.rpath: Likewise.
63849
63850 2008-01-08  Jim Meyering  <meyering@redhat.com>
63851             Bruno Haible  <bruno@clisp.org>
63852
63853         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63854         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63855         Reported by Peter Fales in
63856         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63857
63858 2008-01-08  Bruno Haible  <bruno@clisp.org>
63859
63860         * modules/unictype/category-of (Depends-on): Add
63861         unictype/category-none.
63862         * modules/unictype/category-and-tests (Depends-on): Add
63863         unictype/category-{L,N,Lu,Nd}.
63864         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63865         * modules/unictype/category-or-tests (Depends-on): Add
63866         unictype/category-{L,N}.
63867         * modules/unictype/category-name-tests (Depends-on): Add
63868         unictype/category-{Z,Nl}.
63869         Reported by Simon Josefsson.
63870
63871 2008-01-08  Bruno Haible  <bruno@clisp.org>
63872
63873         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63874         convention better.
63875         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63876         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63877         Reported by Peter Miller <millerp@canb.auug.org.au>.
63878
63879 2008-01-08  Eric Blake  <ebb9@byu.net>
63880
63881         Rewrite memmem to guarantee linear complexity without malloc.
63882         * lib/memmem.c (memmem): Use Two-Way rather than
63883         Knuth-Morris-Pratt, to allow O(1) space usage.
63884         (critical_factorization, two_way_short_needle)
63885         (two_way_long_needle): New functions.
63886         (knuth_morris_pratt): Delete.
63887         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63888         Add stdint.
63889         * tests/test-memmem.c (main): Add tests for periodic needle and
63890         sublinear performance.
63891         * doc/functions/memmem.texi (memmem): Document other deficiencies
63892         in cygwin and older glibc.
63893
63894 2008-01-08  Bruno Haible  <bruno@clisp.org>
63895
63896         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63897         augmentation.
63898
63899 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63900
63901         Add a configure time option: --disable-acl.
63902         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63903         AC_ARG_ENABLE(acl).
63904
63905 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63906
63907         * tests/test-localename.c: Don't include obsolete "setenv.h".
63908
63909         * modules/localename-tests (Depends-on): Need unsetenv.
63910
63911 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63912
63913         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63914
63915 2008-01-06  Colin Watson  <cjwatson@debian.org>
63916
63917         * users.txt: Add man-db.
63918
63919 2008-01-07  Bruno Haible  <bruno@clisp.org>
63920
63921         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63922         previous section name.
63923
63924 2008-01-07  Bruno Haible  <bruno@clisp.org>
63925
63926         * lib/progname.c (set_program_name): Don't strip off a leading
63927         "lt-" prefix outside a .libs directory.
63928         Suggested by Paul Eggert.
63929
63930 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63931             Bruno Haible  <bruno@clisp.org>
63932
63933         Improve memory cleanup in 'relocatable' module.
63934         * lib/relocatable.h (compute_curr_prefix): Change return type to
63935         'char *'.
63936         * lib/relocatable.c (compute_curr_prefix): Change return type to
63937         'char *'. Free curr_installdir after use.
63938         (relocate): Free curr_prefix_better after use.
63939         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63940
63941 2008-01-01  Bruno Haible  <bruno@clisp.org>
63942
63943         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63944         failure on older glibc systems.
63945         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63946
63947 2008-01-05  Eric Blake  <ebb9@byu.net>
63948
63949         Avoid quadratic system memmem.
63950         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63951         Reported by Ralf Wildenhues.
63952
63953         Fix memmem test for mingw.
63954         * modules/memmem-tests (configure.ac): Check for alarm.
63955         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63956         it.
63957         * doc/functions/memmem.texi: New file.
63958         * doc/gnulib.texi (Function Substitutes): Add memmem.
63959         Reported by Bruno Haible.
63960
63961 2008-01-04  Bruno Haible  <bruno@clisp.org>
63962
63963         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63964         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63965         gl_HEADER_STRING_H_DEFAULTS.
63966
63967 2008-01-04  Eric Blake  <ebb9@byu.net>
63968
63969         Shorten duration of memmem test.
63970         * tests/test-memmem.c (main): Use alarm to declare failure if test
63971         is taking too long.
63972         Reported by Ralf Wildenhues.
63973
63974 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63975
63976         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63977         string, needed by strerror.
63978
63979 2008-01-03  Colin Watson  <cjwatson@debian.org>
63980             Bruno Haible  <bruno@clisp.org>
63981
63982         * doc/gnulib-tool.texi (Localization): New section.
63983
63984 2008-01-02  Bruno Haible  <bruno@clisp.org>
63985
63986         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63987         variables to 'unsigned char *' type.
63988         Reported by Paul Eggert.
63989
63990 2008-01-02  Jim Meyering  <jim@meyering.net>
63991
63992         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63993
63994 2007-12-31  Jim Meyering  <jim@meyering.net>
63995
63996         Avoid use of private FTS type name.
63997         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63998
63999 2007-12-30  Karl Berry  <karl@gnu.org>
64000
64001         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
64002         work around defect in Texinfo and/or the standalone Info browser.
64003
64004 2007-12-30  Bruno Haible  <bruno@clisp.org>
64005
64006         Unify 5 copies of the KMP code.
64007         * lib/str-kmp.h: New file.
64008         * lib/c-strcasestr.c: Include str-kmp.h.
64009         (knuth_morris_pratt): Remove function.
64010         (c_strcasestr): Update.
64011         * lib/c-strstr.c: Include str-kmp.h.
64012         (knuth_morris_pratt): Remove function.
64013         (c_strcasestr): Update.
64014         * lib/mbscasestr.c: Include str-kmp.h.
64015         (knuth_morris_pratt_unibyte): Remove function.
64016         * lib/mbsstr.c: Include str-kmp.h.
64017         (knuth_morris_pratt_unibyte): Remove function.
64018         * lib/strcasestr.c: Include str-kmp.h.
64019         (knuth_morris_pratt): Remove function.
64020         (strcasestr): Update.
64021         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
64022         * modules/c-strstr (Files): Likewise.
64023         * modules/mbscasestr (Files): Likewise.
64024         * modules/mbsstr (Files): Likewise.
64025         * modules/strcasestr (Files): Likewise.
64026         Suggested by Paul Eggert.
64027
64028 2007-12-30  Bruno Haible  <bruno@clisp.org>
64029
64030         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
64031         defined.
64032
64033 2007-12-30  Bruno Haible  <bruno@clisp.org>
64034
64035         * lib/xmalloca.h: Include xalloc.h.
64036         (xnmalloca): New macro.
64037
64038 2007-12-30  Bruno Haible  <bruno@clisp.org>
64039
64040         * lib/malloca.h (nmalloca): New macro.
64041         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
64042         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
64043         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
64044         knuth_morris_pratt_multibyte): Likewise.
64045         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
64046         knuth_morris_pratt_multibyte): Likewise.
64047         * lib/memmem.c (knuth_morris_pratt): Likewise.
64048         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
64049
64050 2007-12-25  Bruno Haible  <bruno@clisp.org>
64051
64052         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
64053         * lib/glob.c: Don't include openat.h.
64054         (link_exists2_p): Add back the code that deals with the
64055         !GLOB_ALTDIRFUNC case.
64056         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
64057         let it do the filename concatenation.
64058         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
64059         * modules/glob (Depends-on): Remove openat.
64060
64061 2007-12-31  Bruno Haible  <bruno@clisp.org>
64062
64063         * modules/dirfd (License): Change to LGPLv2+.
64064         Approved by Jim Meyering.
64065
64066 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64067
64068         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
64069         when multiplying M by sizeof (size_t).
64070
64071 2007-12-10  Martin Lambers  <marlam@marlam.de>
64072
64073         Override getpagesize on mingw.
64074         * lib/getpagesize.c: New file.
64075         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
64076         * modules/getpagesize (Files): Add lib/getpagesize.c.
64077         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
64078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64079         REPLACE_GETPAGESIZE.
64080         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
64081
64082 2007-12-25  Bruno Haible  <bruno@clisp.org>
64083
64084         * modules/localcharset (Notice): New field.
64085         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
64086         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
64087
64088 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64089             Bruno Haible  <bruno@clisp.org>
64090
64091         Avoid using the syntax symbol() in formatted documentation.
64092         * MODULES.html.sh (func_module): When replacing symbol() with a
64093         hyperlink, remove the parentheses. Show an error if some remain.
64094         Recognize and render the '...' syntax.
64095         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
64096         Rework. Add paragraph about GCC's inlining.
64097         * doc/alloca.texi: Likewise.
64098         * doc/error.texi: Remove parentheses from symbol reference.
64099         * doc/gnulib-intro.texi: Likewise.
64100         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
64101         * modules/fnmatch (Description): Reword to say "the ... function".
64102         * modules/full-read (Description): Likewise.
64103         * modules/full-write (Description): Likewise.
64104         * modules/safe-read (Description): Likewise.
64105         * modules/safe-write (Description): Likewise.
64106         * modules/strchrnul (Description): Likewise.
64107         * modules/trim (Description): Likewise.
64108         * modules/error (Description): Remove parentheses from symbol
64109         references.
64110         * modules/verror (Description): Likewise.
64111         Reported by Karl Berry.
64112
64113 2007-12-25  Bruno Haible  <bruno@clisp.org>
64114
64115         Fixup after 2007-10-16 commit.
64116         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
64117
64118 2007-12-24  Bruno Haible  <bruno@clisp.org>
64119
64120         Make --enable-relocatable work with DESTDIR.
64121         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
64122         to compute installdir from destprog.
64123         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
64124         also set the RELOC_DESTDIR variable.
64125         Reported by Левашев Иван <octagram@bluebottle.com>.
64126
64127 2007-12-24  Bruno Haible  <bruno@clisp.org>
64128
64129         Fix link error due to xalloc_die().
64130         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
64131         of xreadlink.
64132         * lib/relocwrapper.c: Update comments.
64133         * build-aux/install-reloc: Remove xreadlink.c from file list.
64134         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
64135         xreadlink.c.
64136         Reported by Левашев Иван <octagram@bluebottle.com>.
64137
64138 2007-12-24  Bruno Haible  <bruno@clisp.org>
64139
64140         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
64141         * lib/setenv.h: Remove file.
64142         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
64143         lib/setenv.h.
64144         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
64145         (Depends-on): Add stdlib.
64146         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
64147         gl_FUNC_UNSETENV.
64148         (Include): Replace setenv.h with <stdlib.h>.
64149         * modules/unsetenv: New file.
64150         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
64151         * lib/unsetenv.c: Include <stdlib.h> first.
64152         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
64153         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
64154         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
64155         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
64156         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
64157         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64158         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
64159         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64160         * doc/functions/unsetenv.texi: Update.
64161         * modules/xsetenv (Depends-on): Add unsetenv.
64162         * modules/getdate (Depends-on): Likewise.
64163         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
64164         * lib/xsetenv.c: Don't include setenv.h.
64165         * lib/getdate.y: Likewise.
64166         * lib/relocwrapper.c: Likewise.
64167         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
64168         (Depends-on): Add stdlib.
64169         * NEWS: Mention the changes.
64170         Reported by Левашев Иван <octagram@bluebottle.com>.
64171
64172 2007-12-23  Bruno Haible  <bruno@clisp.org>
64173
64174         * lib/memmem.c (memmem): Use lowercase variable names. Tab
64175         indentation.
64176
64177 2007-12-23  Bruno Haible  <bruno@clisp.org>
64178
64179         * lib/c-strcasestr.c: Add more comments.
64180         * lib/c-strstr.c: Likewise.
64181         * lib/mbscasestr.c: Likewise.
64182         * lib/mbsstr.c: Likewise.
64183         * lib/strcasestr.c: Likewise.
64184         * lib/memmem.c: Likewise.
64185
64186 2007-12-23  Bruno Haible  <bruno@clisp.org>
64187
64188         * tests/test-memmem.c: Include <string.h> first.
64189
64190 2007-12-22  Bruno Haible  <bruno@clisp.org>
64191
64192         * gnulib-tool (func_create_testdir): Change $auxdir while generating
64193         the contents of $testsbase.
64194         Reported by Ralf Wildenhues.
64195
64196 2007-12-22  Bruno Haible  <bruno@clisp.org>
64197
64198         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
64199         two variables local_ldadd_before, local_ldadd_last.
64200
64201 2007-12-20  Eric Blake  <ebb9@byu.net>
64202
64203         Work around circular library issue when cross-compiling.
64204         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
64205         that progname.o does not need to pull in rpl_memcmp.
64206
64207 2007-12-19  Eric Blake  <ebb9@byu.net>
64208
64209         Fix memmem to avoid O(n^2) worst-case complexity.
64210         * lib/memmem.c (knuth_morris_pratt): New function.
64211         (memmem): Use it if first few naive iterations fail.
64212         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
64213         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
64214         * modules/memchr (License): Likewise.
64215         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
64216         malloca.
64217         * tests/test-memmem.c: Rewrite, borrowing ideas from
64218         test-mbsstr1.c; the old version wouldn't even compile!
64219         * modules/memmem-tests: New file.
64220         * lib/string.in.h (rpl_memmem): Add declaration.
64221         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
64222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
64223         REPLACE_MEMMEM.
64224
64225 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64226
64227         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
64228         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
64229         before any system include files, and undef after them all.  This
64230         should fix a problem on VMS reported by John E. Malmberg in
64231         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
64232
64233 2007-12-17  Eric Blake  <ebb9@byu.net>
64234
64235         Revert addition of verify, for BSD/OS.
64236         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
64237         can't handle large files, for the sake of obsolete platforms.
64238         * modules/fseeko (Depends-on): Remove verify.
64239         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
64240         * doc/functions/ftello.texi (ftello): Likewise.
64241         * doc/functions/fgetpos.texi (fgetpos): Likewise.
64242         Reported by Larry Jones.
64243
64244 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
64245
64246         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
64247         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
64248
64249 2007-12-17  Jim Meyering  <meyering@redhat.com>
64250
64251         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
64252         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
64253         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
64254         * modules/getcwd (Depends-on): Add openat.
64255         Reported by Petr Salinger.
64256
64257 2007-12-17  Bruno Haible  <bruno@clisp.org>
64258
64259         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
64260         avoid a segmentation fault of the configure test on x86_64 systems.
64261
64262 2007-12-15  Jim Meyering  <meyering@redhat.com>
64263
64264         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
64265
64266 2007-12-13  Eric Blake  <ebb9@byu.net>
64267
64268         Another fseek test.
64269         * tests/test-fseek.c (main): Also test ungetc handling.
64270         * tests/test-fseeko.c (main): Likewise.
64271         * modules/fseeko (Depends-on): Add verify.
64272         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
64273         large.
64274         Reported by Larry Jones.
64275
64276         Fix fseeko on mingw.
64277         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
64278         seek.
64279
64280         Beef up fseek tests.
64281         * tests/test-fseek.c (main): Also test eof handling.
64282         * tests/test-fseeko.c (main): Likewise.
64283         Reported by Larry Jones.
64284
64285 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
64286
64287         Fix fseeko on BSD-based platforms.
64288         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
64289         successful seek.
64290
64291 2007-12-12  Eric Blake  <ebb9@byu.net>
64292
64293         Allow circular dependency of separate libtests.a
64294         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
64295         when use_libtests.
64296
64297 2007-12-11  Eric Blake  <ebb9@byu.net>
64298
64299         Fix bug with -0.0L in previous patch.
64300         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
64301         * tests/test-isnan.c (main): Also test on zeroes.
64302         * tests/test-isnanf.c (main): Likewise.
64303         * tests/test-isnanl.h (main): Likewise.
64304
64305         Detect pseudo-denormals on x86 even when cross-compiling.
64306         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
64307         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
64308         invalid bit patterns that happen to satisfy ==.
64309
64310         Avoid link failures with separate libtests.a.
64311         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
64312         last, to satisfy circular dependencies.
64313
64314 2007-12-11  Eric Blake  <ebb9@byu.net>
64315         and Bruno Haible  <bruno@clisp.org>
64316
64317         Fix OpenBSD 4.0 <float.h> handling of long double.
64318         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
64319         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
64320         * doc/headers/float.texi (float.h): Document OpenBSD bug.
64321
64322 2007-12-11  Jim Meyering  <meyering@redhat.com>
64323
64324         * users.txt: Add libvirt.
64325
64326         Support versions of autoconf prior to 2.59c.
64327         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
64328         if it is not already defined.
64329
64330 2007-12-09  Bruno Haible  <bruno@clisp.org>
64331
64332         Let 'gnulib-tool --import' collect sources needed for the tests in
64333         tests/ rather than in lib/.
64334         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
64335         argument. If true, add rules to generate libtests.a, and put libtests.a
64336         into $(LDADD). Consider source files in subdirectories and set
64337         uses_subdirs.
64338         (func_emit_initmacro_start, func_emit_initmacro_end,
64339         func_emit_initmacro_done): Pass all arguments explicitly.
64340         (func_import): Determine two module lists main_modules,
64341         testsrelated_modules. Determine use_libtests. Determine two variables
64342         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
64343         instead of just sed_transform_lib_file. Determine two variables
64344         main_files and testsrelated_files. Compute 'files' as the union of
64345         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
64346         func_add_or_update. In the generated gnulib-comp.m4, collect the
64347         object files for tests/ in different variables than those for lib/.
64348         Substitute LIBTESTS_LIBDEPS.
64349         (func_create_testdir): Combine the uses_subdirs results from
64350         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
64351
64352 2007-12-09  Bruno Haible  <bruno@clisp.org>
64353
64354         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
64355         the build-aux directory.
64356
64357 2007-12-09  Bruno Haible  <bruno@clisp.org>
64358
64359         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
64360         introduced on 2006-09-09.
64361
64362 2007-12-07  Jim Meyering  <meyering@redhat.com>
64363
64364         Let these macros work also with autoconf-2.59.
64365         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
64366         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
64367         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64368
64369 2007-12-06  Jim Meyering  <meyering@redhat.com>
64370
64371         Avoid a configure-time syntax error in gl_FUNC_ACL.
64372         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
64373         function in each branch, before testing the cache variable.
64374
64375 2007-12-04  Eric Blake  <ebb9@byu.net>
64376
64377         Make scripts executable.
64378         * build-aux/config.guess: Add execute permissions.
64379         * build-aux/config.sub: Likewise.
64380         * build-aux/gendocs.sh: Likewise.
64381
64382         Fix frexp on mingw.
64383         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
64384         cross-compiling.
64385         * doc/functions/frexp.texi (frexp): Document the bug.
64386
64387         Make cygwin fseeko check more reliable.
64388         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
64389         version numbers, rather than unrelated feature check.
64390         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
64391         * doc/functions/ftello.texi (ftello): Likewise.
64392         Reported by Bruno Haible.
64393
64394         * m4/strerror.m4: Bump version number.
64395
64396 2007-12-03  Bruno Haible  <bruno@clisp.org>
64397
64398         * doc/functions/mprotect.texi: Mention the mingw problem.
64399
64400 2007-12-03  Eric Blake  <ebb9@byu.net>
64401
64402         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
64403         REPLACE_STRERROR is initialized before this macro.
64404
64405 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64406
64407         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
64408         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
64409         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
64410         put -lsec in even for programs other than 'ls'.  This fixes a problem
64411         for gettext reported by Bruno Haible in
64412         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
64413         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
64414         Add support for Solaris 10.  This isn't efficient, but should get the
64415         job done for now.
64416
64417 2007-12-03  James Youngman  <jay@gnu.org>
64418
64419         * doc/regexprops-generic.texi: change "an close-group" to "a
64420         close-group" and "illegal" to "not allowed".
64421
64422 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64423
64424         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
64425         pr_byname.h. Needed for the rare case when the maintainer has done
64426         "make maintainer-clean" in the source directory and then attempts a
64427         build outside the source directory.
64428         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
64429         scripts_byname.h.
64430
64431 2007-12-02  Martin Lambers <marlam@marlam.de>
64432             Bruno Haible  <bruno@clisp.org>
64433
64434         * lib/getpagesize.h: Remove file.
64435         * lib/unistd.in.h: Include declaration of getpagesize here.
64436         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
64437         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
64438         HAVE_SYS_PARAM_H.
64439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
64440         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64441         * modules/getpagesize (Files): Remove lib/getpagesize.h.
64442         (Depends-on): Add unistd.
64443         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64444         (Include): Use <unistd.h> instead of getpagesize.h.
64445         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
64446         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64447         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
64448         gl_GETPAGESIZE invocation, already handled by module dependency.
64449         * lib/pagealign_alloc.c: Don't include getpagesize.h.
64450
64451 2007-12-02  Bruno Haible  <bruno@clisp.org>
64452
64453         * modules/strings-tests: New file.
64454         * tests/test-strings.c: New file.
64455
64456         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
64457         * lib/strings.in.h: New file.
64458         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
64459         * m4/strings_h.m4: New file.
64460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
64461         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
64462         * modules/strings: New file.
64463         * modules/string (Makefile.am): Update.
64464         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
64465         Reported by Karl Berry.
64466
64467 2007-12-01  Eric Blake  <ebb9@byu.net>
64468
64469         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
64470         accommodate fix in cygwin 1.5.25.
64471
64472 2007-12-01  Jim Meyering  <meyering@redhat.com>
64473
64474         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
64475         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
64476         that would inhibit utf8-optimization of a regexp containing line-
64477         or buffer-anchors, e.g., `^', `$'.
64478
64479 2007-11-30  Bruno Haible  <bruno@clisp.org>
64480
64481         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
64482         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
64483         glthread_recursive_lock_init.
64484         * lib/lock.c (glthread_recursive_lock_init)
64485         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
64486         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64487
64488 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
64489
64490         New function qset_acl, like set_acl but with syscall semantics.
64491         * lib/acl.h (qset_acl): New decl.
64492         * lib/acl.c (qset_acl): New function.
64493         (set_acl): Use new function.  Use more-consistent diagnostics.
64494
64495 2007-11-28  Jim Meyering  <meyering@redhat.com>
64496
64497         * modules/physmem (License): Change from GPL to LGPLv2+.
64498
64499 2007-11-26  Bruno Haible  <bruno@clisp.org>
64500
64501         * lib/vasnprintf.c (decode_long_double): Don't abort if the
64502         'long double' type has excess precision.
64503         Reported by Jim Meyering in
64504         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
64505
64506 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64507
64508         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64509         Sync from <http://gnu.org/licenses>.
64510         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64511         with license text from same location.
64512         * doc/maintain.texi, doc/standards.texi:  Sync from
64513         <http://savannah.gnu.org/projects/gnustandards>.
64514
64515 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
64516         and Jim Meyering  <meyering@redhat.com>
64517
64518         Adjust getdate' grammar to accept a slightly more regular language.
64519         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64520         Before, the former was rejected.
64521         * lib/getdate.y (digits_to_date_time): New function, factored
64522         out of ...
64523         (number): ...here.  Just call digits_to_date_time.
64524         (hybrid): New non-terminal to handle an <unsigned number,
64525         signed relative offset> sequence consistently.
64526
64527 2007-11-18  Jim Meyering  <meyering@redhat.com>
64528
64529         Pull my changes from coreutils:
64530         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64531         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64532         use of $gnulib_tool_option_extras, so that it's separated from the
64533         preceding argument.
64534
64535         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64536         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64537         parent destination directories before copying a file into place.
64538
64539 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64540
64541         bootstrap: work also with 4-argument variant of AC_INIT
64542         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64543
64544 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64545
64546         Port test-getaddrinfo to Solaris.
64547         Problem reported by Bruno Haible in
64548         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64549         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64550         explanation of setting 'hints'.
64551         Don't reject an implementation merely because it returns EAI_SERVICE.
64552         (EAI_SERVICE): Define to 0 if not defined.
64553
64554 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64555
64556         The license of gnu-make and posix-shell is now "GPLed build tool".
64557         * modules/gnu-make (License): Likewise.
64558         * modules/posix-shell (License): Likewise.
64559
64560         New module posix-shell, for determining a POSIX shell
64561         or perhaps something that is close enough to a POSIX shell.
64562         * m4/posix-shell.m4: New file.
64563         * modules/posix-shell: New file.
64564
64565         * MODULES.html.sh: Mention new module.
64566
64567         New module gnu-make, for determining whether we're using GNU Make.
64568         * m4/gnu-make.m4: New file.
64569         * modules/gnu-make: New file.
64570         * MODULES.html.sh: Mention new module.
64571
64572 2007-11-14  Jim Meyering  <meyering@redhat.com>
64573
64574         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64575         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64576         use this macro to create a function _definition_.
64577         Remove useless "#undef ARGMATCH_DIE".
64578
64579 2007-11-14  Bruno Haible  <bruno@clisp.org>
64580
64581         * lib/config.charset: Update for OpenBSD 4.1.
64582         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64583
64584 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64585
64586         Document 64-bit #if problems in stdint.texi.
64587         * doc/headers/stdint.texi (stdint.h): Mention problems with
64588         64-bit-#if, and how to work around them.
64589
64590         Don't insist on 'long long int' support in the preprocessor.  It
64591         breaks too many things.  For example, PRIdMAX still uses a 'long
64592         long int' format with the latest Sun compiler, even though
64593         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64594         preprocessor problem.  This causes the latest coreutils to dump
64595         core on Solaris 10 sparc with the Sun C compiler.
64596         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64597         the troublesome expressions at configure-time, not at #if-time.
64598         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64599         preprocessor.
64600         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64601         compile-time C checks, done at 'configure'-time.
64602         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64603         * modules/inttypes (Makefile): Substitute the new symbols that
64604         gl_INTTYPES_H now generates.
64605         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64606
64607 2007-11-12  Bruno Haible  <bruno@clisp.org>
64608
64609         Tests for Unicode character classification functions.
64610
64611         * modules/unictype/bidicategory-byname-tests: New file.
64612         * modules/unictype/bidicategory-name-tests: New file.
64613         * modules/unictype/bidicategory-of-tests: New file.
64614         * modules/unictype/bidicategory-test-tests: New file.
64615         * modules/unictype/block-list-tests: New file.
64616         * modules/unictype/block-of-tests: New file.
64617         * modules/unictype/block-test-tests: New file.
64618         * modules/unictype/category-C-tests: New file.
64619         * modules/unictype/category-Cc-tests: New file.
64620         * modules/unictype/category-Cf-tests: New file.
64621         * modules/unictype/category-Cn-tests: New file.
64622         * modules/unictype/category-Co-tests: New file.
64623         * modules/unictype/category-Cs-tests: New file.
64624         * modules/unictype/category-L-tests: New file.
64625         * modules/unictype/category-Ll-tests: New file.
64626         * modules/unictype/category-Lm-tests: New file.
64627         * modules/unictype/category-Lo-tests: New file.
64628         * modules/unictype/category-Lt-tests: New file.
64629         * modules/unictype/category-Lu-tests: New file.
64630         * modules/unictype/category-M-tests: New file.
64631         * modules/unictype/category-Mc-tests: New file.
64632         * modules/unictype/category-Me-tests: New file.
64633         * modules/unictype/category-Mn-tests: New file.
64634         * modules/unictype/category-N-tests: New file.
64635         * modules/unictype/category-Nd-tests: New file.
64636         * modules/unictype/category-Nl-tests: New file.
64637         * modules/unictype/category-No-tests: New file.
64638         * modules/unictype/category-P-tests: New file.
64639         * modules/unictype/category-Pc-tests: New file.
64640         * modules/unictype/category-Pd-tests: New file.
64641         * modules/unictype/category-Pe-tests: New file.
64642         * modules/unictype/category-Pf-tests: New file.
64643         * modules/unictype/category-Pi-tests: New file.
64644         * modules/unictype/category-Po-tests: New file.
64645         * modules/unictype/category-Ps-tests: New file.
64646         * modules/unictype/category-S-tests: New file.
64647         * modules/unictype/category-Sc-tests: New file.
64648         * modules/unictype/category-Sk-tests: New file.
64649         * modules/unictype/category-Sm-tests: New file.
64650         * modules/unictype/category-So-tests: New file.
64651         * modules/unictype/category-Z-tests: New file.
64652         * modules/unictype/category-Zl-tests: New file.
64653         * modules/unictype/category-Zp-tests: New file.
64654         * modules/unictype/category-Zs-tests: New file.
64655         * modules/unictype/category-and-not-tests: New file.
64656         * modules/unictype/category-and-tests: New file.
64657         * modules/unictype/category-byname-tests: New file.
64658         * modules/unictype/category-name-tests: New file.
64659         * modules/unictype/category-none-tests: New file.
64660         * modules/unictype/category-of-tests: New file.
64661         * modules/unictype/category-or-tests: New file.
64662         * modules/unictype/category-test-withtable-tests: New file.
64663         * modules/unictype/combining-class-tests: New file.
64664         * modules/unictype/ctype-alnum-tests: New file.
64665         * modules/unictype/ctype-alpha-tests: New file.
64666         * modules/unictype/ctype-blank-tests: New file.
64667         * modules/unictype/ctype-cntrl-tests: New file.
64668         * modules/unictype/ctype-digit-tests: New file.
64669         * modules/unictype/ctype-graph-tests: New file.
64670         * modules/unictype/ctype-lower-tests: New file.
64671         * modules/unictype/ctype-print-tests: New file.
64672         * modules/unictype/ctype-punct-tests: New file.
64673         * modules/unictype/ctype-space-tests: New file.
64674         * modules/unictype/ctype-upper-tests: New file.
64675         * modules/unictype/ctype-xdigit-tests: New file.
64676         * modules/unictype/decimal-digit-tests: New file.
64677         * modules/unictype/digit-tests: New file.
64678         * modules/unictype/mirror-tests: New file.
64679         * modules/unictype/numeric-tests: New file.
64680         * modules/unictype/property-alphabetic-tests: New file.
64681         * modules/unictype/property-ascii-hex-digit-tests: New file.
64682         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64683         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64684         * modules/unictype/property-bidi-block-separator-tests: New file.
64685         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64686         * modules/unictype/property-bidi-common-separator-tests: New file.
64687         * modules/unictype/property-bidi-control-tests: New file.
64688         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64689         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64690         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64691         * modules/unictype/property-bidi-european-digit-tests: New file.
64692         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64693         * modules/unictype/property-bidi-left-to-right-tests: New file.
64694         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64695         * modules/unictype/property-bidi-other-neutral-tests: New file.
64696         * modules/unictype/property-bidi-pdf-tests: New file.
64697         * modules/unictype/property-bidi-segment-separator-tests: New file.
64698         * modules/unictype/property-bidi-whitespace-tests: New file.
64699         * modules/unictype/property-byname-tests: New file.
64700         * modules/unictype/property-combining-tests: New file.
64701         * modules/unictype/property-composite-tests: New file.
64702         * modules/unictype/property-currency-symbol-tests: New file.
64703         * modules/unictype/property-dash-tests: New file.
64704         * modules/unictype/property-decimal-digit-tests: New file.
64705         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64706         * modules/unictype/property-deprecated-tests: New file.
64707         * modules/unictype/property-diacritic-tests: New file.
64708         * modules/unictype/property-extender-tests: New file.
64709         * modules/unictype/property-format-control-tests: New file.
64710         * modules/unictype/property-grapheme-base-tests: New file.
64711         * modules/unictype/property-grapheme-extend-tests: New file.
64712         * modules/unictype/property-grapheme-link-tests: New file.
64713         * modules/unictype/property-hex-digit-tests: New file.
64714         * modules/unictype/property-hyphen-tests: New file.
64715         * modules/unictype/property-id-continue-tests: New file.
64716         * modules/unictype/property-id-start-tests: New file.
64717         * modules/unictype/property-ideographic-tests: New file.
64718         * modules/unictype/property-ids-binary-operator-tests: New file.
64719         * modules/unictype/property-ids-trinary-operator-tests: New file.
64720         * modules/unictype/property-ignorable-control-tests: New file.
64721         * modules/unictype/property-iso-control-tests: New file.
64722         * modules/unictype/property-join-control-tests: New file.
64723         * modules/unictype/property-left-of-pair-tests: New file.
64724         * modules/unictype/property-line-separator-tests: New file.
64725         * modules/unictype/property-logical-order-exception-tests: New file.
64726         * modules/unictype/property-lowercase-tests: New file.
64727         * modules/unictype/property-math-tests: New file.
64728         * modules/unictype/property-non-break-tests: New file.
64729         * modules/unictype/property-not-a-character-tests: New file.
64730         * modules/unictype/property-numeric-tests: New file.
64731         * modules/unictype/property-other-alphabetic-tests: New file.
64732         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64733         * modules/unictype/property-other-grapheme-extend-tests: New file.
64734         * modules/unictype/property-other-id-continue-tests: New file.
64735         * modules/unictype/property-other-id-start-tests: New file.
64736         * modules/unictype/property-other-lowercase-tests: New file.
64737         * modules/unictype/property-other-math-tests: New file.
64738         * modules/unictype/property-other-uppercase-tests: New file.
64739         * modules/unictype/property-paired-punctuation-tests: New file.
64740         * modules/unictype/property-paragraph-separator-tests: New file.
64741         * modules/unictype/property-pattern-syntax-tests: New file.
64742         * modules/unictype/property-pattern-white-space-tests: New file.
64743         * modules/unictype/property-private-use-tests: New file.
64744         * modules/unictype/property-punctuation-tests: New file.
64745         * modules/unictype/property-quotation-mark-tests: New file.
64746         * modules/unictype/property-radical-tests: New file.
64747         * modules/unictype/property-sentence-terminal-tests: New file.
64748         * modules/unictype/property-soft-dotted-tests: New file.
64749         * modules/unictype/property-space-tests: New file.
64750         * modules/unictype/property-terminal-punctuation-tests: New file.
64751         * modules/unictype/property-test-tests: New file.
64752         * modules/unictype/property-titlecase-tests: New file.
64753         * modules/unictype/property-unassigned-code-value-tests: New file.
64754         * modules/unictype/property-unified-ideograph-tests: New file.
64755         * modules/unictype/property-uppercase-tests: New file.
64756         * modules/unictype/property-variation-selector-tests: New file.
64757         * modules/unictype/property-white-space-tests: New file.
64758         * modules/unictype/property-xid-continue-tests: New file.
64759         * modules/unictype/property-xid-start-tests: New file.
64760         * modules/unictype/property-zero-width-tests: New file.
64761         * modules/unictype/scripts-tests: New file.
64762         * modules/unictype/syntax-c-ident-tests: New file.
64763         * modules/unictype/syntax-c-whitespace-tests: New file.
64764         * modules/unictype/syntax-java-ident-tests: New file.
64765         * modules/unictype/syntax-java-whitespace-tests: New file.
64766         * tests/unictype/test-bidi_byname.c: New file.
64767         * tests/unictype/test-bidi_name.c: New file.
64768         * tests/unictype/test-bidi_of.c: New file.
64769         * tests/unictype/test-bidi_test.c: New file.
64770         * tests/unictype/test-block_list.c: New file.
64771         * tests/unictype/test-block_of.c: New file.
64772         * tests/unictype/test-block_test.c: New file.
64773         * tests/unictype/test-categ_and.c: New file.
64774         * tests/unictype/test-categ_and_not.c: New file.
64775         * tests/unictype/test-categ_byname.c: New file.
64776         * tests/unictype/test-categ_name.c: New file.
64777         * tests/unictype/test-categ_none.c: New file.
64778         * tests/unictype/test-categ_of.c: New file.
64779         * tests/unictype/test-categ_or.c: New file.
64780         * tests/unictype/test-categ_test_withtable.c: New file.
64781         * tests/unictype/test-combining.c: New file.
64782         * tests/unictype/test-decdigit.c: New file.
64783         * tests/unictype/test-digit.c: New file.
64784         * tests/unictype/test-mirror.c: New file.
64785         * tests/unictype/test-numeric.c: New file.
64786         * tests/unictype/test-pr_byname.c: New file.
64787         * tests/unictype/test-pr_test.c: New file.
64788         * tests/unictype/test-predicate-part1.h: New file.
64789         * tests/unictype/test-predicate-part2.h: New file.
64790         * tests/unictype/test-scripts.c: New file.
64791         * tests/unictype/test-sy_c_ident.c: New file.
64792         * tests/unictype/test-sy_java_ident.c: New file.
64793
64794         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64795         for Unicode 5.0.0.
64796         * tests/unictype/test-categ_Cc.c: Likewise.
64797         * tests/unictype/test-categ_Cf.c: Likewise.
64798         * tests/unictype/test-categ_Cn.c: Likewise.
64799         * tests/unictype/test-categ_Co.c: Likewise.
64800         * tests/unictype/test-categ_Cs.c: Likewise.
64801         * tests/unictype/test-categ_L.c: Likewise.
64802         * tests/unictype/test-categ_Ll.c: Likewise.
64803         * tests/unictype/test-categ_Lm.c: Likewise.
64804         * tests/unictype/test-categ_Lo.c: Likewise.
64805         * tests/unictype/test-categ_Lt.c: Likewise.
64806         * tests/unictype/test-categ_Lu.c: Likewise.
64807         * tests/unictype/test-categ_M.c: Likewise.
64808         * tests/unictype/test-categ_Mc.c: Likewise.
64809         * tests/unictype/test-categ_Me.c: Likewise.
64810         * tests/unictype/test-categ_Mn.c: Likewise.
64811         * tests/unictype/test-categ_N.c: Likewise.
64812         * tests/unictype/test-categ_Nd.c: Likewise.
64813         * tests/unictype/test-categ_Nl.c: Likewise.
64814         * tests/unictype/test-categ_No.c: Likewise.
64815         * tests/unictype/test-categ_P.c: Likewise.
64816         * tests/unictype/test-categ_Pc.c: Likewise.
64817         * tests/unictype/test-categ_Pd.c: Likewise.
64818         * tests/unictype/test-categ_Pe.c: Likewise.
64819         * tests/unictype/test-categ_Pf.c: Likewise.
64820         * tests/unictype/test-categ_Pi.c: Likewise.
64821         * tests/unictype/test-categ_Po.c: Likewise.
64822         * tests/unictype/test-categ_Ps.c: Likewise.
64823         * tests/unictype/test-categ_S.c: Likewise.
64824         * tests/unictype/test-categ_Sc.c: Likewise.
64825         * tests/unictype/test-categ_Sk.c: Likewise.
64826         * tests/unictype/test-categ_Sm.c: Likewise.
64827         * tests/unictype/test-categ_So.c: Likewise.
64828         * tests/unictype/test-categ_Z.c: Likewise.
64829         * tests/unictype/test-categ_Zl.c: Likewise.
64830         * tests/unictype/test-categ_Zp.c: Likewise.
64831         * tests/unictype/test-categ_Zs.c: Likewise.
64832         * tests/unictype/test-ctype_alnum.c: Likewise.
64833         * tests/unictype/test-ctype_alpha.c: Likewise.
64834         * tests/unictype/test-ctype_blank.c: Likewise.
64835         * tests/unictype/test-ctype_cntrl.c: Likewise.
64836         * tests/unictype/test-ctype_digit.c: Likewise.
64837         * tests/unictype/test-ctype_graph.c: Likewise.
64838         * tests/unictype/test-ctype_lower.c: Likewise.
64839         * tests/unictype/test-ctype_print.c: Likewise.
64840         * tests/unictype/test-ctype_punct.c: Likewise.
64841         * tests/unictype/test-ctype_space.c: Likewise.
64842         * tests/unictype/test-ctype_upper.c: Likewise.
64843         * tests/unictype/test-ctype_xdigit.c: Likewise.
64844         * tests/unictype/test-decdigit.h: Likewise.
64845         * tests/unictype/test-digit.h: Likewise.
64846         * tests/unictype/test-numeric.h: Likewise.
64847         * tests/unictype/test-pr_alphabetic.c: Likewise.
64848         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64849         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64850         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64851         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64852         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64853         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64854         * tests/unictype/test-pr_bidi_control.c: Likewise.
64855         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64856         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64857         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64858         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64859         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64860         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64861         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64862         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64863         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64864         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64865         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64866         * tests/unictype/test-pr_combining.c: Likewise.
64867         * tests/unictype/test-pr_composite.c: Likewise.
64868         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64869         * tests/unictype/test-pr_dash.c: Likewise.
64870         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64871         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64872         * tests/unictype/test-pr_deprecated.c: Likewise.
64873         * tests/unictype/test-pr_diacritic.c: Likewise.
64874         * tests/unictype/test-pr_extender.c: Likewise.
64875         * tests/unictype/test-pr_format_control.c: Likewise.
64876         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64877         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64878         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64879         * tests/unictype/test-pr_hex_digit.c: Likewise.
64880         * tests/unictype/test-pr_hyphen.c: Likewise.
64881         * tests/unictype/test-pr_id_continue.c: Likewise.
64882         * tests/unictype/test-pr_id_start.c: Likewise.
64883         * tests/unictype/test-pr_ideographic.c: Likewise.
64884         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64885         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64886         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64887         * tests/unictype/test-pr_iso_control.c: Likewise.
64888         * tests/unictype/test-pr_join_control.c: Likewise.
64889         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64890         * tests/unictype/test-pr_line_separator.c: Likewise.
64891         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64892         * tests/unictype/test-pr_lowercase.c: Likewise.
64893         * tests/unictype/test-pr_math.c: Likewise.
64894         * tests/unictype/test-pr_non_break.c: Likewise.
64895         * tests/unictype/test-pr_not_a_character.c: Likewise.
64896         * tests/unictype/test-pr_numeric.c: Likewise.
64897         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64898         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64899         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64900         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64901         * tests/unictype/test-pr_other_id_start.c: Likewise.
64902         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64903         * tests/unictype/test-pr_other_math.c: Likewise.
64904         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64905         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64906         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64907         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64908         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64909         * tests/unictype/test-pr_private_use.c: Likewise.
64910         * tests/unictype/test-pr_punctuation.c: Likewise.
64911         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64912         * tests/unictype/test-pr_radical.c: Likewise.
64913         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64914         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64915         * tests/unictype/test-pr_space.c: Likewise.
64916         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64917         * tests/unictype/test-pr_titlecase.c: Likewise.
64918         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64919         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64920         * tests/unictype/test-pr_uppercase.c: Likewise.
64921         * tests/unictype/test-pr_variation_selector.c: Likewise.
64922         * tests/unictype/test-pr_white_space.c: Likewise.
64923         * tests/unictype/test-pr_xid_continue.c: Likewise.
64924         * tests/unictype/test-pr_xid_start.c: Likewise.
64925         * tests/unictype/test-pr_zero_width.c: Likewise.
64926         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64927         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64928
64929 2007-11-12  Bruno Haible  <bruno@clisp.org>
64930
64931         Unicode character classification functions.
64932         * lib/unictype.h: New file.
64933         * modules/unictype/base: New file.
64934         * modules/unictype/category-L: New file.
64935         * modules/unictype/category-Lu: New file.
64936         * modules/unictype/category-Ll: New file.
64937         * modules/unictype/category-Lt: New file.
64938         * modules/unictype/category-Lm: New file.
64939         * modules/unictype/category-Lo: New file.
64940         * modules/unictype/category-M: New file.
64941         * modules/unictype/category-Mn: New file.
64942         * modules/unictype/category-Mc: New file.
64943         * modules/unictype/category-Me: New file.
64944         * modules/unictype/category-N: New file.
64945         * modules/unictype/category-Nd: New file.
64946         * modules/unictype/category-Nl: New file.
64947         * modules/unictype/category-No: New file.
64948         * modules/unictype/category-P: New file.
64949         * modules/unictype/category-Pc: New file.
64950         * modules/unictype/category-Pd: New file.
64951         * modules/unictype/category-Ps: New file.
64952         * modules/unictype/category-Pe: New file.
64953         * modules/unictype/category-Pi: New file.
64954         * modules/unictype/category-Pf: New file.
64955         * modules/unictype/category-Po: New file.
64956         * modules/unictype/category-S: New file.
64957         * modules/unictype/category-Sm: New file.
64958         * modules/unictype/category-Sc: New file.
64959         * modules/unictype/category-Sk: New file.
64960         * modules/unictype/category-So: New file.
64961         * modules/unictype/category-Z: New file.
64962         * modules/unictype/category-Zs: New file.
64963         * modules/unictype/category-Zl: New file.
64964         * modules/unictype/category-Zp: New file.
64965         * modules/unictype/category-C: New file.
64966         * modules/unictype/category-Cc: New file.
64967         * modules/unictype/category-Cf: New file.
64968         * modules/unictype/category-Cs: New file.
64969         * modules/unictype/category-Co: New file.
64970         * modules/unictype/category-Cn: New file.
64971         * modules/unictype/category-or: New file.
64972         * modules/unictype/category-of: New file.
64973         * modules/unictype/category-test: New file.
64974         * modules/unictype/category-test-withtable: New file.
64975         * modules/unictype/category-byname: New file.
64976         * modules/unictype/category-none: New file.
64977         * modules/unictype/category-and: New file.
64978         * modules/unictype/category-and-not: New file.
64979         * modules/unictype/category-name: New file.
64980         * modules/unictype/combining-class: New file.
64981         * modules/unictype/category-all: New file.
64982         * modules/unictype/bidicategory-all: New file.
64983         * modules/unictype/bidicategory-byname: New file.
64984         * modules/unictype/bidicategory-name: New file.
64985         * modules/unictype/bidicategory-of: New file.
64986         * modules/unictype/bidicategory-test: New file.
64987         * modules/unictype/decimal-digit: New file.
64988         * modules/unictype/digit: New file.
64989         * modules/unictype/numeric: New file.
64990         * modules/unictype/mirror: New file.
64991         * modules/unictype/property-white-space: New file.
64992         * modules/unictype/property-alphabetic: New file.
64993         * modules/unictype/property-other-alphabetic: New file.
64994         * modules/unictype/property-not-a-character: New file.
64995         * modules/unictype/property-default-ignorable-code-point: New file.
64996         * modules/unictype/property-other-default-ignorable-code-point: New
64997         file.
64998         * modules/unictype/property-deprecated: New file.
64999         * modules/unictype/property-logical-order-exception: New file.
65000         * modules/unictype/property-variation-selector: New file.
65001         * modules/unictype/property-private-use: New file.
65002         * modules/unictype/property-unassigned-code-value: New file.
65003         * modules/unictype/property-uppercase: New file.
65004         * modules/unictype/property-other-uppercase: New file.
65005         * modules/unictype/property-lowercase: New file.
65006         * modules/unictype/property-other-lowercase: New file.
65007         * modules/unictype/property-titlecase: New file.
65008         * modules/unictype/property-soft-dotted: New file.
65009         * modules/unictype/property-id-start: New file.
65010         * modules/unictype/property-other-id-start: New file.
65011         * modules/unictype/property-id-continue: New file.
65012         * modules/unictype/property-other-id-continue: New file.
65013         * modules/unictype/property-xid-start: New file.
65014         * modules/unictype/property-xid-continue: New file.
65015         * modules/unictype/property-pattern-white-space: New file.
65016         * modules/unictype/property-pattern-syntax: New file.
65017         * modules/unictype/property-join-control: New file.
65018         * modules/unictype/property-grapheme-base: New file.
65019         * modules/unictype/property-grapheme-extend: New file.
65020         * modules/unictype/property-other-grapheme-extend: New file.
65021         * modules/unictype/property-grapheme-link: New file.
65022         * modules/unictype/property-bidi-control: New file.
65023         * modules/unictype/property-bidi-left-to-right: New file.
65024         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
65025         * modules/unictype/property-bidi-arabic-right-to-left: New file.
65026         * modules/unictype/property-bidi-european-digit: New file.
65027         * modules/unictype/property-bidi-eur-num-separator: New file.
65028         * modules/unictype/property-bidi-eur-num-terminator: New file.
65029         * modules/unictype/property-bidi-arabic-digit: New file.
65030         * modules/unictype/property-bidi-common-separator: New file.
65031         * modules/unictype/property-bidi-block-separator: New file.
65032         * modules/unictype/property-bidi-segment-separator: New file.
65033         * modules/unictype/property-bidi-whitespace: New file.
65034         * modules/unictype/property-bidi-non-spacing-mark: New file.
65035         * modules/unictype/property-bidi-boundary-neutral: New file.
65036         * modules/unictype/property-bidi-pdf: New file.
65037         * modules/unictype/property-bidi-embedding-or-override: New file.
65038         * modules/unictype/property-bidi-other-neutral: New file.
65039         * modules/unictype/property-hex-digit: New file.
65040         * modules/unictype/property-ascii-hex-digit: New file.
65041         * modules/unictype/property-ideographic: New file.
65042         * modules/unictype/property-unified-ideograph: New file.
65043         * modules/unictype/property-radical: New file.
65044         * modules/unictype/property-ids-binary-operator: New file.
65045         * modules/unictype/property-ids-trinary-operator: New file.
65046         * modules/unictype/property-zero-width: New file.
65047         * modules/unictype/property-space: New file.
65048         * modules/unictype/property-non-break: New file.
65049         * modules/unictype/property-iso-control: New file.
65050         * modules/unictype/property-format-control: New file.
65051         * modules/unictype/property-dash: New file.
65052         * modules/unictype/property-hyphen: New file.
65053         * modules/unictype/property-punctuation: New file.
65054         * modules/unictype/property-line-separator: New file.
65055         * modules/unictype/property-paragraph-separator: New file.
65056         * modules/unictype/property-quotation-mark: New file.
65057         * modules/unictype/property-sentence-terminal: New file.
65058         * modules/unictype/property-terminal-punctuation: New file.
65059         * modules/unictype/property-currency-symbol: New file.
65060         * modules/unictype/property-math: New file.
65061         * modules/unictype/property-other-math: New file.
65062         * modules/unictype/property-paired-punctuation: New file.
65063         * modules/unictype/property-left-of-pair: New file.
65064         * modules/unictype/property-combining: New file.
65065         * modules/unictype/property-composite: New file.
65066         * modules/unictype/property-decimal-digit: New file.
65067         * modules/unictype/property-numeric: New file.
65068         * modules/unictype/property-diacritic: New file.
65069         * modules/unictype/property-extender: New file.
65070         * modules/unictype/property-ignorable-control: New file.
65071         * modules/unictype/property-test: New file.
65072         * modules/unictype/property-byname: New file.
65073         * modules/unictype/property-all: New file.
65074         * modules/unictype/scripts: New file.
65075         * modules/unictype/scripts-all: New file.
65076         * modules/unictype/block-of: New file.
65077         * modules/unictype/block-test: New file.
65078         * modules/unictype/block-list: New file.
65079         * modules/unictype/block-all: New file.
65080         * modules/unictype/syntax-c-whitespace: New file.
65081         * modules/unictype/syntax-java-whitespace: New file.
65082         * modules/unictype/syntax-c-ident: New file.
65083         * modules/unictype/syntax-java-ident: New file.
65084         * modules/unictype/ctype-alnum: New file.
65085         * modules/unictype/ctype-alpha: New file.
65086         * modules/unictype/ctype-cntrl: New file.
65087         * modules/unictype/ctype-digit: New file.
65088         * modules/unictype/ctype-graph: New file.
65089         * modules/unictype/ctype-lower: New file.
65090         * modules/unictype/ctype-print: New file.
65091         * modules/unictype/ctype-punct: New file.
65092         * modules/unictype/ctype-space: New file.
65093         * modules/unictype/ctype-upper: New file.
65094         * modules/unictype/ctype-xdigit: New file.
65095         * modules/unictype/ctype-blank: New file.
65096         * lib/unictype/bidi_byname.c: New file.
65097         * lib/unictype/bidi_name.c: New file.
65098         * lib/unictype/bidi_of.c: New file.
65099         * lib/unictype/bidi_test.c: New file.
65100         * lib/unictype/bitmap.h: New file.
65101         * lib/unictype/block_test.c: New file.
65102         * lib/unictype/blocks.c: New file.
65103         * lib/unictype/categ_C.c: New file.
65104         * lib/unictype/categ_Cc.c: New file.
65105         * lib/unictype/categ_Cf.c: New file.
65106         * lib/unictype/categ_Cn.c: New file.
65107         * lib/unictype/categ_Co.c: New file.
65108         * lib/unictype/categ_Cs.c: New file.
65109         * lib/unictype/categ_L.c: New file.
65110         * lib/unictype/categ_Ll.c: New file.
65111         * lib/unictype/categ_Lm.c: New file.
65112         * lib/unictype/categ_Lo.c: New file.
65113         * lib/unictype/categ_Lt.c: New file.
65114         * lib/unictype/categ_Lu.c: New file.
65115         * lib/unictype/categ_M.c: New file.
65116         * lib/unictype/categ_Mc.c: New file.
65117         * lib/unictype/categ_Me.c: New file.
65118         * lib/unictype/categ_Mn.c: New file.
65119         * lib/unictype/categ_N.c: New file.
65120         * lib/unictype/categ_Nd.c: New file.
65121         * lib/unictype/categ_Nl.c: New file.
65122         * lib/unictype/categ_No.c: New file.
65123         * lib/unictype/categ_P.c: New file.
65124         * lib/unictype/categ_Pc.c: New file.
65125         * lib/unictype/categ_Pd.c: New file.
65126         * lib/unictype/categ_Pe.c: New file.
65127         * lib/unictype/categ_Pf.c: New file.
65128         * lib/unictype/categ_Pi.c: New file.
65129         * lib/unictype/categ_Po.c: New file.
65130         * lib/unictype/categ_Ps.c: New file.
65131         * lib/unictype/categ_S.c: New file.
65132         * lib/unictype/categ_Sc.c: New file.
65133         * lib/unictype/categ_Sk.c: New file.
65134         * lib/unictype/categ_Sm.c: New file.
65135         * lib/unictype/categ_So.c: New file.
65136         * lib/unictype/categ_Z.c: New file.
65137         * lib/unictype/categ_Zl.c: New file.
65138         * lib/unictype/categ_Zp.c: New file.
65139         * lib/unictype/categ_Zs.c: New file.
65140         * lib/unictype/categ_and.c: New file.
65141         * lib/unictype/categ_and_not.c: New file.
65142         * lib/unictype/categ_byname.c: New file.
65143         * lib/unictype/categ_name.c: New file.
65144         * lib/unictype/categ_none.c: New file.
65145         * lib/unictype/categ_of.c: New file.
65146         * lib/unictype/categ_or.c: New file.
65147         * lib/unictype/categ_test.c: New file.
65148         * lib/unictype/combining.c: New file.
65149         * lib/unictype/ctype_alnum.c: New file.
65150         * lib/unictype/ctype_alpha.c: New file.
65151         * lib/unictype/ctype_blank.c: New file.
65152         * lib/unictype/ctype_cntrl.c: New file.
65153         * lib/unictype/ctype_digit.c: New file.
65154         * lib/unictype/ctype_graph.c: New file.
65155         * lib/unictype/ctype_lower.c: New file.
65156         * lib/unictype/ctype_print.c: New file.
65157         * lib/unictype/ctype_punct.c: New file.
65158         * lib/unictype/ctype_space.c: New file.
65159         * lib/unictype/ctype_upper.c: New file.
65160         * lib/unictype/ctype_xdigit.c: New file.
65161         * lib/unictype/decdigit.c: New file.
65162         * lib/unictype/digit.c: New file.
65163         * lib/unictype/identsyntaxmap.h: New file.
65164         * lib/unictype/mirror.c: New file.
65165         * lib/unictype/numeric.c: New file.
65166         * lib/unictype/pr_alphabetic.c: New file.
65167         * lib/unictype/pr_ascii_hex_digit.c: New file.
65168         * lib/unictype/pr_bidi_arabic_digit.c: New file.
65169         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
65170         * lib/unictype/pr_bidi_block_separator.c: New file.
65171         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
65172         * lib/unictype/pr_bidi_common_separator.c: New file.
65173         * lib/unictype/pr_bidi_control.c: New file.
65174         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
65175         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
65176         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
65177         * lib/unictype/pr_bidi_european_digit.c: New file.
65178         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
65179         * lib/unictype/pr_bidi_left_to_right.c: New file.
65180         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
65181         * lib/unictype/pr_bidi_other_neutral.c: New file.
65182         * lib/unictype/pr_bidi_pdf.c: New file.
65183         * lib/unictype/pr_bidi_segment_separator.c: New file.
65184         * lib/unictype/pr_bidi_whitespace.c: New file.
65185         * lib/unictype/pr_byname.c: New file.
65186         * lib/unictype/pr_byname.gperf: New file.
65187         * lib/unictype/pr_combining.c: New file.
65188         * lib/unictype/pr_composite.c: New file.
65189         * lib/unictype/pr_currency_symbol.c: New file.
65190         * lib/unictype/pr_dash.c: New file.
65191         * lib/unictype/pr_decimal_digit.c: New file.
65192         * lib/unictype/pr_default_ignorable_code_point.c: New file.
65193         * lib/unictype/pr_deprecated.c: New file.
65194         * lib/unictype/pr_diacritic.c: New file.
65195         * lib/unictype/pr_extender.c: New file.
65196         * lib/unictype/pr_format_control.c: New file.
65197         * lib/unictype/pr_grapheme_base.c: New file.
65198         * lib/unictype/pr_grapheme_extend.c: New file.
65199         * lib/unictype/pr_grapheme_link.c: New file.
65200         * lib/unictype/pr_hex_digit.c: New file.
65201         * lib/unictype/pr_hyphen.c: New file.
65202         * lib/unictype/pr_id_continue.c: New file.
65203         * lib/unictype/pr_id_start.c: New file.
65204         * lib/unictype/pr_ideographic.c: New file.
65205         * lib/unictype/pr_ids_binary_operator.c: New file.
65206         * lib/unictype/pr_ids_trinary_operator.c: New file.
65207         * lib/unictype/pr_ignorable_control.c: New file.
65208         * lib/unictype/pr_iso_control.c: New file.
65209         * lib/unictype/pr_join_control.c: New file.
65210         * lib/unictype/pr_left_of_pair.c: New file.
65211         * lib/unictype/pr_line_separator.c: New file.
65212         * lib/unictype/pr_logical_order_exception.c: New file.
65213         * lib/unictype/pr_lowercase.c: New file.
65214         * lib/unictype/pr_math.c: New file.
65215         * lib/unictype/pr_non_break.c: New file.
65216         * lib/unictype/pr_not_a_character.c: New file.
65217         * lib/unictype/pr_numeric.c: New file.
65218         * lib/unictype/pr_other_alphabetic.c: New file.
65219         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
65220         * lib/unictype/pr_other_grapheme_extend.c: New file.
65221         * lib/unictype/pr_other_id_continue.c: New file.
65222         * lib/unictype/pr_other_id_start.c: New file.
65223         * lib/unictype/pr_other_lowercase.c: New file.
65224         * lib/unictype/pr_other_math.c: New file.
65225         * lib/unictype/pr_other_uppercase.c: New file.
65226         * lib/unictype/pr_paired_punctuation.c: New file.
65227         * lib/unictype/pr_paragraph_separator.c: New file.
65228         * lib/unictype/pr_pattern_syntax.c: New file.
65229         * lib/unictype/pr_pattern_white_space.c: New file.
65230         * lib/unictype/pr_private_use.c: New file.
65231         * lib/unictype/pr_punctuation.c: New file.
65232         * lib/unictype/pr_quotation_mark.c: New file.
65233         * lib/unictype/pr_radical.c: New file.
65234         * lib/unictype/pr_sentence_terminal.c: New file.
65235         * lib/unictype/pr_soft_dotted.c: New file.
65236         * lib/unictype/pr_space.c: New file.
65237         * lib/unictype/pr_terminal_punctuation.c: New file.
65238         * lib/unictype/pr_test.c: New file.
65239         * lib/unictype/pr_titlecase.c: New file.
65240         * lib/unictype/pr_unassigned_code_value.c: New file.
65241         * lib/unictype/pr_unified_ideograph.c: New file.
65242         * lib/unictype/pr_uppercase.c: New file.
65243         * lib/unictype/pr_variation_selector.c: New file.
65244         * lib/unictype/pr_white_space.c: New file.
65245         * lib/unictype/pr_xid_continue.c: New file.
65246         * lib/unictype/pr_xid_start.c: New file.
65247         * lib/unictype/pr_zero_width.c: New file.
65248         * lib/unictype/scripts.c: New file.
65249         * lib/unictype/sy_c_ident.c: New file.
65250         * lib/unictype/sy_c_whitespace.c: New file.
65251         * lib/unictype/sy_java_ident.c: New file.
65252         * lib/unictype/sy_java_whitespace.c: New file.
65253
65254         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
65255         Unicode 5.0.0.
65256         * lib/unictype/blocks.h: Likewise.
65257         * lib/unictype/categ_C.h: Likewise.
65258         * lib/unictype/categ_Cc.h: Likewise.
65259         * lib/unictype/categ_Cf.h: Likewise.
65260         * lib/unictype/categ_Cn.h: Likewise.
65261         * lib/unictype/categ_Co.h: Likewise.
65262         * lib/unictype/categ_Cs.h: Likewise.
65263         * lib/unictype/categ_L.h: Likewise.
65264         * lib/unictype/categ_Ll.h: Likewise.
65265         * lib/unictype/categ_Lm.h: Likewise.
65266         * lib/unictype/categ_Lo.h: Likewise.
65267         * lib/unictype/categ_Lt.h: Likewise.
65268         * lib/unictype/categ_Lu.h: Likewise.
65269         * lib/unictype/categ_M.h: Likewise.
65270         * lib/unictype/categ_Mc.h: Likewise.
65271         * lib/unictype/categ_Me.h: Likewise.
65272         * lib/unictype/categ_Mn.h: Likewise.
65273         * lib/unictype/categ_N.h: Likewise.
65274         * lib/unictype/categ_Nd.h: Likewise.
65275         * lib/unictype/categ_Nl.h: Likewise.
65276         * lib/unictype/categ_No.h: Likewise.
65277         * lib/unictype/categ_P.h: Likewise.
65278         * lib/unictype/categ_Pc.h: Likewise.
65279         * lib/unictype/categ_Pd.h: Likewise.
65280         * lib/unictype/categ_Pe.h: Likewise.
65281         * lib/unictype/categ_Pf.h: Likewise.
65282         * lib/unictype/categ_Pi.h: Likewise.
65283         * lib/unictype/categ_Po.h: Likewise.
65284         * lib/unictype/categ_Ps.h: Likewise.
65285         * lib/unictype/categ_S.h: Likewise.
65286         * lib/unictype/categ_Sc.h: Likewise.
65287         * lib/unictype/categ_Sk.h: Likewise.
65288         * lib/unictype/categ_Sm.h: Likewise.
65289         * lib/unictype/categ_So.h: Likewise.
65290         * lib/unictype/categ_Z.h: Likewise.
65291         * lib/unictype/categ_Zl.h: Likewise.
65292         * lib/unictype/categ_Zp.h: Likewise.
65293         * lib/unictype/categ_Zs.h: Likewise.
65294         * lib/unictype/categ_of.h: Likewise.
65295         * lib/unictype/combining.h: Likewise.
65296         * lib/unictype/ctype_alnum.h: Likewise.
65297         * lib/unictype/ctype_alpha.h: Likewise.
65298         * lib/unictype/ctype_blank.h: Likewise.
65299         * lib/unictype/ctype_cntrl.h: Likewise.
65300         * lib/unictype/ctype_digit.h: Likewise.
65301         * lib/unictype/ctype_graph.h: Likewise.
65302         * lib/unictype/ctype_lower.h: Likewise.
65303         * lib/unictype/ctype_print.h: Likewise.
65304         * lib/unictype/ctype_punct.h: Likewise.
65305         * lib/unictype/ctype_space.h: Likewise.
65306         * lib/unictype/ctype_upper.h: Likewise.
65307         * lib/unictype/ctype_xdigit.h: Likewise.
65308         * lib/unictype/decdigit.h: Likewise.
65309         * lib/unictype/digit.h: Likewise.
65310         * lib/unictype/mirror.h: Likewise.
65311         * lib/unictype/numeric.h: Likewise.
65312         * lib/unictype/pr_alphabetic.h: Likewise.
65313         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
65314         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
65315         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
65316         * lib/unictype/pr_bidi_block_separator.h: Likewise.
65317         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
65318         * lib/unictype/pr_bidi_common_separator.h: Likewise.
65319         * lib/unictype/pr_bidi_control.h: Likewise.
65320         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
65321         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
65322         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
65323         * lib/unictype/pr_bidi_european_digit.h: Likewise.
65324         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
65325         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
65326         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
65327         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
65328         * lib/unictype/pr_bidi_pdf.h: Likewise.
65329         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
65330         * lib/unictype/pr_bidi_whitespace.h: Likewise.
65331         * lib/unictype/pr_combining.h: Likewise.
65332         * lib/unictype/pr_composite.h: Likewise.
65333         * lib/unictype/pr_currency_symbol.h: Likewise.
65334         * lib/unictype/pr_dash.h: Likewise.
65335         * lib/unictype/pr_decimal_digit.h: Likewise.
65336         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
65337         * lib/unictype/pr_deprecated.h: Likewise.
65338         * lib/unictype/pr_diacritic.h: Likewise.
65339         * lib/unictype/pr_extender.h: Likewise.
65340         * lib/unictype/pr_format_control.h: Likewise.
65341         * lib/unictype/pr_grapheme_base.h: Likewise.
65342         * lib/unictype/pr_grapheme_extend.h: Likewise.
65343         * lib/unictype/pr_grapheme_link.h: Likewise.
65344         * lib/unictype/pr_hex_digit.h: Likewise.
65345         * lib/unictype/pr_hyphen.h: Likewise.
65346         * lib/unictype/pr_id_continue.h: Likewise.
65347         * lib/unictype/pr_id_start.h: Likewise.
65348         * lib/unictype/pr_ideographic.h: Likewise.
65349         * lib/unictype/pr_ids_binary_operator.h: Likewise.
65350         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
65351         * lib/unictype/pr_ignorable_control.h: Likewise.
65352         * lib/unictype/pr_iso_control.h: Likewise.
65353         * lib/unictype/pr_join_control.h: Likewise.
65354         * lib/unictype/pr_left_of_pair.h: Likewise.
65355         * lib/unictype/pr_line_separator.h: Likewise.
65356         * lib/unictype/pr_logical_order_exception.h: Likewise.
65357         * lib/unictype/pr_lowercase.h: Likewise.
65358         * lib/unictype/pr_math.h: Likewise.
65359         * lib/unictype/pr_non_break.h: Likewise.
65360         * lib/unictype/pr_not_a_character.h: Likewise.
65361         * lib/unictype/pr_numeric.h: Likewise.
65362         * lib/unictype/pr_other_alphabetic.h: Likewise.
65363         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
65364         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
65365         * lib/unictype/pr_other_id_continue.h: Likewise.
65366         * lib/unictype/pr_other_id_start.h: Likewise.
65367         * lib/unictype/pr_other_lowercase.h: Likewise.
65368         * lib/unictype/pr_other_math.h: Likewise.
65369         * lib/unictype/pr_other_uppercase.h: Likewise.
65370         * lib/unictype/pr_paired_punctuation.h: Likewise.
65371         * lib/unictype/pr_paragraph_separator.h: Likewise.
65372         * lib/unictype/pr_pattern_syntax.h: Likewise.
65373         * lib/unictype/pr_pattern_white_space.h: Likewise.
65374         * lib/unictype/pr_private_use.h: Likewise.
65375         * lib/unictype/pr_punctuation.h: Likewise.
65376         * lib/unictype/pr_quotation_mark.h: Likewise.
65377         * lib/unictype/pr_radical.h: Likewise.
65378         * lib/unictype/pr_sentence_terminal.h: Likewise.
65379         * lib/unictype/pr_soft_dotted.h: Likewise.
65380         * lib/unictype/pr_space.h: Likewise.
65381         * lib/unictype/pr_terminal_punctuation.h: Likewise.
65382         * lib/unictype/pr_titlecase.h: Likewise.
65383         * lib/unictype/pr_unassigned_code_value.h: Likewise.
65384         * lib/unictype/pr_unified_ideograph.h: Likewise.
65385         * lib/unictype/pr_uppercase.h: Likewise.
65386         * lib/unictype/pr_variation_selector.h: Likewise.
65387         * lib/unictype/pr_white_space.h: Likewise.
65388         * lib/unictype/pr_xid_continue.h: Likewise.
65389         * lib/unictype/pr_xid_start.h: Likewise.
65390         * lib/unictype/pr_zero_width.h: Likewise.
65391         * lib/unictype/scripts.h: Likewise.
65392         * lib/unictype/scripts_byname.gperf: Likewise.
65393         * lib/unictype/sy_c_ident.h: Likewise.
65394         * lib/unictype/sy_c_whitespace.h: Likewise.
65395         * lib/unictype/sy_java_ident.h: Likewise.
65396         * lib/unictype/sy_java_whitespace.h: Likewise.
65397
65398         * lib/unictype/Makefile: New file.
65399         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
65400         glibc.
65401         * lib/unictype/3level.h: New file, copied from glibc.
65402         * lib/unictype/3levelbit.h: New file.
65403
65404 2007-11-11  Bruno Haible  <bruno@clisp.org>
65405
65406         * modules/gperf: New file.
65407         * modules/iconv_open (Depends-on): Add it.
65408         (Makefile.am): Remove the GPERF definition.
65409
65410 2007-11-11  Bruno Haible  <bruno@clisp.org>
65411
65412         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
65413         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
65414
65415 2007-11-11  Bruno Haible  <bruno@clisp.org>
65416
65417         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
65418         (usage): Remove function.
65419
65420 2007-11-11  Bruno Haible  <bruno@clisp.org>
65421
65422         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
65423         gl_FUNC_CEILF_LIBS.
65424         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
65425         gl_FUNC_CEIL_LIBS.
65426         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
65427         gl_FUNC_CEILL_LIBS.
65428         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
65429         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
65430         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
65431
65432 2007-11-11  Bruno Haible  <bruno@clisp.org>
65433
65434         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
65435         roundf were declared but do not exist on functions.
65436         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
65437         roundl were declared but do not exist on functions.
65438         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
65439         HAVE_FLOORL_AND_CEILL, respectively.
65440         Needed for Sun C on Solaris 10.
65441
65442 2007-11-11  Bruno Haible  <bruno@clisp.org>
65443
65444         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
65445         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
65446         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
65447         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
65448         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
65449         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
65450         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
65451         HAVE_DECL_ROUNDF.
65452         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
65453         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
65454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
65455         of HAVE_DECL_ROUND*.
65456         * modules/math (Makefile.am): Update.
65457
65458 2007-11-10  Bruno Haible  <bruno@clisp.org>
65459
65460         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
65461         ptrdiff_t as m4/intl.m4.
65462
65463 2007-11-10  Jim Meyering  <meyering@redhat.com>
65464
65465         Avoid link failure for the argmatch test.
65466         * tests/test-argmatch.c (usage): Define function to avoid a link
65467         failure: argmatch_die requires a usage function.
65468
65469 2007-11-09  Bruno Haible  <bruno@clisp.org>
65470
65471         * doc/functions/snprintf.texi: Mention BeOS deficiency.
65472         * doc/functions/vsnprintf.texi: Likewise.
65473         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
65474         with a size argument < 2.
65475
65476 2007-11-09  Bruno Haible  <bruno@clisp.org>
65477
65478         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
65479         buffer. Fixes an inefficiency introduced on 2007-11-03.
65480
65481 2007-11-09  Bruno Haible  <bruno@clisp.org>
65482
65483         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
65484         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
65485
65486 2007-11-08  Jim Meyering  <meyering@redhat.com>
65487
65488         Change cache variable name prefix "jm_" to "gl_" everywhere.
65489         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
65490         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
65491         * m4/uptime.m4: s/gl_/jm_/
65492
65493 2007-11-07  Bruno Haible  <bruno@clisp.org>
65494
65495         Update to GNU gettext 0.17.
65496         * m4/intl.m4: Update to GNU gettext 0.17.
65497         * m4/po.m4: Likewise.
65498         * modules/gettext (Files): Remove m4/ulonglong.m4.
65499         (configure.ac): Require gettext infrastructure from version 0.17.
65500
65501 2007-11-06  Bruno Haible  <bruno@clisp.org>
65502
65503         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
65504         symbolic values are not defined in a public header.
65505         * lib/freadable.c (freadable) [QNX]: Likewise.
65506         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65507         * lib/freading.c (freading) [QNX]: Likewise.
65508         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65509         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65510         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65511         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65512         Reported by Alain Magloire.
65513
65514         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65515
65516 2007-11-05  Bruno Haible  <bruno@clisp.org>
65517
65518         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65519         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65520         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65521         Reported by Eric Blake.
65522
65523 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65524             Bruno Haible  <bruno@clisp.org>
65525
65526         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65527         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65528         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65529         (malloc): Undefine also before including <stdlib.h>.
65530         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65531         Needed on OSF/1 4.0.
65532
65533 2007-11-05  Jim Meyering  <meyering@redhat.com>
65534
65535         git-version-gen: sync from coreutils.
65536         * build-aux/git-version-gen: Add comments.
65537         Change the first '-' to '.' in the snapshot version string,
65538         e.g., 6.9-377-08144 -> 6.9.377-08144
65539         Remove first parameter.
65540         Don't declare a version "-dirty" merely because a time
65541         stamp has changed.
65542
65543 2007-11-04  Bruno Haible  <bruno@clisp.org>
65544
65545         * lib/lock.h: Protect all macro definitions containing an 'if'
65546         statement through a "do { ... } while (0)".
65547         * lib/tls.h: Likewise.
65548
65549 2007-11-04  Bruno Haible  <bruno@clisp.org>
65550
65551         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65552
65553 2007-11-04  Bruno Haible  <bruno@clisp.org>
65554
65555         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65556         * modules/fprintf-posix (Depends-on): Add nocrash.
65557         * modules/snprintf-posix (Depends-on): Likewise.
65558         * modules/sprintf-posix (Depends-on): Likewise.
65559         * modules/vasnprintf-posix (Depends-on): Likewise.
65560         * modules/vasprintf-posix (Depends-on): Likewise.
65561         * modules/vfprintf-posix (Depends-on): Likewise.
65562         * modules/vsnprintf-posix (Depends-on): Likewise.
65563         * modules/vsprintf-posix (Depends-on): Likewise.
65564         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65565         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65566         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65567         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65568         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65569         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65570         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65571
65572 2007-11-04  Bruno Haible  <bruno@clisp.org>
65573
65574         * modules/nocrash: New file.
65575         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65576         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65577
65578 2007-11-04  Bruno Haible  <bruno@clisp.org>
65579
65580         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65581         precision handling.
65582         * tests/test-vasprintf-posix.c (test_function): Likewise.
65583         * tests/test-snprintf-posix.h (test_function): Likewise.
65584         * tests/test-sprintf-posix.h (test_function): Likewise.
65585
65586         Fix *printf behaviour for large precisions on mingw and BeOS.
65587         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65588         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65590         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65591         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65592         gl_PRINTF_PRECISION and test its result. Invoke
65593         gl_PREREQ_VASNPRINTF_PRECISION.
65594         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65595         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65596         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65597         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65598         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65599         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65600         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65601         * doc/functions/fprintf.texi: Update.
65602         * doc/functions/printf.texi: Update.
65603         * doc/functions/snprintf.texi: Update.
65604         * doc/functions/sprintf.texi: Update.
65605         * doc/functions/vfprintf.texi: Update.
65606         * doc/functions/vprintf.texi: Update.
65607         * doc/functions/vsnprintf.texi: Update.
65608         * doc/functions/vsprintf.texi: Update.
65609
65610 2007-11-04  Bruno Haible  <bruno@clisp.org>
65611
65612         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65613
65614 2007-11-04  Bruno Haible  <bruno@clisp.org>
65615
65616         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65617         Reported by Sylvain Beucler <beuc@gnu.org>.
65618
65619 2007-11-03  Bruno Haible  <bruno@clisp.org>
65620
65621         * tests/test-fprintf-posix2.sh: New file.
65622         * tests/test-fprintf-posix2.c: New file.
65623         * modules/fprintf-posix-tests (Files): Add them.
65624         (TESTS): Add test-fprintf-posix2.sh.
65625         (configure.ac): Check for getrlimit and setrlimit.
65626         (check_PROGRAMS): Add test-fprintf-posix2.
65627
65628         * tests/test-printf-posix2.sh: New file.
65629         * tests/test-printf-posix2.c: New file.
65630         * modules/printf-posix-tests (Files): Add them.
65631         (TESTS): Add test-printf-posix2.sh.
65632         (configure.ac): Check for getrlimit and setrlimit.
65633         (check_PROGRAMS): Add test-printf-posix2.
65634
65635         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65636         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65637         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65638         (decode_double): New function, copied from decode_long_double.
65639         (scale10_round_decimal_decoded): New function, extracted from
65640         scale10_round_decimal_long_double.
65641         (scale10_round_decimal_long_double): Use it.
65642         (scale10_round_decimal_double): New function.
65643         (floorlog10): New function.
65644         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65646         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65647         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65648         gl_PRINTF_ENOMEM and test its result. Invoke
65649         gl_PREREQ_VASNPRINTF_ENOMEM.
65650         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65651         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65652         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65653         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65654         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65655         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65656         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65657         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65658         * modules/snprintf-posix (Depends-on): Likewise.
65659         * modules/sprintf-posix (Depends-on): Likewise.
65660         * modules/vasnprintf-posix (Depends-on): Likewise.
65661         * modules/vasprintf-posix (Depends-on): Likewise.
65662         * modules/vfprintf-posix (Depends-on): Likewise.
65663         * modules/vsnprintf-posix (Depends-on): Likewise.
65664         * modules/vsprintf-posix (Depends-on): Likewise.
65665         * doc/functions/fprintf.texi: Update.
65666         * doc/functions/printf.texi: Update.
65667         * doc/functions/snprintf.texi: Update.
65668         * doc/functions/sprintf.texi: Update.
65669         * doc/functions/vfprintf.texi: Update.
65670         * doc/functions/vprintf.texi: Update.
65671         * doc/functions/vsnprintf.texi: Update.
65672         * doc/functions/vsprintf.texi: Update.
65673
65674 2007-11-03  Bruno Haible  <bruno@clisp.org>
65675
65676         * modules/frexp-nolibm-tests: New file.
65677
65678         * modules/frexp-nolibm: New file.
65679         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65680
65681 2007-11-03  Bruno Haible  <bruno@clisp.org>
65682
65683         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65684         value is C99 compliant.
65685         Needed for OSF/1 5.1.
65686
65687 2007-11-03  Bruno Haible  <bruno@clisp.org>
65688
65689         Fix out-of-memory handling of vasnprintf.
65690         * lib/printf-parse.c: Include <errno.h>.
65691         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65692         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65693         is already set.
65694
65695 2007-11-02  Eric Blake  <ebb9@byu.net>
65696
65697         Fix tests on cygwin.
65698         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65699
65700 2007-11-01  Bruno Haible  <bruno@clisp.org>
65701
65702         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65703         warning.
65704         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65705         needed for POSIX compatibility.
65706
65707 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65708
65709         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65710         for compatibility with GNU.
65711
65712 2007-11-01  Bruno Haible  <bruno@clisp.org>
65713
65714         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65715         (putenv): Renamed from rpl_putenv. Change argument type from
65716         'const char *' to 'char *'.
65717         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65718         of defining putenv in config.h, just set REPLACE_PUTENV.
65719         * modules/putenv (Depends-on): Add stdlib.
65720         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65721         (Include): Use <stdlib.h>.
65722         * lib/stdlib.in.h (putenv): New declaration.
65723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65724         REPLACE_PUTENV.
65725         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65726         REPLACE_PUTENV.
65727         Needed for MacOS X 10.5.0.
65728         Reported by Peter O'Gorman <peter@pogma.com>.
65729
65730 2007-11-01  Jim Meyering  <meyering@redhat.com>
65731
65732         Treat an empty date string exactly like "0".
65733         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65734         if the remaining date string (to be parsed) is empty, use "0".
65735         Reported by Mischa Molhoek and discussed in this thread:
65736         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65737
65738 2007-10-31  Bruno Haible  <bruno@clisp.org>
65739
65740         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65741         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65742         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65743         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65744         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65745         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65746
65747 2007-10-31  Bruno Haible  <bruno@clisp.org>
65748
65749         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65750         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65751         (AC_TYPE_LONG_LONG_INT): Use it.
65752         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65753         it as well.
65754         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65755         to m4/longlong.m4.
65756         * modules/stdint (Files): Remove m4/ulonglong.m4.
65757         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65758         m4/ulonglong.m4.
65759         * modules/strtoumax (Files): Likewise.
65760
65761 2007-10-30  Bruno Haible  <bruno@clisp.org>
65762
65763         * modules/xvasprintf-posix: New file.
65764         Suggested by Eric Blake.
65765
65766 2007-10-30  Bruno Haible  <bruno@clisp.org>
65767
65768         * modules/xprintf-posix-tests: New file.
65769         * tests/test-xprintf-posix.sh: New file.
65770         * tests/test-xprintf-posix.c: New file.
65771         * tests/test-xfprintf-posix.c: New file.
65772
65773         * modules/xprintf-posix: New file.
65774
65775 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65776
65777         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65778         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65779         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65780
65781 2007-10-29  Bruno Haible  <bruno@clisp.org>
65782
65783         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65784         contain the special marker '_cv_'.
65785         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65786         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65787         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65788         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65789         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65790         Reported by Ralf Wildenhues.
65791
65792 2007-10-29  Bruno Haible  <bruno@clisp.org>
65793
65794         * gnulib-tool (func_import): When --lgpl is not specified, set
65795         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65796         GPLv3.
65797         Reported by Simon Josefsson.
65798
65799 2007-10-28  Bruno Haible  <bruno@clisp.org>
65800
65801         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65802         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65803         HAVE_DECL_ISFINITE.
65804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65805         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65806         HAVE_DECL_ISFINITE.
65807
65808 2007-10-28  Bruno Haible  <bruno@clisp.org>
65809
65810         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65811         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65812
65813 2007-10-28  Bruno Haible  <bruno@clisp.org>
65814
65815         Fix link errors with Sun C 5.0 on Solaris 10.
65816         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65817         function is declared but not present in the compiler's libm.
65818         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65819         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65820         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65821         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65822         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65823         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65824         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65826         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65827         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65828         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65829         HAVE_DECL_FLOORL.
65830
65831 2007-10-28  Bruno Haible  <bruno@clisp.org>
65832
65833         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65834         gl_FUNC_FLOORL. Cache the result.
65835         (gl_FUNC_FLOORL): Use it.
65836         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65837         gl_FUNC_CEILL. Cache the result.
65838         (gl_FUNC_CEILL): Use it.
65839
65840         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65841         gl_FUNC_FLOOR. Cache the result.
65842         (gl_FUNC_FLOOR): Use it.
65843         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65844         gl_FUNC_CEIL. Cache the result.
65845         (gl_FUNC_CEIL): Use it.
65846
65847         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65848         gl_FUNC_FLOORF. Cache the result.
65849         (gl_FUNC_FLOORF): Use it.
65850         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65851         gl_FUNC_CEILF. Cache the result.
65852         (gl_FUNC_CEILF): Use it.
65853
65854 2007-10-28  Bruno Haible  <bruno@clisp.org>
65855
65856         * gnulib-tool: Allow specifying the LGPL version number through
65857         --lgpl=2 or --lgpl=3.
65858         (func_usage): Document --lgpl with argument.
65859         Handle --lgpl=... arguments.
65860         (func_import): Recognize also gl_LGPL calls with an argument. When
65861         --lgpl=2 is used and the module's license is just LGPL, report an
65862         error. Set sed_transform_lib_file according to the lgpl variable. In
65863         the generated files, use --lgpl or gl_LGPL invocations with argument,
65864         if necessary.
65865         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65866         an LGPv2+ license.
65867         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65868         gl_LGPL macro.
65869
65870 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65871             Bruno Haible  <bruno@clisp.org>
65872
65873         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65874         (u16_uctomb_aux): Likewise.
65875         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65876         !HAVE_INLINE.
65877         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65878
65879 2007-10-28  Bruno Haible  <bruno@clisp.org>
65880
65881         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65882         Invoke AM_GETTEXT_OPTION if it exists.
65883         * modules/vasprintf: Likewise.
65884         * modules/verror: Likewise.
65885         * modules/xprintf: Likewise.
65886         * modules/xvasprintf: Likewise.
65887
65888 2007-10-27  Ben Pfaff  <blp@gnu.org>
65889
65890         * lib/math.in.h: Define isfinite macro and prototypes for
65891         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65892         implementations.
65893         * m4/math_h.m4: New substitutions for isfinite module.
65894         * lib/isfinite.c: New file.
65895         * m4/isfinite.m4: New file.
65896         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65897         * modules/isfinite: New file.
65898         * modules/isfinite-tests: New file.
65899         * tests/tests-isfinite.c: New file.
65900         * doc/functions/isfinite.texi: Mention isfinite module.
65901         * MODULES.html.sh: Mention new module.
65902
65903 2007-10-27  Ben Pfaff  <blp@gnu.org>
65904
65905         Ralf Wildenhues reported that Tru64 4.0D declares the round
65906         functions but does not have definitions.
65907         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65908         cannot be found in any library, set the output variable to
65909         "missing" instead of "".
65910         * m4/round.m4: Also use our substitute if we cannot find round in
65911         any library, even if it is declared.
65912         * m4/roundf.m4: Likewise for roundf.
65913         * m4/roundl.m4: Likewise for roundl.
65914         * lib/math.in.h: Undefine roundf, round, roundl before defining
65915         their replacements, to allow for hypothetical systems where these
65916         may be defined as macros but not available in libraries.
65917
65918 2007-10-27  Bruno Haible  <bruno@clisp.org>
65919
65920         * doc/gnulib.texi: Invoke @firstparagraphindent.
65921         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65922         changes in gnulib.
65923         (Source changes): New section.
65924
65925 2007-10-26  Bruno Haible  <bruno@clisp.org>
65926
65927         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65928         borrowed from autoconf.
65929
65930 2007-10-26  Bruno Haible  <bruno@clisp.org>
65931
65932         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65933         strerror returned the empty string. Needed on HP-UX 11.00.
65934
65935 2007-10-24  Micah Cowan  <micah@cowan.name>
65936
65937         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65938         * build-aux/bootstrap: Remove support for now-unnecessary option,
65939         --cvs-user, and envvars CVS_USER, CVS_RSH.
65940
65941 2007-10-24  Jim Meyering  <meyering@redhat.com>
65942
65943         Avoid diagnostics from sha1sum when there is no cached checksum.
65944         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65945         if the po.s1 file hasn't been created yet.
65946
65947         * build-aux/bootstrap: Sync from coreutils:
65948         2007-10-24  Jim Meyering  <meyering@redhat.com>
65949         Get gnulib from the git repository, not from an obsolete cvs one.
65950         * build-aux/bootstrap: Suggestion from Micah Cowan.
65951         2007-10-04  Jim Meyering  <jim@meyering.net>
65952         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65953         (update_po_files): Work also when there are no .po files in po/.
65954
65955 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65956
65957         * README: Append ".git" to git and cg examples.
65958         Problem reported by Benoit Sigoure.
65959
65960 2007-10-23  Micah Cowan  <micah@cowan.name>
65961
65962         * users.txt: Add wget.
65963
65964 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65965
65966         Fix linking of some unistdio tests on FreeBSD.
65967         * modules/unistdio/u16-vsnprintf-tests
65968         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65969         * modules/unistdio/u16-vsprintf-tests
65970         (test_u16_vsnprintf1_LDADD): Likewise.
65971         * modules/unistdio/u32-vsnprintf-tests
65972         (test_u32_vsnprintf1_LDADD): Likewise.
65973         * modules/unistdio/u32-vsprintf-tests
65974         (test_u32_vsprintf1_LDADD): Likewise.
65975         * modules/unistdio/u8-vsnprintf-tests
65976         (test_u8_vsnprintf1_LDADD): Likewise.
65977         * modules/unistdio/u8-vsprintf-tests
65978         (test_u8_vsprintf1_LDADD): Likewise.
65979         * modules/unistdio/ulc-vsnprintf-tests
65980         (test_ulc_vsnprintf1_LDADD): Likewise.
65981         * modules/unistdio/ulc-vsprintf-tests
65982         (test_ulc_vsprintf1_LDADD): Likewise.
65983
65984         Fix linking of some uniconv tests on FreeBSD.
65985         * modules/uniconv/u16-conv-from-enc-tests
65986         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65987         * modules/uniconv/u16-conv-to-enc-tests
65988         (test_u16_conv_to_enc_LDADD): Likewise.
65989         * modules/uniconv/u16-strconv-from-enc-tests
65990         (test_u16_strconv_from_enc_LDADD): Likewise.
65991         * modules/uniconv/u16-strconv-to-enc-tests
65992         (test_u16_strconv_to_enc_LDADD): Likewise.
65993         * modules/uniconv/u32-conv-from-enc-tests
65994         (test_u32_conv_from_enc_LDADD): Likewise.
65995         * modules/uniconv/u32-conv-to-enc-tests
65996         (test_u32_conv_to_enc_LDADD): Likewise.
65997         * modules/uniconv/u32-strconv-from-enc-tests
65998         (test_u32_strconv_from_enc_LDADD): Likewise.
65999         * modules/uniconv/u32-strconv-to-enc-tests
66000         (test_u32_strconv_to_enc_LDADD): Likewise.
66001         * modules/uniconv/u8-conv-from-enc-tests
66002         (test_u8_conv_from_enc_LDADD): Likewise.
66003         * modules/uniconv/u8-conv-to-enc-tests
66004         (test_u8_conv_to_enc_LDADD): Likewise.
66005         * modules/uniconv/u8-strconv-from-enc-tests
66006         (test_u8_strconv_from_enc_LDADD): Likewise.
66007         * modules/uniconv/u8-strconv-to-enc-tests
66008         (test_u8_strconv_to_enc_LDADD): Likewise.
66009
66010 2007-10-22  Bruno Haible  <bruno@clisp.org>
66011
66012         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
66013         size.
66014
66015 2007-10-22  Eric Blake  <ebb9@byu.net>
66016
66017         Tweak x*printf documentation.
66018         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
66019         variable name and comments.
66020         Suggested by Bruno Haible.
66021
66022 2007-10-22  Bruno Haible  <bruno@clisp.org>
66023
66024         * lib/acl.c (copy_acl): Fix file name in comment.
66025
66026 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66027
66028         Fix Tru64 problem with stdbool.h.
66029         * lib/stdbool.in.h (false, true):
66030         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
66031         Don't declare as an enum in this situation; it runs afoul of Tru64.
66032         Problem reported by Steven M. Schweda in
66033         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
66034
66035 2007-10-22  Eric Blake  <ebb9@byu.net>
66036
66037         Also wrap vf?printf.
66038         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
66039         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
66040         (xvprintf, xvfprintf): New functions.
66041
66042 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66043
66044         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
66045         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
66046
66047         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
66048         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
66049
66050 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66051
66052         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
66053         by Bruno Haible.
66054
66055 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66056
66057         * lib/getloadavg.c
66058         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
66059         Undef `sys' after including sys/table.h, for Tru64 4.0D.
66060
66061         * tests/test-i-ring.c: Work for C89.
66062
66063 2007-10-22  Bruno Haible  <bruno@clisp.org>
66064
66065         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
66066         -1u, in preprocessor expression, so that we don't test for the bug
66067         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
66068         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
66069
66070 2007-10-22  Eric Blake  <ebb9@byu.net>
66071
66072         * tests/test-yesno.sh: Silence stderr during test.
66073
66074 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66075
66076         * modules/crypto/gc-camellia: New file.
66077
66078         * m4/gc-camellia.m4: New file.
66079
66080         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
66081
66082         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
66083
66084 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66085
66086         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
66087         --help to stdout.  Reported by sms@antinode.org (Steven
66088         M. Schweda).
66089
66090 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66091
66092         * users.txt: Fix link to libksba.
66093
66094 2007-10-21  Ben Pfaff  <blp@gnu.org>
66095
66096         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
66097         round.c roundf implementation that depends on floorf and ceilf to
66098         be tested unconditionally.
66099
66100 2007-10-21  Ben Pfaff  <blp@gnu.org>
66101
66102         * m4/check-libm-func.m4: Removed.
66103         * m4/check-math-lib.m4: New file.
66104         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
66105         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
66106         definition and lack of AC_LIBOBJ([roundf]).
66107         * m4/roundl.m4: Ditto, and similarly for roundl.
66108         * modules/round: Reference new m4 file.
66109         * modules/roundf: Ditto.
66110         * modules/roundl: Ditto.
66111         * tests/test-round2.c (main): Use ROUND instead of round.
66112         Bug report from Bruno Haible.
66113
66114 2007-10-21  Bruno Haible  <bruno@clisp.org>
66115
66116         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
66117         context.
66118
66119 2007-10-21  Bruno Haible  <bruno@clisp.org>
66120
66121         * tests/test-wcwidth.c (main): Allow negative result for some control
66122         characters.
66123
66124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
66125         Needed on OSF/1 5.1.
66126
66127 2007-10-21  Bruno Haible  <bruno@clisp.org>
66128
66129         * tests/test-floorf1.c: Include isnanf.h.
66130         (main): Use isnanf() instead of isnan().
66131         * tests/test-ceilf1.c: Include isnanf.h.
66132         (main): Use isnanf() instead of isnan().
66133         * tests/test-truncf1.c: Include isnanf.h.
66134         (main): Use isnanf() instead of isnan().
66135         * tests/test-roundf1.c: Include isnanf.h.
66136         (main): Use isnanf() instead of isnan().
66137
66138 2007-10-21  Eric Blake  <ebb9@byu.net>
66139
66140         * users.txt: Update URL for m4.
66141
66142 2007-10-21  Bruno Haible  <bruno@clisp.org>
66143
66144         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
66145
66146 2007-10-21  Bruno Haible  <bruno@clisp.org>
66147
66148         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
66149         Git's management files if the CVS files are not present.
66150
66151 2007-10-20  Bruno Haible  <bruno@clisp.org>
66152
66153         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
66154         gcc-3.4.x.
66155
66156 2007-10-20  Ben Pfaff  <blp@gnu.org>
66157
66158         * lib/math.in.h: Declare round, roundf, roundl if we are providing
66159         implementations.
66160         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
66161         * lib/round.c: New file.
66162         * lib/roundf.c: New file.
66163         * lib/roundl.c: New file.
66164         * m4/round.m4: New file.
66165         * m4/roundf.m4: New file.
66166         * m4/roundl.m4: New file.
66167         * m4/check-libm-func-m4: New file.
66168         * modules/math: Replace round, roundf, roundl related @VARS@ in
66169         math.in.h.
66170         * modules/round: New file.
66171         * modules/round-tests: New file.
66172         * modules/roundf: New file.
66173         * modules/roundf-tests: New file.
66174         * modules/roundl: New file.
66175         * modules/roundl-tests: New file.
66176         * tests/test-round1.c: New file.
66177         * tests/test-round2.c: New file.
66178         * tests/test-roundf1.c: New file.
66179         * tests/test-roundf2.c: New file.
66180         * tests/test-roundl.c: New file.
66181         * doc/functions/round.texi: Mention round module.
66182         * doc/functions/roundf.texi: Mention roundf module.
66183         * doc/functions/roundl.texi: Mention roundl module.
66184         * MODULES.html.sh: Mention new modules.
66185         Thanks to Bruno Haible for suggestions.
66186
66187 2007-10-20  Jim Meyering  <meyering@redhat.com>
66188
66189         * lib/xprintf.c: Include <config.h> unconditionally.
66190
66191         Change xprintf's license to GPL.
66192         * modules/xprintf (License): s/LGPL/GPL/, since this module
66193         depends on modules (exit and exitfail) which are GPL.
66194         Suggestion from Bruno Haible.
66195
66196         xprintf fixes.
66197         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
66198         Use a clearer diagnostic.
66199         Patch from Bruno Haible.
66200
66201 2007-10-20  Bruno Haible  <bruno@clisp.org>
66202
66203         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
66204         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
66205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66206
66207 2007-10-20  Bruno Haible  <bruno@clisp.org>
66208
66209         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
66210         precision in the comparison result > x - 1 or similar.
66211         * tests/test-ceilf2.c (correct_result_p): Likewise.
66212         * tests/test-truncf2.c (correct_result_p): Likewise.
66213         * tests/test-trunc2.c (correct_result_p): Likewise.
66214         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66215
66216 2007-10-20  Bruno Haible  <bruno@clisp.org>
66217
66218         * modules/ceil: New file.
66219         * m4/ceil.m4: New file.
66220         * doc/functions/ceil.texi: Mention the 'ceil' module.
66221
66222 2007-10-20  Bruno Haible  <bruno@clisp.org>
66223
66224         * modules/floor: New file.
66225         * m4/floor.m4: New file.
66226         * doc/functions/floor.texi: Mention the 'floor' module.
66227
66228 2007-10-20  Bruno Haible  <bruno@clisp.org>
66229
66230         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
66231         of %a.
66232         * modules/floorf-tests (Depends-on): Likewise.
66233         * modules/truncf-tests (Depends-on): Likewise.
66234         * modules/trunc-tests (Depends-on): Likewise.
66235         Reported by Ben Pfaff.
66236
66237 2007-10-19  Jim Meyering  <meyering@redhat.com>
66238
66239         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
66240         Don't bother testing specific errno values.  Just test ferror.
66241
66242         New module: xprintf
66243         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
66244
66245 2007-10-19  Bruno Haible  <bruno@clisp.org>
66246
66247         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
66248         syntax.
66249         * modules/javaexec (Makefile.am): Likewise.
66250         * modules/relocatable-prog (Makefile.am): Likewise.
66251         Suggested by Jim Meyering.
66252
66253 2007-10-18  Bruno Haible  <bruno@clisp.org>
66254
66255         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
66256         Reported by Jim Meyering.
66257
66258 2007-10-18  Eric Blake  <ebb9@byu.net>
66259
66260         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
66261
66262 2007-10-18  Bruno Haible  <bruno@clisp.org>
66263
66264         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
66265         the format string into writable memory. Needed in Fortify conditions.
66266
66267 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
66268             Bruno Haible  <bruno@clisp.org>
66269
66270         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
66271         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
66272         * modules/trim (Depends-on): Add mbchar.
66273         (configure.ac): Add gl_FUNC_MBRTOWC.
66274         (Makefile.am): Augment lib_SOURCES.
66275
66276 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66277
66278         Modify glob.c to use fstatat and dirfd, to simplify it.
66279         Suggested by Eric Blake.
66280         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
66281         Don't include <stdbool.h>; not used.
66282         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
66283         (link_exists_p): Simplify implementation, since we can now assume
66284         dirfd and fstatat.
66285         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
66286
66287 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66288
66289         * gnulib-tool (func_get_dependencies): Fix sed script to
66290         match only tests.
66291
66292 2007-10-17  Bruno Haible  <bruno@clisp.org>
66293
66294         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
66295         allow locale names without encoding suffix.
66296         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
66297         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66298
66299 2007-10-16  Bruno Haible  <bruno@clisp.org>
66300
66301         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
66302         * lib/getgroups.c (getgroups): Likewise.
66303         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
66304
66305 2007-10-16  Bruno Haible  <bruno@clisp.org>
66306
66307         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
66308         * modules/malloc-posix (License): Likewise.
66309         * modules/realloc-posix (License): Likewise.
66310         * modules/calloc-posix (License): Likewise.
66311         * modules/intprops (License): Change from GPL to LGPL, with
66312         Paul Eggert's approval.
66313
66314 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66315
66316         Merge glibc changes into lib/glob.c.
66317
66318         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
66319         2007-10-15 04:59:03 UTC.  Here are the changes:
66320
66321         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
66322
66323         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
66324
66325         * lib/glob.c: Add some branch prediction throughout.
66326
66327         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
66328
66329         [BZ #5103]
66330         * lib/glob.c (glob): Recognize patterns starting \/.
66331
66332         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
66333
66334         [BZ #3996]
66335         * lib/glob.c (attribute_hidden): Define if not defined.
66336         (glob): Unescape dirname, filename or username when needed and not
66337         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
66338         is NULL.  Handle unescaped [ in pattern without closing ].
66339         Don't pass GLOB_CHECK down to recursive glob for directories.
66340         (__glob_pattern_type): New function.
66341         (__glob_pattern_p): Implement using __glob_pattern_type.
66342         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
66343         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
66344         Remove unreachable code.
66345
66346         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
66347
66348         * lib/glob.c (glob_in_dir): Add some comments and asserts to
66349         explain why there are no leaks.
66350
66351         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
66352
66353         [BZ #3253]
66354         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
66355         time, rather allocate increasingly bigger arrays of pointers, if
66356         possible with alloca, if too large with malloc.
66357
66358 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66359
66360         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
66361         Problem reported by H.Merijn Brand in
66362         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
66363         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
66364         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66365
66366 2007-10-15  Bruno Haible  <bruno@clisp.org>
66367
66368         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
66369         with explicit rpl_ prefix.
66370         * lib/fopen.c (fopen): Likewise.
66371         * lib/freopen.c (freopen): Likewise.
66372         * lib/iconv.c (iconv): Likewise.
66373         * lib/iconv_close.c (iconv_close): Likewise.
66374
66375 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66376
66377         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
66378
66379 2007-10-15  Bruno Haible  <bruno@clisp.org>
66380
66381         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
66382         <stddef.h> instead of <stdlib.h> since we only need NULL.
66383         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66384
66385 2007-10-15  Bruno Haible  <bruno@clisp.org>
66386
66387         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
66388         Replace paragraph talking about LIBOBJS.
66389         Reported by Colin Watson <cjwatson@debian.org>.
66390
66391 2007-10-15  Bruno Haible  <bruno@clisp.org>
66392
66393         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
66394         <stdlib.h> before using NULL.
66395
66396 2007-10-15  Simon Josefsson  <simon@josefsson.org>
66397
66398         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
66399         Reported by Albert Chin <china@thewrittenword.com>.
66400
66401 2007-10-14  Bruno Haible  <bruno@clisp.org>
66402
66403         * modules/iconv_open-utf-tests: New file.
66404         * tests/test-iconv-utf.c: New file.
66405
66406         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
66407         * modules/iconv_open-utf: New file.
66408         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
66409         (iconv, iconv_close): New declarations.
66410         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
66411         be defined.
66412         (iconv_open): Add special handling of conversion between UTF-8 and
66413         UTF-{16,32}{BE,LE}.
66414         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
66415         * lib/iconv_close.c: New file.
66416         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
66417         gl_FUNC_ICONV_OPEN.
66418         (gl_FUNC_ICONV_OPEN): Use it.
66419         (gl_FUNC_ICONV_OPEN_UTF): New macro.
66420         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
66421         and REPLACE_ICONV_UTF.
66422         * modules/iconv_open (Depends-on): Add c-strcase.
66423         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
66424         ICONV_CONST.
66425         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
66426
66427 2007-10-13  Albert Chin  <china@thewrittenword.com>
66428             Bruno Haible  <bruno@clisp.org>
66429
66430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
66431         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
66432
66433 2007-10-13  Bruno Haible  <bruno@clisp.org>
66434
66435         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
66436         defined, use the ISO C99 inline semantics.
66437         * lib/argp.h (ARGP_EI): Likewise.
66438
66439 2007-10-13  Bruno Haible  <bruno@clisp.org>
66440
66441         Handle 'inline' change in gcc 4.3.0.
66442         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
66443         argp_fmtstream_write, argp_fmtstream_set_lmargin,
66444         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
66445         argp_fmtstream_point): Disable 'extern' declaration if the function
66446         definition is going to be provided inline.
66447         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
66448         semantics, not the ISO C99 inline semantics.
66449         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
66450         'extern' declaration if the function definition is going to be provided
66451         inline.
66452         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
66453         the GNU C inline semantics, not the ISO C99 inline semantics. With
66454         GCC 4.2, avoid a warning.
66455
66456 2007-10-13  Bruno Haible  <bruno@clisp.org>
66457
66458         * lib/freading.h (freading): Enable the use of __freading for
66459         glibc >= 2.7.
66460         * lib/freading.c (freading): Likewise.
66461
66462 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66463
66464         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
66465         "warning: C99 inline functions are not supported; using GNU89".
66466
66467 2007-10-12  Bruno Haible  <bruno@clisp.org>
66468
66469         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
66470         of 2.
66471         * tests/test-ceilf2.c: New file.
66472         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
66473
66474         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
66475         * modules/ceilf-tests: Update.
66476
66477 2007-10-12  Bruno Haible  <bruno@clisp.org>
66478
66479         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
66480         of 2.
66481         * tests/test-floorf2.c: New file.
66482         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
66483
66484         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
66485         * modules/floorf-tests: Update.
66486
66487 2007-10-12  Bruno Haible  <bruno@clisp.org>
66488
66489         * tests/test-trunc2.c: New file.
66490         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
66491
66492         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
66493         * modules/trunc-tests: Update.
66494
66495 2007-10-12  Bruno Haible  <bruno@clisp.org>
66496
66497         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
66498         of 2.
66499         * tests/test-truncf2.c: New file.
66500         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
66501
66502         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
66503         * modules/truncf-tests: Update.
66504
66505 2007-10-11  Eric Blake  <ebb9@byu.net>
66506
66507         Don't claim strerror is broken on Interix.
66508         * doc/functions/strerror.texi (strerror): Known broken systems are
66509         now Solaris 8, and not Interix.
66510         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66511         Interix on cross-compile.
66512         Reported by Martin Koeppe in
66513         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66514
66515 2007-10-11  Bruno Haible  <bruno@clisp.org>
66516
66517         * modules/i-ring-tests: New file.
66518         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66519         instead of assert.
66520
66521 2007-10-11  Bruno Haible  <bruno@clisp.org>
66522
66523         * modules/filenamecat-tests: New file.
66524         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66525         * lib/filenamecat.c: Remove test code.
66526
66527 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66528
66529         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66530
66531         * lib/strerror.c: Include <string.h> always, to test interface,
66532         and to remove the need for the dummy.
66533         Include intprops.h to compute width instead of doing it ourselves
66534         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66535         (strerror): Define it to return NULL if there's no system strerror.
66536         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66537         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66538         ancient pre-strerror Unix systems well any more.  Saying "unknown
66539         system error" is enough.
66540         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66541         simpler strerror.c implementation.
66542         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66543         Simplify the tests to reflect the simpler strerror implementation.
66544         * modules/strerror (Depends-on): Add intprops.
66545
66546 2007-10-09  Eric Blake  <ebb9@byu.net>
66547
66548         Silence test-fpending.
66549         * modules/fpending-tests (Files): Add wrapper script.
66550         * tests/test-fpending.sh: New file.
66551
66552 2007-10-09  Bruno Haible  <bruno@clisp.org>
66553
66554         * MODULES.html.sh (func_module): Don't create a hyperlink for
66555         function names like 'printf_frexp'.
66556         (Misc): Add crc, memxor.
66557         (Characteristics of floating types): New section.
66558         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66559         isnanf-nolibm, signbit, trunc, truncf, truncl.
66560         (Enhancements for ISO C 99 functions): New subsection Input/output.
66561         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66562         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66563         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66564         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66565         (Enhancements for POSIX:2001 functions): Add chdir-long.
66566         (File system functions): Add areadlink, chdir-safer, read-file.
66567         Remove cycle-check.
66568         (File system as inode set): New section.
66569         (Date and time): Add gethrxtime.
66570         (Multithreading): Add openmp.
66571         (Internationalization functions): Add localename.
66572         (Unicode string functions): Add unistr/u*-mbsnlen.
66573         (Support for maintaining and releasing projects): Add git-version-gen.
66574         (Lone files): Remove directories.
66575
66576 2007-10-08  Ben Pfaff  <blp@gnu.org>
66577
66578         * lib/xmalloca.h: Fix typo in comment.
66579
66580 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66581
66582         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66583         when avoiding problems with integer overflow.  Use a portable test
66584         instead.
66585
66586 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66587
66588         * modules/dummy (License): Change to LGPLv2+.
66589         * modules/float (License): Likewise
66590         * modules/realloc (License): Likewise
66591         * modules/stdlib (License): Likewise
66592
66593 2007-10-07  Bruno Haible  <bruno@clisp.org>
66594
66595         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66596         * floor.c (TWO_MANT_DIG): Likewise.
66597         * ceil.c (TWO_MANT_DIG): Likewise.
66598         Reported by Ben Pfaff.
66599
66600 2007-10-07  Bruno Haible  <bruno@clisp.org>
66601
66602         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66603         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66604         * lib/frexp.c (FUNC): Likewise.
66605         * lib/printf-frexp.h (printf_frexp): Likewise.
66606         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66607         * lib/printf-frexp.c (FUNC): Likewise.
66608         Suggested by Jim Meyering.
66609
66610 2007-10-07  Jim Meyering  <meyering@redhat.com>
66611
66612         Make xnanosleep's integer overflow test more robust.
66613         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66614         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66615
66616 2007-10-07  Bruno Haible  <bruno@clisp.org>
66617
66618         * NEWS: Mention the license change.
66619
66620         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66621         abbreviations in the modules files.
66622
66623         Change copyright notice from GPLv2+ to GPLv3+.
66624         * README: Change copyright notice.
66625         * MODULES.html.sh: Likewise.
66626         * build-aux/bootstrap.conf: Likewise.
66627         * build-aux/config.libpath: Likewise.
66628         * build-aux/csharpcomp.sh.in: Likewise.
66629         * build-aux/csharpexec.sh.in: Likewise.
66630         * build-aux/install-reloc: Likewise.
66631         * build-aux/javacomp.sh.in: Likewise.
66632         * build-aux/javaexec.sh.in: Likewise.
66633         * build-aux/ldd.sh.in: Likewise.
66634         * build-aux/reloc-ldflags: Likewise.
66635         * build-aux/relocatable.sh.in: Likewise.
66636         * build-aux/x-to-1.in: Likewise.
66637         * check-module: Likewise.
66638         * config/srclistvars.sh: Likewise.
66639         * gnulib-tool: Likewise.
66640         * lib/acl-internal.h: Likewise.
66641         * lib/acl.c: Likewise.
66642         * lib/acl.h: Likewise.
66643         * lib/acl_entries.c: Likewise.
66644         * lib/areadlink-with-size.c: Likewise.
66645         * lib/areadlink.c: Likewise.
66646         * lib/areadlink.h: Likewise.
66647         * lib/argmatch.c: Likewise.
66648         * lib/argmatch.h: Likewise.
66649         * lib/argp-ba.c: Likewise.
66650         * lib/argp-eexst.c: Likewise.
66651         * lib/argp-fmtstream.c: Likewise.
66652         * lib/argp-fmtstream.h: Likewise.
66653         * lib/argp-fs-xinl.c: Likewise.
66654         * lib/argp-help.c: Likewise.
66655         * lib/argp-namefrob.h: Likewise.
66656         * lib/argp-parse.c: Likewise.
66657         * lib/argp-pin.c: Likewise.
66658         * lib/argp-pv.c: Likewise.
66659         * lib/argp-pvh.c: Likewise.
66660         * lib/argp-xinl.c: Likewise.
66661         * lib/argp.h: Likewise.
66662         * lib/at-func.c: Likewise.
66663         * lib/atanl.c: Likewise.
66664         * lib/backupfile.c: Likewise.
66665         * lib/backupfile.h: Likewise.
66666         * lib/basename.c: Likewise.
66667         * lib/binary-io.h: Likewise.
66668         * lib/byteswap.in.h: Likewise.
66669         * lib/c-stack.c: Likewise.
66670         * lib/c-stack.h: Likewise.
66671         * lib/c-strcasestr.c: Likewise.
66672         * lib/c-strcasestr.h: Likewise.
66673         * lib/c-strstr.c: Likewise.
66674         * lib/c-strstr.h: Likewise.
66675         * lib/c-strtod.c: Likewise.
66676         * lib/calloc.c: Likewise.
66677         * lib/canon-host.c: Likewise.
66678         * lib/canon-host.h: Likewise.
66679         * lib/canonicalize-lgpl.c: Likewise.
66680         * lib/canonicalize.c: Likewise.
66681         * lib/canonicalize.h: Likewise.
66682         * lib/ceil.c: Likewise.
66683         * lib/ceilf.c: Likewise.
66684         * lib/ceill.c: Likewise.
66685         * lib/chdir-long.c: Likewise.
66686         * lib/chdir-long.h: Likewise.
66687         * lib/chdir-safer.c: Likewise.
66688         * lib/chdir-safer.h: Likewise.
66689         * lib/chown.c: Likewise.
66690         * lib/classpath.c: Likewise.
66691         * lib/classpath.h: Likewise.
66692         * lib/clean-temp.c: Likewise.
66693         * lib/clean-temp.h: Likewise.
66694         * lib/cloexec.c: Likewise.
66695         * lib/close-stream.c: Likewise.
66696         * lib/closein.c: Likewise.
66697         * lib/closein.h: Likewise.
66698         * lib/closeout.c: Likewise.
66699         * lib/closeout.h: Likewise.
66700         * lib/concat-filename.c: Likewise.
66701         * lib/copy-file.c: Likewise.
66702         * lib/copy-file.h: Likewise.
66703         * lib/count-one-bits.h: Likewise.
66704         * lib/crc.c: Likewise.
66705         * lib/crc.h: Likewise.
66706         * lib/creat-safer.c: Likewise.
66707         * lib/csharpcomp.c: Likewise.
66708         * lib/csharpcomp.h: Likewise.
66709         * lib/csharpexec.c: Likewise.
66710         * lib/csharpexec.h: Likewise.
66711         * lib/cycle-check.c: Likewise.
66712         * lib/cycle-check.h: Likewise.
66713         * lib/diacrit.c: Likewise.
66714         * lib/diacrit.h: Likewise.
66715         * lib/diffseq.h: Likewise.
66716         * lib/dirchownmod.c: Likewise.
66717         * lib/dirent.in.h: Likewise.
66718         * lib/dirfd.c: Likewise.
66719         * lib/dirfd.h: Likewise.
66720         * lib/dirname.c: Likewise.
66721         * lib/dirname.h: Likewise.
66722         * lib/dummy.c: Likewise.
66723         * lib/dup-safer.c: Likewise.
66724         * lib/dup2.c: Likewise.
66725         * lib/eealloc.h: Likewise.
66726         * lib/error.c: Likewise.
66727         * lib/error.h: Likewise.
66728         * lib/euidaccess.c: Likewise.
66729         * lib/exclude.c: Likewise.
66730         * lib/exclude.h: Likewise.
66731         * lib/execute.c: Likewise.
66732         * lib/execute.h: Likewise.
66733         * lib/exitfail.c: Likewise.
66734         * lib/exitfail.h: Likewise.
66735         * lib/expl.c: Likewise.
66736         * lib/fatal-signal.c: Likewise.
66737         * lib/fatal-signal.h: Likewise.
66738         * lib/fbufmode.c: Likewise.
66739         * lib/fbufmode.h: Likewise.
66740         * lib/fchdir.c: Likewise.
66741         * lib/fchmodat.c: Likewise.
66742         * lib/fchownat.c: Likewise.
66743         * lib/fcntl--.h: Likewise.
66744         * lib/fcntl-safer.h: Likewise.
66745         * lib/fcntl.in.h: Likewise.
66746         * lib/fd-safer.c: Likewise.
66747         * lib/fflush.c: Likewise.
66748         * lib/file-has-acl.c: Likewise.
66749         * lib/file-set.c: Likewise.
66750         * lib/file-type.c: Likewise.
66751         * lib/file-type.h: Likewise.
66752         * lib/fileblocks.c: Likewise.
66753         * lib/filemode.c: Likewise.
66754         * lib/filemode.h: Likewise.
66755         * lib/filename.h: Likewise.
66756         * lib/filenamecat.c: Likewise.
66757         * lib/filenamecat.h: Likewise.
66758         * lib/findprog.c: Likewise.
66759         * lib/findprog.h: Likewise.
66760         * lib/float.in.h: Likewise.
66761         * lib/floor.c: Likewise.
66762         * lib/floorf.c: Likewise.
66763         * lib/floorl.c: Likewise.
66764         * lib/fopen-safer.c: Likewise.
66765         * lib/fopen.c: Likewise.
66766         * lib/fpending.c: Likewise.
66767         * lib/fpending.h: Likewise.
66768         * lib/fprintf.c: Likewise.
66769         * lib/fprintftime.h: Likewise.
66770         * lib/fpucw.h: Likewise.
66771         * lib/fpurge.c: Likewise.
66772         * lib/fpurge.h: Likewise.
66773         * lib/freadable.c: Likewise.
66774         * lib/freadable.h: Likewise.
66775         * lib/freadahead.c: Likewise.
66776         * lib/freadahead.h: Likewise.
66777         * lib/freading.c: Likewise.
66778         * lib/freading.h: Likewise.
66779         * lib/free.c: Likewise.
66780         * lib/freopen.c: Likewise.
66781         * lib/frexp.c: Likewise.
66782         * lib/frexpl.c: Likewise.
66783         * lib/fseek.c: Likewise.
66784         * lib/fseterr.c: Likewise.
66785         * lib/fseterr.h: Likewise.
66786         * lib/fstatat.c: Likewise.
66787         * lib/fstrcmp.c: Likewise.
66788         * lib/fstrcmp.h: Likewise.
66789         * lib/fsusage.c: Likewise.
66790         * lib/fsusage.h: Likewise.
66791         * lib/ftell.c: Likewise.
66792         * lib/ftello.c: Likewise.
66793         * lib/fts-cycle.c: Likewise.
66794         * lib/fts.c: Likewise.
66795         * lib/fts_.h: Likewise.
66796         * lib/full-read.c: Likewise.
66797         * lib/full-read.h: Likewise.
66798         * lib/full-write.c: Likewise.
66799         * lib/full-write.h: Likewise.
66800         * lib/fwritable.c: Likewise.
66801         * lib/fwritable.h: Likewise.
66802         * lib/fwriteerror.c: Likewise.
66803         * lib/fwriteerror.h: Likewise.
66804         * lib/fwriting.c: Likewise.
66805         * lib/fwriting.h: Likewise.
66806         * lib/gcd.c: Likewise.
66807         * lib/gcd.h: Likewise.
66808         * lib/getcwd.c: Likewise.
66809         * lib/getdate.h: Likewise.
66810         * lib/getdate.y: Likewise.
66811         * lib/getdomainname.c: Likewise.
66812         * lib/getdomainname.h: Likewise.
66813         * lib/getgroups.c: Likewise.
66814         * lib/gethostname.c: Likewise.
66815         * lib/gethrxtime.c: Likewise.
66816         * lib/gethrxtime.h: Likewise.
66817         * lib/getloadavg.c: Likewise.
66818         * lib/getndelim2.c: Likewise.
66819         * lib/getndelim2.h: Likewise.
66820         * lib/getnline.c: Likewise.
66821         * lib/getnline.h: Likewise.
66822         * lib/getopt.c: Likewise.
66823         * lib/getopt.in.h: Likewise.
66824         * lib/getopt1.c: Likewise.
66825         * lib/getopt_int.h: Likewise.
66826         * lib/getpagesize.h: Likewise.
66827         * lib/getsubopt.c: Likewise.
66828         * lib/gettime.c: Likewise.
66829         * lib/getugroups.c: Likewise.
66830         * lib/getugroups.h: Likewise.
66831         * lib/getusershell.c: Likewise.
66832         * lib/gl_anyavltree_list1.h: Likewise.
66833         * lib/gl_anyavltree_list2.h: Likewise.
66834         * lib/gl_anyhash_list1.h: Likewise.
66835         * lib/gl_anyhash_list2.h: Likewise.
66836         * lib/gl_anylinked_list1.h: Likewise.
66837         * lib/gl_anylinked_list2.h: Likewise.
66838         * lib/gl_anyrbtree_list1.h: Likewise.
66839         * lib/gl_anyrbtree_list2.h: Likewise.
66840         * lib/gl_anytree_list1.h: Likewise.
66841         * lib/gl_anytree_list2.h: Likewise.
66842         * lib/gl_anytree_oset.h: Likewise.
66843         * lib/gl_anytreehash_list1.h: Likewise.
66844         * lib/gl_anytreehash_list2.h: Likewise.
66845         * lib/gl_array_list.c: Likewise.
66846         * lib/gl_array_list.h: Likewise.
66847         * lib/gl_array_oset.c: Likewise.
66848         * lib/gl_array_oset.h: Likewise.
66849         * lib/gl_avltree_list.c: Likewise.
66850         * lib/gl_avltree_list.h: Likewise.
66851         * lib/gl_avltree_oset.c: Likewise.
66852         * lib/gl_avltree_oset.h: Likewise.
66853         * lib/gl_avltreehash_list.c: Likewise.
66854         * lib/gl_avltreehash_list.h: Likewise.
66855         * lib/gl_carray_list.c: Likewise.
66856         * lib/gl_carray_list.h: Likewise.
66857         * lib/gl_linked_list.c: Likewise.
66858         * lib/gl_linked_list.h: Likewise.
66859         * lib/gl_linkedhash_list.c: Likewise.
66860         * lib/gl_linkedhash_list.h: Likewise.
66861         * lib/gl_list.c: Likewise.
66862         * lib/gl_list.h: Likewise.
66863         * lib/gl_oset.c: Likewise.
66864         * lib/gl_oset.h: Likewise.
66865         * lib/gl_rbtree_list.c: Likewise.
66866         * lib/gl_rbtree_list.h: Likewise.
66867         * lib/gl_rbtree_oset.c: Likewise.
66868         * lib/gl_rbtree_oset.h: Likewise.
66869         * lib/gl_rbtreehash_list.c: Likewise.
66870         * lib/gl_rbtreehash_list.h: Likewise.
66871         * lib/gl_sublist.c: Likewise.
66872         * lib/gl_sublist.h: Likewise.
66873         * lib/group-member.c: Likewise.
66874         * lib/group-member.h: Likewise.
66875         * lib/hard-locale.c: Likewise.
66876         * lib/hard-locale.h: Likewise.
66877         * lib/hash-pjw.c: Likewise.
66878         * lib/hash-pjw.h: Likewise.
66879         * lib/hash-triple.c: Likewise.
66880         * lib/hash.c: Likewise.
66881         * lib/hash.h: Likewise.
66882         * lib/human.c: Likewise.
66883         * lib/human.h: Likewise.
66884         * lib/i-ring.c: Likewise.
66885         * lib/i-ring.h: Likewise.
66886         * lib/idcache.c: Likewise.
66887         * lib/imaxabs.c: Likewise.
66888         * lib/imaxdiv.c: Likewise.
66889         * lib/inet_pton.c: Likewise.
66890         * lib/inet_pton.h: Likewise.
66891         * lib/intprops.h: Likewise.
66892         * lib/inttostr.c: Likewise.
66893         * lib/inttostr.h: Likewise.
66894         * lib/inttypes.in.h: Likewise.
66895         * lib/isapipe.c: Likewise.
66896         * lib/isdir.c: Likewise.
66897         * lib/isnan.c: Likewise.
66898         * lib/isnan.h: Likewise.
66899         * lib/isnanf.c: Likewise.
66900         * lib/isnanf.h: Likewise.
66901         * lib/isnanl-nolibm.h: Likewise.
66902         * lib/isnanl.c: Likewise.
66903         * lib/isnanl.h: Likewise.
66904         * lib/javacomp.c: Likewise.
66905         * lib/javacomp.h: Likewise.
66906         * lib/javaexec.c: Likewise.
66907         * lib/javaexec.h: Likewise.
66908         * lib/javaversion.c: Likewise.
66909         * lib/javaversion.h: Likewise.
66910         * lib/javaversion.java: Likewise.
66911         * lib/lbrkprop.h: Likewise.
66912         * lib/lchmod.h: Likewise.
66913         * lib/lchown.c: Likewise.
66914         * lib/ldexpl.c: Likewise.
66915         * lib/linebreak.c: Likewise.
66916         * lib/linebreak.h: Likewise.
66917         * lib/linebuffer.c: Likewise.
66918         * lib/linebuffer.h: Likewise.
66919         * lib/locale.in.h: Likewise.
66920         * lib/logl.c: Likewise.
66921         * lib/long-options.c: Likewise.
66922         * lib/long-options.h: Likewise.
66923         * lib/lstat.c: Likewise.
66924         * lib/lstat.h: Likewise.
66925         * lib/math.in.h: Likewise.
66926         * lib/mbchar.c: Likewise.
66927         * lib/mbchar.h: Likewise.
66928         * lib/mbfile.h: Likewise.
66929         * lib/mbiter.h: Likewise.
66930         * lib/mbscasecmp.c: Likewise.
66931         * lib/mbscasestr.c: Likewise.
66932         * lib/mbschr.c: Likewise.
66933         * lib/mbscspn.c: Likewise.
66934         * lib/mbslen.c: Likewise.
66935         * lib/mbsncasecmp.c: Likewise.
66936         * lib/mbsnlen.c: Likewise.
66937         * lib/mbspbrk.c: Likewise.
66938         * lib/mbspcasecmp.c: Likewise.
66939         * lib/mbsrchr.c: Likewise.
66940         * lib/mbssep.c: Likewise.
66941         * lib/mbsspn.c: Likewise.
66942         * lib/mbsstr.c: Likewise.
66943         * lib/mbstok_r.c: Likewise.
66944         * lib/mbswidth.c: Likewise.
66945         * lib/mbswidth.h: Likewise.
66946         * lib/mbuiter.h: Likewise.
66947         * lib/memcasecmp.c: Likewise.
66948         * lib/memcasecmp.h: Likewise.
66949         * lib/memchr.c: Likewise.
66950         * lib/memcmp.c: Likewise.
66951         * lib/memcoll.c: Likewise.
66952         * lib/memcoll.h: Likewise.
66953         * lib/memcpy.c: Likewise.
66954         * lib/memrchr.c: Likewise.
66955         * lib/mkancesdirs.c: Likewise.
66956         * lib/mkdir-p.c: Likewise.
66957         * lib/mkdir-p.h: Likewise.
66958         * lib/mkdir.c: Likewise.
66959         * lib/mkdirat.c: Likewise.
66960         * lib/mkdtemp.c: Likewise.
66961         * lib/mkstemp-safer.c: Likewise.
66962         * lib/mkstemp.c: Likewise.
66963         * lib/modechange.c: Likewise.
66964         * lib/modechange.h: Likewise.
66965         * lib/mountlist.c: Likewise.
66966         * lib/mountlist.h: Likewise.
66967         * lib/mpsort.c: Likewise.
66968         * lib/nanosleep.c: Likewise.
66969         * lib/obstack.c: Likewise.
66970         * lib/obstack.h: Likewise.
66971         * lib/open-safer.c: Likewise.
66972         * lib/open.c: Likewise.
66973         * lib/openat-die.c: Likewise.
66974         * lib/openat-priv.h: Likewise.
66975         * lib/openat-proc.c: Likewise.
66976         * lib/openat.c: Likewise.
66977         * lib/openat.h: Likewise.
66978         * lib/pagealign_alloc.c: Likewise.
66979         * lib/pagealign_alloc.h: Likewise.
66980         * lib/physmem.c: Likewise.
66981         * lib/physmem.h: Likewise.
66982         * lib/pipe-safer.c: Likewise.
66983         * lib/pipe.c: Likewise.
66984         * lib/pipe.h: Likewise.
66985         * lib/posixtm.c: Likewise.
66986         * lib/posixtm.h: Likewise.
66987         * lib/posixver.c: Likewise.
66988         * lib/printf-frexp.c: Likewise.
66989         * lib/printf-frexp.h: Likewise.
66990         * lib/printf-frexpl.c: Likewise.
66991         * lib/printf-frexpl.h: Likewise.
66992         * lib/printf.c: Likewise.
66993         * lib/progname.c: Likewise.
66994         * lib/progname.h: Likewise.
66995         * lib/progreloc.c: Likewise.
66996         * lib/putenv.c: Likewise.
66997         * lib/quote.c: Likewise.
66998         * lib/quote.h: Likewise.
66999         * lib/quotearg.c: Likewise.
67000         * lib/quotearg.h: Likewise.
67001         * lib/raise.c: Likewise.
67002         * lib/readline.c: Likewise.
67003         * lib/readline.h: Likewise.
67004         * lib/readlink.c: Likewise.
67005         * lib/readtokens.c: Likewise.
67006         * lib/readtokens.h: Likewise.
67007         * lib/readtokens0.c: Likewise.
67008         * lib/readtokens0.h: Likewise.
67009         * lib/readutmp.c: Likewise.
67010         * lib/readutmp.h: Likewise.
67011         * lib/realloc.c: Likewise.
67012         * lib/relocwrapper.c: Likewise.
67013         * lib/rename-dest-slash.c: Likewise.
67014         * lib/rename.c: Likewise.
67015         * lib/rmdir.c: Likewise.
67016         * lib/rpmatch.c: Likewise.
67017         * lib/safe-read.c: Likewise.
67018         * lib/safe-read.h: Likewise.
67019         * lib/safe-write.c: Likewise.
67020         * lib/safe-write.h: Likewise.
67021         * lib/same-inode.h: Likewise.
67022         * lib/same.c: Likewise.
67023         * lib/same.h: Likewise.
67024         * lib/save-cwd.c: Likewise.
67025         * lib/save-cwd.h: Likewise.
67026         * lib/savedir.c: Likewise.
67027         * lib/savedir.h: Likewise.
67028         * lib/savewd.c: Likewise.
67029         * lib/savewd.h: Likewise.
67030         * lib/search.in.h: Likewise.
67031         * lib/setenv.c: Likewise.
67032         * lib/setenv.h: Likewise.
67033         * lib/settime.c: Likewise.
67034         * lib/sh-quote.c: Likewise.
67035         * lib/sh-quote.h: Likewise.
67036         * lib/sig2str.c: Likewise.
67037         * lib/sig2str.h: Likewise.
67038         * lib/signal.in.h: Likewise.
67039         * lib/signbitd.c: Likewise.
67040         * lib/signbitf.c: Likewise.
67041         * lib/signbitl.c: Likewise.
67042         * lib/sigprocmask.c: Likewise.
67043         * lib/sincosl.c: Likewise.
67044         * lib/sleep.c: Likewise.
67045         * lib/sprintf.c: Likewise.
67046         * lib/sqrtl.c: Likewise.
67047         * lib/stat-time.h: Likewise.
67048         * lib/stdio--.h: Likewise.
67049         * lib/stdio-safer.h: Likewise.
67050         * lib/stdlib--.h: Likewise.
67051         * lib/stdlib-safer.h: Likewise.
67052         * lib/stdlib.in.h: Likewise.
67053         * lib/stpcpy.c: Likewise.
67054         * lib/stpncpy.c: Likewise.
67055         * lib/strchrnul.c: Likewise.
67056         * lib/strcspn.c: Likewise.
67057         * lib/strerror.c: Likewise.
67058         * lib/strftime.c: Likewise.
67059         * lib/strftime.h: Likewise.
67060         * lib/striconveh.c: Likewise.
67061         * lib/striconveh.h: Likewise.
67062         * lib/striconveha.c: Likewise.
67063         * lib/striconveha.h: Likewise.
67064         * lib/stripslash.c: Likewise.
67065         * lib/strnlen1.c: Likewise.
67066         * lib/strnlen1.h: Likewise.
67067         * lib/strtod.c: Likewise.
67068         * lib/strtoimax.c: Likewise.
67069         * lib/strtok_r.c: Likewise.
67070         * lib/strtol.c: Likewise.
67071         * lib/strtoll.c: Likewise.
67072         * lib/strtoul.c: Likewise.
67073         * lib/strtoull.c: Likewise.
67074         * lib/sysexits.in.h: Likewise.
67075         * lib/tempname.c: Likewise.
67076         * lib/tempname.h: Likewise.
67077         * lib/timespec.h: Likewise.
67078         * lib/tls.c: Likewise.
67079         * lib/tls.h: Likewise.
67080         * lib/tmpdir.c: Likewise.
67081         * lib/tmpdir.h: Likewise.
67082         * lib/tmpfile-safer.c: Likewise.
67083         * lib/tmpfile.c: Likewise.
67084         * lib/trigl.c: Likewise.
67085         * lib/trigl.h: Likewise.
67086         * lib/trim.c: Likewise.
67087         * lib/trim.h: Likewise.
67088         * lib/trunc.c: Likewise.
67089         * lib/truncf.c: Likewise.
67090         * lib/truncl.c: Likewise.
67091         * lib/tsearch.c: Likewise.
67092         * lib/unicodeio.c: Likewise.
67093         * lib/unicodeio.h: Likewise.
67094         * lib/unistd--.h: Likewise.
67095         * lib/unistd-safer.h: Likewise.
67096         * lib/unistdio/ulc-fprintf.c: Likewise.
67097         * lib/unistdio/ulc-vfprintf.c: Likewise.
67098         * lib/unlinkdir.c: Likewise.
67099         * lib/unlinkdir.h: Likewise.
67100         * lib/unlocked-io.h: Likewise.
67101         * lib/unsetenv.c: Likewise.
67102         * lib/userspec.c: Likewise.
67103         * lib/utime.c: Likewise.
67104         * lib/utimecmp.c: Likewise.
67105         * lib/utimecmp.h: Likewise.
67106         * lib/utimens.c: Likewise.
67107         * lib/verify.h: Likewise.
67108         * lib/verror.c: Likewise.
67109         * lib/verror.h: Likewise.
67110         * lib/version-etc-fsf.c: Likewise.
67111         * lib/version-etc.c: Likewise.
67112         * lib/version-etc.h: Likewise.
67113         * lib/vfprintf.c: Likewise.
67114         * lib/vprintf.c: Likewise.
67115         * lib/vsprintf.c: Likewise.
67116         * lib/w32spawn.h: Likewise.
67117         * lib/wait-process.c: Likewise.
67118         * lib/wait-process.h: Likewise.
67119         * lib/wcwidth.c: Likewise.
67120         * lib/write-any-file.c: Likewise.
67121         * lib/xalloc-die.c: Likewise.
67122         * lib/xalloc.h: Likewise.
67123         * lib/xasprintf.c: Likewise.
67124         * lib/xgetcwd.c: Likewise.
67125         * lib/xgetcwd.h: Likewise.
67126         * lib/xgetdomainname.c: Likewise.
67127         * lib/xgetdomainname.h: Likewise.
67128         * lib/xgethostname.c: Likewise.
67129         * lib/xmalloc.c: Likewise.
67130         * lib/xmalloca.c: Likewise.
67131         * lib/xmalloca.h: Likewise.
67132         * lib/xmemcoll.c: Likewise.
67133         * lib/xnanosleep.c: Likewise.
67134         * lib/xreadlink.c: Likewise.
67135         * lib/xreadlink.h: Likewise.
67136         * lib/xsetenv.c: Likewise.
67137         * lib/xsetenv.h: Likewise.
67138         * lib/xstriconv.c: Likewise.
67139         * lib/xstriconv.h: Likewise.
67140         * lib/xstrndup.c: Likewise.
67141         * lib/xstrndup.h: Likewise.
67142         * lib/xstrtod.c: Likewise.
67143         * lib/xstrtod.h: Likewise.
67144         * lib/xstrtol-error.c: Likewise.
67145         * lib/xstrtol.c: Likewise.
67146         * lib/xstrtol.h: Likewise.
67147         * lib/xtime.h: Likewise.
67148         * lib/xvasprintf.c: Likewise.
67149         * lib/xvasprintf.h: Likewise.
67150         * lib/yesno.c: Likewise.
67151         * lib/yesno.h: Likewise.
67152         * posix-modules: Likewise.
67153         * tests/test-alloca-opt.c: Likewise.
67154         * tests/test-arcfour.c: Likewise.
67155         * tests/test-arctwo.c: Likewise.
67156         * tests/test-argmatch.c: Likewise.
67157         * tests/test-argp-2.sh: Likewise.
67158         * tests/test-argp.c: Likewise.
67159         * tests/test-arpa_inet.c: Likewise.
67160         * tests/test-array_list.c: Likewise.
67161         * tests/test-array_oset.c: Likewise.
67162         * tests/test-atexit.c: Likewise.
67163         * tests/test-avltree_list.c: Likewise.
67164         * tests/test-avltree_oset.c: Likewise.
67165         * tests/test-avltreehash_list.c: Likewise.
67166         * tests/test-base64.c: Likewise.
67167         * tests/test-binary-io.c: Likewise.
67168         * tests/test-byteswap.c: Likewise.
67169         * tests/test-c-ctype.c: Likewise.
67170         * tests/test-c-strcasecmp.c: Likewise.
67171         * tests/test-c-strcasestr.c: Likewise.
67172         * tests/test-c-strncasecmp.c: Likewise.
67173         * tests/test-c-strstr.c: Likewise.
67174         * tests/test-canonicalize-lgpl.c: Likewise.
67175         * tests/test-canonicalize.c: Likewise.
67176         * tests/test-carray_list.c: Likewise.
67177         * tests/test-ceilf.c: Likewise.
67178         * tests/test-ceill.c: Likewise.
67179         * tests/test-count-one-bits.c: Likewise.
67180         * tests/test-crc.c: Likewise.
67181         * tests/test-dirname.c: Likewise.
67182         * tests/test-fbufmode.c: Likewise.
67183         * tests/test-fcntl.c: Likewise.
67184         * tests/test-fflush.c: Likewise.
67185         * tests/test-floorf.c: Likewise.
67186         * tests/test-floorl.c: Likewise.
67187         * tests/test-fopen.c: Likewise.
67188         * tests/test-fprintf-posix.c: Likewise.
67189         * tests/test-fprintf-posix.h: Likewise.
67190         * tests/test-fpurge.c: Likewise.
67191         * tests/test-freadable.c: Likewise.
67192         * tests/test-freadahead.c: Likewise.
67193         * tests/test-freading.c: Likewise.
67194         * tests/test-freopen.c: Likewise.
67195         * tests/test-frexp.c: Likewise.
67196         * tests/test-frexpl.c: Likewise.
67197         * tests/test-fseek.c: Likewise.
67198         * tests/test-fseeko.c: Likewise.
67199         * tests/test-fseterr.c: Likewise.
67200         * tests/test-fstrcmp.c: Likewise.
67201         * tests/test-ftell.c: Likewise.
67202         * tests/test-ftello.c: Likewise.
67203         * tests/test-fwritable.c: Likewise.
67204         * tests/test-fwriting.c: Likewise.
67205         * tests/test-getaddrinfo.c: Likewise.
67206         * tests/test-getpass.c: Likewise.
67207         * tests/test-gettimeofday.c: Likewise.
67208         * tests/test-hmac-md5.c: Likewise.
67209         * tests/test-hmac-sha1.c: Likewise.
67210         * tests/test-iconv.c: Likewise.
67211         * tests/test-iconvme.c: Likewise.
67212         * tests/test-inttypes.c: Likewise.
67213         * tests/test-isnan.c: Likewise.
67214         * tests/test-isnanf.c: Likewise.
67215         * tests/test-isnanl-nolibm.c: Likewise.
67216         * tests/test-isnanl.c: Likewise.
67217         * tests/test-isnanl.h: Likewise.
67218         * tests/test-ldexpl.c: Likewise.
67219         * tests/test-linked_list.c: Likewise.
67220         * tests/test-linkedhash_list.c: Likewise.
67221         * tests/test-locale.c: Likewise.
67222         * tests/test-localename.c: Likewise.
67223         * tests/test-lock.c: Likewise.
67224         * tests/test-lseek.c: Likewise.
67225         * tests/test-malloca.c: Likewise.
67226         * tests/test-math.c: Likewise.
67227         * tests/test-mbscasecmp.c: Likewise.
67228         * tests/test-mbscasestr1.c: Likewise.
67229         * tests/test-mbscasestr2.c: Likewise.
67230         * tests/test-mbscasestr3.c: Likewise.
67231         * tests/test-mbscasestr4.c: Likewise.
67232         * tests/test-mbschr.c: Likewise.
67233         * tests/test-mbscspn.c: Likewise.
67234         * tests/test-mbsncasecmp.c: Likewise.
67235         * tests/test-mbspbrk.c: Likewise.
67236         * tests/test-mbspcasecmp.c: Likewise.
67237         * tests/test-mbsrchr.c: Likewise.
67238         * tests/test-mbsspn.c: Likewise.
67239         * tests/test-mbsstr1.c: Likewise.
67240         * tests/test-mbsstr2.c: Likewise.
67241         * tests/test-mbsstr3.c: Likewise.
67242         * tests/test-md5.c: Likewise.
67243         * tests/test-memmem.c: Likewise.
67244         * tests/test-netinet_in.c: Likewise.
67245         * tests/test-open.c: Likewise.
67246         * tests/test-printf-frexp.c: Likewise.
67247         * tests/test-printf-frexpl.c: Likewise.
67248         * tests/test-printf-posix.c: Likewise.
67249         * tests/test-printf-posix.h: Likewise.
67250         * tests/test-rbtree_list.c: Likewise.
67251         * tests/test-rbtree_oset.c: Likewise.
67252         * tests/test-rbtreehash_list.c: Likewise.
67253         * tests/test-read-file.c: Likewise.
67254         * tests/test-rijndael.c: Likewise.
67255         * tests/test-search.c: Likewise.
67256         * tests/test-signbit.c: Likewise.
67257         * tests/test-sleep.c: Likewise.
67258         * tests/test-snprintf-posix.c: Likewise.
67259         * tests/test-snprintf-posix.h: Likewise.
67260         * tests/test-snprintf.c: Likewise.
67261         * tests/test-sprintf-posix.c: Likewise.
67262         * tests/test-sprintf-posix.h: Likewise.
67263         * tests/test-stat-time.c: Likewise.
67264         * tests/test-stdbool.c: Likewise.
67265         * tests/test-stdint.c: Likewise.
67266         * tests/test-stdio.c: Likewise.
67267         * tests/test-stdlib.c: Likewise.
67268         * tests/test-stpncpy.c: Likewise.
67269         * tests/test-strcasestr.c: Likewise.
67270         * tests/test-striconv.c: Likewise.
67271         * tests/test-striconveh.c: Likewise.
67272         * tests/test-striconveha.c: Likewise.
67273         * tests/test-string.c: Likewise.
67274         * tests/test-sys_select.c: Likewise.
67275         * tests/test-sys_socket.c: Likewise.
67276         * tests/test-sys_stat.c: Likewise.
67277         * tests/test-sys_time.c: Likewise.
67278         * tests/test-sysexits.c: Likewise.
67279         * tests/test-time.c: Likewise.
67280         * tests/test-tls.c: Likewise.
67281         * tests/test-trunc.c: Likewise.
67282         * tests/test-truncf.c: Likewise.
67283         * tests/test-truncl.c: Likewise.
67284         * tests/test-unistd.c: Likewise.
67285         * tests/test-vasnprintf-posix.c: Likewise.
67286         * tests/test-vasnprintf-posix2.c: Likewise.
67287         * tests/test-vasnprintf.c: Likewise.
67288         * tests/test-vasprintf-posix.c: Likewise.
67289         * tests/test-vasprintf.c: Likewise.
67290         * tests/test-verify.c: Likewise.
67291         * tests/test-vfprintf-posix.c: Likewise.
67292         * tests/test-vprintf-posix.c: Likewise.
67293         * tests/test-vsnprintf-posix.c: Likewise.
67294         * tests/test-vsnprintf.c: Likewise.
67295         * tests/test-vsprintf-posix.c: Likewise.
67296         * tests/test-wchar.c: Likewise.
67297         * tests/test-wctype.c: Likewise.
67298         * tests/test-wcwidth.c: Likewise.
67299         * tests/test-xstrtol.c: Likewise.
67300         * tests/test-xvasprintf.c: Likewise.
67301         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67302         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67303         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67304         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67305         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67306         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67307         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67308         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67309         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67310         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67311         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67312         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67313         * tests/uniname/test-uninames.c: Likewise.
67314         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67315         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
67316         * tests/unistdio/test-u16-printf1.h: Likewise.
67317         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67318         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67319         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67320         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67321         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67322         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67323         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67324         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
67325         * tests/unistdio/test-u32-printf1.h: Likewise.
67326         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67327         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67328         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67329         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67330         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67331         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67332         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67333         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
67334         * tests/unistdio/test-u8-printf1.h: Likewise.
67335         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67336         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67337         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67338         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67339         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67340         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67341         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67342         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
67343         * tests/unistdio/test-ulc-printf1.h: Likewise.
67344         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67345         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67346         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67347         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67348         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67349         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67350         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67351         * tests/uniwidth/test-u16-width.c: Likewise.
67352         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67353         * tests/uniwidth/test-u32-width.c: Likewise.
67354         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67355         * tests/uniwidth/test-u8-width.c: Likewise.
67356         * tests/uniwidth/test-uc_width.c: Likewise.
67357         * config/srclist-update: Likewise.
67358         (fixlicense): Update to GPLv3+.
67359
67360         Change copyright notice from LGPLv2.1+ to LGPLv3+.
67361         * tests/test-tsearch.c: Change copyright notice.
67362
67363         Change copyright notice from LGPLv2.0+ to LGPLv3+.
67364         * lib/c-strcaseeq.h: Change copyright notice.
67365         * lib/streq.h: Likewise.
67366         * lib/uniconv.h: Likewise.
67367         * lib/uniconv/u-conv-from-enc.h: Likewise.
67368         * lib/uniconv/u-conv-to-enc.h: Likewise.
67369         * lib/uniconv/u-strconv-from-enc.h: Likewise.
67370         * lib/uniconv/u-strconv-to-enc.h: Likewise.
67371         * lib/uniconv/u16-conv-from-enc.c: Likewise.
67372         * lib/uniconv/u16-conv-to-enc.c: Likewise.
67373         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
67374         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
67375         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
67376         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
67377         * lib/uniconv/u32-conv-from-enc.c: Likewise.
67378         * lib/uniconv/u32-conv-to-enc.c: Likewise.
67379         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
67380         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
67381         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
67382         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
67383         * lib/uniconv/u8-conv-from-enc.c: Likewise.
67384         * lib/uniconv/u8-conv-to-enc.c: Likewise.
67385         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
67386         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
67387         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
67388         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
67389         * lib/uniname.h: Likewise.
67390         * lib/uniname/uniname.c: Likewise.
67391         * lib/unistdio.h: Likewise.
67392         * lib/unistdio/u-asnprintf.h: Likewise.
67393         * lib/unistdio/u-asprintf.h: Likewise.
67394         * lib/unistdio/u-printf-args.c: Likewise.
67395         * lib/unistdio/u-printf-args.h: Likewise.
67396         * lib/unistdio/u-printf-parse.h: Likewise.
67397         * lib/unistdio/u-snprintf.h: Likewise.
67398         * lib/unistdio/u-sprintf.h: Likewise.
67399         * lib/unistdio/u-vasprintf.h: Likewise.
67400         * lib/unistdio/u-vsnprintf.h: Likewise.
67401         * lib/unistdio/u-vsprintf.h: Likewise.
67402         * lib/unistdio/u16-asnprintf.c: Likewise.
67403         * lib/unistdio/u16-asprintf.c: Likewise.
67404         * lib/unistdio/u16-printf-parse.c: Likewise.
67405         * lib/unistdio/u16-snprintf.c: Likewise.
67406         * lib/unistdio/u16-sprintf.c: Likewise.
67407         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
67408         * lib/unistdio/u16-u16-asprintf.c: Likewise.
67409         * lib/unistdio/u16-u16-snprintf.c: Likewise.
67410         * lib/unistdio/u16-u16-sprintf.c: Likewise.
67411         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
67412         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
67413         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
67414         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
67415         * lib/unistdio/u16-vasnprintf.c: Likewise.
67416         * lib/unistdio/u16-vasprintf.c: Likewise.
67417         * lib/unistdio/u16-vsnprintf.c: Likewise.
67418         * lib/unistdio/u16-vsprintf.c: Likewise.
67419         * lib/unistdio/u32-asnprintf.c: Likewise.
67420         * lib/unistdio/u32-asprintf.c: Likewise.
67421         * lib/unistdio/u32-printf-parse.c: Likewise.
67422         * lib/unistdio/u32-snprintf.c: Likewise.
67423         * lib/unistdio/u32-sprintf.c: Likewise.
67424         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
67425         * lib/unistdio/u32-u32-asprintf.c: Likewise.
67426         * lib/unistdio/u32-u32-snprintf.c: Likewise.
67427         * lib/unistdio/u32-u32-sprintf.c: Likewise.
67428         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
67429         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
67430         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
67431         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
67432         * lib/unistdio/u32-vasnprintf.c: Likewise.
67433         * lib/unistdio/u32-vasprintf.c: Likewise.
67434         * lib/unistdio/u32-vsnprintf.c: Likewise.
67435         * lib/unistdio/u32-vsprintf.c: Likewise.
67436         * lib/unistdio/u8-asnprintf.c: Likewise.
67437         * lib/unistdio/u8-asprintf.c: Likewise.
67438         * lib/unistdio/u8-printf-parse.c: Likewise.
67439         * lib/unistdio/u8-snprintf.c: Likewise.
67440         * lib/unistdio/u8-sprintf.c: Likewise.
67441         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
67442         * lib/unistdio/u8-u8-asprintf.c: Likewise.
67443         * lib/unistdio/u8-u8-snprintf.c: Likewise.
67444         * lib/unistdio/u8-u8-sprintf.c: Likewise.
67445         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
67446         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
67447         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
67448         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
67449         * lib/unistdio/u8-vasnprintf.c: Likewise.
67450         * lib/unistdio/u8-vasprintf.c: Likewise.
67451         * lib/unistdio/u8-vsnprintf.c: Likewise.
67452         * lib/unistdio/u8-vsprintf.c: Likewise.
67453         * lib/unistdio/ulc-asnprintf.c: Likewise.
67454         * lib/unistdio/ulc-asprintf.c: Likewise.
67455         * lib/unistdio/ulc-printf-parse.c: Likewise.
67456         * lib/unistdio/ulc-snprintf.c: Likewise.
67457         * lib/unistdio/ulc-sprintf.c: Likewise.
67458         * lib/unistdio/ulc-vasnprintf.c: Likewise.
67459         * lib/unistdio/ulc-vasprintf.c: Likewise.
67460         * lib/unistdio/ulc-vsnprintf.c: Likewise.
67461         * lib/unistdio/ulc-vsprintf.c: Likewise.
67462         * lib/unistr.h: Likewise.
67463         * lib/unistr/u-cpy-alloc.h: Likewise.
67464         * lib/unistr/u-cpy.h: Likewise.
67465         * lib/unistr/u-endswith.h: Likewise.
67466         * lib/unistr/u-move.h: Likewise.
67467         * lib/unistr/u-set.h: Likewise.
67468         * lib/unistr/u-startswith.h: Likewise.
67469         * lib/unistr/u-stpcpy.h: Likewise.
67470         * lib/unistr/u-stpncpy.h: Likewise.
67471         * lib/unistr/u-strcat.h: Likewise.
67472         * lib/unistr/u-strcpy.h: Likewise.
67473         * lib/unistr/u-strcspn.h: Likewise.
67474         * lib/unistr/u-strdup.h: Likewise.
67475         * lib/unistr/u-strlen.h: Likewise.
67476         * lib/unistr/u-strncat.h: Likewise.
67477         * lib/unistr/u-strncpy.h: Likewise.
67478         * lib/unistr/u-strnlen.h: Likewise.
67479         * lib/unistr/u-strpbrk.h: Likewise.
67480         * lib/unistr/u-strspn.h: Likewise.
67481         * lib/unistr/u-strstr.h: Likewise.
67482         * lib/unistr/u-strtok.h: Likewise.
67483         * lib/unistr/u16-check.c: Likewise.
67484         * lib/unistr/u16-chr.c: Likewise.
67485         * lib/unistr/u16-cmp.c: Likewise.
67486         * lib/unistr/u16-cpy-alloc.c: Likewise.
67487         * lib/unistr/u16-cpy.c: Likewise.
67488         * lib/unistr/u16-endswith.c: Likewise.
67489         * lib/unistr/u16-mblen.c: Likewise.
67490         * lib/unistr/u16-mbsnlen.c: Likewise.
67491         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67492         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67493         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67494         * lib/unistr/u16-mbtouc.c: Likewise.
67495         * lib/unistr/u16-mbtoucr.c: Likewise.
67496         * lib/unistr/u16-move.c: Likewise.
67497         * lib/unistr/u16-next.c: Likewise.
67498         * lib/unistr/u16-prev.c: Likewise.
67499         * lib/unistr/u16-set.c: Likewise.
67500         * lib/unistr/u16-startswith.c: Likewise.
67501         * lib/unistr/u16-stpcpy.c: Likewise.
67502         * lib/unistr/u16-stpncpy.c: Likewise.
67503         * lib/unistr/u16-strcat.c: Likewise.
67504         * lib/unistr/u16-strchr.c: Likewise.
67505         * lib/unistr/u16-strcmp.c: Likewise.
67506         * lib/unistr/u16-strcpy.c: Likewise.
67507         * lib/unistr/u16-strcspn.c: Likewise.
67508         * lib/unistr/u16-strdup.c: Likewise.
67509         * lib/unistr/u16-strlen.c: Likewise.
67510         * lib/unistr/u16-strmblen.c: Likewise.
67511         * lib/unistr/u16-strmbtouc.c: Likewise.
67512         * lib/unistr/u16-strncat.c: Likewise.
67513         * lib/unistr/u16-strncmp.c: Likewise.
67514         * lib/unistr/u16-strncpy.c: Likewise.
67515         * lib/unistr/u16-strnlen.c: Likewise.
67516         * lib/unistr/u16-strpbrk.c: Likewise.
67517         * lib/unistr/u16-strrchr.c: Likewise.
67518         * lib/unistr/u16-strspn.c: Likewise.
67519         * lib/unistr/u16-strstr.c: Likewise.
67520         * lib/unistr/u16-strtok.c: Likewise.
67521         * lib/unistr/u16-to-u32.c: Likewise.
67522         * lib/unistr/u16-to-u8.c: Likewise.
67523         * lib/unistr/u16-uctomb-aux.c: Likewise.
67524         * lib/unistr/u16-uctomb.c: Likewise.
67525         * lib/unistr/u32-check.c: Likewise.
67526         * lib/unistr/u32-chr.c: Likewise.
67527         * lib/unistr/u32-cmp.c: Likewise.
67528         * lib/unistr/u32-cpy-alloc.c: Likewise.
67529         * lib/unistr/u32-cpy.c: Likewise.
67530         * lib/unistr/u32-endswith.c: Likewise.
67531         * lib/unistr/u32-mblen.c: Likewise.
67532         * lib/unistr/u32-mbsnlen.c: Likewise.
67533         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67534         * lib/unistr/u32-mbtouc.c: Likewise.
67535         * lib/unistr/u32-mbtoucr.c: Likewise.
67536         * lib/unistr/u32-move.c: Likewise.
67537         * lib/unistr/u32-next.c: Likewise.
67538         * lib/unistr/u32-prev.c: Likewise.
67539         * lib/unistr/u32-set.c: Likewise.
67540         * lib/unistr/u32-startswith.c: Likewise.
67541         * lib/unistr/u32-stpcpy.c: Likewise.
67542         * lib/unistr/u32-stpncpy.c: Likewise.
67543         * lib/unistr/u32-strcat.c: Likewise.
67544         * lib/unistr/u32-strchr.c: Likewise.
67545         * lib/unistr/u32-strcmp.c: Likewise.
67546         * lib/unistr/u32-strcpy.c: Likewise.
67547         * lib/unistr/u32-strcspn.c: Likewise.
67548         * lib/unistr/u32-strdup.c: Likewise.
67549         * lib/unistr/u32-strlen.c: Likewise.
67550         * lib/unistr/u32-strmblen.c: Likewise.
67551         * lib/unistr/u32-strmbtouc.c: Likewise.
67552         * lib/unistr/u32-strncat.c: Likewise.
67553         * lib/unistr/u32-strncmp.c: Likewise.
67554         * lib/unistr/u32-strncpy.c: Likewise.
67555         * lib/unistr/u32-strnlen.c: Likewise.
67556         * lib/unistr/u32-strpbrk.c: Likewise.
67557         * lib/unistr/u32-strrchr.c: Likewise.
67558         * lib/unistr/u32-strspn.c: Likewise.
67559         * lib/unistr/u32-strstr.c: Likewise.
67560         * lib/unistr/u32-strtok.c: Likewise.
67561         * lib/unistr/u32-to-u16.c: Likewise.
67562         * lib/unistr/u32-to-u8.c: Likewise.
67563         * lib/unistr/u32-uctomb.c: Likewise.
67564         * lib/unistr/u8-check.c: Likewise.
67565         * lib/unistr/u8-chr.c: Likewise.
67566         * lib/unistr/u8-cmp.c: Likewise.
67567         * lib/unistr/u8-cpy-alloc.c: Likewise.
67568         * lib/unistr/u8-cpy.c: Likewise.
67569         * lib/unistr/u8-endswith.c: Likewise.
67570         * lib/unistr/u8-mblen.c: Likewise.
67571         * lib/unistr/u8-mbsnlen.c: Likewise.
67572         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67573         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67574         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67575         * lib/unistr/u8-mbtouc.c: Likewise.
67576         * lib/unistr/u8-mbtoucr.c: Likewise.
67577         * lib/unistr/u8-move.c: Likewise.
67578         * lib/unistr/u8-next.c: Likewise.
67579         * lib/unistr/u8-prev.c: Likewise.
67580         * lib/unistr/u8-set.c: Likewise.
67581         * lib/unistr/u8-startswith.c: Likewise.
67582         * lib/unistr/u8-stpcpy.c: Likewise.
67583         * lib/unistr/u8-stpncpy.c: Likewise.
67584         * lib/unistr/u8-strcat.c: Likewise.
67585         * lib/unistr/u8-strchr.c: Likewise.
67586         * lib/unistr/u8-strcmp.c: Likewise.
67587         * lib/unistr/u8-strcpy.c: Likewise.
67588         * lib/unistr/u8-strcspn.c: Likewise.
67589         * lib/unistr/u8-strdup.c: Likewise.
67590         * lib/unistr/u8-strlen.c: Likewise.
67591         * lib/unistr/u8-strmblen.c: Likewise.
67592         * lib/unistr/u8-strmbtouc.c: Likewise.
67593         * lib/unistr/u8-strncat.c: Likewise.
67594         * lib/unistr/u8-strncmp.c: Likewise.
67595         * lib/unistr/u8-strncpy.c: Likewise.
67596         * lib/unistr/u8-strnlen.c: Likewise.
67597         * lib/unistr/u8-strpbrk.c: Likewise.
67598         * lib/unistr/u8-strrchr.c: Likewise.
67599         * lib/unistr/u8-strspn.c: Likewise.
67600         * lib/unistr/u8-strstr.c: Likewise.
67601         * lib/unistr/u8-strtok.c: Likewise.
67602         * lib/unistr/u8-to-u16.c: Likewise.
67603         * lib/unistr/u8-to-u32.c: Likewise.
67604         * lib/unistr/u8-uctomb-aux.c: Likewise.
67605         * lib/unistr/u8-uctomb.c: Likewise.
67606         * lib/unitypes.h: Likewise.
67607         * lib/uniwidth.h: Likewise.
67608         * lib/uniwidth/cjk.h: Likewise.
67609         * lib/uniwidth/u16-strwidth.c: Likewise.
67610         * lib/uniwidth/u16-width.c: Likewise.
67611         * lib/uniwidth/u32-strwidth.c: Likewise.
67612         * lib/uniwidth/u32-width.c: Likewise.
67613         * lib/uniwidth/u8-strwidth.c: Likewise.
67614         * lib/uniwidth/u8-width.c: Likewise.
67615         * lib/uniwidth/width.c: Likewise.
67616
67617 2007-10-07  Bruno Haible  <bruno@clisp.org>
67618
67619         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67620         The file is still under LGPL (see modules/inttypes).
67621
67622 2007-10-06  Bruno Haible  <bruno@clisp.org>
67623
67624         * modules/trunc (Dependencies): Add 'extensions'.
67625         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67626         Reported by Ben Pfaff <blp@gnu.org>.
67627
67628 2007-10-06  Bruno Haible  <bruno@clisp.org>
67629
67630         * modules/freopen-tests: New file.
67631         * tests/test-freopen.c: New file.
67632
67633         * modules/fopen-tests: New file.
67634         * tests/test-fopen.c: New file.
67635
67636         * modules/fopen: New file.
67637         * lib/fopen.c: New file.
67638         * m4/fopen.m4: New file.
67639         * modules/freopen: New file.
67640         * lib/freopen.c: New file.
67641         * m4/freopen.m4: New file.
67642         * lib/stdio.in.h (fopen, freopen): New declarations.
67643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67644         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67645         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67646         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67647         * doc/functions/fopen.texi: Mention the 'fopen' module.
67648         * doc/functions/freopen.texi: Mention the 'freopen' module.
67649
67650 2007-10-06  Bruno Haible  <bruno@clisp.org>
67651
67652         * modules/open-tests: New file.
67653         * tests/test-open.c: New file.
67654
67655         * modules/open: New file.
67656         * lib/open.c: New file.
67657         * m4/open.m4: New file.
67658         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67659         lib/open.c does.
67660         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67661         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67662         macros.
67663         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67664         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67665         REPLACE_OPEN.
67666         * doc/functions/open.texi: Mention the 'open' module.
67667
67668 2007-10-04  Bruno Haible  <bruno@clisp.org>
67669
67670         * modules/ceill-tests: New file.
67671         * tests/test-ceill.c: New file.
67672
67673         * modules/ceill: New file.
67674         * lib/ceill.c: Replace entire file.
67675         * m4/ceill.m4: New file.
67676         * lib/math.in.h (ceill): Replace declaration.
67677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67678         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67679         * doc/functions/ceill.texi: Mention the 'ceill' module.
67680         * modules/mathl (Files): Remove lib/ceill.c.
67681         (Depends-on): Add ceill.
67682
67683 2007-10-04  Bruno Haible  <bruno@clisp.org>
67684
67685         * modules/ceilf-tests: New file.
67686         * tests/test-ceilf.c: New file.
67687
67688         * modules/ceilf: New file.
67689         * lib/ceil.c: New file.
67690         * lib/ceilf.c: New file.
67691         * m4/ceilf.m4: New file.
67692         * lib/math.in.h (ceilf): New declaration.
67693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67694         HAVE_DECL_CEILF.
67695         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67696         HAVE_DECL_CEILF.
67697         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67698
67699 2007-10-04  Bruno Haible  <bruno@clisp.org>
67700
67701         * modules/floorl-tests: New file.
67702         * tests/test-floorl.c: New file.
67703
67704         * modules/floorl: New file.
67705         * lib/floorl.c: Replace entire file.
67706         * m4/floorl.m4: New file.
67707         * lib/math.in.h (floorl): Replace declaration.
67708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67709         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67710         * doc/functions/floorl.texi: Mention the 'floorl' module.
67711         * modules/mathl (Files): Remove lib/floorl.c.
67712         (Depends-on): Add floorl.
67713
67714 2007-10-04  Bruno Haible  <bruno@clisp.org>
67715
67716         * modules/floorf-tests: New file.
67717         * tests/test-floorf.c: New file.
67718
67719         * modules/floorf: New file.
67720         * lib/floor.c: New file.
67721         * lib/floorf.c: New file.
67722         * m4/floorf.m4: New file.
67723         * lib/math.in.h (floorf): New declaration.
67724         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67725         HAVE_DECL_FLOORF.
67726         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67727         HAVE_DECL_FLOORF.
67728         * doc/functions/floorf.texi: Mention the 'floorf' module.
67729
67730 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67731             Bruno Haible  <bruno@clisp.org>
67732
67733         Advertise for the Git server instead of the CVS server.
67734         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67735         repository instead of the CVS one.
67736         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67737         about all VCS systems generically.
67738         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67739
67740 2007-10-04  Bruno Haible  <bruno@clisp.org>
67741
67742         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67743         means.
67744         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67745
67746 2007-10-04  Bruno Haible  <bruno@clisp.org>
67747
67748         * modules/truncl-tests: New file.
67749         * tests/test-truncl.c: New file.
67750
67751         * modules/truncl: New file.
67752         * lib/truncl.c: New file.
67753         * m4/truncl.m4: New file.
67754         * lib/math.in.h (truncl): New declaration.
67755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67756         HAVE_DECL_TRUNCL.
67757         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67758         HAVE_DECL_TRUNCL.
67759         * doc/functions/truncl.texi: Mention the 'truncl' module.
67760
67761 2007-10-04  Bruno Haible  <bruno@clisp.org>
67762
67763         * modules/truncf-tests: New file.
67764         * tests/test-truncf.c: New file.
67765
67766         * modules/truncf: New file.
67767         * lib/trunc.c: Make paramerizable through USE_* macros.
67768         * lib/truncf.c: New file.
67769         * m4/truncf.m4: New file.
67770         * lib/math.in.h (truncf): New declaration.
67771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67772         HAVE_DECL_TRUNCF.
67773         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67774         HAVE_DECL_TRUNCF.
67775         * doc/functions/truncf.texi: Mention the 'truncf' module.
67776
67777 2007-10-03  Bruno Haible  <bruno@clisp.org>
67778
67779         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67780         augmentation also for tests modules.
67781         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67782         * modules/atexit-tests (Makefile.am): Likewise.
67783         * modules/binary-io-tests (Makefile.am): Likewise.
67784         * modules/c-strcase-tests (Makefile.am): Likewise.
67785         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67786         * modules/canonicalize-tests (Makefile.am): Likewise.
67787         * modules/closein-tests (Makefile.am): Likewise.
67788         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67789         * modules/freadahead-tests (Makefile.am): Likewise.
67790         * modules/fseek-tests (Makefile.am): Likewise.
67791         * modules/fseeko-tests (Makefile.am): Likewise.
67792         * modules/ftell-tests (Makefile.am): Likewise.
67793         * modules/ftello-tests (Makefile.am): Likewise.
67794         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67795         * modules/isnanl-tests (Makefile.am): Likewise.
67796         * modules/lseek-tests (Makefile.am): Likewise.
67797         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67798         * modules/mbscasestr-tests (Makefile.am): Likewise.
67799         * modules/mbschr-tests (Makefile.am): Likewise.
67800         * modules/mbscspn-tests (Makefile.am): Likewise.
67801         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67802         * modules/mbspbrk-tests (Makefile.am): Likewise.
67803         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67804         * modules/mbsrchr-tests (Makefile.am): Likewise.
67805         * modules/mbsspn-tests (Makefile.am): Likewise.
67806         * modules/mbsstr-tests (Makefile.am): Likewise.
67807         * modules/printf-posix-tests (Makefile.am): Likewise.
67808         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67809         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67810         * modules/tsearch-tests (Makefile.am): Likewise.
67811         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67812         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67813         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67814         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67815         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67816         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67817         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67818         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67819         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67820         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67821         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67822         * modules/xstrtol-tests (Makefile.am): Likewise.
67823         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67824         * modules/yesno-tests (Makefile.am): Likewise.
67825
67826 2007-10-03  Bruno Haible  <bruno@clisp.org>
67827
67828         * modules/trunc-tests: New file.
67829         * tests/test-trunc.c: New file.
67830
67831         * modules/trunc: New file.
67832         * lib/trunc.c: New file.
67833         * m4/trunc.m4: New file.
67834         * lib/math.in.h (trunc): New declaration.
67835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67836         HAVE_DECL_TRUNC.
67837         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67838         HAVE_DECL_TRUNC.
67839         * doc/functions/trunc.texi: Mention the 'trunc' module.
67840
67841 2007-10-03  Bruno Haible  <bruno@clisp.org>
67842
67843         * tests/test-fpending.c: New file, mostly copied
67844         from coreutils/lib/t-fpending.c.
67845         * modules/fpending-tests: New file.
67846
67847 2007-10-03  Bruno Haible  <bruno@clisp.org>
67848
67849         Port the stdio extensions to QNX (untested).
67850         * lib/fseterr.c (fseterr): Add support for QNX.
67851         * lib/fbufmode.c (fbufmode): Likewise.
67852         * lib/freadable.c (freadable): Likewise.
67853         * lib/fwritable.c (fwritable): Likewise.
67854         * lib/freading.c (freading): Likewise.
67855         * lib/fwriting.c (fwriting): Likewise.
67856         * lib/freadahead.c (freadahed): Likewise.
67857         * lib/fpurge.c (fpurge): Likewise.
67858         * lib/fseeko.c (rpl_fseeko): Likewise.
67859
67860 2007-10-03  Bruno Haible  <bruno@clisp.org>
67861             Jim Meyering  <jim@meyering.net>
67862             Eric Blake  <ebb9@byu.net>
67863
67864         * doc/relocatable.texi: Use @command instead of @program.
67865
67866 2007-10-02  Jim Meyering  <jim@meyering.net>
67867
67868         Perform one more "_.h" -> ".in.h" substitution.
67869         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67870         instead of unistd_.h here, too.
67871
67872 2007-10-01  Bruno Haible  <bruno@clisp.org>
67873
67874         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67875         Needed for the alloca-opt module.
67876
67877 2007-09-30  Bruno Haible  <bruno@clisp.org>
67878
67879         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67880         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67881         alloca_.h.
67882         * lib/argz.in.h: Renamed from lib/argz_.h.
67883         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67884         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67885         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67886         byteswap_.h.
67887         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67888         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67889         dirent_.h.
67890         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67891         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67892         fcntl_.h.
67893         * lib/float.in.h: Renamed from lib/float_.h.
67894         * modules/float (Files, Makefile.am): Use float.in.h instead of
67895         float_.h.
67896         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67897         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67898         fnmatch_.h.
67899         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67900         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67901         getopt_.h.
67902         * lib/glob.in.h: Renamed from lib/glob_.h.
67903         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67904         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67905         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67906         iconv_.h.
67907         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67908         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67909         inttypes_.h.
67910         * lib/locale.in.h: Renamed from lib/locale_.h.
67911         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67912         locale_.h.
67913         * lib/math.in.h: Renamed from lib/math_.h.
67914         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67915         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67916         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67917         of netinet_in_.h. Add dependency.
67918         * lib/poll.in.h: Renamed from lib/poll_.h.
67919         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67920         * lib/search.in.h: Renamed from lib/search_.h.
67921         * modules/search (Files, Makefile.am): Use search.in.h instead of
67922         search_.h.
67923         * lib/signal.in.h: Renamed from lib/signal_.h.
67924         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67925         _signal.h.
67926         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67927         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67928         stdbool_.h.
67929         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67930         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67931         stdint_.h.
67932         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67933         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67934         stdio_.h.
67935         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67936         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67937         stdlib_.h.
67938         * lib/string.in.h: Renamed from lib/string_.h.
67939         * modules/string (Files, Makefile.am): Use string.in.h instead of
67940         string_.h.
67941         * doc/gnulib-tool.texi (Initial import): Update.
67942         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67943         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67944         of sys_select_.h. Add dependency.
67945         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67946         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67947         of sys_socket_.h.
67948         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67949         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67950         sys_stat_.h.
67951         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67952         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67953         sys_time_.h.
67954         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67955         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67956         sysexits_.h.
67957         * lib/time.in.h: Renamed from lib/time_.h.
67958         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67959         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67960         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67961         unistd_.h.
67962         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67963         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67964         wchar_.h.
67965         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67966         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67967         wctype_.h.
67968         * build-aux/bootstrap (slurp): Update.
67969         * lib/.cppi-disable: Update.
67970
67971 2007-09-30  Bruno Haible  <bruno@clisp.org>
67972
67973         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67974         Needed on BeOS.
67975
67976 2007-09-30  Bruno Haible  <bruno@clisp.org>
67977
67978         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67979
67980 2007-09-29  Bruno Haible  <bruno@clisp.org>
67981
67982         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67983
67984 2007-09-29  Bruno Haible  <bruno@clisp.org>
67985
67986         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67987         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67988         * build-aux/install-reloc: Compile also areadlink.c.
67989         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67990
67991 2007-09-29  Bruno Haible  <bruno@clisp.org>
67992
67993         * gnulib-tool (func_emit_initmacro_done): Indentation.
67994
67995 2007-09-29  Bruno Haible  <bruno@clisp.org>
67996
67997         * README: Add CVS checkout update instructions.
67998         Info from Bob Proulx <bob@proulx.com>.
67999
68000 2007-09-28  Eric Blake  <ebb9@byu.net>
68001
68002         Provide move-if-change.
68003         * build-aux/move-if-change: New file, based on best practice
68004         rather than any canonical upstream location.
68005
68006 2007-09-28  Jim Meyering  <jim@meyering.net>
68007
68008         Fix canonicalize loop-detection corner case.
68009         Do not attempt to stat the symlink values stored via seen_triple.
68010         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
68011         on linux-2.6.18, (but not 2.6.22).
68012         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
68013         triple_compare.  The former compares dev,ino,filename, while the latter
68014         would actually stat dirname(filename) when dev and ino were equal.
68015         * lib/hash-triple.c: Install <string.h>.
68016         (STREQ): Define.
68017         (triple_compare_ino_str): New function.
68018         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
68019
68020 2007-09-28  Eric Blake  <ebb9@byu.net>
68021
68022         Enforce that AC_REPLACE_FUNCS files exist.
68023         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
68024         override check for typos.
68025
68026         Fix test-closein on Solaris 10.
68027         * tests/test-closein.c (main): Don't assume stdin can be inherited
68028         closed on all systems.
68029         * tests/test-closein.sh: Likewise.
68030         Reported by Piotr Tarnowski.
68031
68032 2007-09-28  Jim Meyering  <jim@meyering.net>
68033
68034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
68035
68036 2007-09-27  Jim Meyering  <jim@meyering.net>
68037
68038         canonicalize: Avoid a false-positive cycle failure.
68039         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
68040         Sort.  Remove cycle-check.
68041         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
68042         not cycle-check.h.
68043         (seen_triple): New function.
68044         (canonicalize_filename_mode): Use it instead of cycle-check.
68045         * tests/test-canonicalize.c: Add a test for this bug.
68046         * tests/test-canonicalize.sh: Set up and run the test.
68047
68048         New module, file-set, from coreutils.
68049         * modules/file-set: Define it.
68050         * lib/file-set.c, lib/file-set.h: Implement.
68051
68052         New module, hash-triple, from coreutils.
68053         * modules/hash-triple: Define it.
68054         * lib/hash-triple.c, lib/hash-triple.h: Implement.
68055
68056 2007-09-25  Eric Blake  <ebb9@byu.net>
68057
68058         Fix strerror on Interix.
68059         * lib/string_.h (strerror): Declare replacement.
68060         * doc/functions/strerror.texi (strerror): Document the Interix
68061         shortcoming.
68062         * modules/string (Makefile.am): Support new hooks.
68063         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
68064         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
68065         gl_FUNC_STRERROR_SEPARATE.
68066         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
68067         * lib/strerror.c (rpl_strerror): Provide replacement.
68068         * modules/strerror (Depends-on): Add string.
68069         (configure.ac): Detect use of module.
68070         * tests/test-strerror.c: New file.
68071         * modules/strerror-tests: New test module.
68072         * modules/argp (Depends-on): Add strerror.
68073         * modules/error (Depends-on): Likewise.
68074         Reported by Martin Koeppe.
68075
68076 2007-09-24  Bruno Haible  <bruno@clisp.org>
68077
68078         * README: Update git instructions.
68079
68080 2007-09-24  Eric Blake  <ebb9@byu.net>
68081
68082         Revert fpending breakage from 2007-09-08.
68083         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
68084         __fpending.c.
68085
68086 2007-09-24  Jim Meyering  <jim@meyering.net>
68087
68088         filenamecat.c: Add a test.
68089         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
68090         showing how the function works when DIR is the empty string.
68091
68092 2007-09-21  Simon Josefsson  <simon@josefsson.org>
68093
68094         * tests/test-canonicalize.sh: Turn on executable bit.
68095
68096 2007-09-19  Eric Blake  <ebb9@byu.net>
68097
68098         * README: Update CVS instructions.
68099
68100 2007-09-18  Bruno Haible  <bruno@clisp.org>
68101
68102         * modules/areadlink: New file.
68103         * lib/areadlink.h (areadlink): New declaration.
68104         * lib/areadlink.c: New file, based on lib/xreadlink.c.
68105
68106 2007-09-17  Jim Meyering  <jim@meyering.net>
68107
68108         * lib/savewd.c (ESTALE) [!defined]: Define.
68109         Reported to be required on Interix by Martin Koeppe.
68110
68111 2007-09-17  Bruno Haible  <bruno@clisp.org>
68112
68113         * gnulib-tool (func_version): Use $version.
68114
68115 2007-09-16  Bruno Haible  <bruno@clisp.org>
68116
68117         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
68118         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
68119         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
68120         Reported by Greg Schafer <gschafer@zip.com.au>.
68121
68122 2007-09-15  Bruno Haible  <bruno@clisp.org>
68123
68124         * gnulib-tool (sed): Try a little harder to make bash understand the
68125         alias.
68126         Reported by Bruce Korb <bruce.korb@gmail.com>.
68127
68128 2007-09-13  Eric Blake  <ebb9@byu.net>
68129
68130         * ChangeLog: Remove conflict markers.
68131
68132 2007-09-13  Simon Josefsson  <simon@josefsson.org>
68133
68134         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
68135         Reported by Bruno Haible <bruno@clisp.org>.
68136
68137 2007-09-12  Bruno Haible  <bruno@clisp.org>
68138
68139         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
68140         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
68141         is not defined.
68142
68143 2007-09-12  Eric Blake  <ebb9@byu.net>
68144
68145         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
68146         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
68147         Autoconf definition.
68148         * modules/euidaccess (Depends-on): Add extensions, for
68149         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
68150         * modules/fnmatch (Depends-on): Likewise.
68151         * modules/getaddrinfo (Depends-on): Likewise.
68152         * modules/getdelim (Depends-on): Likewise.
68153         * modules/getline (Depends-on): Likewise.
68154         * modules/getsubopt (Depends-on): Likewise.
68155         * modules/gettext (Depends-on): Likewise.
68156         * modules/group-member (Depends-on): Likewise.
68157         * modules/mbchar (Depends-on): Likewise.
68158         * modules/memmem (Depends-on): Likewise.
68159         * modules/mempcpy (Depends-on): Likewise.
68160         * modules/memrchr (Depends-on): Likewise.
68161         * modules/pagealign_alloc (Depends-on): Likewise.
68162         * modules/readutmp (Depends-on): Likewise.
68163         * modules/stpcpy (Depends-on): Likewise.
68164         * modules/stpncpy (Depends-on): Likewise.
68165         * modules/strchrnul (Depends-on): Likewise.
68166         * modules/strndup (Depends-on): Likewise.
68167         * modules/strsep (Depends-on): Likewise.
68168         * modules/strverscmp (Depends-on): Likewise.
68169         * modules/vasprintf (Depends-on): Likewise.
68170         * modules/wcwidth (Depends-on): Likewise.
68171         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
68172         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
68173         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
68174         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
68175         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
68176         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68177         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
68178         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68179         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
68180         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
68181         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
68182         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68183         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68184         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
68185         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
68186         * m4/readutmp.m4 (gl_READUTMP): Likewise.
68187         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68188         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68189         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68190         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68191         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68192         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68193         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68194         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
68195         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
68196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68197         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
68198         so that lock.m4 can be used in gettext without extensions module.
68199
68200 2007-09-11  Bruno Haible  <bruno@clisp.org>
68201
68202         * m4/isc-posix.m4: Remove file.
68203         Suggested by Eric Blake.
68204
68205 2007-09-11  Eric Blake  <ebb9@byu.net>
68206
68207         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
68208
68209 2007-09-10  Bruno Haible  <bruno@clisp.org>
68210
68211         * posix-modules: Fix typo in error message.
68212         Reported by Matt <mkraai@beckman.com>.
68213
68214 2007-09-09  Bruno Haible  <bruno@clisp.org>
68215
68216         * doc/functions/getdelim.texi: Update list of platforms lacking the
68217         function.
68218         * doc/functions/getline.texi: Likewise.
68219
68220 2007-09-09  Jim Meyering  <jim@meyering.net>
68221
68222         * lib/hash.c (hash_initialize): Detect calloc failure.
68223         Reported by Bruno Haible.
68224
68225 2007-09-09  Bruno Haible  <bruno@clisp.org>
68226
68227         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
68228         malloc or realloc fails.
68229
68230 2007-09-09  Bruno Haible  <bruno@clisp.org>
68231
68232         * modules/getcwd (Depends-on): Add malloc-posix.
68233         * modules/glob (Depends-on): Likewise.
68234         * modules/putenv (Depends-on): Likewise.
68235         * modules/strdup (Depends-on): Likewise.
68236         * modules/getdelim (Depends-on): Add realloc-posix.
68237         * modules/read-file (Depends-on): Likewise.
68238
68239 2007-09-09  Bruno Haible  <bruno@clisp.org>
68240
68241         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
68242         (gl_FUNC_MALLOC_POSIX): Require it.
68243         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
68244         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
68245         * modules/realloc (Files): Add m4/malloc.m4.
68246         * modules/calloc (Files): Likewise.
68247
68248 2007-09-09  Bruno Haible  <bruno@clisp.org>
68249
68250         * modules/malloc-posix: New file.
68251         * modules/malloc (Depends-on): Add malloc-posix.
68252         * lib/malloc.c: Include errno.h.
68253         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
68254         and a POSIX-compatible malloc into a single function. Set ENOMEM
68255         when returning NULL.
68256         * m4/malloc.m4: New file.
68257         * doc/functions/malloc.texi: Mention the malloc-posix module.
68258         * lib/stdlib_.h (malloc): New declaration.
68259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68260         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
68261         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
68262         and HAVE_MALLOC_POSIX.
68263
68264 2007-09-09  Bruno Haible  <bruno@clisp.org>
68265
68266         * modules/realloc-posix: New file.
68267         * modules/realloc (Depends-on): Add realloc-posix.
68268         * lib/realloc.c: Include errno.h.
68269         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
68270         and a POSIX-compatible realloc into a single function. Set ENOMEM
68271         when returning NULL.
68272         * m4/realloc.m4: New file.
68273         * doc/functions/realloc.texi: Mention the realloc-posix module.
68274         * lib/stdlib_.h (realloc): New declaration.
68275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68276         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
68277         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
68278         and HAVE_REALLOC_POSIX.
68279
68280 2007-09-09  Bruno Haible  <bruno@clisp.org>
68281
68282         * modules/calloc-posix: New file.
68283         * modules/calloc (Depends-on): Add calloc-posix.
68284         * lib/calloc.c: Include errno.h.
68285         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
68286         and a POSIX-compatible calloc into a single function. Set ENOMEM
68287         when returning NULL.
68288         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
68289         * doc/functions/calloc.texi: Mention the calloc-posix module.
68290         * lib/stdlib_.h (calloc): New declaration.
68291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68292         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
68293         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
68294         and HAVE_CALLOC_POSIX.
68295
68296 2007-09-09  Bruno Haible  <bruno@clisp.org>
68297
68298         Allow for modules to show an arbitrary notice.
68299         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
68300         * gnulib-tool: New option --extract-notice.
68301         (func_usage): Document it.
68302         (sed_extract_prog): Update.
68303         (func_get_notice): New function.
68304         (func_modules_notice): New function.
68305         (func_import, func_create_testdir): Invoke it.
68306         Suggested by Jim Meyering.
68307
68308 2007-09-09  Bruno Haible  <bruno@clisp.org>
68309
68310         * gnulib-tool: New options --verbose, --quiet.
68311         (func_usage): Document them.
68312         (verbose): New variable.
68313         (func_execute_command): New function.
68314         (func_import): Don't show the module list and the file list if
68315         $verbose < 0.
68316         (func_create_testdir): Likewise. Use func_execute_command.
68317         (func_create_megatestdir): Use func_execute_command.
68318
68319 2007-09-08  Bruno Haible  <bruno@clisp.org>
68320
68321         * gnulib-tool (func_import): Prefer rsync over wget when available,
68322         for fetching the PO files.
68323
68324 2007-09-08  Bruno Haible  <bruno@clisp.org>
68325
68326         * posix-modules: New file. Portions copied from gnulib-tool.
68327         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
68328
68329 2007-09-08  Jim Meyering  <jim@meyering.net>
68330
68331         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
68332         * lib/fpending.h: Rename from __fpending.h.
68333         * lib/fpending.c: Rename from __fpending.c.
68334         Include "fpending.h", not "__fpending.h".
68335         * lib/__fpending.h, lib/__fpending.c: Remove files.
68336         * modules/fpending (Files): Reflect new file names.
68337         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
68338
68339 2007-09-08  Bruno Haible  <bruno@clisp.org>
68340
68341         * m4/inttypes-h.m4: Remove stub file.
68342
68343 2007-09-07  Simon Josefsson  <simon@josefsson.org>
68344
68345         * doc/headers/stdint.texi: Discuss #include_next issue.
68346
68347 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68348
68349         * build-aux/bootstrap: Remove obsolete comment about wget --help.
68350
68351 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68352
68353         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
68354         in variable name.
68355
68356 2007-09-03  Jim Meyering  <jim@meyering.net>
68357
68358         New module: git-version-gen.
68359         * modules/git-version-gen: New file.
68360
68361         Import changes from coreutils for bootstrap script.
68362
68363         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
68364
68365         bootstrap: uses rsync to download the .po files
68366         * build-aux/bootstrap (po_download_command_format): New global.
68367         (download_po_files): Use rsync.
68368         (update_po_files): Don't remove .po files after download,
68369         so future rsync runs can take advantage of the copies.
68370
68371         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
68372
68373         Solve the unnecessary-.po-file-regeneration problem once and for all.
68374         * build-aux/bootstrap (download_po_files): New function, renamed from
68375         get_translations.  Now, downloads, but doesn't update LINGUAS.
68376         (update_po_files): New function.
68377
68378         bootstrap: Ignore more.
68379         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
68380         uniwidth to e.g., lib/.gitignore.
68381         (slurp): Handle the sys_stat_.h -> sys mapping, too.
68382
68383         * build-aux/bootstrap: New setting: vc_ignore.
68384         (insert_sorted_if_absent): Create $file if absent.
68385         Adapt to new, possibly empty, list: $vc_ignore.
68386
68387         bootstrap: generate more ignorable names
68388         * build-aux/bootstrap (slurp): When generating ignorable names,
68389         also map .sin to .sed, .gperf to .c, and .y to .c.
68390
68391 2007-09-03  Jim Meyering  <jim@meyering.net>
68392
68393         * build-aux/git-version-gen: New file, from coreutils.  For details, see
68394         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
68395
68396 2007-09-02  Bruno Haible  <bruno@clisp.org>
68397
68398         Fix mis-recognition of 'mcs' on QNX 6.
68399         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
68400         output contains the string "Mono".
68401         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
68402         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
68403
68404 2007-09-01  Bruno Haible  <bruno@clisp.org>
68405
68406         Fix collision between uniwidth/* and linebreak modules.
68407         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
68408         u32_width): Remove declarations.
68409         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
68410         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
68411         streq3, streq2, streq1, streq0): Remove functions.
68412         (STREQ): Remove macro.
68413         (is_cjk_encoding): Remove function.
68414         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
68415         (uc_width, u8_width, u16_width, u32_width): Remove functions.
68416         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
68417         * NEWS: Document the change.
68418
68419 2007-09-01  Bruno Haible  <bruno@clisp.org>
68420
68421         * lib/streq.h: Add double-inclusion guard.
68422
68423 2007-09-01  Karl Berry  <karl@gnu.org>
68424
68425         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
68426
68427 2007-08-28  Jim Meyering  <jim@meyering.net>
68428
68429         Rename mreadlink_with_size to areadlink_with_size.
68430         * NEWS: Document the change.
68431         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
68432         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
68433         * lib/mreadlink.h: Rename this to...
68434         * lib/areadlink.h: ...this.
68435         * modules/mreadlink-with-size: Rename this to...
68436         * modules/areadlink-with-size: ...this.
68437         * lib/canonicalize.c: Reflect the renaming.
68438         * modules/canonicalize: Likewise.
68439
68440 2007-08-26  Bruno Haible  <bruno@clisp.org>
68441
68442         * gnulib-tool (func_import): When deciding which files to remove,
68443         consider also dangling symbolic links.
68444         Reported by Eric Blake.
68445
68446 2007-08-26  Bruno Haible  <bruno@clisp.org>
68447
68448         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
68449
68450 2007-08-23  Simon Josefsson  <simon@josefsson.org>
68451
68452         * lib/readline.c: Don't include getline.h, the prototype is now
68453         found in stdio.h.
68454
68455 2007-08-23  Jim Meyering  <jim@meyering.net>
68456
68457         Getdelim touchup.
68458         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
68459         around the funlockfile call, since funlockfile never sets errno.
68460         Don't set errno upon failed realloc.
68461
68462 2007-08-22  Eric Blake  <ebb9@byu.net>
68463
68464         Getline touchups.
68465         * lib/getdelim.c (getdelim): Revert regression that required *n to
68466         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
68467         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
68468         getdelim, rather than whether implementation is missing.
68469         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
68470         * lib/stdio_.h (getline): Also declare if replacement is
68471         required.
68472         * doc/functions/getdelim.texi: New file.
68473         * doc/functions/getline.texi: Likewise.
68474         * doc/gnulib.texi (Function Substitutes): Add new files.
68475         Reported by Bruno Haible.
68476
68477 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
68478
68479         * users.txt: Add Guile.
68480
68481 2007-08-22  Eric Blake  <ebb9@byu.net>
68482
68483         * tests/test-getdelim.c (main): Use remove, not unlink.
68484         * tests/test-getline.c (main): Likewise.
68485
68486         Move getline and getdelim into stdio.h, per POSIX 200x.
68487         * modules/getline (Files): Remove getline.h.
68488         (Depends-on): Add stdio.
68489         (configure.ac): Add module indicator.
68490         * modules/getdelim (Files): Remove getdelim.h.
68491         (Depends-on): Add stdio.
68492         (configure.ac): Add module indicator.
68493         * modules/stdio (Makefile.am): Work with new indicators.
68494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
68495         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
68496         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68497         * lib/getdelim.h: Delete.
68498         * lib/getline.h: Delete.
68499         * lib/stdio_.h (getdelim, getline): Declare.
68500         * modules/getdelim-tests: New module.
68501         * modules/getline-tests: Likewise.
68502         * tests/test-getdelim.c: New file.
68503         * tests/test-getline.c: Likewise.
68504         * NEWS: Document the change.
68505         * lib/getline.c: Update choice of header.
68506         * lib/csharpcomp.c: Likewise.
68507         * lib/getpass.c: Likewise.
68508         * lib/javacomp.c: Likewise.
68509         * lib/javaversion.c: Likewise.
68510         * lib/yesno.c: Likewise.
68511         * lib/getdelim.c: Likewise.
68512         (getdelim): Set errno on failure, and avoid memory leak.
68513
68514 2007-08-19  Bruno Haible  <bruno@clisp.org>
68515
68516         * modules/closein (Depends-on): Add freadahead.
68517         * lib/closein.c: Include freadahead.h.
68518         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68519         is zero.
68520
68521 2007-08-19  Bruno Haible  <bruno@clisp.org>
68522
68523         * modules/freadahead-tests: New file.
68524         * tests/test-freadahead.sh: New file.
68525         * tests/test-freadahead.c: New file.
68526
68527         * modules/freadahead: New file.
68528         * lib/freadahead.h: New file.
68529         * lib/freadahead.c: New file.
68530         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68531         fbufmode, fpurge, freadable, fwritable.
68532
68533 2007-08-19  Eric Blake  <ebb9@byu.net>
68534
68535         Test yesno in combination with closein.
68536         * lib/yesno.c (yesno): Document use of stdin.
68537         * modules/yesno-tests (Files): New module.
68538         * tests/test-yesno.c (main): New file.
68539         * tests/test-yesno.sh: Likewise.
68540
68541 2007-08-19  Bruno Haible  <bruno@clisp.org>
68542
68543         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68544         * lib/fseeko.c (rpl_fseeko): Likewise.
68545         * lib/fseterr.c (fseterr): Likewise.
68546
68547 2007-08-19  Bruno Haible  <bruno@clisp.org>
68548
68549         * tests/test-lseek.c (main): Disable a test for BeOS.
68550         * doc/functions/lseek.texi: Document the BeOS bug.
68551
68552 2007-08-19  Bruno Haible  <bruno@clisp.org>
68553             Eric Blake  <ebb9@byu.net>
68554
68555         * lib/lseek.c: Include <sys/stat.h>.
68556         (rpl_lseek): Add workaround code also for Unix platforms.
68557         Needed for BeOS.
68558         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68559         * doc/functions/lseek.texi: Document BeOS definiency.
68560
68561 2007-08-18  Bruno Haible  <bruno@clisp.org>
68562
68563         * modules/fstrcmp-tests: New file.
68564         * tests/test-fstrcmp.c: New file.
68565
68566 2007-08-18  Bruno Haible  <bruno@clisp.org>
68567
68568         * modules/fstrcmp: New file, from GNU gettext with modifications.
68569         * lib/fstrcmp.h: New file, from GNU gettext.
68570         * lib/fstrcmp.c: New file, from GNU gettext.
68571         * MODULES.html.sh (String handling): Add fstrcmp.
68572
68573 2007-08-18  Bruno Haible  <bruno@clisp.org>
68574
68575         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68576         'bool'.
68577         (diag, compareseq): Remove const from the ctxt argument.
68578         (USE_HEURISTIC): Undefine at the end.
68579
68580 2007-08-18  Jim Meyering  <jim@meyering.net>
68581
68582         New file: lib/idcache.h
68583         * NEWS: Mention the addition.
68584         * modules/idcache (Files): Add lib/idcache.h
68585         * lib/idcache.c: Include "idcache.h".
68586         Don't include <sys/types.h>.
68587         Add a FIXME comment.
68588         Move file-scoped "static" declarations to the top.
68589         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68590
68591 2007-08-17  Bruno Haible  <bruno@clisp.org>
68592         and Paul Eggert  <eggert@cs.ucla.edu>
68593
68594         * MODULES.html.sh: Add diffseq.
68595         * modules/diffseq: New file.
68596         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68597         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68598
68599 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68600
68601         Import changes from coreutils for bootstrap script.
68602
68603         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68604
68605         * build-aux/bootstrap (slurp): Work even in environments where
68606         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68607         current code does not slurp files whose names start with ".", and
68608         this looks like it might be a troublesome area.
68609
68610         2007-07-11  Jim Meyering  <jim@meyering.net>
68611
68612         If there's a GPL vN copyright comment, require that N == 3.
68613
68614         2007-07-08  Jim Meyering  <jim@meyering.net>
68615
68616         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68617         * build-aux/bootstrap (mam_template): Move definition out of loop.
68618
68619         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68620
68621         * build-aux/bootstrap (symlink_to_dir): Rename function from
68622         symlink_to_gnulib.  Add a directory parameter.  Update all
68623         callers.
68624         (cp_mark_as_generated): Also check for -- and link to -- files in
68625         gl/.
68626
68627         2007-07-08  Jim Meyering  <jim@meyering.net>
68628
68629         Adapt to deeper hierarchy in gnulib.
68630         * build-aux/bootstrap (symlink_to_dir): If the destination
68631         directory doesn't exist, create it. This is required at least for
68632         "lib/uniwidth/cjk.h".
68633
68634         2007-05-15  Jim Meyering  <jim@meyering.net>
68635
68636         * build-aux/bootstrap: Now that generated Makefile.am files
68637         are no longer under version control, they must be created at
68638         bootstrap time.
68639
68640 2007-08-14  Ben Pfaff  <blp@gnu.org>
68641
68642         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68643
68644 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68647         given the changes below.
68648         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68649         even on hosts that have padding bits beyond the supported 64.
68650
68651 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68652
68653         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68654         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68655         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68656         depends on it.
68657         (xstrtol_error): Remove.
68658         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68659         but with a different signature.
68660         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68661         * lib/xstrtol-error.c: Include exitfail.h.
68662         (xstrtol_fatal): New function, with a different signature from the
68663         old xstrtol_error, so that the caller need not worry about passing
68664         in an exit status, or about storage management of the option argument.
68665         (xstrtol_error): Now a static function.  Redo signature to
68666         implement xstrtol_fatal.  Output the correct number of hyphens in
68667         front of the option so that the caller need not worry about
68668         storage management.
68669         (N_): New macro.
68670         (_): Remove; not used now.
68671         * modules/xstrtol: Depend on getopt.
68672         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68673         of old STRTOL_FATAL_ERROR macro.
68674         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68675         of test program.
68676         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68677         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68678
68679 2007-08-08  Eric Blake  <ebb9@byu.net>
68680
68681         * lib/xstrtol-error.c: Add missing include.
68682
68683         Move xstrtol messages into gnulib domain, when --pobase is used.
68684         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68685         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68686         * modules/xstrtol (Files): Distribute new file.
68687         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68688         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68689         * tests/test-xstrtol.c: ...into new file.
68690         * tests/test-xstrtoul.c: Also test xstrtoul.
68691         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68692         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68693         * tests/test-xstrtol.sh: Drive the tests.
68694         * tests/test-xstrtoimax.sh: Likewise.
68695         * tests/test-xstrtoumax.sh: Likewise.
68696         * modules/xstrtol-tests: New module.
68697         * modules/xstrtoimax-tests: Likewise.
68698         * modules/xstrtoumax-tests: Likewise.
68699
68700 2007-08-08  Jim Meyering  <jim@meyering.net>
68701
68702         New function: mfile_name_concat.
68703         * lib/filenamecat.c (mfile_name_concat): New function, just like
68704         file_name_concat, but return NULL upon failure rather than exiting
68705         with a diagnostic.
68706         * lib/filenamecat.h: Declare it.
68707
68708 2007-08-07  Bruno Haible  <bruno@clisp.org>
68709
68710         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68711         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68712         warning from gcc.
68713         Reported by Eric Blake.
68714
68715 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68716
68717         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68718         * modules/crypto/arcfour (License): Likewise.
68719         * modules/crypto/des-tests (License): Likewise.
68720         * modules/crypto/gc-arctwo-tests (License): Likewise.
68721         * modules/crypto/gc-des-tests (License): Likewise.
68722         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68723         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68724         * modules/crypto/gc-md2-tests (License): Likewise.
68725         * modules/crypto/gc-md4-tests (License): Likewise.
68726         * modules/crypto/gc-md5-tests (License): Likewise.
68727         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68728         * modules/crypto/gc-rijndael-tests (License): Likewise.
68729         * modules/crypto/gc-sha1-tests (License): Likewise.
68730         * modules/crypto/gc-tests (License): Likewise.
68731         * modules/crypto/hmac-md5 (License): Likewise.
68732         * modules/crypto/hmac-sha1 (License): Likewise.
68733         * modules/crypto/md2-tests (License): Likewise.
68734         * modules/crypto/md4-tests (License): Likewise.
68735         * modules/crypto/md5 (License): Likewise.
68736         * modules/crypto/rijndael (License): Likewise.
68737         * modules/crypto/sha1 (License): Likewise.
68738         * modules/memxor (License): Likewise.
68739
68740 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68741         and Bruno Haible  <bruno@clisp.org>
68742
68743         * NEWS: Describe interface changes to human, xstrtol.
68744         * lib/human.h: Include <xstrtol.h>.
68745         (human_options): Return enum strtol_error, not int.  Remove
68746         bool arg; take int * instead.
68747         * lib/human.c: Don't include "gettext.h".
68748         (_): Remove; no longer used.
68749         Don't include <xstrtol.h>, since human.h does it.
68750         (human_options): Adjust to abovementioned interface changes.
68751         Do not report error to stderr; that's now the caller's
68752         responsibility.
68753         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68754         interface change.
68755         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68756         Str, Argument_type_string.  All uses changed.  Put " argument"
68757         in diagnostics to make them clearer.  Change wording of suffix
68758         message for clarity.
68759         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68760         Argument_type_string.
68761         (STRTOL_FATAL_WARN): Remove; no longer used.
68762         * modules/human (Depends-on): Remove gettext-h.
68763
68764 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68765
68766         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68767
68768 2007-07-31  Bruno Haible  <bruno@clisp.org>
68769
68770         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68771         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68772         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68773
68774 2007-07-31  Bruno Haible  <bruno@clisp.org>
68775
68776         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68777         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68778
68779 2007-07-30  Bruno Haible  <bruno@clisp.org>
68780
68781         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68782         * modules/c-ctype (License): Likewise.
68783         * modules/c-strcase (License): Likewise.
68784         * modules/check-version (License): Likewise.
68785         * modules/iconv (License): Likewise.
68786         * modules/iconv_open (License): Likewise.
68787         * modules/read-file (License): Likewise.
68788         * modules/striconv (License): Likewise.
68789         * modules/strverscmp (License): Likewise.
68790         * modules/vasprintf (License): Likewise.
68791         * modules/crypto/des (License): Likewise.
68792         * modules/crypto/gc (License): Likewise.
68793         * modules/crypto/gc-arcfour (License): Likewise.
68794         * modules/crypto/gc-arctwo (License): Likewise.
68795         * modules/crypto/gc-des (License): Likewise.
68796         * modules/crypto/gc-hmac-md5 (License): Likewise.
68797         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68798         * modules/crypto/gc-md2 (License): Likewise.
68799         * modules/crypto/gc-md4 (License): Likewise.
68800         * modules/crypto/gc-md5 (License): Likewise.
68801         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68802         * modules/crypto/gc-random (License): Likewise.
68803         * modules/crypto/gc-rijndael (License): Likewise.
68804         * modules/crypto/gc-sha1 (License): Likewise.
68805         * modules/crypto/md2 (License): Likewise.
68806         * modules/crypto/md4 (License): Likewise.
68807
68808 2007-07-30  Jim Meyering  <jim@meyering.net>
68809
68810         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68811         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68812         it has valid stat data.  This bug would cause du not to count the
68813         sizes of inaccessible directories.
68814         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68815         in <http://bugzilla.redhat.com/250077>.
68816
68817 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68818             Bruno Haible  <bruno@clisp.org>
68819
68820         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68821         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68822         #include_next, gives a diagnostic about it, but reports no error in
68823         the exit code.
68824         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68825
68826 2007-07-24  Ben Pfaff  <blp@gnu.org>
68827
68828         Improve name: "count-one-bits" is better than "popcount".
68829         * MODULES.html.sh: Update name.
68830         * lib/popcount.h: Renamed lib/count-one-bits.h.
68831         (popcount): Renamed count_one_bits.
68832         (popcountl): Renamed count_one_bits_l.
68833         (popcountll): Renamed count_one_bits_ll.
68834         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68835         * modules/popcount: Renamed module/count-one-bits.
68836         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68837         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68838
68839 2007-07-23  Ben Pfaff  <blp@gnu.org>
68840
68841         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68842         better code generation, and add U to large constants to avoid
68843         warnings, in non-GCC case.
68844         Suggested by Bruno Haible.
68845
68846 2007-07-23  Ben Pfaff  <blp@gnu.org>
68847
68848         * lib/popcount.h: Use verify_true instead of if...abort.
68849         * modules/popcount: Depend on verify module.
68850         Suggested by Jim Meyering.
68851
68852 2007-07-23  Bruno Haible  <bruno@clisp.org>
68853
68854         * gnulib-tool (func_import): Create a .cvsignore file also when the
68855         directory is not yet in CVS but the toplevel directory is. When
68856         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68857         Reported by Karl Berry.
68858
68859 2007-07-22  Ben Pfaff  <blp@gnu.org>
68860
68861         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68862         case.
68863         Suggested by Eric Blake.
68864
68865 2007-07-22  Ben Pfaff  <blp@gnu.org>
68866
68867         New module: popcount.
68868         * MODULES.html.sh: Add popcount.
68869         * modules/popcount: New file.
68870         * modules/popcount-tests: New file.
68871         * tests/test-popcount.c: New file.
68872         * lib/popcount.h: New file.
68873         * m4/popcount.m4: New file.
68874
68875 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68876
68877         * build-aux/announce-gen: Update to GPLv3.
68878
68879         * build-aux/config.guess: Update from config.
68880
68881 2007-07-21  Bruno Haible  <bruno@clisp.org>
68882
68883         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68884         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68885
68886 2007-07-20  Jim Meyering  <jim@meyering.net>
68887
68888         * check-module: Diagnose a self-dependency.
68889
68890 2007-07-19  Bruno Haible  <bruno@clisp.org>
68891
68892         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68893         empty.
68894         Reported by Eric Blake.
68895
68896 2007-07-18  Bruno Haible  <bruno@clisp.org>
68897
68898         * gnulib-tool: New options --po-base, --po-domain.
68899         (func_usage): Document them.
68900         (pobase, po_domain): New variables.
68901         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68902         DEFAULT_TEXT_DOMAIN.
68903         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68904         (func_import): Consider pobase and po_domain. Create a po/ directory.
68905         (func_create_testdir): Set pobase and po_domain to empty.
68906         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68907         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68908
68909 2007-07-18  Bruno Haible  <bruno@clisp.org>
68910
68911         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68912         EXTRA_DIST augmentation for files in build-aux/.
68913
68914 2007-07-16  Bruno Haible  <bruno@clisp.org>
68915
68916         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68917         * modules/getdelim (License): Likewise.
68918
68919 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68920
68921         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68922         * modules/d-type (License): Likewise.
68923         * modules/extensions (License): Likewise.
68924         * modules/fnmatch (License): Likewise.
68925         * modules/fseeko (License): Likewise.
68926         * modules/getaddrinfo (License): Likewise.
68927         * modules/getline (License): Likewise.
68928         * modules/getlogin_r (License): Likewise.
68929         * modules/getpass (License): Likewise.
68930         * modules/gettimeofday (License): Likewise.
68931         * modules/glob (License): Likewise.
68932         * modules/inet_ntop (License): Likewise.
68933         * modules/malloc (License): Likewise.
68934         * modules/malloca (License): Likewise.
68935         * modules/memmem (License): Likewise.
68936         * modules/mempcpy (License): Likewise.
68937         * modules/memset (License): Likewise.
68938         * modules/minmax (License): Likewise.
68939         * modules/mktime (License): Likewise.
68940         * modules/netinet_in (License): Likewise.
68941         * modules/pathmax (License): Likewise.
68942         * modules/poll (License): Likewise.
68943         * modules/regex (License): Likewise.
68944         * modules/snprintf (License): Likewise.
68945         * modules/stdbool (License): Likewise.
68946         * modules/stdint (License): Likewise.
68947         * modules/stdio (License): Likewise.
68948         * modules/strcase (License): Likewise.
68949         * modules/strcasestr (License): Likewise.
68950         * modules/strdup (License): Likewise.
68951         * modules/string (License): Likewise.
68952         * modules/strndup (License): Likewise.
68953         * modules/strnlen (License): Likewise.
68954         * modules/strpbrk (License): Likewise.
68955         * modules/strptime (License): Likewise.
68956         * modules/strsep (License): Likewise.
68957         * modules/sys_select (License): Likewise.
68958         * modules/sys_socket (License): Likewise.
68959         * modules/sys_stat (License): Likewise.
68960         * modules/sys_time (License): Likewise.
68961         * modules/time (License): Likewise.
68962         * modules/time_r (License): Likewise.
68963         * modules/timegm (License): Likewise.
68964         * modules/unistd (License): Likewise.
68965         * modules/vsnprintf (License): Likewise.
68966         * modules/wctype (License): Likewise.
68967
68968 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68969
68970         * modules/argz (License): LGPLv2+.
68971
68972 2007-07-15  Karl Berry  <karl@gnu.org>
68973
68974         * doc/gnulib.texi: revise node structure per new fdl.texi.
68975
68976 2007-07-14  Bruno Haible  <bruno@clisp.org>
68977
68978         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68979         the output file.
68980         * lib/uniname/uninames.h: Regenerated.
68981
68982 2007-07-14  Karl Berry  <karl@gnu.org>
68983
68984         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68985         omitting sectioning and index commands.
68986
68987 2007-07-13  Bruno Haible  <bruno@clisp.org>
68988
68989         New gnulib-tool option --more-symlinks.
68990         * gnulib-tool (func_usage): Document --more-symlinks.
68991         (do_copyrights): New variable.
68992         Recognize option --more-symlinks.
68993         (func_import): Don't add a copyright notice transform to
68994         sed_transform_lib_file if do_copyrights is empty.
68995
68996 2007-07-13  Bruno Haible  <bruno@clisp.org>
68997
68998         * lib/vasnprintf.c (decimal_point_char): Define also if
68999         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
69000         && !NEED_PRINTF_DIRECTIVE_A.
69001         Reported by Clemens Koller <clemens.koller@anagramm.de> via
69002         Gary V. Vaughan <gary@gnu.org>.
69003
69004 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
69005
69006         * lib/inttypes_.h: Undo previous change, since it was fixed
69007         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
69008
69009 2007-07-13  Bruno Haible  <bruno@clisp.org>
69010
69011         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
69012         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
69013
69014 2007-07-13  Jim Meyering  <jim@meyering.net>
69015
69016         df: Don't fail for Tru64's "file-on-file mount".
69017         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
69018         so we fall through and use statfs instead.  Details here:
69019         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
69020         Reported by Albert Chin.
69021
69022 2007-07-13  Bruno Haible  <bruno@clisp.org>
69023
69024         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
69025         * modules/configmake (License): Likewise.
69026         * modules/gettext (License): Likewise.
69027         * modules/gettext-h (License): Likewise.
69028         * modules/include_next (License): Likewise.
69029         * modules/link-warning (License): Likewise.
69030         * modules/localcharset (License): Likewise.
69031         * modules/localename (License): Likewise.
69032         * modules/lock (License): Likewise.
69033         * modules/relocatable-lib-lgpl (License): Likewise.
69034         * modules/size_max (License): Likewise.
69035         * modules/vasnprintf (License): Likewise.
69036         * modules/wchar (License): Likewise.
69037         * modules/xsize (License): Likewise.
69038
69039 2007-07-13  Bruno Haible  <bruno@clisp.org>
69040
69041         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
69042         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
69043
69044 2007-07-12  Bruno Haible  <bruno@clisp.org>
69045
69046         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
69047         in the modules files.
69048
69049 2007-07-11  Karl Berry  <karl@gnu.org>
69050
69051         * MODULES.html.sh (func_module): use
69052          sed -e '\|^'"${includefile}"'$|d'
69053          instead of /.../d, to avoid errors on $includefile's containing /.
69054
69055 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69056
69057         * gnulib-tool (func_import): Avoid duplication of --avoid
69058         statements
69059         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
69060         names to `_' in variable names.
69061
69062 2007-07-10  Eric Blake  <ebb9@byu.net>
69063
69064         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
69065         * NEWS: Document this change.
69066
69067 2007-07-08  Bruno Haible  <bruno@clisp.org>
69068
69069         Update to Unicode 5.0.
69070         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
69071         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
69072         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
69073         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
69074         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
69075         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
69076         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
69077         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
69078         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
69079         U+10A3F, U+1D242..U+1D244.
69080         (nonspacing_table_ind): Update.
69081         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
69082         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
69083
69084 2007-07-08  Bruno Haible  <bruno@clisp.org>
69085
69086         Update to Unicode 5.0.
69087         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
69088         code transform. Extend the name index field of unicode_name_to_code and
69089         unicode_code_to_name from 16 to 24 bits.
69090         * lib/uniname/uniname.c (unicode_character_name,
69091         unicode_name_character): Add the range 0x12xxx to the code transform.
69092         * lib/uniname/uninames.h: Regenerated.
69093         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
69094
69095 2007-07-07  Bruno Haible  <bruno@clisp.org>
69096
69097         * modules/wcwidth-tests: New file.
69098         * tests/test-wcwidth.c: New file.
69099
69100         Work around MacOS X wcwidth() bug.
69101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
69102         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
69103         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
69104         original wcwidth in non-UTF-8 locales.
69105         * modules/wcwidth (Depends-on): Add localcharset, streq,
69106         uniwidth/width.
69107         * doc/functions/wcwidth.texi: Update.
69108
69109 2007-07-07  Bruno Haible  <bruno@clisp.org>
69110
69111         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
69112         (wcwidth): New declaration.
69113         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
69114         macros.
69115         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
69116         here. Prepare for creating <wchar.h> unconditionally.
69117         * modules/wchar (Depends-on): Add link-warning.
69118         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
69119         REPLACE_WCWIDTH, and GL_LINK_WARNING.
69120         * lib/wcwidth.h: Remove file.
69121         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
69122         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
69123         * modules/wcwidth (Files): Remove lib/wcwidth.h.
69124         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
69125         (Include): Replace wcwidth.h with <wchar.h>.
69126         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
69127         * lib/mbchar.h: Don't include wcwidth.h.
69128         * lib/mbswidth.c: Likewise.
69129         * NEWS: Mention the change.
69130
69131 2007-07-07  Bruno Haible  <bruno@clisp.org>
69132
69133         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
69134         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
69135         definition with an external declaration.
69136         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
69137         defined as a function. Remove AC_C_INLINE requirement.
69138         * modules/wcwidth (Files): Add lib/wcwidth.c.
69139         (Makefile.am): Remove redundant statement.
69140
69141 2007-07-07  Bruno Haible  <bruno@clisp.org>
69142
69143         * MODULES.html.sh (Unicode string functions): Add the new modules.
69144
69145         * tests/uniwidth/test-u32-strwidth.c: New file.
69146         * modules/uniwidth/u32-strwidth-tests: New file.
69147
69148         * lib/uniwidth/u32-strwidth.c: New file.
69149         * modules/uniwidth/u32-strwidth: New file.
69150
69151         * tests/uniwidth/test-u16-strwidth.c: New file.
69152         * modules/uniwidth/u16-strwidth-tests: New file.
69153
69154         * lib/uniwidth/u16-strwidth.c: New file.
69155         * modules/uniwidth/u16-strwidth: New file.
69156
69157         * tests/uniwidth/test-u8-strwidth.c: New file.
69158         * modules/uniwidth/u8-strwidth-tests: New file.
69159
69160         * lib/uniwidth/u8-strwidth.c: New file.
69161         * modules/uniwidth/u8-strwidth: New file.
69162
69163         * tests/uniwidth/test-u32-width.c: New file.
69164         * modules/uniwidth/u32-width-tests: New file.
69165
69166         * lib/uniwidth/u32-width.c: New file.
69167         * modules/uniwidth/u32-width: New file.
69168
69169         * tests/uniwidth/test-u16-width.c: New file.
69170         * modules/uniwidth/u16-width-tests: New file.
69171
69172         * lib/uniwidth/u16-width.c: New file.
69173         * modules/uniwidth/u16-width: New file.
69174
69175         * tests/uniwidth/test-u8-width.c: New file.
69176         * modules/uniwidth/u8-width-tests: New file.
69177
69178         * lib/uniwidth/u8-width.c: New file.
69179         * modules/uniwidth/u8-width: New file.
69180
69181         * tests/uniwidth/test-uc_width.c: New file.
69182         * modules/uniwidth/width-tests: New file.
69183
69184         * lib/uniwidth/width.c: New file, from GNU libiconv.
69185         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
69186         * modules/uniwidth/width: New file.
69187
69188         * lib/uniwidth.h: New file, from GNU libiconv.
69189         * modules/uniwidth/base: New file.
69190
69191 2007-07-07  Bruno Haible  <bruno@clisp.org>
69192
69193         * lib/uniname.h: New file, from GNU gettext.
69194         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
69195         * lib/uniname/uninames.h: New file, from GNU gettext.
69196         * lib/uniname/uniname.c: New file, from GNU gettext.
69197         * tests/uniname/test-uninames.sh: New file.
69198         * tests/uniname/test-uninames.c: New file, from GNU gettext.
69199         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
69200         * modules/uniname/base: New file.
69201         * modules/uniname/uniname: New file.
69202         * modules/uniname/uniname-tests: New file.
69203         * MODULES.html.sh (Unicode string functions): Add the new modules.
69204
69205 2007-07-06  Bruno Haible  <bruno@clisp.org>
69206
69207         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
69208
69209 2007-07-06  Bruno Haible  <bruno@clisp.org>
69210
69211         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
69212         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
69213         includes <cygwin/sys_time.h> which includes <sys/select.h> which
69214         include <sys/time.h>.
69215         Reported by Eric Blake.
69216
69217 2007-07-06  Eric Blake  <ebb9@byu.net>
69218
69219         Fix testing canonicalize on cygwin.
69220         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69221         Revert patch from 2007-06-19.
69222         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
69223         canonicalize module is also in use.
69224         * tests/test-canonicalize.c: New file.
69225         * tests/test-canonicalize.sh: Likewise.
69226         * modules/canonicalize-tests: Likewise.
69227
69228 2007-07-06  Jim Meyering  <jim@meyering.net>
69229
69230         * lib/getugroups.c (getugroups): Detect getgrent failure.
69231         Adjust comment to reflect reality: this function may return -1.
69232
69233 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69234
69235         * build-aux/bootstrap (TP_URL,get_translations): Update to use
69236         the new TP address.
69237         (usage): Fix typo
69238         (gnulib_mk): New variable.
69239
69240 2007-07-05  Jim Meyering  <jim@meyering.net>
69241
69242         Don't let endgrent clobber errno, no matter how improbable.
69243         * lib/getugroups.c (getugroups): Save and restore errno around
69244         endgrent call.
69245
69246         Close the group DB even when failing with 2^31 or more members.
69247         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
69248
69249 2007-07-04  Jim Meyering  <jim@meyering.net>
69250
69251         * lib/getugroups.h: New file.
69252         * lib/getugroups.c: Include "getugroups.h".
69253         Remove uses of "register" keyword.
69254         Move local variable, "cp", down into scope where used.
69255         Give "username" parameter the "const" attribute.
69256         * modules/getugroups (Files): Add lib/getugroups.h
69257
69258 2007-07-04  Karl Berry  <karl@gnu.org>
69259
69260         * MODULES.html.sh (func_all_modules): Complete rename of
69261         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
69262
69263 2007-07-02  Bruno Haible  <bruno@clisp.org>
69264
69265         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
69266         mode, when inttypes.h comes from gnulib.
69267         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69268
69269 2007-07-02  Simon Josefsson  <simon@josefsson.org>
69270
69271         * NEWS: Mention lgpl module name change.
69272
69273         * modules/lgpl-2.1: Renamed from lgpl.
69274
69275         * NEWS: Mention gpl module name change.
69276
69277         * modules/gpl-3.0: New file, based on gpl-2.0.
69278
69279         * modules/gpl-2.0: Renamed from gpl.
69280
69281         * modules/gpl: Fix filename, doc/gpl.texi is now found at
69282         doc/gpl-2.0.texi.
69283
69284 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69285
69286         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
69287         #define __STDC_LIMIT_MACROS temporarily while including
69288         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
69289         Problem reported by Joel E. Denny in
69290         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
69291
69292 2007-07-01  Bruno Haible  <bruno@clisp.org>
69293
69294         * lib/unistdio.h: New file.
69295         * lib/unistdio/u-asnprintf.h: New file.
69296         * lib/unistdio/u-asprintf.h: New file.
69297         * lib/unistdio/u-printf-args.c: New file.
69298         * lib/unistdio/u-printf-args.h: New file.
69299         * lib/unistdio/u-printf-parse.h: New file.
69300         * lib/unistdio/u-snprintf.h: New file.
69301         * lib/unistdio/u-sprintf.h: New file.
69302         * lib/unistdio/u-vasprintf.h: New file.
69303         * lib/unistdio/u-vsnprintf.h: New file.
69304         * lib/unistdio/u-vsprintf.h: New file.
69305         * lib/unistdio/ulc-asnprintf.c: New file.
69306         * lib/unistdio/ulc-asprintf.c: New file.
69307         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
69308         * lib/unistdio/ulc-printf-parse.c: New file.
69309         * lib/unistdio/ulc-snprintf.c: New file.
69310         * lib/unistdio/ulc-sprintf.c: New file.
69311         * lib/unistdio/ulc-vasnprintf.c: New file.
69312         * lib/unistdio/ulc-vasprintf.c: New file.
69313         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
69314         * lib/unistdio/ulc-vsnprintf.c: New file.
69315         * lib/unistdio/ulc-vsprintf.c: New file.
69316         * lib/unistdio/u8-asnprintf.c: New file.
69317         * lib/unistdio/u8-asprintf.c: New file.
69318         * lib/unistdio/u8-printf-parse.c: New file.
69319         * lib/unistdio/u8-snprintf.c: New file.
69320         * lib/unistdio/u8-sprintf.c: New file.
69321         * lib/unistdio/u8-vasnprintf.c: New file.
69322         * lib/unistdio/u8-vasprintf.c: New file.
69323         * lib/unistdio/u8-vsnprintf.c: New file.
69324         * lib/unistdio/u8-vsprintf.c: New file.
69325         * lib/unistdio/u8-u8-asnprintf.c: New file.
69326         * lib/unistdio/u8-u8-asprintf.c: New file.
69327         * lib/unistdio/u8-u8-snprintf.c: New file.
69328         * lib/unistdio/u8-u8-sprintf.c: New file.
69329         * lib/unistdio/u8-u8-vasnprintf.c: New file.
69330         * lib/unistdio/u8-u8-vasprintf.c: New file.
69331         * lib/unistdio/u8-u8-vsnprintf.c: New file.
69332         * lib/unistdio/u8-u8-vsprintf.c: New file.
69333         * lib/unistdio/u16-asnprintf.c: New file.
69334         * lib/unistdio/u16-asprintf.c: New file.
69335         * lib/unistdio/u16-printf-parse.c: New file.
69336         * lib/unistdio/u16-snprintf.c: New file.
69337         * lib/unistdio/u16-sprintf.c: New file.
69338         * lib/unistdio/u16-vasnprintf.c: New file.
69339         * lib/unistdio/u16-vasprintf.c: New file.
69340         * lib/unistdio/u16-vsnprintf.c: New file.
69341         * lib/unistdio/u16-vsprintf.c: New file.
69342         * lib/unistdio/u16-u16-asnprintf.c: New file.
69343         * lib/unistdio/u16-u16-asprintf.c: New file.
69344         * lib/unistdio/u16-u16-snprintf.c: New file.
69345         * lib/unistdio/u16-u16-sprintf.c: New file.
69346         * lib/unistdio/u16-u16-vasnprintf.c: New file.
69347         * lib/unistdio/u16-u16-vasprintf.c: New file.
69348         * lib/unistdio/u16-u16-vsnprintf.c: New file.
69349         * lib/unistdio/u16-u16-vsprintf.c: New file.
69350         * lib/unistdio/u32-asnprintf.c: New file.
69351         * lib/unistdio/u32-asprintf.c: New file.
69352         * lib/unistdio/u32-printf-parse.c: New file.
69353         * lib/unistdio/u32-snprintf.c: New file.
69354         * lib/unistdio/u32-sprintf.c: New file.
69355         * lib/unistdio/u32-vasnprintf.c: New file.
69356         * lib/unistdio/u32-vasprintf.c: New file.
69357         * lib/unistdio/u32-vsnprintf.c: New file.
69358         * lib/unistdio/u32-vsprintf.c: New file.
69359         * lib/unistdio/u32-u32-asnprintf.c: New file.
69360         * lib/unistdio/u32-u32-asprintf.c: New file.
69361         * lib/unistdio/u32-u32-snprintf.c: New file.
69362         * lib/unistdio/u32-u32-sprintf.c: New file.
69363         * lib/unistdio/u32-u32-vasnprintf.c: New file.
69364         * lib/unistdio/u32-u32-vasprintf.c: New file.
69365         * lib/unistdio/u32-u32-vsnprintf.c: New file.
69366         * lib/unistdio/u32-u32-vsprintf.c: New file.
69367         * tests/unistdio/test-ulc-asnprintf1.c: New file.
69368         * tests/unistdio/test-ulc-asnprintf1.h: New file.
69369         * tests/unistdio/test-ulc-printf1.h: New file.
69370         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
69371         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
69372         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
69373         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
69374         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
69375         * tests/unistdio/test-ulc-vasprintf1.c: New file.
69376         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
69377         * tests/unistdio/test-ulc-vsprintf1.c: New file.
69378         * tests/unistdio/test-u8-asnprintf1.c: New file.
69379         * tests/unistdio/test-u8-asnprintf1.h: New file.
69380         * tests/unistdio/test-u8-printf1.h: New file.
69381         * tests/unistdio/test-u8-vasnprintf1.c: New file.
69382         * tests/unistdio/test-u8-vasnprintf2.c: New file.
69383         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
69384         * tests/unistdio/test-u8-vasnprintf3.c: New file.
69385         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
69386         * tests/unistdio/test-u8-vasprintf1.c: New file.
69387         * tests/unistdio/test-u8-vsnprintf1.c: New file.
69388         * tests/unistdio/test-u8-vsprintf1.c: New file.
69389         * tests/unistdio/test-u16-asnprintf1.c: New file.
69390         * tests/unistdio/test-u16-asnprintf1.h: New file.
69391         * tests/unistdio/test-u16-printf1.h: New file.
69392         * tests/unistdio/test-u16-vasnprintf1.c: New file.
69393         * tests/unistdio/test-u16-vasnprintf2.c: New file.
69394         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
69395         * tests/unistdio/test-u16-vasnprintf3.c: New file.
69396         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
69397         * tests/unistdio/test-u16-vasprintf1.c: New file.
69398         * tests/unistdio/test-u16-vsnprintf1.c: New file.
69399         * tests/unistdio/test-u16-vsprintf1.c: New file.
69400         * tests/unistdio/test-u32-asnprintf1.c: New file.
69401         * tests/unistdio/test-u32-asnprintf1.h: New file.
69402         * tests/unistdio/test-u32-printf1.h: New file.
69403         * tests/unistdio/test-u32-vasnprintf1.c: New file.
69404         * tests/unistdio/test-u32-vasnprintf2.c: New file.
69405         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
69406         * tests/unistdio/test-u32-vasnprintf3.c: New file.
69407         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
69408         * tests/unistdio/test-u32-vasprintf1.c: New file.
69409         * tests/unistdio/test-u32-vsnprintf1.c: New file.
69410         * tests/unistdio/test-u32-vsprintf1.c: New file.
69411         * modules/unistdio/base: New file.
69412         * modules/unistdio/u-printf-args: New file.
69413         * modules/unistdio/ulc-asnprintf: New file.
69414         * modules/unistdio/ulc-asprintf: New file.
69415         * modules/unistdio/ulc-fprintf: New file.
69416         * modules/unistdio/ulc-printf-parse: New file.
69417         * modules/unistdio/ulc-snprintf: New file.
69418         * modules/unistdio/ulc-sprintf: New file.
69419         * modules/unistdio/ulc-vasnprintf: New file.
69420         * modules/unistdio/ulc-vasprintf: New file.
69421         * modules/unistdio/ulc-vfprintf: New file.
69422         * modules/unistdio/ulc-vsnprintf: New file.
69423         * modules/unistdio/ulc-vsprintf: New file.
69424         * modules/unistdio/u8-asnprintf: New file.
69425         * modules/unistdio/u8-asprintf: New file.
69426         * modules/unistdio/u8-printf-parse: New file.
69427         * modules/unistdio/u8-snprintf: New file.
69428         * modules/unistdio/u8-sprintf: New file.
69429         * modules/unistdio/u8-vasnprintf: New file.
69430         * modules/unistdio/u8-vasprintf: New file.
69431         * modules/unistdio/u8-vsnprintf: New file.
69432         * modules/unistdio/u8-vsprintf: New file.
69433         * modules/unistdio/u8-u8-asnprintf: New file.
69434         * modules/unistdio/u8-u8-asprintf: New file.
69435         * modules/unistdio/u8-u8-snprintf: New file.
69436         * modules/unistdio/u8-u8-sprintf: New file.
69437         * modules/unistdio/u8-u8-vasnprintf: New file.
69438         * modules/unistdio/u8-u8-vasprintf: New file.
69439         * modules/unistdio/u8-u8-vsnprintf: New file.
69440         * modules/unistdio/u8-u8-vsprintf: New file.
69441         * modules/unistdio/u16-asnprintf: New file.
69442         * modules/unistdio/u16-asprintf: New file.
69443         * modules/unistdio/u16-printf-parse: New file.
69444         * modules/unistdio/u16-snprintf: New file.
69445         * modules/unistdio/u16-sprintf: New file.
69446         * modules/unistdio/u16-vasnprintf: New file.
69447         * modules/unistdio/u16-vasprintf: New file.
69448         * modules/unistdio/u16-vsnprintf: New file.
69449         * modules/unistdio/u16-vsprintf: New file.
69450         * modules/unistdio/u16-u16-asnprintf: New file.
69451         * modules/unistdio/u16-u16-asprintf: New file.
69452         * modules/unistdio/u16-u16-snprintf: New file.
69453         * modules/unistdio/u16-u16-sprintf: New file.
69454         * modules/unistdio/u16-u16-vasnprintf: New file.
69455         * modules/unistdio/u16-u16-vasprintf: New file.
69456         * modules/unistdio/u16-u16-vsnprintf: New file.
69457         * modules/unistdio/u16-u16-vsprintf: New file.
69458         * modules/unistdio/u32-asnprintf: New file.
69459         * modules/unistdio/u32-asprintf: New file.
69460         * modules/unistdio/u32-printf-parse: New file.
69461         * modules/unistdio/u32-snprintf: New file.
69462         * modules/unistdio/u32-sprintf: New file.
69463         * modules/unistdio/u32-vasnprintf: New file.
69464         * modules/unistdio/u32-vasprintf: New file.
69465         * modules/unistdio/u32-vsnprintf: New file.
69466         * modules/unistdio/u32-vsprintf: New file.
69467         * modules/unistdio/u32-u32-asnprintf: New file.
69468         * modules/unistdio/u32-u32-asprintf: New file.
69469         * modules/unistdio/u32-u32-snprintf: New file.
69470         * modules/unistdio/u32-u32-sprintf: New file.
69471         * modules/unistdio/u32-u32-vasnprintf: New file.
69472         * modules/unistdio/u32-u32-vasprintf: New file.
69473         * modules/unistdio/u32-u32-vsnprintf: New file.
69474         * modules/unistdio/u32-u32-vsprintf: New file.
69475         * modules/unistdio/ulc-asnprintf-tests: New file.
69476         * modules/unistdio/ulc-vasnprintf-tests: New file.
69477         * modules/unistdio/ulc-vasprintf-tests: New file.
69478         * modules/unistdio/ulc-vsnprintf-tests: New file.
69479         * modules/unistdio/ulc-vsprintf-tests: New file.
69480         * modules/unistdio/u8-asnprintf-tests: New file.
69481         * modules/unistdio/u8-vasnprintf-tests: New file.
69482         * modules/unistdio/u8-vasprintf-tests: New file.
69483         * modules/unistdio/u8-vsnprintf-tests: New file.
69484         * modules/unistdio/u8-vsprintf-tests: New file.
69485         * modules/unistdio/u16-asnprintf-tests: New file.
69486         * modules/unistdio/u16-vasnprintf-tests: New file.
69487         * modules/unistdio/u16-vasprintf-tests: New file.
69488         * modules/unistdio/u16-vsnprintf-tests: New file.
69489         * modules/unistdio/u16-vsprintf-tests: New file.
69490         * modules/unistdio/u32-asnprintf-tests: New file.
69491         * modules/unistdio/u32-vasnprintf-tests: New file.
69492         * modules/unistdio/u32-vasprintf-tests: New file.
69493         * modules/unistdio/u32-vsnprintf-tests: New file.
69494         * modules/unistdio/u32-vsprintf-tests: New file.
69495         * MODULES.html.sh (Unicode string functions): Add the new modules.
69496
69497 2007-07-01  Bruno Haible  <bruno@clisp.org>
69498
69499         * lib/sprintf.c (sprintf): Limit the available length estimation,
69500         to avoid address wraparound.
69501         * lib/vsprintf.c (vsprintf): Likewise.
69502         * modules/sprintf-posix (Dependencies): Add stdint.
69503         * modules/vsprintf-posix (Dependencies): Likewise.
69504
69505 2007-07-01  Bruno Haible  <bruno@clisp.org>
69506
69507         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69508         Windows PATH as well. Conservative double-quoting. Comments.
69509
69510 2007-07-01  Bruno Haible  <bruno@clisp.org>
69511             Eric Blake  <ebb9@byu.net>
69512             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69513
69514         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69515         empty components in $PATH, denoting '.'.
69516
69517 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69518
69519         * gnulib-tool: Fix indentation.
69520         (func_create_megatestdir): Likewise.
69521         Report by Bruno Haible.
69522
69523 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69524
69525         Sync from Automake.
69526         * build-aux/gnupload: Fix shell portability issues with for loops.
69527         Report by Karl Berry.
69528
69529 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69530
69531         * build-aux/maint.mk (POURL): Use translationproject.org.
69532
69533 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69534             Bruno Haible  <bruno@clisp.org>
69535
69536         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69537         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69538         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69539         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69540         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69541
69542 2007-06-27  Bruno Haible  <bruno@clisp.org>
69543
69544         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69545         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69546
69547 2007-06-26  Karl Berry  <karl@gnu.org>
69548
69549         * MODULES.html.sh: remove xreadlink-with-size.
69550
69551 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69552
69553         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69554         method that I hope also handles the double-include problem noted
69555         by Bruno Haible in
69556         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69557
69558 2007-06-23  Bruno Haible  <bruno@clisp.org>
69559
69560         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69561         Don't let the 'mostlyclean' target fail if the last subdirectory could
69562         not be removed.
69563         Reported by Karl Berry.
69564
69565 2007-06-23  Bruno Haible  <bruno@clisp.org>
69566
69567         * gnulib-tool (echo): Add a speedier workaround for ksh.
69568         * tests/test-echo.sh: Likewise.
69569
69570 2007-06-23  Bruno Haible  <bruno@clisp.org>
69571
69572         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69573         * tests/test-echo.sh: Likewise.
69574
69575 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69576
69577         * gnulib-tool (IFS): Initialize early, so we don't set it to
69578         empty later.
69579         (self_abspathname): Rewrite algorithm to set it, reindent.
69580         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69581         (func_create_megatestdir): Merge some sed scripts.
69582
69583 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69584
69585         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69586         exposed by Sun Studio 11 cc on Solaris 8.
69587
69588 2007-06-22  Bruno Haible  <bruno@clisp.org>
69589
69590         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69591         backslashes.
69592         * tests/test-echo.sh: New file.
69593
69594 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69595
69596         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69597         simplify `sed_replace_build_aux' scripts, they are portable but
69598         echoing them with `echo' is not.
69599         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69600
69601 2007-06-21  Karl Berry  <karl@gnu.org>
69602
69603         * config/srclist.txt: guess we can't handle the licenses via
69604         srclist at the moment.
69605
69606 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69607
69608         * MODULES.html.sh: Add include_next.
69609         * modules/include_next: New file.
69610
69611 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69612
69613         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69614         INCLUDE_NEXT.
69615         (gl_CHECK_NEXT_HEADERS): New macro.
69616         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69617         the obsolescent gl_ABSOLUTE_HEADER.
69618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69619         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69620         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69621         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69622         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69623         * m4/math_h.m4 (gl_MATH_H): Likewise.
69624         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69625         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69626         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69627         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69628         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69629         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69630         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69631         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69632         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69633         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69634         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69635         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69636         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69637         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69638         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69639         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69640         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69641         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69642         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69643         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69644         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69645         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69646         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69647         * lib/float_.h: Likewise.
69648         * lib/inttypes_.h: Likewise.
69649         * lib/math_.h: Likewise.
69650         * lib/search_.h: Likewise.
69651         * lib/signal_.h: Likewise.
69652         * lib/stdint_.h: Likewise.
69653         * lib/stdio_.h: Likewise.
69654         * lib/stdlib_.h: Likewise.
69655         * lib/string_.h: Likewise.
69656         * lib/sys_stat_.h: Likewise.
69657         * lib/sys_time_.h: Likewise.
69658         * lib/time_.h: Likewise.
69659         * lib/unistd_.h: Likewise.
69660         * lib/wchar_.h: Likewise.
69661         * lib/wctype_.h: Likewise.
69662         * lib/dirent_.h: Likewise.
69663         * lib/iconv_.h: Likewise.
69664         * lib/locale_.h: Likewise.
69665         * lib/netinet_in_.h: Likewise.
69666         * lib/sys_select_.h: Likewise.
69667         * lib/sys_socket_.h: Likewise.
69668         * lib/sysexits_.h: Likewise.
69669         * modules/fcntl (Depends-on): Depend on include_next, not
69670         absolute_header.
69671         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69672         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69673         * modules/fchdir: Likewise.
69674         * modules/float: Likewise.
69675         * modules/iconv_open: Likewise.
69676         * modules/inttypes: Likewise.
69677         * modules/locale: Likewise.
69678         * modules/math: Likewise.
69679         * modules/netinet_in: Likewise.
69680         * modules/search: Likewise.
69681         * modules/signal: Likewise.
69682         * modules/stdint: Likewise.
69683         * modules/stdio: Likewise.
69684         * modules/stdlib: Likewise.
69685         * modules/string: Likewise.
69686         * modules/sys_select: Likewise.
69687         * modules/sys_socket: Likewise.
69688         * modules/sys_stat: Likewise.
69689         * modules/sys_time: Likewise.
69690         * modules/sysexits: Likewise.
69691         * modules/time: Likewise.
69692         * modules/unistd: Likewise.
69693         * modules/wchar: Likewise.
69694         * modules/wctype: Likewise.
69695         * modules/sys_stat: Change maintainer to "all".
69696         * modules/unistd: Likewise.
69697
69698 2007-06-20  Karl Berry  <karl@gnu.org>
69699
69700         * config/srclist.txt: track www changes in license files.
69701
69702 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69703
69704         * build-aux/bootstrap: Remove stray dot.
69705         Make sure build_aux settings are honored when linking
69706         gnulib_extra_files.
69707
69708 2007-06-19  Eric Blake  <ebb9@byu.net>
69709
69710         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69711         Allow compilation on cygwin.
69712
69713 2007-06-19  Jim Meyering  <jim@meyering.net>
69714
69715         xreadlink-with-size: Remove module.  No longer used.
69716         Ex-callers now use xreadlink or mreadlink-with-size.
69717         * modules/xreadlink-with-size: Remove module.
69718         * lib/xreadlink-with-size.c: Remove file.
69719         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69720         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69721         just before the function definition *is* accurate.
69722
69723         Eliminate one way canonicalize_filename_mode could exit.
69724         * lib/canonicalize.c (canonicalize_filename_mode):
69725         Use mreadlink_with_size, not xreadlink_with_size.
69726
69727 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69728
69729         Detect porting problems to FreeBSD/arm, which has time_t wider than
69730         long int.  Original problem reported for GNU diff by Xin Li in
69731         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69732         * modules/getdate (Depends-on): Add intprops, verify.
69733         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69734         is an integer type no wider than long int.
69735
69736 2007-06-18  Jim Meyering  <jim@meyering.net>
69737
69738         New module: mreadlink-with-size.
69739         * MODULES.html.sh: Add mreadlink-with-size.
69740         * modules/mreadlink-with-size: New module
69741         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69742         not xreadlink-with-size.
69743         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69744
69745 2007-06-16  Bruno Haible  <bruno@clisp.org>
69746
69747         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69748         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69749         Reported by Gary V. Vaughan <gary@gnu.org>.
69750
69751 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69752
69753         Revamp lchown so that it lives in unistd.h where it belongs.
69754         * lib/lchown.h: Remove.
69755         * lib/dirchownmod.c: Don't include lib/lchown.h.
69756         * lib/fchownat.c: Likewise.
69757         * lib/openat.c: Likewise.
69758         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69759         does not follow symlinks.
69760         (EOPNOTSUPP): Define if not defined.
69761         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69762         is defined to 0.
69763         (lchown): New decl.
69764         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69765         Do not check for lchown decl.
69766         Set REPLACE_LCHOWN.
69767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69768         REPLACE_LCHOWN.
69769         * modules/chown: Make it clear it follows symlinks.
69770         * modules/lchown: Make it clear it doesn't follow symlinks.
69771         (Files): Remove lib/lchown.h
69772         (Depends-on): Add unistd.
69773         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69774         (Include): Include <unistd.h>, not "lchown.h".
69775         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69776         REPLACE_LCHOWN.
69777
69778 2007-06-15  Jim Meyering  <jim@meyering.net>
69779
69780         Change license (GPL to LGPL) of fsusage and dependents.
69781         * modules/fsusage (License): Change to LGPL.
69782         * modules/full-read (License): Likewise.
69783         * modules/full-write (License): Likewise.
69784         * modules/safe-read (License): Likewise.
69785         * modules/safe-write (License): Likewise.
69786
69787 2007-06-14  Ben Pfaff  <blp@gnu.org>
69788
69789         Missing part of allocsa -> malloca transition.
69790         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69791         gl_MALLOCA.
69792
69793 2007-06-12  Bruno Haible  <bruno@clisp.org>
69794
69795         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69796         to ia64, x86_64, i386.
69797         Reported by Eric Blake.
69798
69799 2007-06-12  Bruno Haible  <bruno@clisp.org>
69800
69801         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69802         cross-compiling to x86_64.
69803
69804 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69805
69806         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69807         glitch reported by Ralf Wildenhues in
69808         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69809
69810         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69811         Vin Shelton.
69812
69813 2007-06-11  Bruno Haible  <bruno@clisp.org>
69814
69815         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69816         replacement string.
69817         Reported by Eric Blake.
69818
69819 2007-06-10  Bruno Haible  <bruno@clisp.org>
69820
69821         Prepare vasnprintf code for use with Unicode strings.
69822         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69823         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69824         TYPE_U32_STRING.
69825         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69826         a_u32_string variants.
69827         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69828         * lib/printf-args.c: Don't include config.h and the specification
69829         header if PRINTF_FETCHARGS is already defined.
69830         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69831         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69832         TYPE_U16_STRING, TYPE_U32_STRING.
69833         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69834         u16_directive, u16_directives, u32_directive, u32_directives): New
69835         types.
69836         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69837         New declarations.
69838         * lib/printf-parse.c: Don't include config.h and the specification
69839         header if PRINTF_PARSE is already defined. Eliminate the set of
69840         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69841         them now. Include c-ctype.h.
69842         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69843         directive and CHAR_T_ONLY_ASCII.
69844         * lib/vasnprintf.c: Don't include config.h and the specification header
69845         if VASNPRINTF is already defined.
69846         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69847         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69848         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69849         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69850         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69851         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69852         code accordingly.
69853         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69854         pad_ourselves also in this case, with the 'c' and 's' directives, and
69855         with a different notion of "width".
69856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69857
69858 2007-06-10  Bruno Haible  <bruno@clisp.org>
69859
69860         * modules/unistr/u32-mbsnlen: New file.
69861         * lib/unistr/u32-mbsnlen.c: New file.
69862
69863         * modules/unistr/u16-mbsnlen: New file.
69864         * lib/unistr/u16-mbsnlen.c: New file.
69865
69866         * modules/unistr/u8-mbsnlen: New file.
69867         * lib/unistr/u8-mbsnlen.c: New file.
69868
69869         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69870         declarations.
69871
69872 2007-06-10  Bruno Haible  <bruno@clisp.org>
69873
69874         * lib/string_.h (mbsnlen): New declaration.
69875         * lib/mbsnlen.c: New file.
69876         * m4/mbsnlen.m4: New file.
69877         * modules/mbsnlen: New file.
69878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69879         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69880         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69881
69882 2007-06-10  Bruno Haible  <bruno@clisp.org>
69883
69884         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69885
69886 2007-06-10  Bruno Haible  <bruno@clisp.org>
69887
69888         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69889         * lib/mbuiter.h: Likewise.
69890
69891 2007-06-10  Bruno Haible  <bruno@clisp.org>
69892
69893         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69894         declaration.
69895
69896 2007-06-10  Karl Berry  <karl@gnu.org>
69897
69898         * config/srclist.txt: remove gettext entries, Bruno prefers
69899         to update individually.
69900
69901 2007-06-10  Bruno Haible  <bruno@clisp.org>
69902
69903         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69904         'maxlen'. Ensure only length + width bytes are allocated, not
69905         length + 1 + width.
69906
69907 2007-06-09  Bruno Haible  <bruno@clisp.org>
69908
69909         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69910         (CHAR_T): Remove macro.
69911         (VASNPRINTF): Update.
69912
69913 2007-06-09  Bruno Haible  <bruno@clisp.org>
69914
69915         * MODULES.html.sh (Unicode string functions): Add the new modules.
69916
69917         * modules/uniconv/u32-conv-to-enc: New file.
69918         * lib/uniconv/u32-conv-to-enc.c: New file.
69919         * modules/uniconv/u32-conv-to-enc-tests: New file.
69920         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69921
69922         * modules/uniconv/u16-conv-to-enc: New file.
69923         * lib/uniconv/u16-conv-to-enc.c: New file.
69924         * lib/uniconv/u-conv-to-enc.h: New file.
69925         * modules/uniconv/u16-conv-to-enc-tests: New file.
69926         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69927
69928         * modules/uniconv/u8-conv-to-enc: New file.
69929         * lib/uniconv/u8-conv-to-enc.c: New file.
69930         * modules/uniconv/u8-conv-to-enc-tests: New file.
69931         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69932
69933         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69934         u32_conv_to_encoding): New declarations.
69935
69936 2007-06-09  Bruno Haible  <bruno@clisp.org>
69937
69938         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69939
69940 2007-06-09  Bruno Haible  <bruno@clisp.org>
69941
69942         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69943         * modules/malloca: Renamed from modules/allocsa, updated.
69944         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69945         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69946         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69947         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69948         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69949         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69950         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69951         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69952         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69953         * modules/c-strcasestr (Depends-on): Update.
69954         * lib/c-strcasestr.c: Update.
69955         * modules/c-strstr (Depends-on): Update.
69956         * lib/c-strstr.c: Update.
69957         * modules/canonicalize-lgpl (Depends-on): Update.
69958         * lib/canonicalize-lgpl.c: Update.
69959         * modules/clean-temp (Depends-on): Update.
69960         * lib/clean-temp.c: Update.
69961         * modules/csharpcomp (Depends-on): Update.
69962         * lib/csharpcomp.c: Update.
69963         * modules/csharpexec (Depends-on): Update.
69964         * lib/csharpexec.c: Update.
69965         * modules/javacomp (Depends-on): Update.
69966         * lib/javacomp.c: Update.
69967         * modules/javaexec (Depends-on): Update.
69968         * lib/javaexec.c: Update.
69969         * modules/mbscasestr (Depends-on): Update.
69970         * lib/mbscasestr.c: Update.
69971         * modules/mbsstr (Depends-on): Update.
69972         * lib/mbsstr.c: Update.
69973         * modules/setenv (Depends-on): Update.
69974         * lib/setenv.c: Update.
69975         * modules/strcasestr (Depends-on): Update.
69976         * lib/strcasestr.c: Update.
69977         * modules/striconveha (Depends-on): Update.
69978         * lib/striconveha.c: Update.
69979         * modules/relocatable-prog-wrapper (Files): Update.
69980         * lib/relocwrapper.c: Update.
69981         * build-aux/install-reloc: Update.
69982         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69983
69984 2007-06-08  Bruno Haible  <bruno@clisp.org>
69985
69986         Port to uClibc.
69987         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69988         * lib/fpurge.c (fpurge): Likewise.
69989         * lib/freading.c (freading): Likewise.
69990         * lib/fseeko.c (rpl_fseeko): Likewise.
69991         * lib/fseterr.c (fseterr): Likewise.
69992         * lib/fwriting.c (fwriting): Likewise.
69993         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69994
69995 2007-06-08  Bruno Haible  <bruno@clisp.org>
69996
69997         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69998         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69999         * modules/gettext (Files): Add m4/intlmacosx.m4.
70000
70001 2007-06-07  Bruno Haible  <bruno@clisp.org>
70002
70003         * modules/localename-tests: New file.
70004         * tests/test-localename.c: New file.
70005
70006         New module 'localename'.
70007         * lib/localename.h: New file.
70008         * lib/localename.c: New file, from GNU gettext.
70009         * m4/localename.m4: New file.
70010         * modules/localename: New file.
70011
70012 2007-06-07  Bruno Haible  <bruno@clisp.org>
70013
70014         Work around the lack of <wchar.h> on some builds of uClibc.
70015         * doc/headers/wchar.texi: Update.
70016         * lib/wchar_.h: Include <wchar.h> only if it exists.
70017         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
70018         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
70019         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
70020         doesn't exist.
70021         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
70022         * modules/mbfile (Depends-on): Add wchar.
70023         * modules/mbiter (Depends-on): Likewise.
70024         * modules/mbuiter (Depends-on): Likewise.
70025         Reported by Simon Josefsson.
70026
70027 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70028
70029         Work around problem reported by Steven M. Schweda in
70030         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
70031         Tru64 5.1B with the Compaq compiler environment installed declares
70032         an 'isblank' function but does not define it in the C library.
70033         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
70034         * lib/regex_internal.h (isblank): Likewise.
70035         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
70036         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70037
70038 2007-06-05  Bruno Haible  <bruno@clisp.org>
70039
70040         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
70041         ia64.
70042         * modules/printf-safe: New file.
70043         * modules/fprintf-posix (Depends-on): Add printf-safe.
70044         * modules/printf-posix (Depends-on): Likewise.
70045         * modules/snprintf-posix (Depends-on): Likewise.
70046         * modules/sprintf-posix (Depends-on): Likewise.
70047         * modules/vasnprintf-posix (Depends-on): Likewise.
70048         * modules/vasprintf-posix (Depends-on): Likewise.
70049         * modules/vfprintf-posix (Depends-on): Likewise.
70050         * modules/vprintf-posix (Depends-on): Likewise.
70051         * modules/vsnprintf-posix (Depends-on): Likewise.
70052         * modules/vsprintf-posix (Depends-on): Likewise.
70053         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
70054         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
70055         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
70056         "no" on i386, x86_64, ia64.
70057         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
70058         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70059         on i386, x86_64, ia64.
70060         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
70061         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70062         on i386, x86_64, ia64.
70063         * tests/test-vasnprintf-posix.c: Include float.h.
70064         (LDBL80_WORDS): New macro.
70065         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70066         on i386, x86_64, ia64.
70067         * tests/test-vasprintf-posix.c: Include float.h.
70068         (LDBL80_WORDS): New macro.
70069         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70070         on i386, x86_64, ia64.
70071         * tests/test-snprintf-posix.c: Include float.h.
70072         * tests/test-sprintf-posix.c: Likewise.
70073         * tests/test-vsnprintf-posix.c: Likewise.
70074         * tests/test-vsprintf-posix.c: Likewise.
70075
70076 2007-06-05  Bruno Haible  <bruno@clisp.org>
70077
70078         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
70079         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
70080         non-IEEE numbers on i386, x86_64, ia64.
70081         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
70082         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
70083         * tests/test-isnanl.h: Include float.h.
70084         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
70085
70086 2007-06-05  Bruno Haible  <bruno@clisp.org>
70087
70088         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
70089         also the %a / %A. Handle the %a / %A code before this extra handling.
70090
70091 2007-06-05  Bruno Haible  <bruno@clisp.org>
70092
70093         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
70094         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
70095
70096 2007-06-05  Bruno Haible  <bruno@clisp.org>
70097
70098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
70099         typo in variable name.
70100
70101 2007-06-05  Eric Blake  <ebb9@byu.net>
70102
70103         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
70104         Reported by Simon Josefsson.
70105
70106 2007-06-04  Bruno Haible  <bruno@clisp.org>
70107
70108         Avoid test failures on some PowerPC platforms.
70109         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
70110         Define differently for PowerPC.
70111         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
70112         Reported by Gary V. Vaughan <gary@gnu.org>.
70113
70114 2007-06-02  Bruno Haible  <bruno@clisp.org>
70115
70116         Fix test-stdint failure on FreeBSD/ia64.
70117         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
70118         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
70119         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
70120         * doc/headers/stdint.texi: Update.
70121
70122 2007-06-01  Bruno Haible  <bruno@clisp.org>
70123
70124         * tests/test-binary-io.c (main): Pass a third argument to open().
70125         Reported by Gary V. Vaughan <gary@gnu.org>.
70126
70127 2007-06-01  Bruno Haible  <bruno@clisp.org>
70128
70129         * doc/functions/frexpl.texi: Update for mingw.
70130
70131 2007-06-01  Bruno Haible  <bruno@clisp.org>
70132
70133         * tests/test-lseek.c (main): Disable test of errno for invalid third
70134         argument.
70135         * doc/functions/lseek.texi: Update.
70136         Reported by Gary V. Vaughan <gary@gnu.org>.
70137
70138 2007-05-28  Bruno Haible  <bruno@clisp.org>
70139
70140         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
70141
70142 2007-05-31  Eric Blake  <ebb9@byu.net>
70143
70144         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
70145         cross compiling.
70146
70147 2007-05-30  Eric Blake  <ebb9@byu.net>
70148         and Bruno Haible  <bruno@clisp.org>
70149
70150         Work around mingw test failures exposed by m4-1.4.9b.
70151         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
70152         * tests/test-unistd.c: Disable uid_t and git_t tests for the
70153         moment.
70154
70155 2007-05-30  Bruno Haible  <bruno@clisp.org>
70156
70157         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
70158         assuming that they are closed. Needed on HP-UX 11.
70159
70160 2007-05-29  Bruno Haible  <bruno@clisp.org>
70161
70162         Fix a problem with #include_next.
70163         * lib/dirent_.h: Split the double-inclusion guard.
70164         * lib/fcntl_.h: Likewise.
70165         * lib/float_.h: Likewise.
70166         * lib/iconv_.h: Likewise.
70167         * lib/inttypes_.h: Likewise.
70168         * lib/locale_.h: Likewise.
70169         * lib/math_.h: Likewise.
70170         * lib/netinet_in_.h: Likewise.
70171         * lib/search_.h: Likewise.
70172         * lib/signal_.h: Likewise.
70173         * lib/stdint_.h: Likewise.
70174         * lib/stdio_.h: Likewise.
70175         * lib/stdlib_.h: Likewise.
70176         * lib/string_.h: Likewise.
70177         * lib/sys_select_.h: Likewise.
70178         * lib/sys_socket_.h: Likewise.
70179         * lib/sys_stat_.h: Likewise.
70180         * lib/sys_time_.h: Likewise.
70181         * lib/sysexits_.h: Likewise.
70182         * lib/time_.h: Likewise.
70183         * lib/unistd_.h: Likewise.
70184         * lib/wchar_.h: Likewise.
70185         * lib/wctype_.h: Likewise.
70186
70187 2007-05-29  Bruno Haible  <bruno@clisp.org>
70188
70189         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
70190         for the moment.
70191
70192 2007-05-29  Bruno Haible  <bruno@clisp.org>
70193
70194         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
70195         invocation.
70196         Reported by Eric Blake.
70197
70198 2007-05-29  Bruno Haible  <bruno@clisp.org>
70199
70200         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
70201         compiling case.
70202
70203 2007-05-29  Eric Blake  <ebb9@byu.net>
70204             Bruno Haible  <bruno@clisp.org>
70205
70206         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
70207         cross compiles.
70208
70209 2007-05-28  Eric Blake  <ebb9@byu.net>
70210
70211         * modules/closein-tests (test_closein_LDADD): Support test on
70212         cygwin with libtool.
70213
70214 2007-05-28  Bruno Haible  <bruno@clisp.org>
70215
70216         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
70217         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
70218         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
70219         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
70220         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
70221         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
70222         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
70223         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
70224         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
70225
70226 2007-05-28  Eric Blake  <ebb9@byu.net>
70227
70228         Unconditionally include <config.h> in unit tests.
70229         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
70230         * tests/test-allocsa.c, tests/test-arcfour.c,
70231         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
70232         tests/test-array_list.c, tests/test-array_oset.c,
70233         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
70234         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
70235         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
70236         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
70237         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
70238         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
70239         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
70240         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
70241         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
70242         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
70243         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
70244         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
70245         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
70246         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
70247         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
70248         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
70249         test-md5.c, test-memmem.c, test-printf-posix.c,
70250         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
70251         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
70252         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
70253         test-strcasestr.c, test-striconv.c, test-striconveh.c,
70254         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
70255         test-vasnprintf-posix2.c, test-vasnprintf.c,
70256         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
70257         test-vfprintf-posix.c, test-vprintf-posix.c,
70258         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
70259         test-xvasprintf.c: Likewise.
70260
70261 2007-05-28  Bruno Haible  <bruno@clisp.org>
70262
70263         * gnulib-tool (func_import): Remember the --with-tests command-line
70264         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
70265         Reported by Eric Blake.
70266
70267 2007-05-28  Bruno Haible  <bruno@clisp.org>
70268
70269         * modules/ftell-tests: New file.
70270         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
70271         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
70272
70273         * lib/ftell.c: New file.
70274         * modules/ftell: New file.
70275         * m4/ftell.m4: New file.
70276         * doc/functions/ftell.texi: Update.
70277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
70278         REPLACE_FTELL.
70279         * lib/stdio_.h (rpl_ftell): New declaration.
70280         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
70281         REPLACE_FTELL.
70282
70283 2007-05-28  Eric Blake  <ebb9@byu.net>
70284
70285         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
70286
70287 2007-05-28  Bruno Haible  <bruno@clisp.org>
70288
70289         * modules/fseek-tests: New file.
70290         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
70291         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
70292
70293         * lib/fseek.c: New file.
70294         * modules/fseek: New file.
70295         * m4/fseek.m4: New file.
70296         * doc/functions/fseek.texi: Update.
70297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
70298         REPLACE_FSEEK.
70299         * lib/stdio_.h (rpl_fseek): New declaration.
70300         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
70301         REPLACE_FSEEK.
70302
70303 2007-05-28  Bruno Haible  <bruno@clisp.org>
70304
70305         * lib/stdio_.h (fflush): More comments.
70306
70307 2007-05-28  Bruno Haible  <bruno@clisp.org>
70308
70309         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
70310         runtime test.
70311
70312 2007-05-28  Eric Blake  <ebb9@byu.net>
70313
70314         Improve lseek module.
70315         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
70316         * lib/unistd_.h (lseek): Scale back link warning message.
70317         * tests/test-lseek.c: Beef up test.
70318         * tests/test-lseek.sh: Exercise more facets of lseek.
70319         Reported by Bruno Haible.
70320
70321 2007-05-28  Bruno Haible  <bruno@clisp.org>
70322
70323         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
70324         to define.
70325
70326 2007-05-27  Bruno Haible  <bruno@clisp.org>
70327
70328         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
70329
70330 2007-05-27  Bruno Haible  <bruno@clisp.org>
70331
70332         * modules/openmp: New file.
70333         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
70334         Noah Misch.
70335
70336 2007-05-26  Bruno Haible  <bruno@clisp.org>
70337
70338         * modules/chdir-long (Depends-on): Add fchdir.
70339         * modules/chdir-safer (Depends-on): Likewise.
70340         * modules/fts (Depends-on): Likewise.
70341         * modules/fts-lgpl (Depends-on): Likewise.
70342         * modules/openat (Depends-on): Likewise.
70343         * modules/savewd (Depends-on): Likewise.
70344
70345 2007-05-24  Eric Blake  <ebb9@byu.net>
70346
70347         Fix lseek on mingw.
70348         * modules/lseek: New module.
70349         * m4/lseek.m4: New file.
70350         * lib/lseek.c: New file.
70351         * modules/lseek-tests: New file.
70352         * tests/test-lseek.c: New file.
70353         * tests/test-lseek.sh: New file.
70354         * MODULES.html.sh: Document lseek module.
70355         * modules/fflush (Depends-on): Add lseek, fseeko.
70356         * modules/fseeko (Depends-on): Likewise.
70357         * modules/ftello (Depends-on): Likewise.
70358         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
70359         broken.
70360         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
70361         broken.
70362         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
70363         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
70364         * lib/ftello.c (rpl_ftello): Likewise.
70365         * tests/test-fseeko.c (main): Test this.
70366         * tests/test-fseeko.sh: Likewise.
70367         * tests/test-ftello.c (main): Likewise.
70368         * tests/test-ftello.sh: Likewise.
70369         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
70370         implies replacing fseek.
70371         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
70372         HAVE_FTELLO.
70373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
70374         * modules/unistd (Makefile.am): Likewise.
70375         * lib/unistd_.h (lseek): Declare a replacement.
70376         * doc/functions/lseek.texi (lseek): Document this fix.
70377         * doc/functions/fseek.texi (fseek): Likewise.
70378         * doc/functions/ftell.texi (ftell): Likewise.
70379
70380 2007-05-24  Bruno Haible  <bruno@clisp.org>
70381
70382         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
70383         in the printed representation of a NaN.
70384         * tests/test-vasprintf-posix.c (test_function): Likewise.
70385         * tests/test-snprintf-posix.h (test_function): Likewise.
70386         * tests/test-sprintf-posix.h (test_function): Likewise.
70387         Reported by Eric Blake.
70388
70389 2007-05-23  Eric Blake  <ebb9@byu.net>
70390
70391         Fix fseeko/ftello on cygwin 1.5.24.
70392         * doc/functions/fseeko.texi (fseeko): Document the fix.
70393         * doc/functions/ftello.texi (ftello): Document the fix.
70394         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
70395         * doc/functions/stdout.text (stdout): New file.
70396         * doc/functions/stderr.text (stderr): New file.
70397         * doc/gnulib.texi (Function Substitutes): Use new files.
70398         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
70399         prior to 1.7.0.
70400         * tests/test-ftello.c (main): Likewise for ftello.
70401         * tests/test-fseeko.sh: New file.
70402         * tests/test-ftello.sh: New file.
70403         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
70404         with seekable stdin.
70405         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
70406         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
70407         (gl_REPLACE_FSEEKO): New macro.
70408         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
70409         * modules/fseeko (Files): Distribute fseeko.c.
70410         * modules/ftello (Files): Distribute ftello.c.
70411         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
70412         mode.
70413         * lib/ftello.c (rpl_ftello): New file.
70414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
70415         fseeko, ftello.
70416         (gl_STDIN_LARGE_OFFSET): New macro.
70417         * modules/stdio (Makefile.am): Perform the replacement.
70418         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
70419
70420 2007-05-23  Bruno Haible  <bruno@clisp.org>
70421
70422         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
70423         GNULIB_POSIXCHECK is defined.
70424
70425 2007-05-21  Bruno Haible  <bruno@clisp.org>
70426
70427         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
70428         Check also the output for NaN arguments. When cross-compiling, guess
70429         no on IRIX.
70430         * lib/vasnprintf.c: Update comments.
70431         * tests/test-vasnprintf-posix.c (strisnan): New function.
70432         (test_function): Use it.
70433         * tests/test-vasprintf-posix.c (strisnan): New function.
70434         (test_function): Use it.
70435         * tests/test-snprintf-posix.h (strisnan): New function.
70436         (test_function): Use it.
70437         * tests/test-sprintf-posix.h (strisnan): New function.
70438         (test_function): Use it.
70439         Reported by Eric Blake.
70440
70441 2007-05-20  Bruno Haible  <bruno@clisp.org>
70442
70443         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
70444         numbers that fails on BeOS.
70445         * doc/functions/frexpl.texi: Update.
70446
70447 2007-05-20  Jim Meyering  <jim@meyering.net>
70448
70449         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
70450         forced upon us by glibc-2.6.
70451
70452 2007-05-20  Bruno Haible  <bruno@clisp.org>
70453
70454         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
70455         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
70456         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
70457         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
70458         NEED_PRINTF_INFINITE.
70459         (is_infinitel): New function.
70460         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
70461         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
70462         gl_PREREQ_VASNPRINTF_INFINITE.
70463         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
70464         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70465         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
70466         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
70467         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
70468         gl_PREREQ_VASNPRINTF_INFINITE.
70469         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70470         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70471         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70472         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70473         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70474         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70475         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70476         * doc/functions/fprintf.texi: Update.
70477         * doc/functions/printf.texi: Update.
70478         * doc/functions/snprintf.texi: Update.
70479         * doc/functions/sprintf.texi: Update.
70480         * doc/functions/vfprintf.texi: Update.
70481         * doc/functions/vprintf.texi: Update.
70482         * doc/functions/vsnprintf.texi: Update.
70483         * doc/functions/vsprintf.texi: Update.
70484
70485 2007-05-20  Bruno Haible  <bruno@clisp.org>
70486
70487         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
70488         was not found in libc.
70489         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
70490
70491 2007-05-20  Bruno Haible  <bruno@clisp.org>
70492
70493         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70494         printed as "-nan" instead of "nan".
70495         * tests/test-vasprintf-posix.c (test_function): Likewise.
70496         * tests/test-snprintf-posix.h (test_function): Likewise.
70497         * tests/test-sprintf-posix.h (test_function): Likewise.
70498         Needed for HP-UX 11.
70499
70500 2007-05-20  Jim Meyering  <jim@meyering.net>
70501
70502         Fix buggy test for the fchownat-deref bug.
70503         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
70504         symlink required for the run-test.  Without it, this test would
70505         always declare that fchownat doesn't work, and client code would
70506         unnecessarily use the replacement function with fixed libc.
70507         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70508         Reported by Greg Schafer.
70509
70510 2007-05-19  Bruno Haible  <bruno@clisp.org>
70511
70512         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70513         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70514         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70515         Needed for IRIX 6.5 and Solaris 2.5.1.
70516
70517 2007-05-19  Bruno Haible  <bruno@clisp.org>
70518
70519         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70520         (test_function): Skip tests involving -0.0 on platforms where
70521         -0.0 = 0.0.
70522         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70523         (test_function): Skip tests involving -0.0 on platforms where
70524         -0.0 = 0.0.
70525         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70526         (test_function): Skip tests involving -0.0 on platforms where
70527         -0.0 = 0.0.
70528         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70529         (test_function): Skip tests involving -0.0 on platforms where
70530         -0.0 = 0.0.
70531         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70532         tests.
70533         * tests/test-printf-posix.h (test_function): Likewise.
70534         * tests/test-printf-posix.output: Remove all -0.0 related results.
70535         Needed for IRIX 6.5.
70536
70537 2007-05-19  Bruno Haible  <bruno@clisp.org>
70538
70539         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70540         printed as "nan0x7fffffff" instead of "nan".
70541         * tests/test-vasprintf-posix.c (test_function): Likewise.
70542         * tests/test-snprintf-posix.h (test_function): Likewise.
70543         * tests/test-sprintf-posix.h (test_function): Likewise.
70544         * tests/test-fprintf-posix.h (NaN): Remove macro.
70545         (test_function): Remove all NaN related tests.
70546         * tests/test-printf-posix.h (NaN): Remove macro.
70547         (test_function): Remove all NaN related tests.
70548         * tests/test-printf-posix.output: Remove all NaN related results.
70549         Needed for IRIX 6.5.
70550
70551 2007-05-19  Bruno Haible  <bruno@clisp.org>
70552
70553         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70554         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70555
70556 2007-05-19  Bruno Haible  <bruno@clisp.org>
70557
70558         * lib/float_.h: New file.
70559         * m4/float_h.m4: New file.
70560         * modules/float: New file.
70561         * modules/isnanl (Dependencies): Add float.
70562         * modules/isnanl-nolibm (Dependencies): Likewise.
70563         * modules/mathl (Dependencies): Likewise.
70564         * modules/printf-frexpl (Dependencies): Likewise.
70565         * modules/signbit (Dependencies): Likewise.
70566         * modules/vasnprintf (Dependencies): Likewise.
70567         * doc/headers/float.texi: Update.
70568
70569 2007-05-19  Jim Meyering  <jim@meyering.net>
70570
70571         * lib/utimens.c (gl_futimens): Rename from futimens,
70572         now that glibc-2.6 declares futimens.
70573         * lib/utimens.h: Likewise.
70574
70575 2007-05-19  Bruno Haible  <bruno@clisp.org>
70576
70577         Avoid test failures on mingw.
70578         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70579         * tests/test-printf-posix.sh: Likewise.
70580         * tests/test-vfprintf-posix.sh: Likewise.
70581         * tests/test-vprintf-posix.sh: Likewise.
70582
70583 2007-05-19  Bruno Haible  <bruno@clisp.org>
70584
70585         Fix *printf result for NaN, Inf, -0.0 on mingw.
70586         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70587         * lib/vasnprintf.c: Include math.h and isnan.h.
70588         (is_infinite_or_zero): New function.
70589         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70590         values in the %f, %F, %e, %E, %g, %G directives.
70591         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70592         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70593         gl_PRINTF_INFINITE and test its result. Invoke
70594         gl_PREREQ_VASNPRINTF_INFINITE.
70595         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70596         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70597         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70598         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70599         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70600         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70601         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70602         * doc/functions/fprintf.texi: Update.
70603         * doc/functions/printf.texi: Update.
70604         * doc/functions/snprintf.texi: Update.
70605         * doc/functions/sprintf.texi: Update.
70606         * doc/functions/vfprintf.texi: Update.
70607         * doc/functions/vprintf.texi: Update.
70608         * doc/functions/vsnprintf.texi: Update.
70609         * doc/functions/vsprintf.texi: Update.
70610
70611 2007-05-19  Bruno Haible  <bruno@clisp.org>
70612
70613         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70614         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70615         Instead of multiplying with 10^k, set extra_zeroes to k.
70616         (scale10_round_long_double): Remove function.
70617
70618 2007-05-18  Bruno Haible  <bruno@clisp.org>
70619
70620         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70621         introduced on 2007-05-06.
70622
70623 2007-05-18  Bruno Haible  <bruno@clisp.org>
70624
70625         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70626         %g directives.
70627         * tests/test-vasprintf-posix.c (test_function): Likewise.
70628         * tests/test-snprintf-posix.h (test_function): Likewise.
70629         * tests/test-sprintf-posix.h (test_function): Likewise.
70630
70631 2007-05-18  Bruno Haible  <bruno@clisp.org>
70632
70633         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70634         (strmatch): New function.
70635         (test_function): Test the %f directive on numbers of various exponents.
70636         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70637         (strmatch): New function.
70638         (test_function): Test the %f directive on numbers of various exponents.
70639         * tests/test-snprintf-posix.h (strmatch): New function.
70640         (test_function): Test the %f directive on numbers of various exponents.
70641         * tests/test-sprintf-posix.h (strmatch): New function.
70642         (test_function): Test the %f directive on numbers of various exponents.
70643         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70644         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70645         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70646         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70647
70648 2007-05-18  Bruno Haible  <bruno@clisp.org>
70649
70650         Add support for 'long double' number output.
70651         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70652         * lib/vasnprintf.c: Include math.h and float+.h.
70653         (mp_limb_t): New type.
70654         (GMP_LIMB_BITS): New macro.
70655         (mp_twolimb_t): New type.
70656         (GMP_TWOLIMB_BITS): New macro.
70657         (mpn_t): New type.
70658         (multiply, divide, convert_to_decimal, decode_long_double,
70659         scale10_round_long_double, scale10_round_decimal_long_double,
70660         floorlog10l): New functions.
70661         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70662         for the %f, %F, %e, %E, %g, %G directives.
70663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70664         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70665         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70666         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70667         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70668         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70669         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70670         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70671         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70672         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70673         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70674         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70675         * modules/snprintf-posix (Depends-on): Likewise.
70676         * modules/sprintf-posix (Depends-on): Likewise.
70677         * modules/vasnprintf-posix (Depends-on): Likewise.
70678         * modules/vasprintf-posix (Depends-on): Likewise.
70679         * modules/vfprintf-posix (Depends-on): Likewise.
70680         * modules/vsnprintf-posix (Depends-on): Likewise.
70681         * modules/vsprintf-posix (Depends-on): Likewise.
70682         * modules/vasnprintf (Files): Add lib/float+.h.
70683         * doc/functions/fprintf.texi: Update.
70684         * doc/functions/printf.texi: Update.
70685         * doc/functions/snprintf.texi: Update.
70686         * doc/functions/sprintf.texi: Update.
70687         * doc/functions/vfprintf.texi: Update.
70688         * doc/functions/vprintf.texi: Update.
70689         * doc/functions/vsnprintf.texi: Update.
70690         * doc/functions/vsprintf.texi: Update.
70691
70692 2007-05-18  Bruno Haible  <bruno@clisp.org>
70693
70694         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70695
70696 2007-05-18  Bruno Haible  <bruno@clisp.org>
70697
70698         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70699         for printing 64-bit integers. Needed for mingw.
70700
70701 2007-05-18  Bruno Haible  <bruno@clisp.org>
70702
70703         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70704         gl_FUNC_FREXPL_WORKS.
70705         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70706
70707 2007-05-18  Bruno Haible  <bruno@clisp.org>
70708
70709         * modules/frexpl-nolibm-tests: New file.
70710
70711         * modules/frexpl-nolibm: New file.
70712         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70713
70714 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70715
70716         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70717         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70718         GCC 4.2, which otherwise issues a lot of warnings.
70719         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70720         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70721         Likewise.
70722         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70723         * modules/iconv_open (iconv.h): Likewise.
70724         * modules/locale (locale.h): Likewise.
70725         * modules/netinet_in (netinet/in.h): Likewise.
70726         * modules/sys_select (sys_select.h): Likewise.
70727         * modules/sys_socket (sys/socket.h): Likewise.
70728         * modules/sys_stat (sys/stat.h): Likewise.
70729         * modules/sysexits (sysexits.h): Likewise.
70730         * modules/unistd (unistd.h): Likewise.
70731
70732 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70733
70734         * modules/closein-tests (Makefile.am): Distribute
70735         `test-closein.sh'.
70736
70737 2007-05-17  Bruno Haible  <bruno@clisp.org>
70738
70739         * tests/test-printf-posix.output: Renamed from
70740         tests/test-fprintf-posix.out.
70741         * modules/fprintf-posix-tests: Update.
70742         * modules/printf-posix-tests: Update.
70743         * modules/vfprintf-posix-tests: Update.
70744         * modules/vprintf-posix-tests: Update.
70745         * tests/test-fprintf-posix.sh: Update.
70746         * tests/test-printf-posix.sh: Update.
70747         * tests/test-vfprintf-posix.sh: Update.
70748         * tests/test-vprintf-posix.sh: Update.
70749         Reported by Ralf Wildenhues.
70750
70751 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70752
70753         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70754         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70755         GCC 4.2, which otherwise issues a lot of warnings.
70756         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70757         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70758         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70759         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70760         it should no longer be needed.
70761         * lib/string_.h: Likewise.
70762         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70763         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70764         * modules/inttypes (inttypes.h): Likewise.
70765         * modules/math (math.h): Likewise.
70766         * modules/search (search.h): Likewise.
70767         * modules/signal (signal.h): Likewise.
70768         * modules/stdint (stdint.h): Likewise.
70769         * modules/stdio (stdio.h): Likewise.
70770         * modules/stdlib (stdlib.h): Likewise.
70771         * modules/string (string.h): Likewise.
70772         * modules/sys_time (sys/time.h): Likewise.
70773         * modules/time (time.h): Likewise.
70774         * modules/wchar (wchar.h): Likewise.
70775         * modules/wctype (wtype.h): Likewise.
70776
70777 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70778
70779         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70780
70781 2007-05-13  Bruno Haible  <bruno@clisp.org>
70782
70783         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70784         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70785         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70786         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70787         (gl_PREREQ_STRTOK_R): Don't require it here.
70788
70789 2007-05-13  Bruno Haible  <bruno@clisp.org>
70790
70791         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70792         when used in C++ mode.
70793
70794 2007-05-12  Bruno Haible  <bruno@clisp.org>
70795
70796         * lib/linebuffer.h: Tweak doc.
70797         * lib/linebuffer.c: Likewise.
70798
70799 2007-05-12  James Youngman  <jay@gnu.org>
70800
70801         * lib/linebuffer.c (readlinebuffer_delim): New function,
70802         like readlinebuffer, but use a caller-specified delimiter.
70803         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70804         as the delimiter.
70805         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70806
70807 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70808
70809         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70810         * modules/openat (Files): Remove openat-die.c.
70811         (Depends-on): Add openat-die.
70812         * modules/openat-die: New module.
70813
70814 2007-05-06  Bruno Haible  <bruno@clisp.org>
70815
70816         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70817         Update with info about Cygwin.
70818         * doc/functions/fprintf.texi: Update.
70819         * doc/functions/printf.texi: Update.
70820         * doc/functions/snprintf.texi: Update.
70821         * doc/functions/sprintf.texi: Update.
70822         * doc/functions/vfprintf.texi: Update.
70823         * doc/functions/vprintf.texi: Update.
70824         * doc/functions/vsnprintf.texi: Update.
70825         * doc/functions/vsprintf.texi: Update.
70826         Reported by Eric Blake.
70827
70828 2007-05-06  Bruno Haible  <bruno@clisp.org>
70829
70830         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70831         padding ourselves for the floating-point directives.
70832         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70834         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70835         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70836         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70837         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70838         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70840         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70841         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70843         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70844         * tests/test-snprintf-posix.h (test_function): Also check the width
70845         and some flags in the %f directive.
70846         * tests/test-sprintf-posix.h (test_function): Likewise.
70847         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70848         * tests/test-vasprintf-posix.c (test_function): Likewise.
70849         * doc/functions/fprintf.texi: Update.
70850         * doc/functions/printf.texi: Update.
70851         * doc/functions/snprintf.texi: Update.
70852         * doc/functions/sprintf.texi: Update.
70853         * doc/functions/vfprintf.texi: Update.
70854         * doc/functions/vprintf.texi: Update.
70855         * doc/functions/vsnprintf.texi: Update.
70856         * doc/functions/vsprintf.texi: Update.
70857
70858 2007-05-06  Bruno Haible  <bruno@clisp.org>
70859
70860         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70861         pass the ' flag character to sprintf or snprintf.
70862         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70863         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70864         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70865         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70866         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70867         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70868         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70869         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70870         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70871         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70872         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70873         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70874         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70875         flag.
70876         * tests/test-sprintf-posix.h (test_function): Likewise.
70877         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70878         * tests/test-vasprintf-posix.c (test_function): Likewise.
70879         * doc/functions/fprintf.texi: Update.
70880         * doc/functions/printf.texi: Update.
70881         * doc/functions/snprintf.texi: Update.
70882         * doc/functions/sprintf.texi: Update.
70883         * doc/functions/vfprintf.texi: Update.
70884         * doc/functions/vprintf.texi: Update.
70885         * doc/functions/vsnprintf.texi: Update.
70886         * doc/functions/vsprintf.texi: Update.
70887
70888 2007-05-01  Bruno Haible  <bruno@clisp.org>
70889
70890         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70891
70892 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70893
70894         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70895         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70896
70897 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70898
70899         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70900         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70901         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70902
70903 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70904
70905         * lib/argp-help.c (struct hol_entry): New member `ord'.
70906         (HOL_ENTRY_PTRCMP): Use ord for comparison
70907         (hol_sort): Initialize ord.
70908
70909 2007-05-01  Bruno Haible  <bruno@clisp.org>
70910
70911         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70912         Reported by Eric Blake.
70913         * doc/gnulib.texi (Function Substitutes): Update.
70914
70915 2007-05-01  Bruno Haible  <bruno@clisp.org>
70916
70917         * doc/functions.texi: Remove file, now redundant through
70918         doc/functions/*.texi.
70919
70920 2007-05-01  Bruno Haible  <bruno@clisp.org>
70921
70922         * modules/argp (Depends-on): Add sleep.
70923
70924 2007-05-01  Bruno Haible  <bruno@clisp.org>
70925
70926         * modules/sleep-tests: New file.
70927         * tests/test-sleep.c: New file.
70928
70929         * modules/sleep: New file.
70930         * lib/sleep.c: New file.
70931         * m4/sleep.m4: New file.
70932         * lib/unistd_.h (sleep): New declaration.
70933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70934         HAVE_SLEEP.
70935         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70936         * doc/functions/sleep.texi: Document the sleep module.
70937
70938 2007-05-01  Bruno Haible  <bruno@clisp.org>
70939
70940         * lib/sigprocmask.h: Remove file.
70941         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70942         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70943         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70944         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70945         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70946         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70947         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70948         HAVE_SIGSET_T as a shell variable.
70949         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70950         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70951         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70952         (Depends-on): Add signal. Remove verify.
70953         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70954         (Include): Mention <signal.h> instead of sigprocmask.h.
70955         * NEWS: Mention the change.
70956         * lib/fatal-signal.c: Don't include sigprocmask.h.
70957
70958 2007-05-01  Bruno Haible  <bruno@clisp.org>
70959
70960         * modules/signal: New file.
70961         * lib/signal_.h: New file.
70962         * m4/signal_h.m4: New file.
70963
70964 2007-05-01  Bruno Haible  <bruno@clisp.org>
70965
70966         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70967         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70968         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70969         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70970
70971 2007-05-01  Bruno Haible  <bruno@clisp.org>
70972
70973         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70974         configure time.
70975         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70976         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70977         * modules/sys_stat (Makefile.am): Substitute their values into
70978         sys/stat.h.
70979
70980 2007-05-01  Bruno Haible  <bruno@clisp.org>
70981
70982         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70983         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70984         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70985
70986 2007-05-01  Bruno Haible  <bruno@clisp.org>
70987
70988         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70989         'assert' module here.
70990
70991 2007-05-01  Bruno Haible  <bruno@clisp.org>
70992
70993         * doc/functions/*.texi: New files.
70994         * doc/functions/google-ranking.txt: New file.
70995         * doc/gnulib.texi (Function Substitutes): New chapter.
70996         (ctime, inet_ntoa): Remove sections.
70997         * doc/ctime.texi: Remove file.
70998         * doc/inet_ntoa.texi: Remove file.
70999         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
71000         dependencies.
71001         (%.info): New rule, specifying a --reference-limit.
71002
71003 2007-05-01  Bruno Haible  <bruno@clisp.org>
71004
71005         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
71006
71007 2007-05-01  Bruno Haible  <bruno@clisp.org>
71008
71009         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
71010         the portability of 'mkdir' to mingw systems.
71011
71012 2007-05-01  Bruno Haible  <bruno@clisp.org>
71013
71014         * doc/headers/google-ranking.txt: New file.
71015
71016 2007-04-30  Eric Blake  <ebb9@byu.net>
71017
71018         Prefer fseeko to fseek.
71019         * modules/getpass (Depends-on): Add fseeko.
71020         * lib/getpass.c (getpass): Use fseeko, not fseek.
71021
71022 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
71023
71024         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
71025         assumes the sorting is stable, while most qsort implementations
71026         are not.  Use argument addresses to ensure they never compare as
71027         equal.
71028
71029         * tests/test-argp-2.sh (usage-indent test): Fix output
71030         (func_compare): Restore diff options
71031         * tests/test-argp.c: Restore #include "progname.h"
71032
71033 2007-04-29  Bruno Haible  <bruno@clisp.org>
71034
71035         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
71036         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71037         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
71038         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71039         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
71040         (configure.ac): Define CHECK_SNPRINTF_POSIX.
71041         (TESTS, check_PROGRAMS): Add test-snprintf.
71042         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
71043         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
71044         (TESTS, check_PROGRAMS): Add test-vsnprintf.
71045         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
71046         assertions that fail on HP-UX, OSF/1, or IRIX.
71047         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
71048
71049 2007-04-29  Bruno Haible  <bruno@clisp.org>
71050
71051         * MODULES.html.sh (posix_functions): Remove 'contents'.
71052
71053 2007-04-29  Karl Berry  <karl@gnu.org>
71054
71055         * config/srclist.txt (gendocs_template_min): new entry.
71056
71057 2007-04-29  Bruno Haible  <bruno@clisp.org>
71058
71059         Work around fpurge bug on BSD systems.
71060         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
71061         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
71062         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
71063         fpurge to rpl_fpurge if the system already has this function.
71064         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
71065         the case where the system already has this function. Correct invariants
71066         on BSD systems.
71067         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
71068         BSD systems.
71069
71070 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
71071
71072         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
71073         proposed by Sven Verdoolaege.
71074
71075         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
71076         options.
71077         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
71078         (usage and help tests): Update
71079
71080 2007-04-29  Bruno Haible  <bruno@clisp.org>
71081
71082         * tests/test-fflush.c (main): Use a file of size 17, not 10.
71083         Print more information in case of failure. Disable a test on BeOS.
71084
71085 2007-04-29  Bruno Haible  <bruno@clisp.org>
71086
71087         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
71088         This helps debugging on systems on which no gdb is available.
71089
71090 2007-04-29  Bruno Haible  <bruno@clisp.org>
71091
71092         * lib/freading.h: Improve comments.
71093         * lib/fwriting.h: Likewise.
71094         * tests/test-freading.c (main): Don't check freading immediately after
71095         repositioning. Needed for glibc.
71096
71097 2007-04-29  Bruno Haible  <bruno@clisp.org>
71098
71099         * lib/freading.c (freading): Trivial simplification.
71100
71101 2007-04-28  Bruno Haible  <bruno@clisp.org>
71102
71103         * tests/test-fwriting.c (main): Also test the interaction between
71104         fflush and fwriting.
71105         * modules/fwriting-tests (Depends-on): Add fflush.
71106
71107         * tests/test-freading.c (main): Also test the interaction between
71108         fflush and freading.
71109         * modules/freading-tests (Depends-on): Add fflush.
71110
71111 2007-04-28  Bruno Haible  <bruno@clisp.org>
71112
71113         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
71114         fseeko and ftello.
71115         Suggested by Eric Blake.
71116
71117 2007-04-28  Jim Meyering  <jim@meyering.net>
71118
71119         Avoid false-negative in gl_STDINT_H's C99 conformance test.
71120         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
71121         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
71122
71123 2007-04-27  Eric Blake  <ebb9@byu.net>
71124
71125         * doc/headers/assert.texi (assert.h): Document assert module use.
71126
71127 2007-04-27  Bruno Haible  <bruno@clisp.org>
71128
71129         * doc/headers/*.texi: New files.
71130         * doc/gnulib.texi (Header File Substitutes): New chapter.
71131         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
71132         dependencies.
71133         (standards.info ,standards.html, standards.dvi): Update dependencies.
71134         (mostlyclean, clean): New targets.
71135
71136 2007-04-27  Bruno Haible  <bruno@clisp.org>
71137
71138         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
71139         * modules/sysexits (Files, Makefile.am): Update.
71140
71141         * lib/sys_socket_.h: Renamed from lib/socket_.h.
71142         * modules/sys_socket (Files, Makefile.am): Update.
71143
71144         * lib/sys_stat_.h: Renamed from lib/stat_.h.
71145         * modules/sys_stat (Files, Makefile.am): Update.
71146
71147 2007-04-27  Eric Blake  <ebb9@byu.net>
71148
71149         * lib/freading.h: Improve comments.
71150         * lib/fwriting.h: Likewise.
71151         * lib/fflush.c: Likewise.
71152
71153         Fix closein for mingw.
71154         * modules/closein-tests: Add tests for closein.
71155         * tests/test-closein.c: New file.
71156         * tests/test-closein.sh: Likewise.
71157         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
71158         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
71159
71160 2007-04-27  Bruno Haible  <bruno@clisp.org>
71161
71162         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
71163         version is < 6.
71164         * lib/math_.h [__DECC]: Likewise.
71165         * lib/stdio_.h [__DECC]: Likewise.
71166         * lib/stdlib_.h [__DECC]: Likewise.
71167         * lib/string_.h [__DECC]: Likewise.
71168         * lib/time_.h [__DECC]: Likewise.
71169         * lib/wchar_.h [__DECC]: Likewise.
71170         * lib/wctype_.h [__DECC]: Likewise.
71171
71172 2007-04-27  Bruno Haible  <bruno@clisp.org>
71173
71174         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
71175
71176 2007-04-27  Bruno Haible  <bruno@clisp.org>
71177
71178         * lib/fflush.c: Add comments.
71179         * modules/fpurge-tests (Depends-on): Add fflush.
71180         * modules/freadable-tests (Depends-on): Likewise.
71181         * modules/fwritable-tests (Depends-on): Likewise.
71182
71183 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
71184
71185         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
71186         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
71187         Report by Bruno Haible <bruno@clisp.org>.
71188
71189 2007-04-26  Eric Blake  <ebb9@byu.net>
71190
71191         Fix fflush on mingw.
71192         * modules/fflush (Depends-on): Add freading.
71193         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
71194         but unread data.
71195
71196 2007-04-26  Eric Blake  <ebb9@byu.net>
71197         and Bruno Haible  <bruno@clisp.org>
71198
71199         Implement freading and fwriting.
71200         * lib/freading.c: New file.
71201         * lib/freading.h: Likewise.
71202         * m4/freading.m4: Likewise.
71203         * modules/freading: Likewise.
71204         * modules/freading-tests: Likewise.
71205         * tests/test-freading.c: Likewise.
71206         * lib/fwriting.c: New file.
71207         * lib/fwriting.h: Likewise.
71208         * m4/fwriting.m4: Likewise.
71209         * modules/fwriting: Likewise.
71210         * modules/fwriting-tests: Likewise.
71211         * tests/test-fwriting.c: Likewise.
71212         * MODULES.html.sh (File stream based Input/Output): Mention them.
71213
71214 2007-04-26  Bruno Haible  <bruno@clisp.org>
71215
71216         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
71217         'long' when we assume it.
71218         Suggested by Eric Blake.
71219
71220 2007-04-26  Bruno Haible  <bruno@clisp.org>
71221
71222         Ensure fseeko, ftello are declared on glibc systems.
71223         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
71224         * modules/fseeko (configure.ac-early): Likewise.
71225         * modules/ftello (configure.ac-early): Likewise.
71226         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
71227         AC_FUNC_FSEEKO for this.
71228         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
71229         (gl_CHECK_FSEEKO): Remove macro.
71230
71231 2007-04-26  Bruno Haible  <bruno@clisp.org>
71232
71233         * tests/test-fflush.c (main): Also check the ftell result after
71234         fflush and fseek/fseeko.
71235         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
71236         file descriptor position cache in the stream.
71237         * lib/fseeko.c (rpl_fseeko): Likewise.
71238
71239 2007-04-26  Bruno Haible  <bruno@clisp.org>
71240
71241         * modules/fflush-tests (Depends-on): Add fseeko.
71242
71243 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
71244             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71245
71246         * lib/argz_.h: ensure error_t definition is obtained in same
71247         mechanism system argz.h would have.
71248         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
71249         argz facilities are known bad.  Err on the side of caution if
71250         cross-compiling.
71251
71252 2007-04-25  Eric Blake  <ebb9@byu.net>
71253
71254         * lib/fpurge.c (includes): Use stdlib.h for free.
71255         * tests/test-fflush.c (main): Also test fflush-fseeko.
71256
71257 2007-04-25  Bruno Haible  <bruno@clisp.org>
71258
71259         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
71260         * lib/fseeko.c: New file.
71261         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
71262         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
71263         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
71264         gl_FUNC_FSEEKO.
71265         (gl_FUNC_FSEEKO): Invoke it.
71266         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
71267         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
71268         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
71269
71270 2007-04-25  Bruno Haible  <bruno@clisp.org>
71271
71272         * modules/fflush (Depends-on): Add ftello.
71273
71274 2007-04-25  Bruno Haible  <bruno@clisp.org>
71275
71276         * modules/ftello-tests: New file.
71277         * tests/test-ftello.c: New file.
71278
71279         * modules/ftello: New file.
71280         * m4/ftello.m4: New file.
71281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
71282         HAVE_FTELLO.
71283         * lib/stdio_.h (ftello): New declaration.
71284         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
71285         HAVE_FTELLO.
71286
71287 2007-04-25  Bruno Haible  <bruno@clisp.org>
71288
71289         * modules/fseeko-tests: New file.
71290         * tests/test-fseeko.c: New file.
71291
71292         * modules/fseeko: New file.
71293         * m4/fseeko.m4: New file.
71294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
71295         HAVE_FSEEKO.
71296         * lib/stdio_.h (fseeko): New declaration.
71297         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
71298         HAVE_FSEEKO.
71299
71300 2007-04-25  Bruno Haible  <bruno@clisp.org>
71301
71302         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
71303
71304 2007-04-25  Bruno Haible  <bruno@clisp.org>
71305
71306         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
71307         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
71308         * tests/test-unistd.c: Likewise.
71309         * tests/test-fcntl.c: Likewise.
71310
71311 2007-04-23  Eric Blake  <ebb9@byu.net>
71312
71313         * lib/fflush.c: Fix missing include.
71314         Reported by Bruno Haible.
71315
71316 2007-04-23  Bruno Haible  <bruno@clisp.org>
71317
71318         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
71319         Reported by Eric Blake.
71320
71321 2007-04-23  Bruno Haible  <bruno@clisp.org>
71322
71323         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
71324
71325 2007-04-23  Bruno Haible  <bruno@clisp.org>
71326
71327         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
71328
71329 2007-04-23  Bruno Haible  <bruno@clisp.org>
71330
71331         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
71332         Needed on HP-UX 11.
71333
71334 2007-04-16  Eric Blake  <ebb9@byu.net>
71335
71336         Make fflush rely on fpurge.
71337         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
71338         open coding all variants.
71339         * modules/fflush (Depends-on): Add fpurge and unistd.
71340         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
71341         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
71342
71343         Fix --with-tests compilation on cygwin.
71344         * modules/argmatch-tests (Makefile.am): List gnulib library first
71345         in LDADD.
71346         * modules/argp-tests (Makefile.am): Likewise.
71347         * modules/array-list-tests (Makefile.am): Likewise.
71348         * modules/array-oset-tests (Makefile.am): Likewise.
71349         * modules/avltree-list-tests (Makefile.am): Likewise.
71350         * modules/avltree-oset-tests (Makefile.am): Likewise.
71351         * modules/avltreehash-list-tests (Makefile.am): Likewise.
71352         * modules/carray-list-tests (Makefile.am): Likewise.
71353         * modules/dirname-tests (Makefile.am): Likewise.
71354         * modules/frexp-tests (Makefile.am): Likewise.
71355         * modules/isnanl-tests (Makefile.am): Likewise.
71356         * modules/linked-list-tests (Makefile.am): Likewise.
71357         * modules/linkedhash-list-tests (Makefile.am): Likewise.
71358         * modules/lock-tests (Makefile.am): Likewise.
71359         * modules/rbtree-list-tests (Makefile.am): Likewise.
71360         * modules/rbtree-oset-tests (Makefile.am): Likewise.
71361         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
71362         * modules/tls-tests (Makefile.am): Likewise.
71363         * modules/tsearch-tests (Makefile.am): Likewise.
71364         * modules/xvasprintf-tests (Makefile.am): Likewise.
71365
71366         Fix fpurge for cygwin.
71367         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
71368         value.
71369         * modules/fpurge-tests (Depends-on): Clean up trash.
71370
71371 2007-04-16  Simon Josefsson  <simon@josefsson.org>
71372
71373         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
71374
71375         * m4/autobuild.m4: Re-indent.
71376
71377 2007-04-13  Bruno Haible  <bruno@clisp.org>
71378
71379         * modules/fpurge-tests: New file.
71380         * tests/test-fpurge.c: New file.
71381
71382         * modules/fpurge: New file.
71383         * lib/fpurge.h: New file.
71384         * lib/fpurge.c: New file.
71385         * m4/fpurge.m4: New file.
71386
71387 2007-04-13  Bruno Haible  <bruno@clisp.org>
71388
71389         * modules/fbufmode-tests: New file.
71390         * tests/test-fbufmode.c: New file.
71391
71392         * modules/fbufmode: New file.
71393         * lib/fbufmode.h: New file.
71394         * lib/fbufmode.c: New file.
71395         * m4/fbufmode.m4: New file.
71396
71397 2007-04-13  Bruno Haible  <bruno@clisp.org>
71398
71399         * modules/fwritable-tests: New file.
71400         * tests/test-fwritable.c: New file.
71401
71402         * modules/fwritable: New file.
71403         * lib/fwritable.h: New file.
71404         * lib/fwritable.c: New file.
71405         * m4/fwritable.m4: New file.
71406
71407 2007-04-13  Bruno Haible  <bruno@clisp.org>
71408
71409         * modules/freadable-tests: New file.
71410         * tests/test-freadable.c: New file.
71411
71412         * modules/freadable: New file.
71413         * lib/freadable.h: New file.
71414         * lib/freadable.c: New file.
71415         * m4/freadable.m4: New file.
71416
71417 2007-04-13  Bruno Haible  <bruno@clisp.org>
71418
71419         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
71420         MOSTLYCLEANFILES.
71421
71422 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71423
71424         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
71425         gzip bootstrap.conf to avoid dragging in i18n machinery.
71426         (gnulib_tool_option): Use it.
71427
71428 2007-04-13  Bruno Haible  <bruno@clisp.org>
71429
71430         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
71431         %F directives.
71432         * tests/test-vasprintf-posix.c (test_function): Likewise.
71433         * tests/test-snprintf-posix.h (test_function): Likewise.
71434         * tests/test-sprintf-posix.h (test_function): Likewise.
71435         * tests/test-fprintf-posix.h (test_function): Likewise.
71436         * tests/test-printf-posix.h (test_function): Likewise.
71437         * tests/test-fprintf-posix.out: Likewise.
71438
71439 2007-04-13  Bruno Haible  <bruno@clisp.org>
71440
71441         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
71442         * modules/tls-tests (configure.ac): Likewise.
71443         Reported by Arto C. Nirkko <anirkko@insel.ch>.
71444
71445 2007-04-13  Bruno Haible  <bruno@clisp.org>
71446
71447         * lib/tls.c (glthread_tls_get): Fix return type.
71448         Patch by Arto C. Nirkko <anirkko@insel.ch>.
71449
71450 2007-04-12  Eric Blake  <ebb9@byu.net>
71451
71452         * modules/gettime (Depends-on): Remove gettime.
71453         Reported by Dmitry V. Levin.
71454
71455 2007-04-12  Bruno Haible  <bruno@clisp.org>
71456
71457         * modules/fflush (Include): Mention <stdio.h>.
71458         * modules/strtoimax (Include): Mention <inttypes.h>.
71459         * modules/strtoumax (Include): Likewise.
71460
71461 2007-04-12  Eric Blake  <ebb9@byu.net>
71462
71463         * .cvsignore: New file.
71464         * .gitignore: Likewise.
71465
71466 2007-04-12  Bruno Haible  <bruno@clisp.org>
71467
71468         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
71469         not before, since $(LDADD) often contains libgnu.a.
71470         * modules/striconv-tests (test_striconv_LDADD): Likewise.
71471         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
71472         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
71473         Needed on Cygwin.
71474
71475 2007-04-12  Eric Blake  <ebb9@byu.net>
71476
71477         Work around glibc's failure to flush stdin on fclose.
71478         * lib/closein.c (close_stdin): Flush stdin before closing.
71479
71480         Work around glibc's failure to reset seekable stdin on exit.
71481         * modules/closein: New module.
71482         * lib/closein.c: New file.
71483         * lib/closein.h: Likewise.
71484         * m4/closein.m4: Likewise.
71485         * MODULES.html.sh (File stream based Input/Output): Document it.
71486
71487 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71488
71489         * gnulib-tool: Rename generated 'autobuild' script to
71490         'do-autobuild' in --create-megatestdir output.
71491
71492         * doc/gnulib.texi (Build robot for gnulib): Fix.
71493
71494 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71495
71496         * modules/sysexits (Depends-on): Add absolute-header.
71497
71498 2007-04-12  Eric Blake  <ebb9@byu.net>
71499
71500         No need to preserve errno on success.
71501         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
71502         Reported by Bruno Haible.
71503
71504 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71505
71506         * MODULES.html.sh (Support for maintaining and releasing
71507         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71508
71509 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71510
71511         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71512
71513 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71514
71515         * modules/autobuild: New module.
71516
71517         * m4/autobuild.m4: New file.
71518
71519 2007-04-11  Bruno Haible  <bruno@clisp.org>
71520
71521         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71522         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71523         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71525         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71526         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71527         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71528         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71529         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71530         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71531         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71532         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71533         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71534         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
71535         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71536         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71537         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
71538         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71539         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71540         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
71541         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71542         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71543         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
71544         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71545         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71546         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
71547         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71548         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71549         Reported by Eric Blake.
71550
71551 2007-04-11  Bruno Haible  <bruno@clisp.org>
71552
71553         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71554
71555 2007-04-10  Bruno Haible  <bruno@clisp.org>
71556
71557         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71558         for NaN and Infinity. Needed on FreeBSD 6.1.
71559         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71560         regarding results for "%010a" of Infinity and NaN.
71561         * tests/test-vasprintf-posix.c (test_function): Likewise.
71562         * tests/test-snprintf-posix.h (test_function): Likewise.
71563         * tests/test-sprintf-posix.h (test_function): Likewise.
71564         * tests/test-fprintf-posix.h (test_function): Likewise.
71565         * tests/test-printf-posix.h (test_function): Likewise.
71566         * tests/test-fprintf-posix.out: Likewise.
71567
71568 2007-04-10  Bruno Haible  <bruno@clisp.org>
71569
71570         * modules/locale-tests: New file.
71571         * tests/test-locale.c: New file.
71572
71573         * modules/locale: New file.
71574         * lib/locale_.h: New file.
71575         * m4/locale_h.m4: New file.
71576
71577 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71578             Bruno Haible  <bruno@clisp.org>
71579
71580         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71581         be determined, test for availability of the copysignf, copysign,
71582         copysignl functions.
71583         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71584         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71585         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71586
71587 2007-04-09  Eric Blake  <ebb9@byu.net>
71588
71589         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71590         * modules/stdio (Makefile.am): Support fflush.
71591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71592         * modules/fflush: New file.
71593         * lib/fflush.c: Likewise.
71594         * m4/fflush.m4: Likewise.
71595         * modules/fflush-tests: New test.
71596         * tests/test-fflush.c: Likewise.
71597         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71598
71599 2007-04-06  Bruno Haible  <bruno@clisp.org>
71600
71601         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71602         (VASNPRINTF): Use signbit for faster determination whether to print a
71603         minus sign.
71604         * modules/vasnprintf (Files): Remove lib/float+.h.
71605         * modules/fprintf-posix (Depends-on): Add signbit.
71606         * modules/snprintf-posix (Depends-on): Likewise.
71607         * modules/sprintf-posix (Depends-on): Likewise.
71608         * modules/vasnprintf-posix (Depends-on): Likewise.
71609         * modules/vasprintf-posix (Depends-on): Likewise.
71610         * modules/vfprintf-posix (Depends-on): Likewise.
71611         * modules/vsnprintf-posix (Depends-on): Likewise.
71612         * modules/vsprintf-posix (Depends-on): Likewise.
71613
71614 2007-04-06  Bruno Haible  <bruno@clisp.org>
71615
71616         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71617         * tests/test-frexpl.c (main): Likewise.
71618         * tests/test-ldexpl.c (main): Likewise.
71619         * modules/frexp-tests (Depends-on): Add signbit.
71620         * modules/frexpl-tests (Depdends-on): Likewise.
71621         * modules/ldexpl-tests (Depdends-on): Likewise.
71622
71623 2007-04-06  Bruno Haible  <bruno@clisp.org>
71624
71625         * modules/signbit-tests: New file.
71626         * tests/test-signbit.c: New file.
71627
71628         * modules/signbit: New file.
71629         * lib/signbitf.c: New file.
71630         * lib/signbitd.c: New file.
71631         * lib/signbitl.c: New file.
71632         * m4/signbit.m4: New file.
71633         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71634         (signbit): New macro.
71635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71636         REPLACE_SIGNBIT.
71637         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71638         REPLACE_FREXPL into math.h.
71639
71640 2007-04-06  Bruno Haible  <bruno@clisp.org>
71641
71642         * modules/isnanf-nolibm-tests: New file.
71643         * tests/test-isnanf.c: New file.
71644
71645         * modules/isnanf-nolibm: New file.
71646         * lib/isnanf.h: New file.
71647         * lib/isnanf.c: New file.
71648         * lib/isnan.c: Consider the USE_FLOAT macro.
71649         * m4/isnanf.m4: New file.
71650
71651 2007-04-06  Bruno Haible  <bruno@clisp.org>
71652
71653         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71654         (Link): New section.
71655
71656         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71657
71658 2007-04-06  Bruno Haible  <bruno@clisp.org>
71659
71660         Assume the 'long double' type.
71661         * m4/longdouble.m4: Remove file.
71662         * config/srclist.txt: Don't mention longdouble.m4.
71663         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71664         * lib/float+.h: Likewise.
71665         * lib/frexp.c: Likewise.
71666         * lib/printf-args.h: Likewise.
71667         * lib/printf-args.c: Likewise.
71668         * lib/printf-frexp.c: Likewise.
71669         * lib/printf-parse.c: Likewise.
71670         * lib/vasnprintf.c: Likewise.
71671         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71672         * m4/intl.m4: Likewise.
71673         * m4/isnanl.m4: Likewise.
71674         * m4/printf.m4: Likewise.
71675         * m4/printf-frexpl.m4: Likewise.
71676         * m4/vasnprintf.m4: Likewise.
71677         * modules/allocsa (Files): Remove m4/longdouble.m4.
71678         * modules/gettext (Files): Likewise.
71679         * modules/relocatable-prog-wrapper (Files): Likewise.
71680         * modules/vasnprintf (Files): Likewise.
71681         * modules/isnanl (Files): Likewise.
71682         (Include): Simplify.
71683         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71684         (Include): Simplify.
71685         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71686         (Include): Simplify.
71687         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71688         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71689         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71690         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71691         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71692         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71693         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71694         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71695         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71696         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71697         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71698         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71699         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71700         * tests/test-isnanl.c: Likewise.
71701         * tests/test-snprintf-posix.h: Likewise.
71702         * tests/test-sprintf-posix.h: Likewise.
71703         * tests/test-vasnprintf-posix.c: Likewise.
71704         * tests/test-vasnprintf-posix2.c: Likewise.
71705         * tests/test-vasprintf-posix.c: Likewise.
71706
71707 2007-04-06  Bruno Haible  <bruno@clisp.org>
71708
71709         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71710         * lib/math_.h [__DECC]: Include the overridden include file through
71711         #include_next, outside the double-inclusion guard.
71712         * lib/stdio_.h [__DECC]: Likewise.
71713         * lib/stdlib_.h [__DECC]: Likewise.
71714         * lib/string_.h [__DECC]: Likewise.
71715         * lib/time_.h [__DECC]: Likewise.
71716         * lib/wchar_.h [__DECC]: Likewise.
71717         * lib/wctype_.h [__DECC]: Likewise.
71718         * lib/inttypes_.h [__DECC]: Likewise.
71719         Reported by Albert Chin <china@thewrittenword.com> in
71720         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71721
71722 2007-04-04  Eric Blake  <ebb9@byu.net>
71723
71724         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71725         1.5.x.
71726
71727 2007-04-04  Bruno Haible  <bruno@clisp.org>
71728
71729         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71730         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71731
71732 2007-04-04  Bruno Haible  <bruno@clisp.org>
71733
71734         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71735         results for "%010a" of Infinity and NaN.
71736         * tests/test-vasprintf-posix.c (test_function): Likewise.
71737         * tests/test-snprintf-posix.h (test_function): Likewise.
71738         * tests/test-sprintf-posix.h (test_function): Likewise.
71739         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71740         * tests/test-printf-posix.h (test_function): Likewise.
71741         * tests/test-fprintf-posix.out: Update.
71742         Needed for FreeBSD 6.1.
71743
71744 2007-04-04  Bruno Haible  <bruno@clisp.org>
71745
71746         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71747         directly used by the gnulib modules nor by gnulib-tool.
71748
71749 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71750
71751         * DEPENDENCIES: Give overall description of version dependency
71752         desirability.  Use more-typical names for apps.
71753         Add shell, coreutils, diffutils, grep, tar, gzip.
71754
71755 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71756
71757         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71758
71759 2007-04-04  Karl Berry  <karl@gnu.org>
71760
71761         * MODULES.html.sh (func_module): missing '.
71762
71763 2007-04-03  Bruno Haible  <bruno@clisp.org>
71764
71765         * modules/argmatch-tests (Makefile.am): New variable
71766         test_argmatch_LDADD.
71767         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71768         * modules/array-list-tests (Makefile.am): New variable
71769         test_array_list_LDADD.
71770         * modules/array-oset-tests (Makefile.am): New variable
71771         test_array_oset_LDADD.
71772         * modules/avltree-list-tests (Makefile.am): New variable
71773         test_avltree_list_LDADD.
71774         * modules/avltree-oset-tests (Makefile.am): New variable
71775         test_avltree_oset_LDADD.
71776         * modules/avltreehash-list-tests (Makefile.am): New variable
71777         test_avltreehash_list_LDADD.
71778         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71779         test_canonicalize_lgpl_LDADD.
71780         * modules/carray-list-tests (Makefile.am): New variable
71781         test_carray_list_LDADD.
71782         * modules/dirname-tests (Makefile.am): New variable
71783         test_dirname_LDADD.
71784         * modules/linked-list-tests (Makefile.am): New variable
71785         test_linked_list_LDADD.
71786         * modules/linkedhash-list-tests (Makefile.am): New variable
71787         test_linkedhash_list_LDADD.
71788         * modules/rbtree-list-tests (Makefile.am): New variable
71789         test_rbtree_list_LDADD.
71790         * modules/rbtree-oset-tests (Makefile.am): New variable
71791         test_rbtree_oset_LDADD.
71792         * modules/rbtreehash-list-tests (Makefile.am): New variable
71793         test_rbtreehash_list_LDADD.
71794         * modules/xvasprintf-tests (Makefile.am): New variable
71795         test_xvasprintf_LDADD.
71796         Reported by Eric Blake.
71797
71798 2007-04-03  Eric Blake  <ebb9@byu.net>
71799
71800         * DEPENDENCIES: Weaken m4 requirements.
71801
71802 2007-04-03  Bruno Haible  <bruno@clisp.org>
71803
71804         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71805         * modules/isnanl-tests (configure.ac): Likewise.
71806
71807 2007-04-03  Ben Pfaff  <blp@gnu.org>
71808
71809         * modules/iconv_open: Add $(srcdir)/ to source directory
71810         references in Makefile fragments that call gperf, to fix VPATH
71811         builds.
71812
71813 2007-04-03  Bruno Haible  <bruno@clisp.org>
71814
71815         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71816         * lib/ldexpl.c: Undo last change.
71817
71818 2007-04-03  Bruno Haible  <bruno@clisp.org>
71819
71820         * modules/printf-frexpl (Depends-on): Undo last change.
71821         (Files): Add m4/ldexpl.m4.
71822
71823 2007-04-03  Bruno Haible  <bruno@clisp.org>
71824
71825         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71826         * modules/isnanl (Link): New section.
71827
71828         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71829         * modules/frexp (Link): New section.
71830
71831         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71832         * modules/frexpl (Link): New section.
71833
71834         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71835         * modules/ldexpl (Link): New section.
71836
71837 2007-04-03  Bruno Haible  <bruno@clisp.org>
71838
71839         * modules/TEMPLATE-EXTENDED: New file.
71840         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71841
71842 2007-04-03  Bruno Haible  <bruno@clisp.org>
71843
71844         * DEPENDENCIES: New file.
71845         Suggested by Simon Josefsson.
71846
71847 2007-04-03  Bruno Haible  <bruno@clisp.org>
71848
71849         * doc/gnulib.texi: Escape @.
71850
71851 2007-04-03  James Youngman  <jay@gnu.org>
71852         and Paul Eggert  <eggert@cs.ucla.edu>
71853
71854         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71855         birthtime on all systems that have birthtime, not just those which
71856         use st_birthtimensec rather than st_birthtim.  Putting zero in
71857         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71858         that the birth time is not available for files on an NFS mount.
71859
71860 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71861
71862         * modules/memxor: Move back from crypto/, suggested by Bruno.
71863         * modules/crypto/hmac-sha1: Fix memxor dependency.
71864
71865         * modules/crypto/gc: Moved from ../.
71866
71867 2007-04-02  Eric Blake  <ebb9@byu.net>
71868
71869         * lib/ldexpl.c (includes): Avoid libm.
71870
71871         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71872
71873 2007-04-02  Bruno Haible  <bruno@clisp.org>
71874
71875         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71876         on IRIX.
71877
71878 2007-04-02  Bruno Haible  <bruno@clisp.org>
71879
71880         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71881         x86 or x86_64 platforms running MacOS X.
71882         Reported by Ryan Schmidt <@ryandesign.com>.
71883
71884 2007-04-02  Bruno Haible  <bruno@clisp.org>
71885
71886         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71887         i386.
71888
71889 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71890
71891         * modules/crypto/arcfour: Moved from ../.
71892         * modules/crypto/arcfour-tests: Moved from ../.
71893         * modules/crypto/arctwo: Moved from ../.
71894         * modules/crypto/arctwo-tests: Moved from ../.
71895         * modules/crypto/des: Moved from ../.
71896         * modules/crypto/des-tests: Moved from ../.
71897         * modules/crypto/gc-arcfour: Moved from ../.
71898         * modules/crypto/gc-arcfour-tests: Moved from ../.
71899         * modules/crypto/gc-arctwo: Moved from ../.
71900         * modules/crypto/gc-arctwo-tests: Moved from ../.
71901         * modules/crypto/gc-des: Moved from ../.
71902         * modules/crypto/gc-des-tests: Moved from ../.
71903         * modules/crypto/gc-hmac-md5: Moved from ../.
71904         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71905         * modules/crypto/gc-hmac-sha1: Moved from ../.
71906         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71907         * modules/crypto/gc-md2: Moved from ../.
71908         * modules/crypto/gc-md2-tests: Moved from ../.
71909         * modules/crypto/gc-md4: Moved from ../.
71910         * modules/crypto/gc-md4-tests: Moved from ../.
71911         * modules/crypto/gc-md5: Moved from ../.
71912         * modules/crypto/gc-md5-tests: Moved from ../.
71913         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71914         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71915         * modules/crypto/gc-random: Moved from ../.
71916         * modules/crypto/gc-rijndael: Moved from ../.
71917         * modules/crypto/gc-rijndael-tests: Moved from ../.
71918         * modules/crypto/gc-sha1: Moved from ../.
71919         * modules/crypto/gc-sha1-tests: Moved from ../.
71920         * modules/crypto/gc-tests: Moved from ../.
71921         * modules/crypto/hmac-md5: Moved from ../.
71922         * modules/crypto/hmac-md5-tests: Moved from ../.
71923         * modules/crypto/hmac-sha1: Moved from ../.
71924         * modules/crypto/hmac-sha1-tests: Moved from ../.
71925         * modules/crypto/md2: Moved from ../.
71926         * modules/crypto/md2-tests: Moved from ../.
71927         * modules/crypto/md4: Moved from ../.
71928         * modules/crypto/md4-tests: Moved from ../.
71929         * modules/crypto/md5: Moved from ../.
71930         * modules/crypto/md5-tests: Moved from ../.
71931         * modules/crypto/memxor: Moved from ../.
71932         * modules/crypto/rijndael: Moved from ../.
71933         * modules/crypto/rijndael-tests: Moved from ../.
71934         * modules/crypto/sha1: Moved from ../.
71935
71936 2007-03-30  James Youngman  <jay@gnu.org>
71937
71938         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71939         rename() to change the ctime of a file (because ctime is unaffected
71940         by rename on jfs2 on AIX 5.1).
71941         (main): Start by doing cleanup, in case a previous run failed leaving
71942         test files behind.
71943
71944 2007-03-31  Bruno Haible  <bruno@clisp.org>
71945
71946         Support old proprietary implementations of iconv.
71947         * modules/iconv_open: New file.
71948         * lib/iconv_.h: New file.
71949         * m4/iconv_h.m4: New file.
71950         * lib/iconv_open.c: New file.
71951         * lib/iconv_open-aix.gperf: New file.
71952         * lib/iconv_open-hpux.gperf: New file.
71953         * lib/iconv_open-irix.gperf: New file.
71954         * lib/iconv_open-osf.gperf: New file.
71955         * m4/iconv_open.m4: New file.
71956         * modules/linebreak (Depends-on): Add iconv_open.
71957         * modules/striconv (Depends-on): Likewise.
71958         * modules/striconveh (Depends-on): Likewise.
71959         * modules/unicodeio (Depends-on): Likewise.
71960         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71961         (iconv_t)(-1).
71962         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71963         conversion if cd is (iconv_t)(-1).
71964         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71965         is not possible.
71966
71967 2007-03-31  Bruno Haible  <bruno@clisp.org>
71968
71969         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71970         work on Solaris either. Protect also second use of "autodetect_jp".
71971
71972 2007-03-31  Bruno Haible  <bruno@clisp.org>
71973
71974         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71975         the function is not present.
71976
71977 2007-03-31  Bruno Haible  <bruno@clisp.org>
71978
71979         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71980         the function is not present.
71981
71982 2007-03-31  Bruno Haible  <bruno@clisp.org>
71983
71984         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71985         a bug in HP-UX iconv_open().
71986
71987 2007-03-31  Bruno Haible  <bruno@clisp.org>
71988
71989         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71990         (Mathematics <math.h>): New section, add fpieee.
71991         (Input/output <stdio.h>): Add fseterr.
71992         (Mathematics <math.h>): New section, add printf-frexp.
71993         (Container data structures): Add sublist.
71994         (Core language properties): Add fpucw, inline.
71995         (Functions for greatest-width integer types <inttypes.h>): Add
71996         imaxabs, imaxdiv, inttypes.
71997         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71998         isnanl-nolibm, ldexp.
71999         (Mathematics <math.h>): New section, add printf-frexpl.
72000         (Support for systems lacking POSIX:2001): Add fprintf-posix,
72001         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
72002         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
72003         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
72004         (Unicode string functions): Add unistr/u*-mbtoucr.
72005         (Java): Add javacomp-script, javaexec-script.
72006         (C#): Add csharpcomp-script, csharpexec-script.
72007         (Support for building libraries and executables): Add havelib,
72008         relocatable-*.
72009         (Support for maintaining and releasing projects): Renamed from
72010         'Support for maintaining and release projects'. Add announce-gen.
72011
72012 2007-03-31  Bruno Haible  <bruno@clisp.org>
72013
72014         * README: Talk primarily about git.
72015         (git and CVS): Renamed from CVS.
72016         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
72017         gnulib is available through git.
72018         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
72019
72020 2007-03-30  Bruno Haible  <bruno@clisp.org>
72021
72022         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
72023         * lib/poll_.h: Likewise.
72024         * lib/stat_.h: Likewise.
72025         * lib/sys_time_.h: Likewise.
72026         * lib/sysexit_.h: Likewise.
72027         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
72028         * lib/stdbool_.h: Likewise.
72029         * lib/byteswap_.h: Add double-inclusion guard.
72030
72031 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
72032
72033         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
72034
72035 2007-03-30  Karl Berry  <karl@gnu.org>
72036
72037         * config/srclist-update: double space after USA in the license
72038         substitution, since that's how it's usually (?) written.
72039
72040 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
72041
72042         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
72043         reported by Bruno Haible.
72044
72045 2007-03-29  Bruno Haible  <bruno@clisp.org>
72046
72047         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
72048         a bug in AIX iconv().
72049
72050 2007-03-29  Bruno Haible  <bruno@clisp.org>
72051
72052         * modules/ldexpl-tests: New file.
72053         * tests/test-ldexpl.c: New file.
72054
72055 2007-03-29  Bruno Haible  <bruno@clisp.org>
72056
72057         * lib/ldexpl.c: Include fpucw.h.
72058         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
72059         multiplication.
72060         * modules/ldexpl (Depends-on): Add fpucw.
72061
72062 2007-03-29  Bruno Haible  <bruno@clisp.org>
72063
72064         * modules/ldexpl: New file.
72065         * m4/ldexpl.m4: New file.
72066         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
72067         set.
72068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
72069         REPLACE_LDEXPL.
72070         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
72071         REPLACE_LDEXPL.
72072         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
72073         gl_FUNC_LDEXPL_WORKS.
72074         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
72075         * modules/mathl (Files): Remove lib/ldexpl.c.
72076         (Depends-on): Add ldexpl.
72077
72078 2007-03-29  Bruno Haible  <bruno@clisp.org>
72079
72080         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
72081
72082 2007-03-29  Bruno Haible  <bruno@clisp.org>
72083
72084         * tests/test-striconveh.c (main): Don't assume that a direct conversion
72085         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
72086         and possibly also HP-UX.
72087         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
72088         work on AIX, IRIX, HP-UX, OSF/1.
72089         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
72090         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
72091         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
72092         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
72093         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
72094         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
72095
72096 2007-03-29  Bruno Haible  <bruno@clisp.org>
72097
72098         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
72099
72100 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
72101
72102         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
72103         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
72104
72105 2007-03-29  Eric Blake  <ebb9@byu.net>
72106
72107         * lib/acl-internal.h: Remove redundant include.
72108         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
72109         Cygwin when a file is locked.
72110
72111 2007-03-29  Bruno Haible  <bruno@clisp.org>
72112
72113         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
72114         file.
72115         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
72116
72117 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
72118
72119         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
72120         try to remove a parent directory if the child couldn't be removed
72121         (except for the first rmdir, which could fail because the child
72122         doesn't exist).  Problem reported by Jeff Blaine in
72123         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
72124
72125 2007-03-28  Bruno Haible  <bruno@clisp.org>
72126
72127         * lib/striconveh.c (utf8conv_carefully): New function.
72128         (mem_cd_iconveh_internal): Invoke it.
72129
72130 2007-03-28  Bruno Haible  <bruno@clisp.org>
72131
72132         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
72133         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
72134         input.
72135         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
72136         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
72137         unistr/u8-uctomb.
72138
72139 2007-03-28  Bruno Haible  <bruno@clisp.org>
72140
72141         * modules/unistr/u8-mbtoucr: New file.
72142         * lib/unistr/u8-mbtoucr.c: New file.
72143         * modules/unistr/u16-mbtoucr: New file.
72144         * lib/unistr/u16-mbtoucr.c: New file.
72145         * modules/unistr/u16-mbtoucr: New file.
72146         * lib/unistr/u16-mbtoucr.c: New file.
72147         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
72148
72149 2007-03-27  Simon Josefsson  <simon@josefsson.org>
72150             Bruno Haible  <bruno@clisp.org>
72151
72152         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
72153         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
72154         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
72155
72156         * m4/stdio_h.m4: Add stubs for vasprintf too.
72157
72158         * modules/stdio: Support vasprintf in sed command.
72159
72160         * modules/vasprintf: Depend on stdio for prototypes.  Remove
72161         vasprintf.h.  Add stdio module indicator.
72162
72163         * lib/stdio_.h: Declare asprintf and vasprintf, based on
72164         vasprintf.h.
72165
72166         * lib/vasprintf.h: File removed.
72167
72168         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
72169         * lib/vasprintf.c: Ditto.
72170         * lib/xvasprintf.c: Ditto.
72171         * tests/test-vasprintf-posix.c: Ditto.
72172         * tests/test-vasprintf.c: Ditto.
72173
72174 2007-03-27  Bruno Haible  <bruno@clisp.org>
72175
72176         Make vasnprintf multithread-safe.
72177         * lib/vasnprintf.c (decimal_point_char): New function.
72178         (VASNPRINTF): Use it.
72179         Suggested by Simon Josefsson.
72180
72181 2007-03-27  Eric Blake  <ebb9@byu.net>
72182
72183         Support sub-second birthtime on cygwin.
72184         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
72185         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
72186         (get_stat_birthtime): Also work with st_birthtim.
72187
72188 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
72189
72190         * lib/stat-time.h (USE_BIRTHTIME): Remove.
72191         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
72192         (get_stat_birthtime_ns): Do not try to use "spare" fields.
72193         (get_stat_birthtime_ns): Simplify compile-time tests.
72194         (get_stat_birthtime): Change the API to look like
72195         get_stat_mtime etc., except return a negative tv_nsec on error.
72196         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
72197         Don't check for "spare" fields.
72198         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
72199         or for struct stat.st_birthtime, as these tests aren't used.
72200         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
72201
72202 2007-03-27  Bruno Haible  <bruno@clisp.org>
72203
72204         * lib/stat-time.h: Include <sys/stat.h>.
72205
72206 2007-03-27  James Youngman  <jay@gnu.org>
72207
72208         * lib/stat-time.h (get_stat_birthtime): New function for
72209           retrieving st_birthtime as provided by UFS2 (hence *BSD).
72210         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
72211           and its variants.
72212         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
72213         * modules/stat-time-test: New file.
72214         * tests/test-stat-time.c: New test, devised by Bruno Haible.
72215
72216 2007-03-26  Bruno Haible  <bruno@clisp.org>
72217
72218         Better support of signalling NaNs.
72219         * lib/atanl.c: Include isnanl.h.
72220         (atanl): Perform test for NaN at the beginning of the function and
72221         through a call to isnanl.
72222         * lib/cosl.c: Include isnanl.h.
72223         (cosl): Perform test for NaN at the beginning of the function and
72224         through a call to isnanl.
72225         * lib/ldexpl.c: Include isnanl.h.
72226         (ldexpl): Perform test for NaN through a call to isnanl.
72227         * lib/logl.c: Include isnanl.h.
72228         (logl): Perform test for NaN at the beginning of the function and
72229         through a call to isnanl.
72230         * lib/sinl.c: Include isnanl.h.
72231         (sinl): Perform test for NaN at the beginning of the function and
72232         through a call to isnanl.
72233         * lib/sqrtl.c: Include isnanl.h.
72234         (sqrtl): Perform test for NaN at the beginning of the function and
72235         through a call to isnanl.
72236         * lib/tanl.c: Include isnanl.h.
72237         (tanl): Perform test for NaN at the beginning of the function and
72238         through a call to isnanl.
72239         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
72240         * modules/mathl (Depends-on): Add isnanl.
72241
72242 2007-03-26  Eric Blake  <ebb9@byu.net>
72243
72244         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
72245         regression in logic sense of previous patch.
72246
72247 2007-03-26  Bruno Haible  <bruno@clisp.org>
72248
72249         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
72250         unportable shell command "if ! ...".
72251         Reported by Ralf Wildenhues.
72252
72253 2007-03-25  Bruno Haible  <bruno@clisp.org>
72254
72255         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
72256         <sysexits.h> file, and only add EX_CONFIG.
72257         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
72258         absolute file name and whether it is sufficient. Substitute also
72259         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
72260         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
72261         ABSOLUTE_SYSEXITS_H into sysexits.h.
72262
72263 2007-03-25  Bruno Haible  <bruno@clisp.org>
72264
72265         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
72266         hints is NULL.
72267
72268 2007-03-25  Bruno Haible  <bruno@clisp.org>
72269
72270         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
72271         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
72272
72273 2007-03-25  Bruno Haible  <bruno@clisp.org>
72274
72275         * lib/vasnprintf.c: Include langinfo.h.
72276         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
72277         multithread-safe.
72278         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
72279         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
72280         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
72281         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72282         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72283         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72284         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
72285         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
72286         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72287         Reported by Simon Josefsson.
72288
72289 2007-03-25  Bruno Haible  <bruno@clisp.org>
72290
72291         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
72292         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
72293         * modules/vasnprintf (Depends-on): Add stdint.
72294
72295 2007-03-25  Bruno Haible  <bruno@clisp.org>
72296
72297         * modules/fpieee: New file.
72298         * m4/fpieee.m4: New file.
72299         * modules/isnan-nolibm (Depends-on): Add fpieee.
72300         * modules/isnanl-nolibm (Depends-on): Add fpieee.
72301         * modules/isnanl (Depends-on): Add fpieee.
72302
72303 2007-03-25  Bruno Haible  <bruno@clisp.org>
72304
72305         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
72306
72307 2007-03-25  Bruno Haible  <bruno@clisp.org>
72308
72309         Avoid test failures on IRIX 6.5.
72310         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
72311         (main): Use it.
72312         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
72313         macros.
72314         (main): Use them.
72315
72316 2007-03-25  Bruno Haible  <bruno@clisp.org>
72317
72318         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
72319         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
72320         exists but doesn't work.
72321         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
72322         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
72323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
72324         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
72325         math.h.
72326
72327 2007-03-25  Bruno Haible  <bruno@clisp.org>
72328
72329         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
72330         returns inf. Needed on IRIX 6.5.
72331
72332 2007-03-25  Bruno Haible  <bruno@clisp.org>
72333
72334         * tests/test-frexpl.c: Include isnanl-nolibm.h.
72335         (main): Use isnanl instead of x != x idiom.
72336         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
72337
72338         * tests/test-frexp.c: Include isnan.h.
72339         (main): Use isnan instead of x != x idiom.
72340         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
72341
72342 2007-03-25  Bruno Haible  <bruno@clisp.org>
72343
72344         * tests/test-frexp.c (NaN): New function/macro.
72345         (main): Use it instead of 0.0 / 0.0.
72346         * tests/test-isnan.c (NaN): New function/macro.
72347         (main): Use it instead of 0.0 / 0.0.
72348         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
72349         (test_function): Use it instead of 0.0 / 0.0.
72350         * tests/test-vasprintf-posix.c (NaN): New function/macro.
72351         (test_function): Use it instead of 0.0 / 0.0.
72352         * tests/test-snprintf-posix.h (NaN): New function/macro.
72353         (test_function): Use it instead of 0.0 / 0.0.
72354         * tests/test-sprintf-posix.h (NaN): New function/macro.
72355         (test_function): Use it instead of 0.0 / 0.0.
72356         * tests/test-fprintf-posix.h (NaN): New function/macro.
72357         (test_function): Use it instead of 0.0 / 0.0.
72358         * tests/test-printf-posix.h (NaN): New function/macro.
72359         (test_function): Use it instead of 0.0 / 0.0.
72360
72361         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
72362
72363 2007-03-25  Bruno Haible  <bruno@clisp.org>
72364
72365         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
72366
72367 2007-03-25  Bruno Haible  <bruno@clisp.org>
72368
72369         * lib/regexec.c (merge_state_with_log): Make static.
72370
72371 2007-03-25  Bruno Haible  <bruno@clisp.org>
72372
72373         * lib/trigl.c (kernel_rem_pio2): Make static.
72374
72375 2007-03-25  Bruno Haible  <bruno@clisp.org>
72376
72377         * lib/sincosl.c (sincosl_table): Make static.
72378
72379 2007-03-25  Bruno Haible  <bruno@clisp.org>
72380
72381         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
72382         if the compiler does not support C99.
72383
72384 2007-03-25  Bruno Haible  <bruno@clisp.org>
72385
72386         * modules/time (Makefile.am): Ensure all rule action lines start with a
72387         tab.
72388
72389 2007-03-24  Bruno Haible  <bruno@clisp.org>
72390
72391         * modules/tsearch-tests: New file.
72392         * tests/test-tsearch.sh: New file.
72393         * tests/test-tsearch.c: New file, mostly copied from glibc.
72394
72395         * modules/search-tests: New file.
72396         * tests/test-search.c: New file.
72397
72398         * modules/search: New file.
72399         * lib/search_.h: New file, incorporating lib/tsearch.h.
72400         * m4/search_h.m4: New file.
72401         * lib/tsearch.h: Remove file.
72402         * lib/tsearch.c: Include search.h instead of tsearch.h.
72403         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
72404         HAVE_TSEARCH.
72405         * modules/tsearch (Files): Remove lib/tsearch.h.
72406         (Depends-on): Add search.
72407         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
72408         (Include): Change tsearch.h into search.h.
72409
72410 2007-03-24  Bruno Haible  <bruno@clisp.org>
72411
72412         * modules/fpucw: New file.
72413         * lib/fpucw.h: New file.
72414         * lib/frexp.c: Include fpucw.h.
72415         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72416         (FUNC): Use them.
72417         * lib/printf-frexp.c: Include fpucw.h.
72418         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72419         (FUNC): Use them.
72420         * lib/vasnprintf.c: Include fpucw.h.
72421         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
72422         'long double' calculations.
72423         * tests/test-frexpl.c: Include fpucw.h.
72424         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72425         * tests/test-printf-frexpl.c: Include fpucw.h.
72426         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72427         * modules/frexpl (Depends-on): Add fpucw.
72428         * modules/printf-frexpl (Depends-on): Likewise.
72429         * modules/fprintf-posix (Depends-on): Likewise.
72430         * modules/snprintf-posix (Depends-on): Likewise.
72431         * modules/sprintf-posix (Depends-on): Likewise.
72432         * modules/vasnprintf-posix (Depends-on): Likewise.
72433         * modules/vasprintf-posix (Depends-on): Likewise.
72434         * modules/vfprintf-posix (Depends-on): Likewise.
72435         * modules/vsnprintf-posix (Depends-on): Likewise.
72436         * modules/vsprintf-posix (Depends-on): Likewise.
72437         * modules/frexpl-tests (Depends-on): Likewise.
72438         * modules/printf-frexpl-tests (Depends-on): Likewise.
72439
72440 2007-03-24  Bruno Haible  <bruno@clisp.org>
72441
72442         * lib/float+.h: New file.
72443         * lib/isnan.c: Include float+.h.
72444         (SIZE): New macro.
72445         (FUNC): Compare only SIZE bytes of the value.
72446         * lib/vasnprintf.c: Include float+.h.
72447         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
72448         SIZEOF_LDBL or SIZEOF_DBL bytes.
72449         * modules/isnan-nolibm (Files): Add lib/float+.h.
72450         * modules/isnanl-nolibm (Files): Add lib/float+.h.
72451         * modules/isnanl (Files): Add lib/float+.h.
72452         * modules/vasnprintf (Files): Add lib/float+.h.
72453
72454 2007-03-24  Bruno Haible  <bruno@clisp.org>
72455
72456         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
72457         include isnanl-nolibm.h.
72458
72459 2007-03-24  Bruno Haible  <bruno@clisp.org>
72460
72461         * tests/test-read-file.c (main): Don't produce spurious output for
72462         expected situations. Make the test fail if it encountered unexpected
72463         results.
72464
72465 2007-03-24  Bruno Haible  <bruno@clisp.org>
72466
72467         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
72468         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
72469
72470 2007-03-24  Bruno Haible  <bruno@clisp.org>
72471
72472         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
72473
72474 2007-03-24  Bruno Haible  <bruno@clisp.org>
72475
72476         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
72477         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
72478
72479         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
72480         * modules/utf8-ucs4: Turn into a symbolic link to module
72481         unistr/u8-mbtouc.
72482
72483         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
72484         utf8-ucs4-unsafe.
72485         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
72486         unistr/u8-mbtouc-unsafe.
72487
72488         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
72489         * modules/utf16-ucs4: Turn into a symbolic link to module
72490         unistr/u16-mbtouc.
72491
72492         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
72493         utf16-ucs4-unsafe.
72494         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
72495         unistr/u16-mbtouc-unsafe.
72496
72497         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
72498         * modules/ucs4-utf8: Turn into a symbolic link to module
72499         unistr/u8-ubtomb.
72500
72501         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
72502         * modules/ucs4-utf16: Turn into a symbolic link to module
72503         unistr/u16-ubtomb.
72504
72505 2007-03-24  Bruno Haible  <bruno@clisp.org>
72506
72507         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72508         Enable the function only if HAVE_INLINE.
72509         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72510         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72511         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72512         Enable the function only if HAVE_INLINE.
72513         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72514         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72515         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72516         Enable the function only if HAVE_INLINE.
72517         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72518         Enable the function only if HAVE_INLINE.
72519         * modules/utf8-ucs4: Update.
72520         * modules/utf8-ucs4-unsafe: Update.
72521         * modules/utf16-ucs4: Update.
72522         * modules/utf16-ucs4-unsafe: Update.
72523         * modules/ucs4-utf8: Update.
72524         * modules/ucs4-utf16: Update.
72525
72526 2007-03-24  Bruno Haible  <bruno@clisp.org>
72527
72528         * lib/utf8-ucs4.h: Remove file.
72529         * lib/utf8-ucs4-unsafe.h: Remove file.
72530         * lib/utf16-ucs4.h: Remove file.
72531         * lib/utf16-ucs4-unsafe.h: Remove file.
72532         * lib/ucs4-utf8.h: Remove file.
72533         * lib/ucs4-utf16.h: Remove file.
72534         * lib/unistr.h: Include their previous contents.
72535         * m4/utf-ucs4.m4: Remove file.
72536         * m4/ucs4-utf.m4: Remove file.
72537         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72538         (Depends-on): Add unistr/base.
72539         (configure.ac): Remove gl_UTF_UCS4.
72540         (Makefile.am): Update.
72541         (Include): Change to unistr.h.
72542         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72543         (Depends-on): Add unistr/base.
72544         (configure.ac): Remove gl_UTF_UCS4.
72545         (Makefile.am): Update.
72546         (Include): Change to unistr.h.
72547         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72548         (Depends-on): Add unistr/base.
72549         (configure.ac): Remove gl_UTF_UCS4.
72550         (Makefile.am): Update.
72551         (Include): Change to unistr.h.
72552         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
72553         (Depends-on): Add unistr/base.
72554         (configure.ac): Remove gl_UTF_UCS4.
72555         (Makefile.am): Update.
72556         (Include): Change to unistr.h.
72557         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72558         (Depends-on): Add unistr/base.
72559         (configure.ac): Remove gl_UCS4_UTF.
72560         (Makefile.am): Update.
72561         (Include): Change to unistr.h.
72562         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72563         (Depends-on): Add unistr/base.
72564         (configure.ac): Remove gl_UCS4_UTF.
72565         (Makefile.am): Update.
72566         (Include): Change to unistr.h.
72567         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72568         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72569         utf8-ucs4-unsafe.h.
72570         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72571         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72572         utf16-ucs4-unsafe.h.
72573         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72574         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72575         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72576         * lib/unistr/u8-strchr.c: Likewise.
72577         * lib/unistr/u8-strrchr.c: Likewise.
72578         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72579         * lib/unistr/u16-strchr.c: Likewise.
72580         * lib/unistr/u16-strrchr.c: Likewise.
72581         * lib/striconveh.c: Update.
72582         * lib/linebreak.c: Update.
72583
72584 2007-03-24  Bruno Haible  <bruno@clisp.org>
72585
72586         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72587         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72588
72589 2007-03-22  Bruno Haible  <bruno@clisp.org>
72590
72591         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72592
72593 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72594
72595         * MODULES.html.sh (File system functions): New module write-any-file.
72596         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72597         * m4/write-any-file.m4: New files.
72598
72599 2007-03-23  Eric Blake  <ebb9@byu.net>
72600
72601         * gnulib-tool: Rearrange space-tab sequences, since some editors
72602         like to eat them.
72603
72604 2007-03-23  Eric Blake  <ebb9@byu.net>
72605
72606         * lib/version-etc.c (version_etc_va): Update license wording to
72607         be more concise.  Recommended by Richard Stallman.
72608
72609 2007-03-22  Bruno Haible  <bruno@clisp.org>
72610
72611         * lib/poll.c (MSG_PEEK): New fallback definition.
72612
72613 2007-03-22  Bruno Haible  <bruno@clisp.org>
72614
72615         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72616         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72617         (main): Update.
72618         Fixes a compilation error on BeOS.
72619
72620 2007-03-22  Bruno Haible  <bruno@clisp.org>
72621
72622         * modules/frexpl-tests: New file.
72623         * tests/test-frexpl.c: New file.
72624
72625         * modules/frexpl: New file.
72626         * m4/frexpl.m4: New file.
72627         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72628         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72630         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72631         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72632         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72633
72634 2007-03-22  Bruno Haible  <bruno@clisp.org>
72635
72636         * lib/frexpl.c: Share code with lib/frexp.c.
72637         * modules/mathl (Files): Add lib/frexp.c.
72638         (Depends-on): Add isnanl-nolibm.
72639
72640 2007-03-22  Bruno Haible  <bruno@clisp.org>
72641
72642         * modules/printf-frexp (Files): Add m4/frexp.m4.
72643         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72644         only if the found frexp function actually works.
72645
72646 2007-03-22  Bruno Haible  <bruno@clisp.org>
72647
72648         * lib/frexp.c: Remove older implementation that uses divisions.
72649
72650 2007-03-21  Bruno Haible  <bruno@clisp.org>
72651
72652         * modules/frexp-tests: New file.
72653         * tests/test-frexp.c: New file.
72654
72655         * modules/frexp: New file.
72656         * lib/frexp.c: New file.
72657         * m4/frexp.m4: New file.
72658         * lib/math_.h (frexp): New declaration.
72659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72660         REPLACE_FREXP.
72661         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72662
72663 2007-03-21  Bruno Haible  <bruno@clisp.org>
72664
72665         * modules/isnanl-tests: New file.
72666         * tests/test-isnanl.c: New file.
72667
72668         * modules/isnanl: New file.
72669         * lib/isnanl.h: New file.
72670         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72671         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72672         gl_FUNC_ISNANL_WORKS.
72673         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72674         New macros.
72675
72676 2007-03-21  Bruno Haible  <bruno@clisp.org>
72677
72678         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72679         lib/isnanl.h.
72680         (Include): Update.
72681         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72682         * lib/vasnprintf.c: Update.
72683         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72684         tests/test-isnanl.h, remove tests/test-isnanl.c.
72685         (Makefile.am): Update.
72686         * tests/test-isnanl-nolibm.c: New file.
72687         * tests/test-isnanl.h: New file.
72688         * tests/test-isnanl.c: Remove file.
72689
72690 2007-03-21  Jim Meyering  <jim@meyering.net>
72691
72692         When trying to open ".", treat ESTALE like EACCES.
72693         * lib/savewd.c (savewd_save): Resort to forking not just upon
72694         failure with EACCES, but also when errno is ESTALE.
72695
72696 2007-03-20  Bruno Haible  <bruno@clisp.org>
72697
72698         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72699         Needed on AIX 5.1. Reported by Matthew Woehlke.
72700
72701 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72702
72703         Suggestions by Bruno Haible:
72704         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72705         our own.
72706         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72707         * modules/acl (Depends-on): Add gettext.
72708
72709 2007-03-19  Bruno Haible  <bruno@clisp.org>
72710
72711         * modules/iconvme: Remove file.
72712         * lib/iconvme.h: Remove file.
72713         * lib/iconvme.c: Remove file.
72714         * m4/iconvme.m4: Remove file.
72715
72716 2007-03-19  Bruno Haible  <bruno@clisp.org>
72717
72718         * doc/relocatable-maint.texi: Break long shell script line.
72719         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72720
72721 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72722
72723         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72724         handle file_has_acl.
72725         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72726         * lib/acl.c: Move header inclusions and related macro defns into
72727         lib/acl-internal.h.
72728         (S_ISLNK): Remove defn, since that's now done for us.
72729         (file_has_acl): Move to lib/file-has-acl.c.
72730         Call acl_trivial if available.  This is the crucial part of the fix.
72731         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72732         shared within the library.  Rewrite a bit, partly to make it compatible
72733         with the GNU coding style.
72734         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72735         Remove unnecessary double-quotes.
72736         Don't test for acl_to_text; the build will catch that.
72737         Replace acl_entries if it doesn't exist and it is needed.
72738         Check for -lsec and acl_trivial (as used on Solaris 10).
72739         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72740         lib/file-has-acl.c.
72741         (Depends-on): Add sys_stat, for S_ISLNK.
72742
72743 2007-03-19  Ben Pfaff  <blp@gnu.org>
72744
72745         * doc/gnulib.texi: Fix typos.
72746         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72747
72748 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72749
72750         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72751         If size is zero here, buf must be zero.
72752
72753 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72754
72755         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72756         <bruno@clisp.org>.
72757
72758 2007-03-18  Bruno Haible  <bruno@clisp.org>
72759
72760         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72761         Suggested by Eric Blake.
72762
72763 2007-03-18  Ben Pfaff  <blp@gnu.org>
72764
72765         * doc/relocatable.texi: Recommend using as prefix a directory
72766         that does not exist and will never be created.  Based on
72767         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72768         and others.
72769
72770 2007-03-17  Bruno Haible  <bruno@clisp.org>
72771
72772         * lib/fchownat.c: Include lchown.h.
72773
72774 2007-03-17  Bruno Haible  <bruno@clisp.org>
72775
72776         Fix endless loop when the given allocated size was > INT_MAX.
72777         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72778         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72779         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72780         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72781         * lib/sprintf.c (sprintf): Likewise.
72782
72783 2007-03-17  Bruno Haible  <bruno@clisp.org>
72784
72785         * tests/test-argp-2.sh (func_compare): Output a context diff.
72786
72787 2007-03-17  Bruno Haible  <bruno@clisp.org>
72788
72789         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72790         locale's decimal-point character.
72791
72792 2007-03-17  Bruno Haible  <bruno@clisp.org>
72793
72794         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72795         before comparing it. Needed because on some platforms (e.g. x86) a
72796         'long double' occupies less bytes than sizeof (long double).
72797
72798 2007-03-17  Bruno Haible  <bruno@clisp.org>
72799
72800         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72801         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72802         * tests/test-getaddrinfo.c (simple): Likewise.
72803         * tests/test-read-file.c (main): Likewise.
72804
72805 2007-03-17  Bruno Haible  <bruno@clisp.org>
72806
72807         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72808
72809 2007-03-17  Bruno Haible  <bruno@clisp.org>
72810
72811         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72812         unused variable.
72813
72814 2007-03-17  Bruno Haible  <bruno@clisp.org>
72815
72816         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72817         * tests/test-c-strncasecmp.c: Likewise.
72818
72819 2007-03-17  Bruno Haible  <bruno@clisp.org>
72820
72821         * modules/stdlib (Depends-on): Add unistd.
72822         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72823         Needed for MacOS X 10.3.
72824
72825 2007-03-17  Bruno Haible  <bruno@clisp.org>
72826
72827         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72828
72829 2007-03-17  Bruno Haible  <bruno@clisp.org>
72830
72831         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72832
72833 2007-03-17  Bruno Haible  <bruno@clisp.org>
72834
72835         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72836         to reflect files copied from gnulib (with or without modifications).
72837         Suggested by Jim Meyering.
72838
72839 2007-03-17  Eric Blake  <ebb9@byu.net>
72840
72841         * NEWS: Document stdlib change from 2007-02-18.
72842
72843 2007-03-17  Jim Meyering  <jim@meyering.net>
72844
72845         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72846         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72847         someone uses a name containing shell meta-characters.
72848         Reported by Alfred M. Szmidt.
72849
72850         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72851
72852 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72853
72854         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72855         and copy gettext configuration files only if configure.ac contains
72856         a use of AM_GNU_GETTEXT_VERSION.
72857
72858 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72859
72860         * build-aux/bootstrap (gnulib_name): New variable.
72861         (gnulib_tool_options): Use it.
72862
72863 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72864
72865         * tests/test-des.c: Use new namespace.
72866
72867 2007-03-15  Bruno Haible  <bruno@clisp.org>
72868
72869         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72870         Reported by James Youngman <jay@gnu.org>.
72871
72872 2007-03-15  Bruno Haible  <bruno@clisp.org>
72873
72874         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72875         declared prototype. Needed with cc on OSF/1 5.1.
72876
72877 2007-03-15  Bruno Haible  <bruno@clisp.org>
72878
72879         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72880         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72881         (struct gl_list_implementation): Add dispose_fn argument to the
72882         'create_empty', 'create' methods.
72883         (struct gl_list_impl_base): Add field 'dispose_fn'.
72884         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72885         argument.
72886         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72887         dispose_fn argument.
72888         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72889         dispose_fn on the dropped values.
72890         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72891         dispose_fn argument.
72892         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72893         dropped values.
72894         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72895         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72896         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72897         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72898         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72899         argument.
72900         (gl_tree_list_free): Call dispose_fn on the dropped values.
72901         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72902         the dropped values.
72903         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72904         Add dispose_fn argument.
72905         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72906         Call dispose_fn on the dropped values.
72907         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72908         Add dispose_fn argument.
72909         (gl_sublist_create): Initialize the 'dispose_fn' field.
72910         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72911         * tests/test-array_list.c (main): Update.
72912         * tests/test-carray_list.c (main): Update.
72913         * tests/test-avltree_list.c (main): Update.
72914         * tests/test-rbtree_list.c (main): Update.
72915         * tests/test-avltreehash_list.c (main): Update.
72916         * tests/test-rbtreehash_list.c (main): Update.
72917         * tests/test-linked_list.c (main): Update.
72918         * tests/test-linkedhash_list.c (main): Update.
72919         * tests/test-array_oset.c (main): Update.
72920
72921 2007-03-15  Bruno Haible  <bruno@clisp.org>
72922
72923         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72924         (gl_oset_create_empty): Add dispose_fn argument.
72925         (struct gl_oset_implementation): Add dispose_fn argument to
72926         'create_empty' method.
72927         (struct gl_oset_impl_base): Add dispose_fn field.
72928         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72929         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72930         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72931         values.
72932         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72933         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72934         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72935         dropped value.
72936         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72937         dropped value.
72938         * tests/test-array_oset.c (main): Update.
72939         * tests/test-avltree_oset.c (main): Update.
72940         * tests/test-rbtree_oset.c (main): Update.
72941         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72942
72943 2007-03-13  Bruno Haible  <bruno@clisp.org>
72944
72945         * tests/test-stdbool.c (i): Update after last patch.
72946
72947 2007-03-12  Bruno Haible  <bruno@clisp.org>
72948
72949         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72950         the iswprint macro. Needed on Solaris 2.5.1.
72951
72952 2007-03-12  Bruno Haible  <bruno@clisp.org>
72953
72954         * tests/test-printf-frexp.c (main): Declare x as volatile.
72955
72956 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72957
72958         * doc/gnulib.texi (Build robot for gnulib): New section.
72959
72960 2007-03-12  Jim Meyering  <jim@meyering.net>
72961
72962         * build-aux/bootstrap: New file.
72963         * build-aux/bootstrap.conf: New file, from coreutils.
72964
72965 2007-03-11  Bruno Haible  <bruno@clisp.org>
72966
72967         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72968
72969 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72970
72971         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72972         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72973         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72974
72975 2007-03-11  Bruno Haible  <bruno@clisp.org>
72976
72977         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72978         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72979
72980 2007-03-11  Bruno Haible  <bruno@clisp.org>
72981
72982         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72983         formula. Needed for SunPRO C 5.0.
72984
72985 2007-03-11  Bruno Haible  <bruno@clisp.org>
72986
72987         * modules/long-options (Depends-on): Add getopt.
72988
72989 2007-03-11  Bruno Haible  <bruno@clisp.org>
72990
72991         * modules/modechange (Depends-on): Add stdbool.
72992
72993 2007-03-11  Bruno Haible  <bruno@clisp.org>
72994
72995         * modules/i-ring (Depends-on): Add stdbool.
72996
72997 2007-03-11  Bruno Haible  <bruno@clisp.org>
72998
72999         * modules/gc-des (Depends-on): Add stdbool.
73000
73001 2007-03-11  Bruno Haible  <bruno@clisp.org>
73002
73003         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
73004
73005 2007-03-11  Bruno Haible  <bruno@clisp.org>
73006
73007         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
73008
73009 2007-03-11  Bruno Haible  <bruno@clisp.org>
73010
73011         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
73012
73013 2007-03-11  Bruno Haible  <bruno@clisp.org>
73014
73015         * lib/vasnprintf.c (sprintf): Undefine.
73016
73017 2007-03-11  Bruno Haible  <bruno@clisp.org>
73018
73019         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
73020         initializers in SunPRO C and Compaq C compilers.
73021
73022 2007-03-11  Bruno Haible  <bruno@clisp.org>
73023
73024         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
73025         decrementing code ANSI C compliant.
73026
73027 2007-03-11  Bruno Haible  <bruno@clisp.org>
73028
73029         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
73030         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
73031
73032 2007-03-11  Bruno Haible  <bruno@clisp.org>
73033
73034         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
73035         <stdbool.h> substitute doesn't pass.
73036
73037 2007-03-11  Bruno Haible  <bruno@clisp.org>
73038
73039         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
73040
73041 2007-03-11  Bruno Haible  <bruno@clisp.org>
73042
73043         * gnulib-tool (func_create_megatestdir): Create also an autobuild
73044         script, for submission to autobuild.josefsson.org.
73045
73046 2007-03-10  Bruno Haible  <bruno@clisp.org>
73047
73048         * modules/canonicalize-lgpl-tests: New file.
73049         * tests/test-canonicalize-lgpl.sh: New file.
73050         * tests/test-canonicalize-lgpl.c: New file.
73051
73052         * modules/c-strcase-tests: New file.
73053         * tests/test-c-strcase.sh: New file.
73054         * tests/test-c-strcasecmp.c: New file.
73055         * tests/test-c-strncasecmp.c: New file.
73056
73057         * modules/atexit-tests: New file.
73058         * tests/test-atexit.sh: New file.
73059         * tests/test-atexit.c: New file.
73060
73061 2007-03-10  Bruno Haible  <bruno@clisp.org>
73062
73063         * tests/test-binary-io.sh: Use temporary filenames that are not so
73064         likely to clash with those of other tests (in a parallel make).
73065         * tests/test-binary-io.c: Likewise.
73066
73067 2007-03-10  Bruno Haible  <bruno@clisp.org>
73068
73069         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
73070         fallback; use #error instead.
73071         Suggested by Simon Josefsson.
73072
73073 2007-03-10  Bruno Haible  <bruno@clisp.org>
73074
73075         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
73076         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
73077         first and the last.
73078
73079 2007-03-10  Bruno Haible  <bruno@clisp.org>
73080
73081         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
73082
73083 2007-03-10  Bruno Haible  <bruno@clisp.org>
73084
73085         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
73086         "make distcheck".
73087         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
73088         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
73089         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
73090
73091 2007-03-10  Bruno Haible  <bruno@clisp.org>
73092
73093         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
73094         variable.
73095         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
73096         variable.
73097
73098 2007-03-09  Eric Blake  <ebb9@byu.net>
73099         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
73100
73101         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
73102         types are not being provided by gnulib.
73103         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
73104         types are supported.
73105
73106 2007-03-10  Bruno Haible  <bruno@clisp.org>
73107
73108         * lib/stdio_.h (__attribute__): New macro.
73109         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
73110         vsprintf): Specify __attribute__ __format__ for GCC.
73111         Suggested by Eric Blake.
73112
73113 2007-03-09  Bruno Haible  <bruno@clisp.org>
73114
73115         * modules/printf-posix-tests: New file.
73116         * tests/test-printf-posix.sh: New file.
73117         * tests/test-printf-posix.c: New file.
73118
73119         * modules/printf-posix: New file.
73120         * lib/printf.c: New file.
73121         * m4/printf-posix-rpl.m4: New file.
73122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
73123         REPLACE_PRINTF.
73124         * lib/stdio_.h (printf): New declaration.
73125         (format, __format__, ____printf____, ____scanf____, ____strftime____,
73126         ____strfmon____): New macros.
73127         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
73128         REPLACE_PRINTF.
73129
73130 2007-03-09  Bruno Haible  <bruno@clisp.org>
73131
73132         * tests/test-vasnprintf-posix2.sh: New file.
73133         * tests/test-vasnprintf-posix2.c: New file.
73134         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
73135         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
73136         (Makefile.am): Activate test-vasnprintf-posix2.sh.
73137
73138         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
73139         a locale dependent decimal point, rather than always '.'.
73140
73141 2007-03-09  Eric Blake  <ebb9@byu.net>
73142
73143         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
73144         spite of platforms like Tandem/NSK that define it to -1.
73145
73146 2007-03-08  Bruno Haible  <bruno@clisp.org>
73147
73148         * modules/vprintf-posix-tests: New file.
73149         * tests/test-vprintf-posix.sh: New file.
73150         * tests/test-vprintf-posix.c: New file.
73151         * tests/test-printf-posix.h: New file.
73152
73153         * modules/vprintf-posix: New file.
73154         * lib/vprintf.c: New file.
73155         * m4/vprintf-posix.m4: New file.
73156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
73157         REPLACE_VPRINTF.
73158         * lib/stdio_.h (vprintf): New declaration.
73159         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
73160         REPLACE_VPRINTF.
73161
73162 2007-03-08  Bruno Haible  <bruno@clisp.org>
73163
73164         * modules/fprintf-posix-tests: New file.
73165         * tests/test-fprintf-posix.sh: New file.
73166         * tests/test-fprintf-posix.c: New file.
73167
73168         * modules/fprintf-posix: New file.
73169         * lib/fprintf.c: New file.
73170         * m4/fprintf-posix.m4: New file.
73171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
73172         REPLACE_FPRINTF.
73173         * lib/stdio_.h (fprintf): New declaration.
73174         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
73175         REPLACE_FPRINTF.
73176
73177 2007-03-08  Bruno Haible  <bruno@clisp.org>
73178
73179         * modules/vfprintf-posix-tests: New file.
73180         * tests/test-vfprintf-posix.sh: New file.
73181         * tests/test-vfprintf-posix.c: New file.
73182         * tests/test-fprintf-posix.h: New file.
73183         * tests/test-fprintf-posix.out: New file.
73184
73185         * modules/vfprintf-posix: New file.
73186         * lib/vfprintf.c: New file.
73187         * m4/vfprintf-posix.m4: New file.
73188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
73189         REPLACE_VFPRINTF.
73190         * lib/stdio_.h (vfprintf): New declaration.
73191         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
73192         REPLACE_VFPRINTF.
73193
73194 2007-03-08  Bruno Haible  <bruno@clisp.org>
73195
73196         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
73197
73198 2007-03-08  Bruno Haible  <bruno@clisp.org>
73199
73200         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
73201         instead of 'expr' invocations.
73202         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
73203         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
73204         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
73205         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
73206         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
73207         Suggested by Paul Eggert.
73208
73209 2007-03-08  Bruno Haible  <bruno@clisp.org>
73210
73211         * modules/fseterr-tests: New file.
73212         * tests/test-fseterr.c: New file.
73213
73214         * modules/fseterr: New file.
73215         * lib/fseterr.h: New file.
73216         * lib/fseterr.c: New file.
73217
73218 2007-03-08  Bruno Haible  <bruno@clisp.org>
73219
73220         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
73221         * lib/getopt_.h: Likewise.
73222         * lib/mbswidth.h: Likewise.
73223         * lib/setenv.h: Likewise.
73224         * lib/vasnprintf.h: Likewise.
73225         * lib/vasprintf.h: Likewise.
73226         * lib/verror.h: Likewise.
73227         * lib/xsetenv.h: Likewise.
73228         * lib/xvasprintf.h: Likewise.
73229
73230 2007-03-08  Jim Meyering  <jim@meyering.net>
73231
73232         * users.txt: Add parted.
73233
73234         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
73235
73236 2007-03-07  Bruno Haible  <bruno@clisp.org>
73237
73238         * m4/printf.m4: Make the shell script snippets copy&pastable.
73239
73240 2007-03-02  Bruno Haible  <bruno@clisp.org>
73241
73242         * lib/netinet_in_.h: New file.
73243         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
73244         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
73245         * modules/netinet_in (Files): Add lib/netinet_in_.h.
73246         (Depends-on): Add absolute-header.
73247         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
73248         into netinet/in.h.
73249
73250 2007-03-03  Bruno Haible  <bruno@clisp.org>
73251
73252         * lib/sys_select_.h: New file.
73253         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
73254         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
73255         * modules/sys_select (Files): Add lib/sys_select_.h.
73256         (Depends-on): Add absolute-header.
73257         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
73258         into sys/select.h.
73259
73260 2007-03-02  Bruno Haible  <bruno@clisp.org>
73261
73262         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
73263         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
73264         values.
73265         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
73266         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
73267         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
73268         * modules/sys_socket (Depends-on): Add absolute-header.
73269         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
73270         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
73271         (Include): Remove requirement of inclusion of <sys/types.h>.
73272
73273 2007-03-02  Bruno Haible  <bruno@clisp.org>
73274
73275         * lib/byteswap_.h (bswap_32): Fix formula.
73276
73277 2007-03-06  Bruno Haible  <bruno@clisp.org>
73278
73279         * modules/sprintf-posix-tests: New file.
73280         * tests/test-sprintf-posix.c: New file.
73281
73282         * modules/sprintf-posix: New file.
73283         * lib/sprintf.c: New file.
73284         * m4/sprintf-posix.m4: New file.
73285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
73286         REPLACE_SPRINTF.
73287         * lib/stdio_.h (sprintf): New declaration.
73288         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
73289         REPLACE_SPRINTF.
73290
73291 2007-03-06  Bruno Haible  <bruno@clisp.org>
73292
73293         * modules/vsprintf-posix-tests: New file.
73294         * tests/test-vsprintf-posix.c: New file.
73295         * tests/test-sprintf-posix.h: New file.
73296
73297         * modules/vsprintf-posix: New file.
73298         * lib/vsprintf.c: New file.
73299         * m4/vsprintf-posix.m4: New file.
73300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
73301         REPLACE_VSPRINTF.
73302         * lib/stdio_.h (vsprintf): New declaration.
73303         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
73304         REPLACE_VSPRINTF.
73305
73306 2007-03-06  Bruno Haible  <bruno@clisp.org>
73307
73308         * modules/vsnprintf (Depend-on): Remove minmax.
73309
73310 2007-03-06  Bruno Haible  <bruno@clisp.org>
73311
73312         * modules/snprintf-posix-tests: New file.
73313         * tests/test-snprintf-posix.c: New file.
73314
73315         * modules/snprintf-posix: New file.
73316         * m4/snprintf-posix.m4: New file.
73317         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
73318         gl_FUNC_SNPRINTF.
73319         (gl_FUNC_SNPRINTF): Invoke it.
73320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
73321         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
73322         is set.
73323         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
73324
73325 2007-03-06  Bruno Haible  <bruno@clisp.org>
73326
73327         * modules/vsnprintf-posix-tests: New file.
73328         * tests/test-vsnprintf-posix.c: New file.
73329         * tests/test-snprintf-posix.h: New file.
73330
73331         * modules/vsnprintf-posix: New file.
73332         * m4/vsnprintf-posix.m4: New file.
73333         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
73334         gl_FUNC_VSNPRINTF.
73335         (gl_FUNC_VSNPRINTF): Invoke it.
73336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
73337         * lib/stdio_.h (vsnprintf): Define as a replacement if
73338         REPLACE_VSNPRINTF is set.
73339         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
73340
73341 2007-03-06  Bruno Haible  <bruno@clisp.org>
73342
73343         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
73344         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
73345
73346 2007-03-06  Bruno Haible  <bruno@clisp.org>
73347
73348         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
73349         (asinl): Declare also if HAVE_DECL_ASINL is set.
73350         (atanl): Declare also if HAVE_DECL_ATANL is set.
73351         (ceill): Declare also if HAVE_DECL_CEILL is set.
73352         (cosl): Declare also if HAVE_DECL_COSL is set.
73353         (expl): Declare also if HAVE_DECL_EXPL is set.
73354         (floorl): Declare also if HAVE_DECL_FLOORL is set.
73355         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
73356         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
73357         (logl): Declare also if HAVE_DECL_LOGL is set.
73358         (sinl): Declare also if HAVE_DECL_SINL is set.
73359         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
73360         (tanl): Declare also if HAVE_DECL_TANL is set.
73361         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
73362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
73363         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
73364         declaration of frexpl, ldexpl.
73365         * modules/printf-frexpl (Depends-on): Add math.
73366         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
73367
73368 2007-03-05  Bruno Haible  <bruno@clisp.org>
73369
73370         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
73371         frexpl and ldexpl are declared.
73372         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
73373
73374 2007-03-05  Bruno Haible  <bruno@clisp.org>
73375
73376         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
73377         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
73378
73379 2007-03-05  Bruno Haible  <bruno@clisp.org>
73380
73381         * lib/stdio_.h: Include <stddef.h>.
73382
73383 2007-03-05  Bruno Haible  <bruno@clisp.org>
73384
73385         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
73386
73387 2007-03-05  Bruno Haible  <bruno@clisp.org>
73388
73389         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
73390         NetBSD 4, from Ralf Wildenhues.
73391
73392 2007-03-04  Bruno Haible  <bruno@clisp.org>
73393
73394         * lib/vasprintf.h: Update #if logic for the case when the functions
73395         exist but are overridden.
73396
73397 2007-03-04  Bruno Haible  <bruno@clisp.org>
73398
73399         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
73400         implementations: glibc-2.4 and MacOS X 10.3.
73401         * tests/test-vasnprintf-posix.c (test_function): Test also the case
73402         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
73403         * tests/test-vasprintf-posix.c (test_function): Likewise.
73404
73405 2007-03-04  Bruno Haible  <bruno@clisp.org>
73406
73407         * modules/vasprintf-posix-tests: New file.
73408         * tests/test-vasprintf-posix.c: New file.
73409
73410         * modules/vasprintf-posix: New file.
73411         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
73412         defined.
73413         * m4/vasprintf-posix.m4: New file.
73414         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
73415         gl_FUNC_VASPRINTF.
73416         (gl_FUNC_VASPRINTF): Invoke it.
73417         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
73418         here.
73419         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
73420
73421 2007-03-04  Bruno Haible  <bruno@clisp.org>
73422
73423         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
73424         REPLACE_GETTIMEOFDAY.
73425         * modules/sys_time (Makefile.am): Likewise.
73426         * m4/sys_time_h.m4: Likewise.
73427         * m4/gettimeofday.m4: Likewise.
73428
73429 2007-03-04  Bruno Haible  <bruno@clisp.org>
73430
73431         * modules/vasnprintf-posix-tests: New file.
73432         * tests/test-vasnprintf-posix.c: New file.
73433
73434         * modules/vasnprintf-posix: New file.
73435         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
73436         printf-frexpl.h.
73437         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
73438         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
73439         REPLACE_VASNPRINTF is defined.
73440         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
73441         gl_FUNC_VASNPRINTF.
73442         (gl_FUNC_VASNPRINTF): Invoke it.
73443         * m4/vasnprintf-posix.m4: New file.
73444         * m4/printf.m4: New file.
73445
73446 2007-03-04  Bruno Haible  <bruno@clisp.org>
73447
73448         Compile progreloc.c only if --enable-relocatable is specified.
73449         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
73450         if --enable-relocatable was specified.
73451         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
73452         lib_SOURCES.
73453
73454 2007-03-04  Jim Meyering  <jim@meyering.net>
73455
73456         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
73457         Use it consistently, rather than enumerating errno constants.
73458
73459 2007-03-04  Bruno Haible  <bruno@clisp.org>
73460
73461         * modules/xvasprintf-tests: New file.
73462         * tests/test-xvasprintf.c: New file.
73463
73464         * modules/vasprintf-tests: New file.
73465         * tests/test-vasprintf.c: New file.
73466
73467         * modules/vasnprintf-tests: New file.
73468         * tests/test-vasnprintf.c: New file.
73469
73470         * modules/vsnprintf-tests: New file.
73471         * tests/test-vsnprintf.c: New file.
73472
73473         * modules/snprintf-tests: New file.
73474         * tests/test-snprintf.c: New file.
73475
73476 2007-03-04  Bruno Haible  <bruno@clisp.org>
73477
73478         Compile relocatable.c only if --enable-relocatable is specified.
73479         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73480         gl_RELOCATABLE_LIBRARY.
73481         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
73482         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
73483         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
73484         gl_RELOCATABLE_LIBRARY.
73485         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
73486         (Makefile.am): Remove lib_SOURCES.
73487         * modules/relocatable-lib-lgpl (configure.ac): Invoke
73488         gl_RELOCATABLE_LIBRARY.
73489         (Makefile.am): Remove lib_SOURCES.
73490         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
73491         always.
73492         * modules/relocatable-prog-wrapper (configure.ac): Invoke
73493         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
73494
73495 2007-03-04  Bruno Haible  <bruno@clisp.org>
73496
73497         * modules/argmatch-tests: New file.
73498         * tests/test-argmatch.c: New file.
73499
73500         * tests/test-allocsa.c (main): Halve the number of loop runs.
73501
73502         * modules/alloca-opt-tests: New file.
73503         * tests/test-alloca-opt.c: New file.
73504
73505 2007-03-04  Jim Meyering  <jim@meyering.net>
73506
73507         Work around difference between Linux ACLs and Solaris 10 ZFS.
73508         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73509         for EINVAL.
73510
73511 2007-03-03  Bruno Haible  <bruno@clisp.org>
73512
73513         * modules/relocatable-prog (Depends-on): Add back progreloc's
73514         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73515
73516 2007-03-03  Bruno Haible  <bruno@clisp.org>
73517
73518         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73519         * modules/relocatable-lib: New file.
73520
73521 2007-03-03  Bruno Haible  <bruno@clisp.org>
73522
73523         * modules/relocatable-prog: Renamed from modules/relocatable.
73524         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73525
73526 2007-03-03  Bruno Haible  <bruno@clisp.org>
73527
73528         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73529         m4/relocatable-lib.m4.
73530         (Depends-on): Remove 'relocatable'.
73531         (configure.ac): Add gl_RELOCATABLE_NOP.
73532
73533 2007-03-03  Bruno Haible  <bruno@clisp.org>
73534
73535         * modules/relocatable-prog-wrapper: New file.
73536         * modules/relocatable (Depends-on): Add it. Remove all other
73537         dependencies except progname.
73538         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73539
73540         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73541         (gl_FUNC_STRERROR): Nop.
73542         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73543
73544         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73545         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73546
73547         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73548         (gl_FUNC_READLINK): Update.
73549
73550         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73551
73552 2007-03-03  Bruno Haible  <bruno@clisp.org>
73553
73554         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73555         * modules/xreadlink (Depends-on): Add unistd.
73556         * modules/xreadlink-with-size (Depends-on): Likewise.
73557
73558 2007-03-03  Bruno Haible  <bruno@clisp.org>
73559
73560         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73561         extracted from gt_FUNC_SETENV.
73562         (gt_FUNC_SETENV): Remove macro.
73563         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73564         remove gt_FUNC_SETENV.
73565
73566 2007-03-03  Bruno Haible  <bruno@clisp.org>
73567
73568         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73569         ENABLE_RELOCATABLE here.
73570         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73571
73572 2007-03-03  Bruno Haible  <bruno@clisp.org>
73573
73574         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73575         * tests/test-rbtreehash_list.c: Include progname.h.
73576         (main): Call set_program_name.
73577
73578         * modules/rbtree-oset-tests (Depends-on): Add progname.
73579         * tests/test-rbtree_oset.c: Include progname.h.
73580         (main): Call set_program_name.
73581
73582         * modules/rbtree-list-tests (Depends-on): Add progname.
73583         * tests/test-rbtree_list.c: Include progname.h.
73584         (main): Call set_program_name.
73585
73586         * modules/linked-list-tests (Depends-on): Add progname.
73587         * tests/test-linked_list.c: Include progname.h.
73588         (main): Call set_program_name.
73589
73590 2007-03-03  Bruno Haible  <bruno@clisp.org>
73591
73592         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73593         All uses of __restrict changed to _Restrict_.
73594         * lib/glob_.h (__restrict): Remove macro.
73595
73596 2007-03-02  Bruno Haible  <bruno@clisp.org>
73597
73598         * modules/gettext (configure.ac): Require gettext infrastructure
73599         from version 0.16.1.
73600
73601 2007-03-02  Bruno Haible  <bruno@clisp.org>
73602
73603         * modules/linkedhash-list-tests (Depends-on): Add progname.
73604         * tests/test-linkedhash_list.c: Include progname.h.
73605         (main): Call set_program_name.
73606
73607         * modules/carray-list-tests (Depends-on): Add progname.
73608         * tests/test-carray_list.c: Include progname.h.
73609         (main): Call set_program_name.
73610
73611         * modules/avltreehash-list-tests (Depends-on): Add progname.
73612         * tests/test-avltreehash_list.c: Include progname.h.
73613         (main): Call set_program_name.
73614
73615         * modules/avltree-oset-tests (Depends-on): Add progname.
73616         * tests/test-avltree_oset.c: Include progname.h.
73617         (main): Call set_program_name.
73618
73619         * modules/avltree-list-tests (Depends-on): Add progname.
73620         * tests/test-avltree_list.c: Include progname.h.
73621         (main): Call set_program_name.
73622
73623         * modules/array-oset-tests (Depends-on): Add progname.
73624         * tests/test-array_oset.c: Include progname.h.
73625         (main): Call set_program_name.
73626
73627         * modules/array-list-tests (Depends-on): Add progname.
73628         * tests/test-array_list.c: Include progname.h.
73629         (main): Call set_program_name.
73630
73631         * modules/argp-tests (Depends-on): Add progname.
73632         * tests/test-argp.c: Include argp.h first. Include progname.h.
73633         (main): Call set_program_name.
73634
73635 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73636
73637         * doc/gnulib-tool.texi (Initial import): Reword description of
73638         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73639         limited effect even if defined after the first system include.
73640
73641 2007-03-01  Bruno Haible  <bruno@clisp.org>
73642
73643         * build-aux/config.libpath: Update to libtool-1.5.22.
73644         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73645
73646 2007-03-01  Bruno Haible  <bruno@clisp.org>
73647
73648         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73649         foo_CFLAGS.
73650         Reported by Ralf Wildenhues.
73651
73652 2007-03-01  Bruno Haible  <bruno@clisp.org>
73653
73654         * build-aux/install-reloc: Remove object files left over by some
73655         compilers.
73656         Reported by Ralf Wildenhues.
73657
73658 2007-03-01  Bruno Haible  <bruno@clisp.org>
73659
73660         * build-aux/install-reloc: Break long lines.
73661
73662 2007-03-01  Bruno Haible  <bruno@clisp.org>
73663
73664         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73665         Reported by Ralf Wildenhues.
73666
73667 2007-03-01  Bruno Haible  <bruno@clisp.org>
73668
73669         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73670         include ordering constraints.
73671
73672 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73673
73674         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73675         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73676         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73677         as another example.
73678         * lib/time_.h: Fix misspelling.
73679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73680         Require gl_HEADER_TIME_H_DEFAULTS.
73681         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73682         * m4/time_r.m4 (gl_TIME_R): Likewise.
73683         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73684
73685 2007-03-01  Bruno Haible  <bruno@clisp.org>
73686
73687         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73688         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73689
73690 2007-03-01  Jim Meyering  <jim@meyering.net>
73691
73692         * modules/xreadlink (Maintainer): Add my name.
73693         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73694
73695 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73696             Bruno Haible  <bruno@clisp.org>
73697
73698         * build-aux/install-reloc: Compile also c-ctype.c.
73699         * build-aux/relocatable.sh.in: New file.
73700         * doc/relocatable.texi: New file.
73701         * doc/relocatable-maint.texi: New file.
73702         * doc/gnulib.texi: Include relocatable-maint.texi.
73703         * lib/progreloc.c: Include unistd.h unconditionally.
73704         * lib/relocwrapper.c: Include unistd.h unconditionally.
73705         Include c-ctype.h.
73706         (add_dotbin): Use c_tolower.
73707         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73708         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73709         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73710         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73711         to m4/relocatable-lib.m4.
73712         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73713         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73714         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73715         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73716         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73717         * modules/relocatable: New file.
73718         * modules/relocatable-lib: New file.
73719         * modules/relocatable-script: New file.
73720
73721 2007-02-28  Bruno Haible  <bruno@clisp.org>
73722
73723         Import --enable-relocatable infrastructure.
73724         * build-aux/config.libpath: New file, from GNU gettext.
73725         * build-aux/install-reloc: New file, from GNU gettext.
73726         * build-aux/reloc-ldflags: New file, from GNU gettext.
73727         * lib/relocatable.h: New file, from GNU gettext.
73728         * lib/relocatable.c: New file, from GNU gettext.
73729         * lib/relocwrapper.c: New file, from GNU gettext.
73730         * m4/relocatable.m4: New file, from GNU gettext.
73731
73732 2007-02-28  Bruno Haible  <bruno@clisp.org>
73733
73734         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73735
73736         * modules/xreadlink: New file, from GNU gettext with modifications.
73737         * lib/xreadlink.c: New file, from GNU gettext.
73738         * lib/xreadlink.h: Add comments.
73739         (xreadlink): New declaration.
73740
73741         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73742         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73743         lib/xreadlink-with-size.c.
73744         (configure.ac): Remove gl_XREADLINK invocation.
73745         (Makefile.am): Augment lib_SOURCES.
73746         * m4/xreadlink.m4: Remove file.
73747         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73748         (xreadlink_with_size): Renamed from xreadink.
73749         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73750         * modules/canonicalize (Depends-on): Replace xreadlink with
73751         xreadlink-with-size.
73752         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73753
73754 2007-02-25  Jim Meyering  <jim@meyering.net>
73755
73756         * build-aux/announce-gen: When complaining about excess arguments,
73757         list them.
73758
73759 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73760
73761         * README: Document signed integer overflow situation more
73762         accurately.
73763
73764 2007-02-25  Bruno Haible  <bruno@clisp.org>
73765
73766         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73767         'a' or 'A' conversion.
73768
73769 2007-02-25  Bruno Haible  <bruno@clisp.org>
73770
73771         * modules/filename: Renamed from modules/pathname.
73772         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73773         lib/concatpath.c with lib/concat-filename.c.
73774         (Makefile.am): Update.
73775         (Include): Replace pathname.h with filename.h.
73776         * lib/filename.h: Renamed from lib/pathname.h.
73777         (concatenated_filename): Renamed from concatenated_pathname.
73778         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73779         (concatenated_filename): Renamed from concatenated_pathname.
73780         * lib/findprog.c: Include filename.h instead of pathname.h.
73781         (find_in_path): Update.
73782         * lib/javacomp.c: Include filename.h instead of pathname.h.
73783         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73784         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73785         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73786         is_oldgcj_14_13_usable, is_javac_usable): Update.
73787         * lib/javaexec.c: Include filename.h instead of pathname.h.
73788         (execute_java_class): Update.
73789         * modules/findprog: Update.
73790         * modules/javacomp: Update.
73791         * modules/javaexec: Update.
73792         * MODULES.html.sh (File system functions): Add 'filename', remove
73793         'pathname'.
73794
73795 2007-02-25  Bruno Haible  <bruno@clisp.org>
73796
73797         * modules/printf-frexpl-tests: New file.
73798         * tests/test-printf-frexpl.c: New file.
73799
73800         * modules/printf-frexpl: New file.
73801         * lib/printf-frexpl.h: New file.
73802         * lib/printf-frexpl.c: New file.
73803         * m4/printf-frexpl.m4: New file.
73804
73805 2007-02-25  Bruno Haible  <bruno@clisp.org>
73806
73807         * modules/printf-frexp-tests: New file.
73808         * tests/test-printf-frexp.c: New file.
73809
73810         * modules/printf-frexp: New file.
73811         * lib/printf-frexp.h: New file.
73812         * lib/printf-frexp.c: New file.
73813         * m4/printf-frexp.m4: New file.
73814
73815 2007-02-25  Bruno Haible  <bruno@clisp.org>
73816
73817         Assume automake >= 1.10 for the tests.
73818         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73819         * modules/arctwo-tests: Likewise.
73820         * modules/argp-tests: Likewise.
73821         * modules/avltree-list-tests: Likewise.
73822         * modules/avltree-oset-tests: Likewise.
73823         * modules/avltreehash-list-tests: Likewise.
73824         * modules/carray-list-tests: Likewise.
73825         * modules/crc-tests: Likewise.
73826         * modules/des-tests: Likewise.
73827         * modules/gc-arcfour-tests: Likewise.
73828         * modules/gc-arctwo-tests: Likewise.
73829         * modules/gc-des-tests: Likewise.
73830         * modules/gc-hmac-md5-tests: Likewise.
73831         * modules/gc-hmac-sha1-tests: Likewise.
73832         * modules/gc-md2-tests: Likewise.
73833         * modules/gc-md4-tests: Likewise.
73834         * modules/gc-md5-tests: Likewise.
73835         * modules/gc-pbkdf2-sha1-tests: Likewise.
73836         * modules/gc-rijndael-tests: Likewise.
73837         * modules/gc-sha1-tests: Likewise.
73838         * modules/gc-tests: Likewise.
73839         * modules/getaddrinfo-tests: Likewise.
73840         * modules/hmac-md5-tests: Likewise.
73841         * modules/hmac-sha1-tests: Likewise.
73842         * modules/linked-list-tests: Likewise.
73843         * modules/linkedhash-list-tests: Likewise.
73844         * modules/lock-tests: Likewise.
73845         * modules/md2-tests: Likewise.
73846         * modules/md4-tests: Likewise.
73847         * modules/md5-tests: Likewise.
73848         * modules/rbtree-list-tests: Likewise.
73849         * modules/rbtree-oset-tests: Likewise.
73850         * modules/rbtreehash-list-tests: Likewise.
73851         * modules/read-file-tests: Likewise.
73852         * modules/rijndael-tests: Likewise.
73853         * modules/stdint-tests: Likewise.
73854         * modules/tls-tests: Likewise.
73855
73856 2007-02-24  Bruno Haible  <bruno@clisp.org>
73857
73858         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73859         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73860         function; instead check whether isnan with a double argument links.
73861         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73862         function; instead check whether isnan with a 'long double' argument
73863         links.
73864         Reported by Eric Blake <ebb9@byu.net>.
73865
73866 2007-02-24  Bruno Haible  <bruno@clisp.org>
73867
73868         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73869         defined.
73870         * lib/isnanl.c: Remove all code. Just include isnan.c.
73871         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73872
73873 2007-02-25  Jim Meyering  <jim@meyering.net>
73874
73875         Avoid conflicting types for 'unsetenv' on FreeBSD.
73876         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73877         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73878         in stdlib.h.
73879
73880 2007-02-24  Bruno Haible  <bruno@clisp.org>
73881
73882         * modules/isnanl-nolibm-tests: New file.
73883         * tests/test-isnanl.c: New file.
73884
73885         * modules/isnanl-nolibm: New file.
73886         * lib/isnanl.h: New file.
73887         * lib/isnanl.c: New file.
73888         * m4/isnanl.m4: New file.
73889
73890 2007-02-24  Bruno Haible  <bruno@clisp.org>
73891
73892         * modules/isnan-nolibm-tests: New file.
73893         * tests/test-isnan.c: New file.
73894
73895         * modules/isnan-nolibm: New file.
73896         * lib/isnan.h: New file.
73897         * lib/isnan.c: New file.
73898         * m4/isnan.m4: New file.
73899
73900 2007-02-24  Bruno Haible  <bruno@clisp.org>
73901
73902         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73903         assume that an exponent fits in 20 bits.
73904
73905 2007-02-24  Jim Meyering  <jim@meyering.net>
73906
73907         * m4/regex.m4: Update the description of the configure-time option,
73908         --without-included-regex, to state accurately what the defaults are,
73909         and perhaps to give people an idea why using this option is risky.
73910
73911 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73912
73913         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73914         loops on small arguments.  This attempts to avoid the problem
73915         Bruno Haible reported for AIX 4.3.2 in
73916         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73917
73918 2007-02-23  Bruno Haible  <bruno@clisp.org>
73919
73920         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73921         Needed for help2man.
73922
73923 2007-02-23  Karl Berry  <karl@gnu.org>
73924
73925         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73926         exists, foo.h should be cvs-ignored, not committed.
73927
73928 2007-02-23  Eric Blake  <ebb9@byu.net>
73929
73930         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73931         * lib/stat-time.h (includes): Likewise.
73932         * lib/utimecmp.c (includes): Likewise.
73933         * lib/utimens.h (includes): Likewise.
73934         * lib/getdate.y (includes): Also include "timespec.h" for use
73935         internal to the module.
73936         * modules/utimens (Depends-on): Revert yesterday's patch.
73937         * modules/nanosleep (Depends-on): Add missing dependency.
73938
73939 2007-02-22  Bruno Haible  <bruno@clisp.org>
73940
73941         * lib/glob.c: Don't include getlogin_r.h.
73942
73943 2007-02-22  Jim Meyering  <jim@meyering.net>
73944
73945         * modules/utimens (Depends-on): Add timespec, required for
73946         utimens.h's inclusion of timespec.h.
73947
73948 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73949
73950         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73951         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73952         Schwab in
73953         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73954         I'll try to think of a better way to fix the Solaris problem.
73955
73956         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73957         like glibc; on Solaris 10, it fails with errno == EINVAL.
73958         POSIX says the behavior is unspecified if the first argument is NULL,
73959         so play it safe and never pass NULL to the system getcwd.
73960
73961 2007-02-21  Jim Meyering  <jim@meyering.net>
73962
73963         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73964         of gettimeofday.  It would conflict with the one now always
73965         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73966         an IRIX 6.5 build failure.
73967
73968 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73969
73970         Minor fixups to port to Solaris 10 with Sun C 5.8.
73971         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73972         * modules/getcwd (Depends-on): Add dirfd.
73973         * lib/putenv.c (putenv): #undef it.
73974         (rpl_putenv): New decl.
73975         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73976
73977 2007-02-20  Bruno Haible  <bruno@clisp.org>
73978
73979         * modules/stdio-tests: New file.
73980         * tests/test-stdio.c: New file.
73981
73982         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73983         (Depends-on): Add stdio.
73984         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73985         (Include): Use <stdio.h> instead of vsnprintf.h.
73986         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73987         HAVE_DECL_VSNPRINTF.
73988         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73989
73990         * modules/snprintf (Files): Remove lib/snprintf.h.
73991         (Depends-on): Add stdio.
73992         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73993         (Include): Use <stdio.h> instead of snprintf.h.
73994         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73995         HAVE_DECL_SNPRINTF.
73996         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73997         * lib/getaddrinfo.c: Likewise.
73998
73999         * modules/stdio: New file.
74000         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
74001         * lib/snprintf.h: Remove file.
74002         * lib/vsnprintf.h: Remove file.
74003         * lib/.cppi-disable: Remove snprintf.h.
74004         * m4/stdio_h.m4: New file.
74005         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
74006
74007 2007-02-20  Jim Meyering  <jim@meyering.net>
74008
74009         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
74010         used by e.g., mingw.  From Bruno Haible.
74011
74012 2007-02-19  Bruno Haible  <bruno@clisp.org>
74013
74014         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
74015         warnings.
74016         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74017
74018 2007-02-19  Bruno Haible  <bruno@clisp.org>
74019
74020         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
74021         from mingw users.
74022
74023 2007-02-19  Bruno Haible  <bruno@clisp.org>
74024
74025         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
74026         warnings.
74027         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
74028
74029 2007-02-19  Jim Meyering  <jim@meyering.net>
74030
74031         Don't use FD after a successful "fdopendir (fd)".
74032         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
74033         Reset it by calling dirfd on the just-obtained DIR*.
74034
74035         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
74036         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
74037
74038 2007-02-18  Bruno Haible  <bruno@clisp.org>
74039
74040         * lib/readlink.c: Include <unistd.h>.
74041         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
74042         HAVE_READLINK.
74043         * modules/readlink (Depends-on): Add unistd.
74044         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74045         (Include): Add <unistd.h>.
74046
74047         * lib/getlogin_r.h: Remove file.
74048         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
74049         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
74050         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
74051         HAVE_DECL_GETLOGIN_R.
74052         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
74053         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74054         (Include): Use <unistd.h> instead of getlogin_r.h.
74055
74056         * lib/getcwd.h: Remove file.
74057         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
74058         * lib/xgetcwd.c: Likewise.
74059         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
74060         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
74061         * modules/getcwd (Files): Remove lib/getcwd.h.
74062         (Depends-on): Add unistd.
74063         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74064         (Include): Use <unistd.h> instad of getcwd.h.
74065
74066         * lib/ftruncate.c: Include <unistd.h> first.
74067         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
74068         Set HAVE_FTRUNCATE.
74069         * modules/ftruncate (Depends-on): Add unistd.
74070         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74071
74072         * lib/fchdir.c: Include <unistd.h> first.
74073         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
74074         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
74075         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
74076         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74077         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
74078
74079         * lib/dup2.c: Include <unistd.h> first.
74080         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
74081         HAVE_DUP2.
74082         * modules/dup2 (Depends-on): Add unistd.
74083         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74084
74085         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
74086         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
74087         REPLACE_CHOWN. Don't define chown as a macro here.
74088         * modules/chown (Depends-on): Add unistd.
74089         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74090
74091         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
74092         Add definition for GL_LINK_WARNING.
74093         (chown, dup2): New declarations.
74094         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
74095         link warning.
74096         (ftruncate): New declaration.
74097         (getcwd): New declaration, taken from old getcwd.h.
74098         (getlogin_r): New declaration, taken from old getlogin_r.h.
74099         (readlink): New declaration.
74100         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
74101         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
74102         (gl_PREREQ_UNISTD): Remove macro.
74103         (gl_UNISTD_MODULE_INDICATOR): New macro.
74104         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
74105         many new variables. Don't set UNISTD_H.
74106         * modules/unistd (Description): Change.
74107         (Depends-on): Add link-warning.
74108         (configure.ac): Update.
74109         (Makefile.am): Create unistd.h always. Substitute many new variables
74110         into it.
74111
74112 2007-02-18  Bruno Haible  <bruno@clisp.org>
74113
74114         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
74115         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
74116         HAVE_GETSUBOPT.
74117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
74118         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
74119         * lib/getsubopt.h: Remove file.
74120         * modules/getsubopt (Files): Remove lib/getsubopt.h.
74121         (Depends-on): Add stdlib.
74122         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74123         (Includes): Use <stdlib.h> instead of getsubopt.h.
74124         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
74125         Set HAVE_GETSUBOPT.
74126         * lib/getsubopt.c: Don't include getsubopt.h.
74127
74128 2007-02-18  Bruno Haible  <bruno@clisp.org>
74129
74130         * modules/fchdir (Depends-on): Add dup2.
74131
74132 2007-02-18  Bruno Haible  <bruno@clisp.org>
74133
74134         * lib/stdlib_.h: Handle glibc's special invocation convention
74135         specially.
74136
74137 2007-02-18  Bruno Haible  <bruno@clisp.org>
74138
74139         * modules/stdlib-tests: New file.
74140         * tests/test-stdlib.c: New file.
74141
74142         * modules/mkstemp (Files): Remove lib/mkstemp.h.
74143         (Depends-on): Add stdlib.
74144         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74145         (Includes): Use <stdlib.h> instead of mkstemp.h.
74146         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74147         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
74148         * lib/mkstemp.c: Don't include mkstemp.h.
74149         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
74150         * lib/stdlib--.h: Don't include mkstemp.h.
74151
74152         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
74153         (Depends-on): Add stdlib.
74154         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74155         (Includes): Use <stdlib.h> instead of mkdtemp.h.
74156         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74157         HAVE_MKDTEMP.
74158         * lib/mkdtemp.c: Don't include mkdtemp.h.
74159         * lib/clean-temp.c: Don't include mkdtemp.h.
74160
74161         * modules/exit (Files): Remove lib/exit.h.
74162         (Depends-on): Add stdlib.
74163         (Makefile.am): Remove lib_SOURCES.
74164         (Include): Use <stdlib.h> instead of exit.h.
74165         * lib/argmatch.c: Don't include exit.h.
74166         * lib/execute.c: Likewise.
74167         * lib/pagealign_alloc.c: Likewise.
74168         * lib/pipe.c: Likewise.
74169         * lib/wait-process.c: Likewise.
74170         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
74171         * lib/exitfail.c: Likewise.
74172         * lib/savewd.c: Likewise.
74173         * lib/xsetenv.c: Likewise.
74174
74175         * modules/stdlib: New file.
74176         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
74177         and extra comments about mkstemp().
74178         * lib/exit.h: Remove file.
74179         * lib/mkdtemp.h: Remove file.
74180         * lib/mkstemp.h: Remove file.
74181         * m4/stdlib_h.m4: New file.
74182         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
74183
74184 2007-02-18  Bruno Haible  <bruno@clisp.org>
74185
74186         * modules/math-tests: New file.
74187         * tests/test-math.c: New file.
74188
74189         * modules/math: New file.
74190         * modules/mathl (Files): Remove lib/mathl.h.
74191         (Depends-on): Add math.
74192         (Makefile.am): Don't mention mathl.h.
74193         (Include): Use <math.h> instead of mathl.h.
74194         * lib/math_.h: New file.
74195         * lib/mathl.h: Remove file.
74196         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
74197         mathl.h.
74198         * lib/asinl.c: Likewise.
74199         * lib/atanl.c: Likewise.
74200         * lib/ceill.c: Likewise.
74201         * lib/cosl.c: Likewise.
74202         * lib/expl.c: Likewise.
74203         * lib/floorl.c: Likewise.
74204         * lib/frexpl.c: Likewise.
74205         * lib/ldexpl.c: Likewise.
74206         * lib/logl.c: Likewise.
74207         * lib/sincosl.c: Likewise.
74208         * lib/sinl.c: Likewise.
74209         * lib/sqrtl.c: Likewise.
74210         * lib/tanl.c: Likewise.
74211         * lib/trigl.c: Likewise.
74212         * m4/math_h.m4: New file.
74213         * MODULES.html.sh (Mathematics): Add math.
74214
74215 2007-02-17  Bruno Haible  <bruno@clisp.org>
74216
74217         * modules/wctype-tests: New file.
74218         * tests/test-wctype.c: New file.
74219
74220         * modules/wchar-tests: New file.
74221         * tests/test-wchar.c: New file.
74222
74223         * modules/unistd-tests: New file.
74224         * tests/test-unistd.c: New file.
74225
74226         * modules/time-tests: New file.
74227         * tests/test-time.c: New file.
74228
74229         * modules/sysexits-tests: New file.
74230         * tests/test-sysexits.c: New file.
74231
74232         * modules/sys_time-tests: New file.
74233         * tests/test-sys_time.c: New file.
74234
74235         * modules/sys_stat-tests: New file.
74236         * tests/test-sys_stat.c: New file.
74237
74238         * modules/sys_socket-tests: New file.
74239         * tests/test-sys_socket.c: New file.
74240
74241         * modules/sys_select-tests: New file.
74242         * tests/test-sys_select.c: New file.
74243
74244         * modules/string-tests: New file.
74245         * tests/test-string.c: New file.
74246
74247         * modules/stdbool-tests: New file.
74248         * tests/test-stdbool.c: New file.
74249
74250         * modules/netinet_in-tests: New file.
74251         * tests/test-netinet_in.c: New file.
74252
74253         * modules/inttypes-tests: New file.
74254         * tests/test-inttypes.c: New file.
74255
74256         * modules/fcntl-tests: New file.
74257         * tests/test-fcntl.c: New file.
74258
74259         * modules/byteswap-tests: New file.
74260         * tests/test-byteswap.c: New file.
74261
74262         * modules/arpa_inet-tests: New file.
74263         * tests/test-arpa_inet.c: New file.
74264
74265 2007-02-17  Bruno Haible  <bruno@clisp.org>
74266
74267         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
74268         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
74269         if the corresponding module is not enabled. Emit link warnings if
74270         the function is used nevertheless.
74271         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
74272         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
74273         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
74274         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
74275         * modules/inttypes (Depends-on): Add link-warning.
74276         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74277         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
74278         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
74279         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
74280         * modules/imaxdiv (configure.ac): Likewise.
74281         * modules/strtoimax (configure.ac): Likewise.
74282         * modules/strtoumax (configure.ac): Likewise.
74283
74284 2007-02-17  Bruno Haible  <bruno@clisp.org>
74285
74286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
74287         gl_STRING_MODULE_INDICATOR_DEFAULTS.
74288         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
74289         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
74290
74291 2007-02-17  Bruno Haible  <bruno@clisp.org>
74292
74293         * modules/link-warning: New file.
74294         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
74295         * lib/string_.h (GL_LINK_WARNING): Remove definition.
74296         * modules/string (Depends-on): Add link-warning.
74297         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74298         string.h.
74299         * MODULES.html.sh (Support for building libraries and executables): Add
74300         link-warning.
74301
74302 2007-02-17  Bruno Haible  <bruno@clisp.org>
74303
74304         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
74305         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
74306         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
74307         long lines.
74308
74309 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
74310             Bruno Haible  <bruno@clisp.org>
74311
74312         * modules/tmpfile: New file.
74313         * lib/tmpfile.c: New file.
74314         * m4/tmpfile.m4: New file.
74315         * MODULES.html.sh (func_all_modules): New section "Input/output".
74316
74317 2007-02-15  Bruno Haible  <bruno@clisp.org>
74318
74319         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
74320         (supports_delete_on_close): New function.
74321         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
74322
74323 2007-02-14  Bruno Haible  <bruno@clisp.org>
74324
74325         * modules/mbspcasecmp-tests: New file.
74326         * tests/test-mbspcasecmp.sh: New file.
74327         * tests/test-mbspcasecmp.c: New file.
74328
74329         New module mbspcasecmp.
74330         * modules/mbspcasecmp: New file.
74331         * lib/mbspcasecmp.c: New file.
74332         * lib/string_.h (strncasecmp): Change warning message.
74333         (mbspcasecmp): New declaration.
74334         * m4/mbspcasecmp.m4: New file.
74335         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74336         GNULIB_MBSPCASECMP.
74337         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
74338         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
74339
74340 2007-02-14  Bruno Haible  <bruno@clisp.org>
74341
74342         * modules/mbsncasecmp-tests: New file.
74343         * tests/test-mbsncasecmp.sh: New file.
74344         * tests/test-mbsncasecmp.c: New file.
74345
74346         New module mbsncasecmp.
74347         * modules/mbsncasecmp: New file.
74348         * lib/mbsncasecmp.c: New file.
74349         * lib/string_.h (mbsncasecmp): New declaration.
74350         * m4/mbsncasecmp.m4: New file.
74351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74352         GNULIB_MBSNCASECMP.
74353         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
74354         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
74355
74356 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74357
74358         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
74359         Verify that it doesn't overlap with our flags.
74360         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
74361         do not have the desired effect in multibyte locales; instead, use
74362         mbscasecmp.
74363         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
74364         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
74365         we don't require GNU fnmatch ourselves (if our users require it, they
74366         should do so explicitly).
74367
74368         Fix regex code so it doesn't rely on strcasecmp.
74369         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
74370         Otherwise, include gnulib's langinfo.h.
74371         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
74372         undesirable behavior in non-C locales.  Instead, rely on localecharset.
74373         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
74374         * modules/regex (FILES): Remove m4/codeset.m4.
74375         (Depends-on): Add localcharset.  Remove strcase.
74376
74377 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74378
74379         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
74380         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
74381
74382 2007-02-13  Bruno Haible  <bruno@clisp.org>
74383
74384         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
74385         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74386
74387 2007-02-12  Bruno Haible  <bruno@clisp.org>
74388
74389         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74390         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
74391         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
74392         time warning rather than a link error.
74393
74394 2007-02-12  Bruno Haible  <bruno@clisp.org>
74395
74396         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
74397         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74398         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74399
74400 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74401
74402         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
74403         args, not 2.
74404
74405 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74406
74407         New module 'time', so that apps can include <time.h> as per
74408         POSIX and GNU instead of separate include files like time_r.h
74409         and timegm.h.  This implementation tries out a simpler approach
74410         for replacing decls in standard include files (as compared to
74411         the string module), somewhat as an experiment.
74412
74413         * config/srclist.txt: Comment out mktime.c for now.
74414         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
74415         since it doesn't apply any more.  Use generic wording instead.
74416         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
74417         'time'.
74418         * lib/time_.h, m4/time_h.m4, modules/time: New files.
74419         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
74420         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
74421         Don't include <sys/types.h>; no longer needed since we assume C89.
74422         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
74423         * lib/strftime.c: Likewise.
74424         * lib/time_r.c: Likewise.
74425         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
74426         * lib/nanosleep.c: Include <time.h> first, to check interface.
74427         * lib/strptime.c: Likewise.
74428         * lib/time_r.c: Likewise.
74429         * lib/timegm.c: Likewise.
74430         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
74431         needed.
74432         * lib/timegm.c: Don't include timegm.h; no longer needed.
74433         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
74434         time.h now handles any problems in that area.
74435         (struct timespec, nanosleep): Remove; time.h now arranges for these.
74436         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
74437         that time.h defines struct timespec.
74438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
74439         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
74440         handles that.
74441         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
74442         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
74443         needed.  Set REPLACE_LOCALTIME.
74444         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
74445         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
74446         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
74447         nanosleep; time_h.m4 now does that.  Don't require
74448         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
74449         module handles this now.
74450         * modules/getdate (Depends-on): Remove timespec.  Add time.
74451         * modules/nanosleep (Depends-on): Likewise.
74452         * modules/stat-time (Depends-on): Likewise.
74453         * modules/nanosleep (Include): Include time.h, not timespec.h.
74454         * modules/strptime (Files): Remove lib/strptime.h.
74455         (Depends-on): Add extensions, time.
74456         (Include): Include time.h, not strptime.h.
74457         * modules/time_r (Files): Remove lib/time_r.h.
74458         (Depends-on): Add time.
74459         (Include): Include time.h, not time_r.h.
74460         * modules/timegm: Likewise.
74461         * modules/timespec (Description): Now does timespec-related decls
74462         of our own, instead of struct timespec itself.
74463         (Depends-on): Add time; remove extensions.
74464         (Maintainer): Add self.
74465         * modules/utimecmp (Depends-on): Add time; remove timespec.
74466         * modules/utimens (Depends-on): Likewise.
74467         * modules/xnanosleep (Depends-on): Likewise.
74468
74469 2007-02-11  Bruno Haible  <bruno@clisp.org>
74470
74471         * lib/c-strstr.c: Include allocsa.h.
74472         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74473         * lib/c-strcasestr.c: Include allocsa.h.
74474         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74475         * lib/strcasestr.c: Include allocsa.h.
74476         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74477         * lib/mbsstr.c: Include allocsa.h.
74478         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74479         allocsa/freesa instead of malloc/free.
74480         * lib/mbscasestr.c: Include allocsa.h.
74481         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74482         allocsa/freesa instead of malloc/free.
74483         * modules/c-strstr (Depends-on): Add allocsa.
74484         * modules/c-strcasestr (Depends-on): Likewise.
74485         * modules/strcasestr (Depends-on): Likewise.
74486         * modules/mbsstr (Depends-on): Likewise.
74487         * modules/mbscasestr (Depends-on): Likewise.
74488
74489 2007-02-11  Bruno Haible  <bruno@clisp.org>
74490
74491         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
74492
74493         * modules/mbsspn-tests: New file.
74494         * tests/test-mbsspn.sh: New file.
74495         * tests/test-mbsspn.c: New file.
74496
74497 2007-02-11  Bruno Haible  <bruno@clisp.org>
74498
74499         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
74500
74501         * modules/mbspbrk-tests: New file.
74502         * tests/test-mbspbrk.sh: New file.
74503         * tests/test-mbspbrk.c: New file.
74504
74505 2007-02-11  Bruno Haible  <bruno@clisp.org>
74506
74507         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74508         unneeded cast.
74509
74510         * modules/mbscspn-tests: New file.
74511         * tests/test-mbscspn.sh: New file.
74512         * tests/test-mbscspn.c: New file.
74513
74514 2007-02-11  Bruno Haible  <bruno@clisp.org>
74515
74516         * modules/mbscasecmp-tests: New file.
74517         * tests/test-mbscasecmp.sh: New file.
74518         * tests/test-mbscasecmp.c: New file.
74519
74520 2007-02-11  Bruno Haible  <bruno@clisp.org>
74521
74522         Ensure O(n) worst-case complexity of mbscasestr.
74523         * lib/mbscasestr.c: Include stdbool.h.
74524         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74525         functions.
74526         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74527         the bookkeeping indicates that it's worth it.
74528         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74529
74530         * modules/mbscasestr-tests: New file.
74531         * tests/test-mbscasestr1.c: New file.
74532         * tests/test-mbscasestr2.sh: New file.
74533         * tests/test-mbscasestr2.c: New file.
74534         * tests/test-mbscasestr3.sh: New file.
74535         * tests/test-mbscasestr3.c: New file.
74536         * tests/test-mbscasestr4.sh: New file.
74537         * tests/test-mbscasestr4.c: New file.
74538         * m4/locale-tr.m4: New file.
74539
74540 2007-02-11  Bruno Haible  <bruno@clisp.org>
74541
74542         Ensure O(n) worst-case complexity of mbsstr.
74543         * lib/mbsstr.c: Include stdbool.h.
74544         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74545         functions.
74546         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74547         bookkeeping indicates that it's worth it.
74548         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74549
74550         * modules/mbsstr-tests: New file.
74551         * tests/test-mbsstr1.c: New file.
74552         * tests/test-mbsstr2.sh: New file.
74553         * tests/test-mbsstr2.c: New file.
74554         * tests/test-mbsstr3.sh: New file.
74555         * tests/test-mbsstr3.c: New file.
74556         * m4/locale-fr.m4: New file.
74557
74558 2007-02-11  Bruno Haible  <bruno@clisp.org>
74559
74560         * lib/mbsrchr.c (mbsrchr): Fix bug.
74561
74562         * modules/mbsrchr-tests: New file.
74563         * tests/test-mbsrchr.sh: New file.
74564         * tests/test-mbsrchr.c: New file.
74565
74566 2007-02-11  Bruno Haible  <bruno@clisp.org>
74567
74568         * lib/mbschr.c (mbschr): Fix bug.
74569
74570         * modules/mbschr-tests: New file.
74571         * tests/test-mbschr.sh: New file.
74572         * tests/test-mbschr.c: New file.
74573         * m4/locale-zh.m4: New file.
74574
74575 2007-02-11  Bruno Haible  <bruno@clisp.org>
74576
74577         Support for copying multibyte string iterators.
74578         * lib/mbiter.h: Include <string.h>.
74579         (mbiter_multi_copy): New function.
74580         (mbi_copy): New macro.
74581         * lib/mbuiter.h: Include <string.h>.
74582         (mbuiter_multi_copy): New function.
74583         (mbui_copy): New macro.
74584
74585 2007-02-11  Bruno Haible  <bruno@clisp.org>
74586
74587         New module mbslen.
74588         * modules/mbslen: New file.
74589         * lib/mbslen.c: New file.
74590         * lib/string_.h (mbslen): New declaration.
74591         * m4/mbslen.m4: New file.
74592         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74593         GNULIB_MBSLEN.
74594         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74595         * MODULES.html.sh (Internationalization functions): Add mbslen.
74596
74597 2007-02-11  Bruno Haible  <bruno@clisp.org>
74598
74599         Ensure O(n) worst-case complexity of strcasestr substitute.
74600         * lib/strcasestr.c: Include stdbool.h.
74601         (knuth_morris_pratt): New function.
74602         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74603         bookkeeping indicates that it's worth it.
74604         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74605
74606         * modules/strcasestr-tests: New file.
74607         * tests/test-strcasestr.c: New file.
74608
74609 2007-02-11  Bruno Haible  <bruno@clisp.org>
74610
74611         Ensure O(n) worst-case complexity of c_strcasestr.
74612         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74613         (knuth_morris_pratt): New function.
74614         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74615         the bookkeeping indicates that it's worth it.
74616         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74617
74618         * modules/c-strcasestr-tests: New file.
74619         * tests/test-c-strcasestr.c: New file.
74620
74621 2007-02-11  Bruno Haible  <bruno@clisp.org>
74622
74623         Ensure O(n) worst-case complexity of c_strstr.
74624         * lib/c-strstr.c: Include stdbool.h, string.h.
74625         (knuth_morris_pratt): New function.
74626         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74627         bookkeeping indicates that it's worth it.
74628         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74629
74630         * lib/c-strstr.c: Complete rewrite for maintainability.
74631
74632         * modules/c-strstr-tests: New file.
74633         * tests/test-c-strstr.c: New file.
74634
74635 2007-02-11  Bruno Haible  <bruno@clisp.org>
74636
74637         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74638         5.2.1 and earlier, whereby \055 was treated just like the range
74639         delimiter '-'.
74640         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74641
74642 2007-02-08  Bruno Haible  <bruno@clisp.org>
74643
74644         * modules/regex (Depends-on): Add stdbool.
74645         Reported by Dalibor Topic <robilad@kaffe.org>.
74646
74647 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74648
74649         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74650         Prefer returning from main to exiting from it.
74651         Remove unnecessary parens after sizeof.
74652
74653 2007-02-05  Bruno Haible  <bruno@clisp.org>
74654
74655         New module mbssep.
74656         * modules/mbssep: New file.
74657         * lib/mbssep.c: New file.
74658         * lib/string_.h (strsep): Add a conditional link warning.
74659         (mbssep): New declaration.
74660         * m4/mbssep.m4: New file.
74661         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74662         GNULIB_MBSSEP.
74663         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74664         * MODULES.html.sh (Internationalization functions): Add mbssep.
74665
74666 2007-02-05  Bruno Haible  <bruno@clisp.org>
74667
74668         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74669         Optimize search in case of 1 delimiter.
74670
74671 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74672
74673         * lib/acl.h: Include sys/types.h before sys/acl.h.
74674
74675 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74676
74677         Merge upstream fix for glibc bugzilla #3957:
74678
74679         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74680
74681         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74682         bit for RE_HAT_LISTS_NOT_NEWLINE.
74683         (build_charclass_op): Remove bogus comment.
74684
74685 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74686
74687         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74688
74689 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74690
74691         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74692         * lib/memmem.c [!defined _LIBC]: Include config.h.
74693
74694 2007-02-04  Bruno Haible  <bruno@clisp.org>
74695
74696         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74697         warning message.
74698
74699 2007-02-04  Bruno Haible  <bruno@clisp.org>
74700
74701         New module mbstok_r.
74702         * modules/mbstok_r: New file.
74703         * lib/mbstok_r.c: New file.
74704         * lib/string_.h (strtok_r): Change argument names to match the
74705         comments. Add a conditional link warning.
74706         (mbstok_r): New declaration.
74707         * m4/mbstok_r.m4: New file.
74708         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74709         GNULIB_MBSTOK_R.
74710         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74711         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74712
74713 2007-02-04  Bruno Haible  <bruno@clisp.org>
74714
74715         New module mbsspn.
74716         * modules/mbsspn: New file.
74717         * lib/mbsspn.c: New file.
74718         * lib/string_.h (strspn): Add a conditional link warning.
74719         (mbsspn): New declaration.
74720         * m4/mbsspn.m4: New file.
74721         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74722         GNULIB_MBSSPN.
74723         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74724         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74725
74726 2007-02-04  Bruno Haible  <bruno@clisp.org>
74727
74728         New module mbspbrk.
74729         * modules/mbspbrk: New file.
74730         * lib/mbspbrk.c: New file.
74731         * lib/string_.h (strpbrk): Add a conditional link warning.
74732         (mbspbrk): New declaration.
74733         * m4/mbspbrk.m4: New file.
74734         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74735         GNULIB_MBSPBRK.
74736         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74737         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74738
74739 2007-02-04  Bruno Haible  <bruno@clisp.org>
74740
74741         New module mbscspn.
74742         * modules/mbscspn: New file.
74743         * lib/mbscspn.c: New file.
74744         * lib/string_.h (strcspn): Add a conditional link warning.
74745         (mbscspn): New declaration.
74746         * m4/mbscspn.m4: New file.
74747         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74748         GNULIB_MBSCSPN.
74749         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74750         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74751
74752 2007-02-04  Bruno Haible  <bruno@clisp.org>
74753
74754         New module mbscasestr, reduced goal of strcasestr.
74755         * modules/mbscasestr: New file.
74756         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74757         (mbscasestr): Renamed from strcasestr.
74758         * lib/strcasestr.c: Don't include mbuiter.h.
74759         (strcasestr): Remove support for multibyte locales.
74760         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74761         Change the conditional link warning.
74762         (mbscasestr): New declaration.
74763         * m4/mbscasestr.m4: New file.
74764         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74765         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74766         REPLACE_STRCASESTR.
74767         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74769         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74770         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74771         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74772         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74773         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74774         (Depends-on): Remove mbuiter.
74775         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74776
74777 2007-02-04  Bruno Haible  <bruno@clisp.org>
74778
74779         Simplify handling of strncasecmp.
74780         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74781         the conditional link warning.
74782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74783         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74784         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74785         * modules/strcase (configure.ac): Don't invoke
74786         gl_STRING_MODULE_INDICATOR.
74787         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74788
74789 2007-02-04  Bruno Haible  <bruno@clisp.org>
74790
74791         New module mbscasecmp, reduced goal of strcasecmp.
74792         * modules/mbscasecmp: New file.
74793         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74794         (mbscasecmp): Renamed from strcasecmp.
74795         * lib/strcasecmp.c: Don't include mbuiter.h.
74796         (strcasecmp): Remove support for multibyte locales.
74797         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74798         Change the conditional link warning.
74799         (mbscasecmp): New declaration.
74800         * m4/mbscasecmp.m4: New file.
74801         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74802         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74803         REPLACE_STRCASECMP.
74804         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74805         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74806         GNULIB_MBSCASECMP.
74807         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74808         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74809         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74810         (Depends-on): Remove mbuiter.
74811         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74812
74813 2007-02-04  Bruno Haible  <bruno@clisp.org>
74814
74815         New module mbsstr. Remove module strstr.
74816         * modules/mbsstr: New file.
74817         * modules/strstr: Remove file.
74818         * lib/mbsstr.c: Renamed from lib/strstr.c.
74819         (mbsstr): Renamed from strstr.
74820         * lib/string_.h (strstr): Remove declaration. Change the conditional
74821         link warning.
74822         (mbsstr): New declaration.
74823         * m4/mbsstr.m4: New file.
74824         * m4/strstr.m4: Remove file.
74825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74826         REPLACE_STRSTR.
74827         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74828         Don't initialize GNULIB_STRSTR.
74829         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74830         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74831         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74832         (Support for systems lacking ANSI C 89): Remove strstr.
74833
74834 2007-02-04  Bruno Haible  <bruno@clisp.org>
74835
74836         New module mbsrchr.
74837         * modules/mbsrchr: New file.
74838         * lib/mbsrchr.c: New file.
74839         * lib/string_.h (strrchr): Add a conditional link warning.
74840         (mbsrchr): New declaration.
74841         * m4/mbsrchr.m4: New file.
74842         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74843         GNULIB_MBSRCHR.
74844         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74845         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74846
74847 2007-02-04  Bruno Haible  <bruno@clisp.org>
74848
74849         New module mbschr.
74850         * modules/mbschr: New file.
74851         * lib/mbschr.c: New file.
74852         * lib/string_.h (strchr): Add a conditional link warning.
74853         (mbschr): New declaration.
74854         * m4/mbschr.m4: New file.
74855         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74856         GNULIB_MBSCHR.
74857         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74858         * MODULES.html.sh (Internationalization functions): Add mbschr.
74859
74860 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74861
74862         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74863
74864         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74865
74866 2007-02-04  Bruno Haible  <bruno@clisp.org>
74867
74868         New module description section 'configure.ac-early'.
74869         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74870         (func_get_autoconf_early_snippet): New function.
74871         (func_import, func_create_testdir): Use it. Remove special cases for
74872         modules 'extensions' and 'lock'.
74873         * modules/extensions (configure.ac-early): Require
74874         gl_USE_SYSTEM_EXTENSIONS.
74875         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74876
74877 2007-02-04  Bruno Haible  <bruno@clisp.org>
74878
74879         Make use of gcj-4.3's -fsource and -ftarget option.
74880         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74881         and if so try the options -fsource and -ftarget.
74882         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74883         source_version, ftarget_option, target_version arguments.
74884         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74885         (is_envjavac_oldgcj_14_14_usable): Renamed from
74886         is_envjavac_gcj_14_14_usable.
74887         (is_envjavac_oldgcj_14_13_usable): Renamed from
74888         is_envjavac_gcj_14_13_usable.
74889         (is_gcj_present): Update.
74890         (is_gcj_43, is_gcj43_usable): New functions.
74891         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74892         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74893         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74894         try the options -fsource and -ftarget.
74895
74896 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74897
74898         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74899         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74900         larger value.
74901
74902 2007-02-03  Jim Meyering  <jim@meyering.net>
74903
74904         Give tools a better chance to allocate space for very large buffers.
74905         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74906
74907         Make pwd and readlink work also when run with an unreadable parent dir
74908         on systems with openat support.
74909         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74910         provided getcwd function, even when we have openat support.
74911         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74912
74913 2007-02-02  Bruno Haible  <bruno@clisp.org>
74914
74915         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74916         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74917         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74918         portability problems if one of these functions is only used on specific
74919         platforms.
74920         Reported by Paul Eggert.
74921
74922 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74923
74924         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74925         is causing more trouble than it's curing.
74926         * lib/regex_internal.h (__mempcpy): Remove.
74927         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74928         (and make the code a tad smaller to boot).
74929         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74930
74931 2007-02-02  Jim Meyering  <jim@meyering.net>
74932
74933         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74934         section, not in the Makefile.am: one.
74935
74936 2007-02-02  Eric Blake  <ebb9@byu.net>
74937
74938         * lib/strchrnul.c: Always include config.h first.
74939
74940         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74941         gnulib strstr is not necessary here.
74942
74943 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74944
74945         * m4/socklen.m4: Fix typo.
74946
74947 2007-02-02  Eric Blake  <ebb9@byu.net>
74948
74949         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74950         * modules/netinet_in (Makefile.am): Likewise.
74951
74952 2007-02-01  Bruno Haible  <bruno@clisp.org>
74953
74954         * lib/string_.h (GL_LINK_WARNING): New macro.
74955         (strcasecmp, strstr, strcasestr): If provided by the system,
74956         conditionally define as a macro that leads to a warning instead of to
74957         an error.
74958         (strncasecmp): Conditionally define as a macro that leads to a warning.
74959
74960 2007-02-01  Karl Berry  <karl@gnu.org>
74961
74962         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74963
74964 2007-02-01  Bruno Haible  <bruno@clisp.org>
74965
74966         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74967         renamings.
74968
74969 2007-02-01  Eric Blake  <ebb9@byu.net>
74970
74971         * modules/regex (Depends-on): Revert dependence on mempcpy.
74972         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74973         module's definition of mempcpy.
74974         Reported by Paul Eggert.
74975
74976 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74977
74978         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74979         the symbol XYZ before redefining it.  This fixes a problem with
74980         programs that don't use XYZ, when compiled on systems that define
74981         XYZ to something else.
74982
74983 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74984
74985         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74986         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74987         writeable to group or other and (2) is intended to have a special
74988         mode bit that is set or cleared.  In such a case, the directory
74989         should be neither group- nor other-writeable until the special
74990         mode bits are right.
74991
74992 2007-01-31  Eric Blake  <ebb9@byu.net>
74993
74994         * modules/mountlist (Depends-on): Add strstr.
74995
74996         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74997         bug.
74998         * modules/string (Makefile.am): Remove redundant replacement.
74999         * modules/regex (Depends-on): Add mempcpy.
75000
75001 2007-01-31  Bruno Haible  <bruno@clisp.org>
75002
75003         New module description field 'Link'.
75004         * gnulib-tool (func_usage): Document --extract-link-directive.
75005         (sed_extract_prog): Recognize 'Link' directive.
75006         (func_get_link_directive): New function.
75007         (func_import): Show summary of link directives.
75008         Handle --extract-link-directive option.
75009         * modules/acl (Link): New section.
75010         * modules/clock-time (Link): New section.
75011         * modules/euidaccess (Link): New section.
75012         * modules/gettext (Link): New section.
75013         * modules/iconv (Link): New section.
75014         * modules/lock (Link): New section.
75015         * modules/nanosleep (Link): New section.
75016         * modules/readline (Link): New section.
75017
75018 2007-01-27  Bruno Haible  <bruno@clisp.org>
75019
75020         Enforce the use of gnulib modules for unportable <string.h> functions.
75021         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
75022         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
75023         (gl_HEADER_STRING_H_BODY): Require it.
75024         * lib/string_.h: If the gnulib module XYZ is not present, redefine
75025         the symbol XYZ to one that gives a link error.
75026         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
75027         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
75028         * modules/mempcpy (configure.ac): Likewise.
75029         * modules/memrchr (configure.ac): Likewise.
75030         * modules/stpcpy (configure.ac): Likewise.
75031         * modules/stpncpy (configure.ac): Likewise.
75032         * modules/strcase (configure.ac): Likewise.
75033         * modules/strcasestr (configure.ac): Likewise.
75034         * modules/strchrnul (configure.ac): Likewise.
75035         * modules/strdup (configure.ac): Likewise.
75036         * modules/strndup (configure.ac): Likewise.
75037         * modules/strnlen (configure.ac): Likewise.
75038         * modules/strpbrk (configure.ac): Likewise.
75039         * modules/strsep (configure.ac): Likewise.
75040         * modules/strstr (configure.ac): Likewise.
75041         * modules/strtok_r (configure.ac): Likewise.
75042
75043 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
75044
75045         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
75046
75047 2007-01-30  Jim Meyering  <jim@meyering.net>
75048
75049         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
75050
75051 2007-01-29  Bruno Haible  <bruno@clisp.org>
75052
75053         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
75054         * lib/execute.c: Likewise.
75055         * lib/pipe.c: Likewise.
75056         * lib/printf-args.h: Likewise.
75057         * lib/printf-args.c: Likewise.
75058         * lib/printf-parse.c: Likewise.
75059         * lib/vasnprintf.c: Likewise.
75060
75061 2007-01-29  Eric Blake  <ebb9@byu.net>
75062
75063         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
75064         declaration.
75065
75066 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
75067
75068         * lib/strptime.h (strptime): Use 'restrict' for args where
75069         POSIX requires this.
75070         * lib/strptime.c (strptime): Likewise.
75071         Change license notice from LGPL to GPL, since gnulib-tool will
75072         change this as needed.
75073         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
75074         defined.
75075         Include "strptime.h" first, to check interface.
75076         Do not #undef _LIBC and _NL_CURRENT.
75077         Do not include <stdlib.h>; no longer needed.
75078         Include "time_r.h" and declare ptime_locale_status
75079         only if _LIBC is not defined.
75080         (__P): Remove unused macro.
75081         (match_string): Bring back glibc version, but use it only if _LIBC
75082         is defined.
75083         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
75084         Remove unnecessary assertion and abort() call.
75085         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
75086         * m4/strptime.m4: Fix serial number comment.
75087         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
75088         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
75089         (Depends-on): Add time_r.
75090
75091 2007-01-29  Bruno Haible  <bruno@clisp.org>
75092
75093         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75094         strptime.
75095         * modules/strptime (Depends-on): Add stdbool.
75096         * lib/strptime.h: Include <time.h> always. Add comments.
75097
75098 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75099
75100         * modules/strptime: New file.
75101         * lib/strptime.h: New file.
75102         * lib/strptime.c: New file.
75103         * m4/strptime.m4: New file.
75104
75105 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75106
75107         * MODULES.html.sh: New module mpsort.
75108         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
75109
75110         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
75111         a circularity problem with HP-UX ia64 reported by Bob Proulx in
75112         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
75113         All uses changed.
75114         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
75115         All uses changed.
75116         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
75117         to _Restrict_.
75118         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
75119         the parameter matches the prototype.
75120
75121 2007-01-28  Jim Meyering  <jim@meyering.net>
75122
75123         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
75124         sys/time.h here, reverting that part of the previous patch:
75125         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
75126
75127 2007-01-28  Bruno Haible  <bruno@clisp.org>
75128
75129         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
75130         value of $(SYS_TIME_H).
75131         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
75132         remove it conditionally, too. [added by Jim Meyering]
75133         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
75134         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75135         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
75136         GETTIMEOFDAY_REPLACEMENT to 1.
75137
75138 2007-01-28  Bruno Haible  <bruno@clisp.org>
75139
75140         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
75141         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
75142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
75143         Set UNISTD_H instead of UNISTD_H2.
75144         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
75145
75146 2007-01-28  Bruno Haible  <bruno@clisp.org>
75147
75148         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
75149         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
75150
75151 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75152
75153         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
75154         (func_create_testdir): Ensure C locale for `grep' and `tr'
75155         character ranges.
75156         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
75157         ACLOCAL_AMFLAGS parsing state machine.
75158
75159 2007-01-27  Bruno Haible  <bruno@clisp.org>
75160
75161         * modules/unistr/base: Update.
75162
75163 2007-01-27  Bruno Haible  <bruno@clisp.org>
75164
75165         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
75166         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
75167         * modules/unistr/u32-mbtouc-unsafe: Renamed from
75168         modules/unistr/u32-mbtouc.
75169         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
75170         * lib/unistr.h: Update.
75171         * lib/linebreak.c: Update.
75172         * modules/unistr/u32-mbtouc: Renamed from
75173         modules/unistr/u32-mbtouc-safe.
75174         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
75175         * lib/unistr.h: Update.
75176         * lib/unistr/u32-to-u8.c: Update.
75177         * lib/unistr/u32-to-u16.c: Update.
75178
75179 2007-01-27  Bruno Haible  <bruno@clisp.org>
75180
75181         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
75182         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
75183         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
75184         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
75185         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
75186         * modules/unistr/u16-mbtouc-unsafe: Renamed from
75187         modules/unistr/u16-mbtouc.
75188         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
75189         * lib/unistr.h: Update.
75190         * lib/linebreak.c: Update.
75191         * modules/linebreak: Update.
75192         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
75193         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
75194         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
75195         * modules/unistr/u16-mbtouc: Renamed from
75196         modules/unistr/u16-mbtouc-safe.
75197         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
75198         * lib/unistr.h: Update.
75199         * lib/unistr/u16-to-u8.c: Update.
75200         * modules/unistr/u16-to-u8: Update.
75201         * lib/unistr/u16-to-u32.c: Update.
75202         * modules/unistr/u16-to-u32: Update.
75203
75204 2007-01-27  Bruno Haible  <bruno@clisp.org>
75205
75206         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
75207         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
75208         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
75209         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
75210         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
75211         * modules/unistr/u8-mbtouc-unsafe: Renamed from
75212         modules/unistr/u8-mbtouc.
75213         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
75214         * lib/unistr.h: Update.
75215         * lib/striconveh.c: Update.
75216         * modules/striconveh: Update.
75217         * lib/linebreak.c: Update.
75218         * modules/linebreak: Update.
75219         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
75220         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
75221         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
75222         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
75223         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
75224         * lib/unistr.h: Update.
75225         * lib/striconveh.c: Update.
75226         * modules/striconveh: Update.
75227         * lib/unistr/u8-to-u16.c: Update.
75228         * modules/unistr/u8-to-u16: Update.
75229         * lib/unistr/u8-to-u32.c: Update.
75230         * modules/unistr/u8-to-u32: Update.
75231
75232 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75233
75234         Sync from Libtool.
75235         * lib/argz.c: Do not include strings.h nor memory.h, include
75236         string.h unconditionally.  Patch by Simon Josefsson.
75237
75238 2007-01-27  Bruno Haible  <bruno@clisp.org>
75239
75240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
75241         from gl_HEADER_STRING_H_BODY.
75242         (gl_HEADER_STRING_H_BODY): Require it.
75243         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
75244         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
75245         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
75246         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
75247         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
75248         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
75249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75250         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
75251         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
75252         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
75253         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
75254         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
75255         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
75256         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75257         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75258
75259 2007-01-27  Bruno Haible  <bruno@clisp.org>
75260
75261         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
75262         check_PROGRAMS into noinst_PROGRAMS.
75263         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
75264         check_PROGRAMS in this case.
75265         (func_import): Set for_test to false.
75266         (func_create_testdir): Set for_test to true.
75267
75268 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75269             Bruno Haible  <bruno@clisp.org>
75270
75271         * modules/strcasestr (Files): Remove lib/strcasestr.h.
75272         (Depends-on): Add string.
75273         (Includes): Use <string.h> instead of strcasestr.h.
75274         * modules/string (Makefile.am): Also substitute the value of
75275         REPLACE_STRCASESTR.
75276         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
75277         assume strcasestr is declared in <string.h> not <strings.h>. Also
75278         set REPLACE_STRCASESTR.
75279         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
75280         REPLACE_STRCASESTR.
75281         * lib/strcasestr.h: Remove file.
75282         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
75283         * lib/string_.h (strcasestr): New declaration.
75284
75285 2007-01-27  Bruno Haible  <bruno@clisp.org>
75286
75287         * lib/string_.h: Use 'extern'.
75288
75289 2007-01-27  Jim Meyering  <jim@meyering.net>
75290
75291         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
75292         of set-but-not-used local, "q".
75293
75294         * lib/mempcpy.c: Include <config.h> before <string.h>.
75295         This fixes a compilation error on HP-UX, due to the system's
75296         "restrict"-using mempcpy prototype.
75297
75298 2007-01-26  Bruno Haible  <bruno@clisp.org>
75299
75300         Small optimization.
75301         * lib/javacomp.c: Include c-strstr.h.
75302          (is_envjavac_gcj): Use c_strstr instead of strstr.
75303         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
75304
75305 2007-01-26  Bruno Haible  <bruno@clisp.org>
75306
75307         * MODULES.html.sh (Unicode string functions): Add the new modules.
75308
75309         * modules/uniconv/u32-strconv-to-locale: New file.
75310         * lib/uniconv/u32-strconv-to-locale.c: New file.
75311
75312         * modules/uniconv/u16-strconv-to-locale: New file.
75313         * lib/uniconv/u16-strconv-to-locale.c: New file.
75314
75315         * modules/uniconv/u8-strconv-to-locale: New file.
75316         * lib/uniconv/u8-strconv-to-locale.c: New file.
75317
75318         * modules/uniconv/u32-strconv-from-locale: New file.
75319         * lib/uniconv/u32-strconv-from-locale.c: New file.
75320
75321         * modules/uniconv/u16-strconv-from-locale: New file.
75322         * lib/uniconv/u16-strconv-from-locale.c: New file.
75323
75324         * modules/uniconv/u8-strconv-from-locale: New file.
75325         * lib/uniconv/u8-strconv-from-locale.c: New file.
75326
75327         * modules/uniconv/u32-strconv-to-enc: New file.
75328         * lib/uniconv/u32-strconv-to-enc.c: New file.
75329         * modules/uniconv/u32-strconv-to-enc-tests: New file.
75330         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
75331
75332         * modules/uniconv/u16-strconv-to-enc: New file.
75333         * lib/uniconv/u16-strconv-to-enc.c: New file.
75334         * lib/uniconv/u-strconv-to-enc.h: New file.
75335         * modules/uniconv/u16-strconv-to-enc-tests: New file.
75336         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
75337
75338         * modules/uniconv/u8-strconv-to-enc: New file.
75339         * lib/uniconv/u8-strconv-to-enc.c: New file.
75340         * modules/uniconv/u8-strconv-to-enc-tests: New file.
75341         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
75342
75343         * modules/uniconv/u32-strconv-from-enc: New file.
75344         * lib/uniconv/u32-strconv-from-enc.c: New file.
75345         * modules/uniconv/u32-strconv-from-enc-tests: New file.
75346         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
75347
75348         * modules/uniconv/u16-strconv-from-enc: New file.
75349         * lib/uniconv/u16-strconv-from-enc.c: New file.
75350         * modules/uniconv/u16-strconv-from-enc-tests: New file.
75351         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
75352
75353         * modules/uniconv/u8-strconv-from-enc: New file.
75354         * lib/uniconv/u8-strconv-from-enc.c: New file.
75355         * lib/uniconv/u-strconv-from-enc.h: New file.
75356         * modules/uniconv/u8-strconv-from-enc-tests: New file.
75357         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
75358
75359         * modules/uniconv/u32-conv-from-enc: New file.
75360         * lib/uniconv/u32-conv-from-enc.c: New file.
75361         * modules/uniconv/u32-conv-from-enc-tests: New file.
75362         * tests/uniconv/test-u32-conv-from-enc.c: New file.
75363
75364         * modules/uniconv/u16-conv-from-enc: New file.
75365         * lib/uniconv/u16-conv-from-enc.c: New file.
75366         * lib/uniconv/u-conv-from-enc.h: New file.
75367         * modules/uniconv/u16-conv-from-enc-tests: New file.
75368         * tests/uniconv/test-u16-conv-from-enc.c: New file.
75369
75370         * modules/uniconv/u8-conv-from-enc: New file.
75371         * lib/uniconv/u8-conv-from-enc.c: New file.
75372         * modules/uniconv/u8-conv-from-enc-tests: New file.
75373         * tests/uniconv/test-u8-conv-from-enc.c: New file.
75374
75375         * modules/uniconv/base: New file.
75376         * lib/uniconv.h: New file.
75377
75378 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75379
75380         * doc/gnulib-tool.texi (Initial import): Update to match current
75381         behavior with strdup module.
75382         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
75383         * lib/memmem.h: Remove; all uses removed.  This is now done
75384         by <string.h>.
75385         * lib/mempcpy.h: Likewise.
75386         * lib/memrchr.h: Likewise.
75387         * lib/stpcpy.h: Likewise.
75388         * lib/stpncpy.h: Likewise.
75389         * lib/strcase.h: Likewise.
75390         * lib/strchrnul.h: Likewise.
75391         * lib/strdup.h: Likewise.
75392         * lib/strndup.h: Likewise.
75393         * lib/strnlen.h: Likewise.
75394         * lib/strpbrk.h: Likewise.
75395         * lib/strsep.h: Likewise.
75396         * lib/strstr.h: Likewise.
75397         * lib/strtok_r.h: Likewise.
75398         * lib/string_.h: New file.
75399         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
75400         Rely on <string.h> instead.
75401         * lib/canon-host.c: Likewise.
75402         * lib/chdir-long.c: Likewise.
75403         * lib/concatpath.c: Likewise.
75404         * lib/exclude.c: Likewise.
75405         * lib/fchdir.c: Likewise.
75406         * lib/getaddrinfo.c: Likewise.
75407         * lib/getcwd.c: Likewise.
75408         * lib/getsubopt.c: Likewise.
75409         * lib/glob.c: Likewise.
75410         * lib/hard-locale.c: Likewise.
75411         * lib/iconvme.c: Likewise.
75412         * lib/javacomp.c: Likewise.
75413         * lib/mempcpy.c: Likewise.
75414         * lib/memrchr.c: Likewise.
75415         * lib/regex_internal.h: Likewise.
75416         * lib/stpncpy.c: Likewise.
75417         * lib/strcasecmp.c: Likewise.
75418         * lib/strchrnul.c: Likewise.
75419         * lib/strdup.c: Likewise.
75420         * lib/striconv.c: Likewise.
75421         * lib/striconveh.c: Likewise.
75422         * lib/striconveha.c: Likewise.
75423         * lib/strncasecmp.c: Likewise.
75424         * lib/strndup.c: Likewise.
75425         * lib/strnlen.c: Likewise.
75426         * lib/strsep.c: Likewise.
75427         * lib/strstr.c: Likewise.
75428         * lib/strtok_r.c: Likewise.
75429         * lib/userspec.c: Likewise.
75430         * lib/w32spawn.h: Likewise.
75431         * lib/xstrndup.c: Likewise.
75432         * lib/mountlist.c (strstr): Remove decl.
75433         * m4/string_h.m4: New file.
75434         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
75435         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
75436         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
75437         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
75438         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
75439         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
75440         Set REPLACE_STRCASECMP if necessary.
75441         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
75442         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
75443         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
75444         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
75445         HAVE_DECL_STRDUP if necessary.
75446         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
75447         since gl_FUNC_STRNDUP does that now.
75448         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
75449         Check for decl here...
75450         (gl_PREREQ_STRNLEN): ... not here.
75451         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
75452         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
75453         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
75454         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
75455         necessary.
75456         * modules/string: New file.
75457         * modules/memmem (Files): Remove special-purpose include file.
75458         (Depends-on): Add string.
75459         (Include): Include <string.h>, not the removed file.
75460         * modules/mempcpy: Likewise.
75461         * modules/memrchr: Likewise.
75462         * modules/stpcpy: Likewise.
75463         * modules/stpncpy: Likewise.
75464         * modules/strcase: Likewise.
75465         * modules/strchrnul: Likewise.
75466         * modules/strdup: Likewise.
75467         * modules/strndup: Likewise.
75468         * modules/strnlen: Likewise.
75469         * modules/strpbrk: Likewise.
75470         * modules/strsep: Likewise.
75471         * modules/strstr: Likewise.
75472         * modules/strtok_r: Likewise.
75473         * tests/test-dirname.c: Don't include "strdup.h", since
75474         <string.h> now suffices.
75475         * tests/test-memmem.c: Don't include "memmem.h", since
75476         <string.h> now suffices.
75477
75478 2007-01-25  Bruno Haible  <bruno@clisp.org>
75479
75480         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
75481         *resultp is 0.
75482
75483         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
75484         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
75485         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
75486         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
75487
75488         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
75489         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
75490         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
75491         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
75492         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
75493         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
75494
75495 2007-01-24  Bruno Haible  <bruno@clisp.org>
75496
75497         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
75498         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
75499         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
75500         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
75501         gl_FUNC_FTS_CORE.
75502         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
75503         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
75504         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75505         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75506         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75507         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75508         gl_FUNC_FCHOWNAT.
75509         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75510         gl_FUNC_STRFTIME.
75511         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75512         Reported by Ralf Wildenhues.
75513
75514 2007-01-24  Bruno Haible  <bruno@clisp.org>
75515
75516         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75517         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75518         gl_GETADDRINFO.
75519         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75520         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75521         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75522
75523 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75524
75525         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75526         Don't use 'exit'; just return from 'main'.
75527         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75528
75529         * lib/fnmatch_.h: Readjust white space and comments to match
75530         glibc, to avoid spurious diffs.
75531
75532 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75533
75534         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75535         2004-12-01 change by Jakub Jelinek, since this code won't compile
75536         if !LIBC.  Problem reported by Bob Proulx.
75537
75538 2007-01-23  Bruno Haible  <bruno@clisp.org>
75539
75540         * lib/striconveh.c: Include c-strcaseeq.h.
75541         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75542         * modules/striconveh (Depends-on): Add c-strcaseeq.
75543
75544 2007-01-23  Bruno Haible  <bruno@clisp.org>
75545
75546         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75547
75548         * modules/c-strcaseeq: New file.
75549         * lib/c-strcaseeq.h: New file.
75550
75551         * modules/streq: New file.
75552         * lib/streq.h: New file.
75553
75554 2007-01-23  Bruno Haible  <bruno@clisp.org>
75555
75556         * modules/striconveha-tests: New file.
75557         * tests/test-striconveha.c: New file.
75558
75559         * lib/striconveha.h: Include <stdbool.h>.
75560         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75561         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75562         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75563         (mem_iconveha): New function.
75564         (str_iconveha_notranslit): Renamed from str_iconveha.
75565         (str_iconveha): New function.
75566         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75567         c-strcase.
75568
75569 2007-01-23  Bruno Haible  <bruno@clisp.org>
75570
75571         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75572         encodings without forgiving before trying any encoding with handler.
75573         (str_iconveha): Try all encodings without forgiving before trying any
75574         encoding with handler.
75575
75576 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75577
75578         Import the following changes from libc.
75579
75580         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75581
75582         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75583
75584         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75585
75586         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75587         normal_bracket label.
75588
75589         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75590
75591         [BZ #361]
75592         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75593         to normal_bracket after fetching the next character.
75594
75595 2007-01-22  Bruno Haible  <bruno@clisp.org>
75596
75597         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75598         argument.
75599         * lib/striconveh.c (iconv_carefully_1): New function.
75600         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75601         argument.
75602         (str_cd_iconveh): Update.
75603         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75604         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75605         * tests/test-striconveh.c (MAGIC): New macro.
75606         (new_offsets): New function.
75607         (main): Test call with and without offsets.
75608
75609 2007-01-22  Bruno Haible  <bruno@clisp.org>
75610
75611         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75612         * modules/sys_select (Makefile.am): Likewise.
75613         * modules/sys_socket (Makefile.am): Likewise.
75614         * modules/sys_time (Makefile.am): Likewise.
75615
75616 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75617
75618         * modules/gettimeofday (License): Change from GPL to LGPL, since
75619         gettimeofday is a library function.
75620
75621 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75622
75623         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75624
75625 2007-01-21  Bruno Haible  <bruno@clisp.org>
75626
75627         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75628
75629 2007-01-21  Bruno Haible  <bruno@clisp.org>
75630
75631         * modules/striconveha: New file.
75632         * lib/striconveha.h: New file.
75633         * lib/striconveha.c: New file.
75634         * MODULES.html.sh (Internationalization functions): Add striconveha.
75635         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75636         string.
75637         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75638
75639 2007-01-21  Bruno Haible  <bruno@clisp.org>
75640
75641         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75642         * lib/striconveh.c (str_iconveh): Likewise.
75643
75644 2007-01-21  Bruno Haible  <bruno@clisp.org>
75645
75646         * lib/striconveh.h (mem_iconveh): New declaration.
75647         * lib/striconveh.c (mem_iconveh): New function.
75648         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75649
75650 2007-01-21  Bruno Haible  <bruno@clisp.org>
75651
75652         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75653
75654         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75655         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75656         original result buffer.
75657         (str_cd_iconveh): Update.
75658         * tests/test-striconveh.c (main): Update.
75659
75660         * lib/striconv.h (mem_cd_iconv): Change specification.
75661         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75662         result buffer.
75663         (str_cd_iconv): Update.
75664         * tests/test-striconv.c (main): Update.
75665
75666 2007-01-21  Bruno Haible  <bruno@clisp.org>
75667
75668         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75669
75670 2007-01-20  Jim Meyering  <jim@meyering.net>
75671
75672         * lib/userspec.c (parse_with_separator): If a user or group string
75673         starts with "+", skip the corresponding name-to-ID look-up, since
75674         such a look-up must fail: user and group names may not include "+".
75675
75676 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75677
75678         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75679         since we now assume the sys_time module.
75680         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75681         check for sys/time.h; no longer needed.
75682         * modules/poll (Depends-on): Depend on sys_time.
75683
75684 2007-01-18  Bruno Haible  <bruno@clisp.org>
75685
75686         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75687         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75688
75689         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75690         gettimeofday.
75691
75692         * tests/test-gettimeofday.c: Include <time.h>.
75693         (dummy): Remove variable.
75694
75695         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75696         gl_HEADER_SYS_TIME_H.
75697         (gl_HEADER_SYS_TIME_H): New macro.
75698
75699         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75700         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75701         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75702         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75703         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75704         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75705         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75706         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75707         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75708         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75709         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75710
75711         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75712         last change; it caused a compilation error when cross-compiling to
75713         Cygwin.
75714
75715 2007-01-18  Jim Meyering  <jim@meyering.net>
75716
75717         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75718         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75719         than the race-prone "test -d sys || mkdir sys".
75720         (configure.ac): Use AC_PROG_MKDIR_P.
75721         * modules/sys_select: Likewise.
75722         * modules/sys_socket: Likewise.
75723         * modules/sys_time: Likewise.
75724
75725 2007-01-18  Eric Blake  <ebb9@byu.net>
75726
75727         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75728         replace gettimeofday.
75729         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75730         name, to avoid infinite recursion.
75731
75732 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75733
75734         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75735         module sys_time.
75736         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75737         assume timespec.h defines struct timeval.
75738         * lib/settime.c: Likewise.
75739         * lib/utimens.c: Likewise.
75740         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75741         since we now assume the gettimeofday module.
75742         * lib/tempname.c (__gen_tempname): Likewise.
75743         * lib/gettimeofday.h: Remove.
75744         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75745         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75746         Include <time.h>, for 'time()'.
75747         (localtime_buffer_addr): Also use this workaround if
75748         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75749         to simplify the uses.  All uses changed.
75750         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75751         that #undef is inside {}, and 'const' follows type name consistently.
75752         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75753         (gettimeofday): Do not use the maximum possible value for
75754         tv->tv_usec, since that might break usages other than ls.c.
75755         Instead, we'll leave ls.c alone.  This undoes today's patch
75756         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75757         we've never observed the problem but might as well keep the
75758         canary.
75759         * lib/nanosleep.c: Include timespec.h first, for interface check.
75760         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75761         now assume the sys_time module.
75762         * lib/tempname.c: Likewise.
75763         * lib/timespec.h: Likewise.
75764         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75765         needed.
75766         * lib/strftime.c: Likewise.
75767         * lib/timespec.h: Likewise.
75768         * lib/posixtm.c: Include posixtm.h first, for interface check.
75769         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75770         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75771         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75772         * lib/sys_time_.h: New file.
75773         * lib/timespec.h (struct timespec): Use long int, not long.
75774         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75775         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75776         Remove obsolescent call to AC_HEADER_TIME.
75777         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75778         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75779         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75780         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75781         Likewise.
75782         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75783         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75784         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75785         into the sys_time module.  Check for gettimeofday just once.
75786         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75787         for gettimeofday signature to just check the signature.  Merely
75788         compile it, since linking doesn't test signature.  Improve test for
75789         whether gettimeofday.o is actually needed.
75790         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75791         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75792         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75793         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75794         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75795         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75796         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75797         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75798         than worrying about sys/time.h.
75799         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75800         Don't bother worrying about TIME_WITH_SYS_TIME.
75801         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75802         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75803         * m4/sys_time_h.m4: New file.
75804         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75805         Don't include sys/time.h.  Return from main rather than exiting.
75806         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75807         all uses changed.
75808         * modules/gethrxtime (Depends-on): Add sys_time.
75809         * modules/gettime (Depends-on): Likewise.
75810         * modules/gettimeofday (Depends-on): Likewise.
75811         * modules/nanosleep (Depends-on): Likewise.
75812         * modules/settime (Depends-on): Likewise.
75813         * modules/tempname (Depends-on): Likewise.
75814         * modules/utimens (Depends-on): Likewise.
75815         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75816         (Include): Change back to <sys/time.h>.
75817         (Maintainer): Add self.
75818         * modules/sys_time: New file.
75819         * modules/tempname (Depends-on): Add gettimeofday.
75820         * tests/test-gettimeofday.c: Include <sys/time.h>
75821         rather than gettimeofday.h.
75822
75823 2007-01-17  Bruno Haible  <bruno@clisp.org>
75824
75825         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75826         the license default to GPL.
75827         (func_create_testdir): Don't complain if a module is LGPL and its
75828         tests module depends on GPLed modules.
75829
75830 2007-01-17  Bruno Haible  <bruno@clisp.org>
75831
75832         * lib/gettimeofday.c (gettimeofday): Add code for the case
75833         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75834         maximum possible value for tv->tv_usec, rather than the minimum one.
75835
75836 2005-10-08  Martin Lambers  <marlam@marlam.de>
75837 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75838 2007-01-16  Bruno Haible  <bruno@clisp.org>
75839
75840         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75841         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75842         gl_FUNC_GETTIMEOFDAY.
75843         (Include): Add gettimeofday.h.
75844         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75845         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75846         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75847         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75848         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75849         * lib/gettimeofday.h: New file.
75850         * lib/gettimeofday.c: Include <sys/timeb.h>.
75851         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75852         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75853         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75854         fall back on time().
75855
75856         * tests/test-gettimeofday.c: New file.
75857         * modules/gettimeofday-tests: New file.
75858
75859 2007-01-16  Eric Blake  <ebb9@byu.net>
75860
75861         * modules/fnmatch (Depends-on): Depend on wchar.
75862         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75863         * m4/fnmatch.m4: Likewise.
75864         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75865         * m4/mbchar.m4: Likewise.
75866         * modules/mbswidth (Depends-on): Depend on wchar.
75867         * lib/mbswidth.c: Assume <wchar.h>.
75868         * m4/mbswidth.m4: Likewise.
75869         * modules/quotearg (Depends-on): Depend on wchar.
75870         * lib/quotearg.c: Assume <wchar.h>.
75871         * m4/quotearg.m4: Likewise.
75872         * modules/regex (Depends-on): Depend on wchar.
75873         * lib/regex_internal.h: Assume <wchar.h>.
75874         * m4/regex.m4: Likewise.
75875         * modules/stdint (Depends-on): Depend on wchar.
75876         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75877         * m4/stdint.m4: Likewise.
75878         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75879         * modules/strftime (Depends-on): Depend on wchar.
75880         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75881         * modules/strtol (Depends-on): Depend on wchar.
75882         * lib/strtol.c: Assume <wchar.h>.
75883         * modules/wcwidth (Depends-on): Depend on wchar.
75884         * lib/wcwidth.h: Assume <wchar.h>.
75885         * m4/wcwidth.m4: Likewise.
75886
75887 2007-01-16  Bruno Haible  <bruno@clisp.org>
75888
75889         * modules/csharpexec-script: New, created from...
75890         * modules/csharpexec: ... this.
75891
75892 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75893
75894         * modules/javaexec-script: New, created from...
75895         * modules/javaexec: ... this.
75896
75897 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75898
75899         * modules/poll (Dependencies): Add sys_select.
75900
75901 2007-01-15  Jim Meyering  <jim@meyering.net>
75902
75903         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75904         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75905         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75906         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75907
75908 2007-01-15  Bruno Haible  <bruno@clisp.org>
75909
75910         * modules/striconveh: New file.
75911         * lib/striconveh.h: New file.
75912         * lib/striconveh.c: New file.
75913         * MODULES.html.sh (Internationalization functions): Add striconveh.
75914
75915         * modules/striconveh-tests: New file.
75916         * tests/test-striconveh.c: New file.
75917
75918 2007-01-15  Bruno Haible  <bruno@clisp.org>
75919
75920         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75921         not from GNU libiconv or GNU libc.
75922
75923 2007-01-15  Bruno Haible  <bruno@clisp.org>
75924
75925         * doc/gnulib-intro.texi (Copyright): Explain the different license
75926         terms for module descriptions, autoconf macros, tests, documentation.
75927
75928 2007-01-14  Bruno Haible  <bruno@clisp.org>
75929
75930         * modules/striconv-tests: New file.
75931         * tests/test-striconv.c: New file.
75932
75933 2007-01-14  Bruno Haible  <bruno@clisp.org>
75934
75935         * modules/iconv-tests: New file.
75936         * tests/test-iconv.c: New file.
75937
75938 2007-01-14  Bruno Haible  <bruno@clisp.org>
75939
75940         * gnulib-tool (func_get_license): For test modules, use the license of
75941         the main module.
75942
75943 2007-01-14  Bruno Haible  <bruno@clisp.org>
75944
75945         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75946         if iconv is found to exist.
75947
75948 2007-01-14  Bruno Haible  <bruno@clisp.org>
75949
75950         * modules/c-ctype-tests: New file.
75951         * tests/test-c-ctype.c: New file.
75952
75953 2007-01-14  Bruno Haible  <bruno@clisp.org>
75954
75955         * modules/binary-io-tests: New file.
75956         * tests/test-binary-io.sh: New file.
75957         * tests/test-binary-io.c: New file.
75958
75959 2007-01-14  Bruno Haible  <bruno@clisp.org>
75960
75961         * modules/array-oset-tests: New file.
75962         * tests/test-array_oset.c: New file.
75963
75964 2007-01-14  Bruno Haible  <bruno@clisp.org>
75965
75966         * modules/array-list-tests: New file.
75967         * tests/test-array_list.c: New file.
75968
75969 2007-01-14  Bruno Haible  <bruno@clisp.org>
75970
75971         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75972         and make.
75973         Reported by Simon Josefsson in
75974         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75975
75976 2007-01-14  Bruno Haible  <bruno@clisp.org>
75977
75978         * modules/allocsa-tests: New file.
75979         * tests/test-allocsa.c: New file.
75980
75981 2007-01-14  Bruno Haible  <bruno@clisp.org>
75982
75983         * modules/fchdir (Depends-on): Add absolute-header.
75984         * modules/unistd (Depends-on): Likewise.
75985
75986 2006-12-30  Bruno Haible  <bruno@clisp.org>
75987
75988         * modules/fchdir: New file.
75989         * modules/unistd (Files): Add lib/unistd_.h.
75990         (Makefile.am): Generate unistd.h from unistd_.h.
75991         * lib/fchdir.c: New file.
75992         * lib/dirent_.h: New file.
75993         * lib/unistd_.h: New file.
75994         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75995         * m4/fchdir.m4: New file.
75996         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75997         (gl_HEADER_UNISTD): Invoke it.
75998         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75999         function.
76000         * lib/backupfile.c (opendir, closedir): Undefine.
76001         * lib/chown.c (open, close): Undefine.
76002         * lib/clean-temp.c (open, close): Undefine.
76003         * lib/copy-file.c (open, close): Undefine.
76004         * lib/execute.c (open, close): Undefine.
76005         * lib/fsusage.c (open, close): Undefine.
76006         * lib/gc-gnulib.c (open, close): Undefine.
76007         * lib/getcwd.c (opendir, closedir): Undefine.
76008         * lib/glob.c (opendir, closedir): Undefine.
76009         * lib/javacomp.c (open, close): Undefine.
76010         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
76011         * lib/openat-proc.c (open, close): Undefine.
76012         * lib/pagealign_alloc.c (open, close): Undefine.
76013         * lib/pipe.c (open, close): Undefine.
76014         * lib/progreloc.c (open, close): Undefine.
76015         * lib/savedir.c (opendir, closedir): Undefine.
76016         * lib/utime.c (open, close): Undefine.
76017         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
76018
76019 2007-01-10  Bruno Haible  <bruno@clisp.org>
76020
76021         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
76022
76023 2007-01-12  Eric Blake  <ebb9@byu.net>
76024
76025         Provide a robust <wchar.h>.  Further simplifications are now
76026         possible in other modules, but not included here.
76027         * modules/wchar: New module.
76028         * m4/wchar.m4: New file.
76029         * lib/wchar_.h: Likewise.
76030         * modules/mbchar (Depends-on): Depend on wchar, as the first use
76031         of the new module.
76032         * MODULES.html.sh (Extended multibyte and wide character utilities):
76033         New section.
76034
76035 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
76036
76037         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
76038         to a reasonable default for memory allocation.
76039         (xreadlink): Don't allocate a huge buffer, to work around a buggy
76040         file system that reports garbage st_size values for symlinks.
76041         Problem reported by Liyang Hu.
76042
76043 2007-01-11  Simon Josefsson  <simon@josefsson.org>
76044
76045         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
76046         Emacs .#* auto-save files).
76047
76048 2007-01-11  Bruno Haible  <bruno@clisp.org>
76049
76050         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
76051         directory.
76052
76053 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76054
76055         Use @...@ consistently in lib/wctype_.h.
76056         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
76057         on it being set to 1 or 0.
76058         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
76059         go back to AC_SUBSTing it.
76060         * modules/wctype (Makefile.am): Undo previous change.
76061
76062 2007-01-10  Eric Blake  <ebb9@byu.net>
76063
76064         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
76065         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
76066         * modules/wctype (Makefile.am): Likewise.
76067         Reported by Chris McGuire.
76068
76069 2007-01-10  Jim Meyering  <jim@meyering.net>
76070
76071         fts.c: a small readability/maintainability improvement
76072         * lib/fts.c (fts_read): Make this code slightly more readable and
76073         maintainable by hoisting the "sp->fts_cur = p" assignments to
76074         immediately follow the statements that set P.  Derived from
76075         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
76076
76077 2007-01-10  Eric Blake  <ebb9@byu.net>
76078
76079         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
76080         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
76081         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76082         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
76083         Reported by Chris McGuire.
76084
76085 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76086
76087         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
76088         in sed script.
76089
76090 2007-01-09  Bruno Haible  <bruno@clisp.org>
76091
76092         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
76093         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
76094         variables.
76095         (func_module): Use them.
76096
76097 2007-01-09  Bruno Haible  <bruno@clisp.org>
76098
76099         * modules/unistr/base: New file.
76100         * lib/unistr.h: New file.
76101
76102         * modules/unistr/u8-to-u16: New file.
76103         * lib/unistr/u8-to-u16.c: New file.
76104
76105         * modules/unistr/u8-to-u32: New file.
76106         * lib/unistr/u8-to-u32.c: New file.
76107
76108         * modules/unistr/u16-to-u8: New file.
76109         * lib/unistr/u16-to-u8.c: New file.
76110
76111         * modules/unistr/u16-to-u32: New file.
76112         * lib/unistr/u16-to-u32.c: New file.
76113
76114         * modules/unistr/u32-to-u8: New file.
76115         * lib/unistr/u32-to-u8.c: New file.
76116
76117         * modules/unistr/u32-to-u16: New file.
76118         * lib/unistr/u32-to-u16.c: New file.
76119
76120         * modules/unistr/u8-check: New file.
76121         * modules/unistr/u16-check: New file.
76122         * modules/unistr/u32-check: New file.
76123         * lib/unistr/u8-check.c: New file.
76124         * lib/unistr/u16-check.c: New file.
76125         * lib/unistr/u32-check.c: New file.
76126
76127         * modules/unistr/u8-chr: New file.
76128         * modules/unistr/u16-chr: New file.
76129         * modules/unistr/u32-chr: New file.
76130         * lib/unistr/u8-chr.c: New file.
76131         * lib/unistr/u16-chr.c: New file.
76132         * lib/unistr/u32-chr.c: New file.
76133
76134         * modules/unistr/u8-cmp: New file.
76135         * modules/unistr/u16-cmp: New file.
76136         * modules/unistr/u32-cmp: New file.
76137         * lib/unistr/u8-cmp.c: New file.
76138         * lib/unistr/u16-cmp.c: New file.
76139         * lib/unistr/u32-cmp.c: New file.
76140
76141         * modules/unistr/u8-cpy: New file.
76142         * modules/unistr/u16-cpy: New file.
76143         * modules/unistr/u32-cpy: New file.
76144         * lib/unistr/u8-cpy.c: New file.
76145         * lib/unistr/u16-cpy.c: New file.
76146         * lib/unistr/u32-cpy.c: New file.
76147         * lib/unistr/u-cpy.h: New file.
76148
76149         * modules/unistr/u8-cpy-alloc: New file.
76150         * modules/unistr/u16-cpy-alloc: New file.
76151         * modules/unistr/u32-cpy-alloc: New file.
76152         * lib/unistr/u8-cpy-alloc.c: New file.
76153         * lib/unistr/u16-cpy-alloc.c: New file.
76154         * lib/unistr/u32-cpy-alloc.c: New file.
76155         * lib/unistr/u-cpy-alloc.h: New file.
76156
76157         * modules/unistr/u8-endswith: New file.
76158         * modules/unistr/u16-endswith: New file.
76159         * modules/unistr/u32-endswith: New file.
76160         * lib/unistr/u8-endswith.c: New file.
76161         * lib/unistr/u16-endswith.c: New file.
76162         * lib/unistr/u32-endswith.c: New file.
76163         * lib/unistr/u-endswith.h: New file.
76164
76165         * modules/unistr/u8-mblen: New file.
76166         * modules/unistr/u16-mblen: New file.
76167         * modules/unistr/u32-mblen: New file.
76168         * lib/unistr/u8-mblen.c: New file.
76169         * lib/unistr/u16-mblen.c: New file.
76170         * lib/unistr/u32-mblen.c: New file.
76171
76172         * modules/unistr/u8-mbtouc: New file.
76173         * modules/unistr/u16-mbtouc: New file.
76174         * modules/unistr/u32-mbtouc: New file.
76175         * lib/unistr/u8-mbtouc.c: New file.
76176         * lib/unistr/u16-mbtouc.c: New file.
76177         * lib/unistr/u32-mbtouc.c: New file.
76178
76179         * modules/unistr/u8-mbtouc-safe: New file.
76180         * modules/unistr/u16-mbtouc-safe: New file.
76181         * modules/unistr/u32-mbtouc-safe: New file.
76182         * lib/unistr/u8-mbtouc-safe.c: New file.
76183         * lib/unistr/u16-mbtouc-safe.c: New file.
76184         * lib/unistr/u32-mbtouc-safe.c: New file.
76185
76186         * modules/unistr/u8-move: New file.
76187         * modules/unistr/u16-move: New file.
76188         * modules/unistr/u32-move: New file.
76189         * lib/unistr/u8-move.c: New file.
76190         * lib/unistr/u16-move.c: New file.
76191         * lib/unistr/u32-move.c: New file.
76192         * lib/unistr/u-move.h: New file.
76193
76194         * modules/unistr/u8-next: New file.
76195         * modules/unistr/u16-next: New file.
76196         * modules/unistr/u32-next: New file.
76197         * lib/unistr/u8-next.c: New file.
76198         * lib/unistr/u16-next.c: New file.
76199         * lib/unistr/u32-next.c: New file.
76200
76201         * modules/unistr/u8-prev: New file.
76202         * modules/unistr/u16-prev: New file.
76203         * modules/unistr/u32-prev: New file.
76204         * lib/unistr/u8-prev.c: New file.
76205         * lib/unistr/u16-prev.c: New file.
76206         * lib/unistr/u32-prev.c: New file.
76207
76208         * modules/unistr/u8-set: New file.
76209         * modules/unistr/u16-set: New file.
76210         * modules/unistr/u32-set: New file.
76211         * lib/unistr/u8-set.c: New file.
76212         * lib/unistr/u16-set.c: New file.
76213         * lib/unistr/u32-set.c: New file.
76214         * lib/unistr/u-set.h: New file.
76215
76216         * modules/unistr/u8-startswith: New file.
76217         * modules/unistr/u16-startswith: New file.
76218         * modules/unistr/u32-startswith: New file.
76219         * lib/unistr/u8-startswith.c: New file.
76220         * lib/unistr/u16-startswith.c: New file.
76221         * lib/unistr/u32-startswith.c: New file.
76222         * lib/unistr/u-startswith.h: New file.
76223
76224         * modules/unistr/u8-stpcpy: New file.
76225         * modules/unistr/u16-stpcpy: New file.
76226         * modules/unistr/u32-stpcpy: New file.
76227         * lib/unistr/u8-stpcpy.c: New file.
76228         * lib/unistr/u16-stpcpy.c: New file.
76229         * lib/unistr/u32-stpcpy.c: New file.
76230         * lib/unistr/u-stpcpy.h: New file.
76231
76232         * modules/unistr/u8-stpncpy: New file.
76233         * modules/unistr/u16-stpncpy: New file.
76234         * modules/unistr/u32-stpncpy: New file.
76235         * lib/unistr/u8-stpncpy.c: New file.
76236         * lib/unistr/u16-stpncpy.c: New file.
76237         * lib/unistr/u32-stpncpy.c: New file.
76238         * lib/unistr/u-stpncpy.h: New file.
76239
76240         * modules/unistr/u8-strcat: New file.
76241         * modules/unistr/u16-strcat: New file.
76242         * modules/unistr/u32-strcat: New file.
76243         * lib/unistr/u8-strcat.c: New file.
76244         * lib/unistr/u16-strcat.c: New file.
76245         * lib/unistr/u32-strcat.c: New file.
76246         * lib/unistr/u-strcat.h: New file.
76247
76248         * modules/unistr/u8-strchr: New file.
76249         * modules/unistr/u16-strchr: New file.
76250         * modules/unistr/u32-strchr: New file.
76251         * lib/unistr/u8-strchr.c: New file.
76252         * lib/unistr/u16-strchr.c: New file.
76253         * lib/unistr/u32-strchr.c: New file.
76254
76255         * modules/unistr/u8-strcmp: New file.
76256         * modules/unistr/u16-strcmp: New file.
76257         * modules/unistr/u32-strcmp: New file.
76258         * lib/unistr/u8-strcmp.c: New file.
76259         * lib/unistr/u16-strcmp.c: New file.
76260         * lib/unistr/u32-strcmp.c: New file.
76261
76262         * modules/unistr/u8-strcpy: New file.
76263         * modules/unistr/u16-strcpy: New file.
76264         * modules/unistr/u32-strcpy: New file.
76265         * lib/unistr/u8-strcpy.c: New file.
76266         * lib/unistr/u16-strcpy.c: New file.
76267         * lib/unistr/u32-strcpy.c: New file.
76268         * lib/unistr/u-strcpy.h: New file.
76269
76270         * modules/unistr/u8-strcspn: New file.
76271         * modules/unistr/u16-strcspn: New file.
76272         * modules/unistr/u32-strcspn: New file.
76273         * lib/unistr/u8-strcspn.c: New file.
76274         * lib/unistr/u16-strcspn.c: New file.
76275         * lib/unistr/u32-strcspn.c: New file.
76276         * lib/unistr/u-strcspn.h: New file.
76277
76278         * modules/unistr/u8-strdup: New file.
76279         * modules/unistr/u16-strdup: New file.
76280         * modules/unistr/u32-strdup: New file.
76281         * lib/unistr/u8-strdup.c: New file.
76282         * lib/unistr/u16-strdup.c: New file.
76283         * lib/unistr/u32-strdup.c: New file.
76284         * lib/unistr/u-strdup.h: New file.
76285
76286         * modules/unistr/u8-strlen: New file.
76287         * modules/unistr/u16-strlen: New file.
76288         * modules/unistr/u32-strlen: New file.
76289         * lib/unistr/u8-strlen.c: New file.
76290         * lib/unistr/u16-strlen.c: New file.
76291         * lib/unistr/u32-strlen.c: New file.
76292         * lib/unistr/u-strlen.h: New file.
76293
76294         * modules/unistr/u8-strmblen: New file.
76295         * modules/unistr/u16-strmblen: New file.
76296         * modules/unistr/u32-strmblen: New file.
76297         * lib/unistr/u8-strmblen.c: New file.
76298         * lib/unistr/u16-strmblen.c: New file.
76299         * lib/unistr/u32-strmblen.c: New file.
76300
76301         * modules/unistr/u8-strmbtouc: New file.
76302         * modules/unistr/u16-strmbtouc: New file.
76303         * modules/unistr/u32-strmbtouc: New file.
76304         * lib/unistr/u8-strmbtouc.c: New file.
76305         * lib/unistr/u16-strmbtouc.c: New file.
76306         * lib/unistr/u32-strmbtouc.c: New file.
76307
76308         * modules/unistr/u8-strncat: New file.
76309         * modules/unistr/u16-strncat: New file.
76310         * modules/unistr/u32-strncat: New file.
76311         * lib/unistr/u8-strncat.c: New file.
76312         * lib/unistr/u16-strncat.c: New file.
76313         * lib/unistr/u32-strncat.c: New file.
76314         * lib/unistr/u-strncat.h: New file.
76315
76316         * modules/unistr/u8-strncmp: New file.
76317         * modules/unistr/u16-strncmp: New file.
76318         * modules/unistr/u32-strncmp: New file.
76319         * lib/unistr/u8-strncmp.c: New file.
76320         * lib/unistr/u16-strncmp.c: New file.
76321         * lib/unistr/u32-strncmp.c: New file.
76322
76323         * modules/unistr/u8-strncpy: New file.
76324         * modules/unistr/u16-strncpy: New file.
76325         * modules/unistr/u32-strncpy: New file.
76326         * lib/unistr/u8-strncpy.c: New file.
76327         * lib/unistr/u16-strncpy.c: New file.
76328         * lib/unistr/u32-strncpy.c: New file.
76329         * lib/unistr/u-strncpy.h: New file.
76330
76331         * modules/unistr/u8-strnlen: New file.
76332         * modules/unistr/u16-strnlen: New file.
76333         * modules/unistr/u32-strnlen: New file.
76334         * lib/unistr/u8-strnlen.c: New file.
76335         * lib/unistr/u16-strnlen.c: New file.
76336         * lib/unistr/u32-strnlen.c: New file.
76337         * lib/unistr/u-strnlen.h: New file.
76338
76339         * modules/unistr/u8-strpbrk: New file.
76340         * modules/unistr/u16-strpbrk: New file.
76341         * modules/unistr/u32-strpbrk: New file.
76342         * lib/unistr/u8-strpbrk.c: New file.
76343         * lib/unistr/u16-strpbrk.c: New file.
76344         * lib/unistr/u32-strpbrk.c: New file.
76345         * lib/unistr/u-strpbrk.h: New file.
76346
76347         * modules/unistr/u8-strrchr: New file.
76348         * modules/unistr/u16-strrchr: New file.
76349         * modules/unistr/u32-strrchr: New file.
76350         * lib/unistr/u8-strrchr.c: New file.
76351         * lib/unistr/u16-strrchr.c: New file.
76352         * lib/unistr/u32-strrchr.c: New file.
76353
76354         * modules/unistr/u8-strspn: New file.
76355         * modules/unistr/u16-strspn: New file.
76356         * modules/unistr/u32-strspn: New file.
76357         * lib/unistr/u8-strspn.c: New file.
76358         * lib/unistr/u16-strspn.c: New file.
76359         * lib/unistr/u32-strspn.c: New file.
76360         * lib/unistr/u-strspn.h: New file.
76361
76362         * modules/unistr/u8-strstr: New file.
76363         * modules/unistr/u16-strstr: New file.
76364         * modules/unistr/u32-strstr: New file.
76365         * lib/unistr/u8-strstr.c: New file.
76366         * lib/unistr/u16-strstr.c: New file.
76367         * lib/unistr/u32-strstr.c: New file.
76368         * lib/unistr/u-strstr.h: New file.
76369
76370         * modules/unistr/u8-strtok: New file.
76371         * modules/unistr/u16-strtok: New file.
76372         * modules/unistr/u32-strtok: New file.
76373         * lib/unistr/u8-strtok.c: New file.
76374         * lib/unistr/u16-strtok.c: New file.
76375         * lib/unistr/u32-strtok.c: New file.
76376         * lib/unistr/u-strtok.h: New file.
76377
76378         * modules/unistr/u8-uctomb: New file.
76379         * modules/unistr/u16-uctomb: New file.
76380         * modules/unistr/u32-uctomb: New file.
76381         * lib/unistr/u8-uctomb.c: New file.
76382         * lib/unistr/u16-uctomb.c: New file.
76383         * lib/unistr/u32-uctomb.c: New file.
76384
76385         * MODULES.html.sh (Unicode string functions): Add the new modules.
76386
76387 2007-01-08  Bruno Haible  <bruno@clisp.org>
76388
76389         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
76390         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
76391         subdirectories.
76392
76393 2007-01-08  Karl Berry  <karl@gnu.org>
76394
76395         * doc/error.texi: mention that main() fns must set program_name
76396         when progname is used.
76397
76398 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
76399
76400         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
76401         WCTYPE_H is empty, for the benefit of builds from non-distclean
76402         directories.  Problem reported by Eric Blake in
76403         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
76404
76405 2007-01-08  Bruno Haible  <bruno@clisp.org>
76406
76407         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
76408         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
76409         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
76410         PROVIDE_CANONICALIZE_FILENAME_MODE.
76411         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
76412
76413 2007-01-08  Bruno Haible  <bruno@clisp.org>
76414
76415         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
76416         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
76417         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
76418         * lib/fts.c: Likewise.
76419         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
76420
76421 2006-12-25  Bruno Haible  <bruno@clisp.org>
76422
76423         * modules/utf8-ucs4-safe: New file.
76424         * lib/utf8-ucs4-safe.h: New file.
76425         * lib/unistr/utf8-ucs4-safe.c: New file.
76426
76427         * modules/utf16-ucs4-safe: New file.
76428         * lib/utf16-ucs4-safe.h: New file.
76429         * lib/unistr/utf16-ucs4-safe.c: New file.
76430
76431         * MODULES.html.sh (Unicode string functions): Add the new modules.
76432
76433 2007-01-08  Bruno Haible  <bruno@clisp.org>
76434
76435         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
76436         (Depends-on): Add unitypes.
76437         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76438         (u8_mbtouc_aux): Move out to separate file.
76439         (u8_mbtouc): Use ucs4_t, uint8_t types.
76440         * lib/unistr/utf8-ucs4.c: New file.
76441
76442         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
76443         (Depends-on): Add unitypes.
76444         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76445         (u16_mbtouc_aux): Move out to separate file.
76446         (u16_mbtouc): Use ucs4_t, uint16_t types.
76447         * lib/unistr/utf16-ucs4.c: New file.
76448
76449         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
76450         (Depends-on): Add unitypes.
76451         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
76452         (u8_uctomb_aux): Move out to separate file.
76453         (u8_uctomb): Use ucs4_t, uint8_t types.
76454         * lib/unistr/ucs4-utf8.c: New file.
76455
76456         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
76457         (Depends-on): Add unitypes.
76458         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
76459         (u16_uctomb_aux): Move out to separate file.
76460         (u16_uctomb): Use ucs4_t, uint16_t types.
76461         * lib/unistr/ucs4-utf16.c: New file.
76462
76463 2006-12-25  Bruno Haible  <bruno@clisp.org>
76464
76465         * modules/unitypes: New file.
76466         * lib/unitypes.h: New file.
76467         * MODULES.html.sh (func_all_modules): New section "Unicode string
76468         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
76469         this section. Add unitypes.
76470
76471 2007-01-08  Bruno Haible  <bruno@clisp.org>
76472
76473         Avoid variable names that conflict with those from libtool.
76474         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
76475         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
76476         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
76477         library_names_spec to acl_library_names_spec, hardcode_* to
76478         acl_hardcode_*.
76479         Reported by Ralf Wildenhues.
76480
76481 2007-01-08  Bruno Haible  <bruno@clisp.org>
76482
76483         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
76484         definition.
76485         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
76486         definition.
76487         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
76488         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
76489         definition.
76490         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
76491         definition.
76492         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
76493         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
76494         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
76495         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
76496         definition.
76497         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
76498         definition.
76499         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
76500         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
76501         GC_USE_<algorithm>.
76502         * lib/gc-libgcrypt.c: Likewise.
76503         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
76504         * modules/gc-arctwo (configure.ac): Likewise.
76505         * modules/gc-des (configure.ac): Likewise.
76506         * modules/gc-hmac-md5 (configure.ac): Likewise.
76507         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76508         * modules/gc-md2 (configure.ac): Likewise.
76509         * modules/gc-md4 (configure.ac): Likewise.
76510         * modules/gc-md5 (configure.ac): Likewise.
76511         * modules/gc-random (configure.ac): Likewise.
76512         * modules/gc-rijndael (configure.ac): Likewise.
76513         * modules/gc-sha1 (configure.ac): Likewise.
76514
76515 2007-01-08  Bruno Haible  <bruno@clisp.org>
76516
76517         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76518         macro definition.
76519         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76520         definition.
76521         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76522         definition.
76523         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76524         * modules/fcntl-safer (configure.ac): Likewise.
76525         * modules/fopen-safer (configure.ac): Likewise.
76526         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76527         GNULIB_FWRITEERROR macro definition.
76528
76529 2007-01-08  Bruno Haible  <bruno@clisp.org>
76530
76531         * m4/gnulib-common.m4: New file.
76532         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76533         (func_get_filelist): Add m4/gnulib-common.m4.
76534
76535 2007-01-08  Bruno Haible  <bruno@clisp.org>
76536
76537         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76538         command.
76539
76540 2007-01-08  Jim Meyering  <jim@meyering.net>
76541
76542         Use a more robust test for a "can't happen" condition.
76543         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76544         narrowed the st_size value.  Presuming the "can't happen" condition
76545         is true, that narrowing could conceivably convert an invalid st_size
76546         value into a valid one.  Instead, use a change based on Matthew
76547         Woehlke's original patch.
76548
76549         Slight readability improvement: use an assert-like macro
76550         in place of literal "abort ()" uses.
76551         * lib/fts.c (fts_assert): Define.
76552         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76553         Use this macro instead of a bare 'abort'.
76554
76555 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76556
76557         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76558         simply work around them.
76559         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76560         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76561         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76562         declaring.
76563         Don't bother to define as macros, since the standard doesn't require it.
76564         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76565         longer worry about IRIX 5.3.
76566         (HAVE_WCTYPE_CTMP_BUG): Remove.
76567
76568 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76569
76570         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76571         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76572         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76573         Problems reported by Georg Schwarz for IRIX 5.3.
76574
76575         * gnulib-tool (autoconf_minversion): Take the maximum version number
76576         found, not the minimum.  Problem reported by James Youngman.
76577
76578 2007-01-03  Karl Berry  <karl@gnu.org>
76579
76580         * doc/error.texi: new file, explaining interaction with progname.
76581         * doc/gnulib.texi: include it.  Update copyright.
76582
76583 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76584
76585         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76586         AC_CANONICAL_HOST, to improve autobuild outputs.
76587
76588 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76589             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76590
76591         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76592         sockets, server sockets, and other file descriptors.  Count errors
76593         to compute the return value.  Reorder the code a bit to be easier
76594         to follow.  Don't set event bits that were not requested (except
76595         POLLERR and POLLHUP).
76596
76597 2007-01-01  Bruno Haible  <bruno@clisp.org>
76598
76599         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76600
76601 2007-01-03  Jim Meyering  <jim@meyering.net>
76602
76603         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76604
76605 2007-01-02  Bruno Haible  <bruno@clisp.org>
76606
76607         * modules/settime (Include): Require timespec.h.
76608         * modules/nanosleep (Include): Likewise.
76609
76610 2007-01-01  Bruno Haible  <bruno@clisp.org>
76611
76612         * gnulib-tool (func_emit_copyright_notice): Bump year.
76613         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76614
76615 2007-01-01  Bruno Haible  <bruno@clisp.org>
76616
76617         Improve support for OpenBSD.
76618         * build-aux/config.rpath (libname_spec): Export.
76619         (library_names_spec): New variable. Export.
76620         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76621         library_names_spec from the config.rpath output. Locate shared library
76622         through the name pattern in library_names_spec.
76623
76624 2007-01-01  Eric Blake  <ebb9@byu.net>
76625
76626         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76627
76628 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76629
76630         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76631         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76632         assume the C locale, and avoid an "eval" that could cause trouble.
76633         Problem with SORT reported by Bob Proulx.
76634
76635         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76636         Define.  Trivial patch from Henning Nielsen Lund, originally
76637         sent to bug-grep@gnu.org today.
76638
76639 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76640
76641         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76642         struct stat.  Problem reported by Henning Nielsen Lund.
76643         * lib/acl.c: Include acl.h first, to check interface.  Don't
76644         bother to include sys/types.h and sys/stat.h again.
76645
76646 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76647
76648         Import the following change from libc; problem reported by
76649         Sven Verdoolaege.
76650
76651         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76652
76653         [BZ #1373]
76654         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76655
76656 2006-12-28  Jim Meyering  <jim@meyering.net>
76657
76658         * build-aux/announce-gen: Do not assume that the package
76659         builds any of tar.gz, tar.bz2, and .xdelta files.
76660         Suggestion from Simon Josefsson.
76661
76662 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76663
76664         * modules/announce-gen: New file.
76665
76666 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76667
76668         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76669         handles its gotchas now.
76670         * lib/mbswidth.c: Likewise.
76671         * lib/wcwidth.h: Likewise.
76672         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76673         and iswcntrl; the wctype module does this stuff now.
76674         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76675         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76676         * modules/mbchar (Depends-on): Add wctype.
76677         * modules/mbswidth (Depends-on): Likewise.
76678         * modules/wcwidth (Depends-on): Likewise.
76679
76680 2006-12-27  Eric Blake  <ebb9@byu.net>
76681
76682         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76683         module uses more than what <wctype.h> is required to provide.
76684
76685 2006-12-26  Eric Blake  <ebb9@byu.net>
76686
76687         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76688
76689 2006-12-26  Eric Blake  <ebb9@byu.net>
76690
76691         * modules/absolute-header: New module.
76692         * modules/fcntl (Depends-on): Depend on it.
76693         * modules/inttypes (Depends-on): Likewise.
76694         * modules/stdint (Depends-on): Likewise.
76695         * modules/sys_stat (Depends-on): Likewise.
76696         * modules/wctype (Depends-on): Likewise.
76697         * MODULES.html.sh (Support for building libraries and
76698         executables): Document it.
76699
76700 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76701
76702         * gnulib-tool (SED): Remove, undoing previous change.
76703         The problem was that it broke coreutils on Solaris, because
76704         "sed --posix" leaked into a makefile.
76705         (sed): New alias, if 'alias' and GNU sed.
76706
76707 2006-12-24  Jim Meyering  <jim@meyering.net>
76708
76709         Work around an fchownat bug in glibc-2.4:
76710         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76711         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76712         in spite of the -P option.
76713         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76714         New macros.
76715         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76716         * modules/openat (Files): Add lib/fchownat.c.
76717         * lib/openat.c (fchownat): Don't define here.  Move to...
76718         * lib/fchownat.c: ...this new file.
76719
76720 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76721
76722         Fix bug reported by Bruno Haible in
76723         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76724         where quotearg.c didn't compile on Mac OS X 10.2 because it
76725         lacks <wchar.h> and wint_t.
76726         * lib/wctype_.h (__wctype_wint_t): New type.
76727         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76728         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76729         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76730         Arg is now of type __wctype_wint_t, not wint_t.
76731         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76732         substitute HAVE_WINT_T.
76733         * modules/wctype (Files): Add m4/wint_t.m4.
76734         (wctype.h): Substitute HAVE_WINT_T.
76735
76736 2006-12-23  Bruno Haible  <bruno@clisp.org>
76737
76738         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76739
76740 2006-12-23  Bruno Haible  <bruno@clisp.org>
76741
76742         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76743         S_ISLNK.
76744         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76745         mingw.
76746
76747 2006-12-22  Bruno Haible  <bruno@clisp.org>
76748
76749         * lib/copy-file.c: Include acl.h.
76750         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76751         Close the file descriptors only after being done with copy_acl.
76752         * modules/copy-file (Depends-on): Add acl.
76753
76754 2006-12-22  Bruno Haible  <bruno@clisp.org>
76755
76756         * gnulib-tool (SED): New variable.
76757         Use $SED instead of sed everywhere.
76758
76759 2006-12-22  Bruno Haible  <bruno@clisp.org>
76760
76761         * modules/no-c++: New file.
76762         * m4/no-c++.m4: New file.
76763         * MODULES.html.sh (Support for building libraries and executables):
76764         Add no-c++.
76765
76766 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76767
76768         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76769         Include <limits.h>, and use its INT_MAX to rewrite the
76770         j loop so that it does not overflow 'int'.  Problem reported by
76771         Ralf Wildenhues in
76772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76773         Play it safe by shifting left by 1 rather than multiplying by 2,
76774         as GCC is less likely to optimize this away when the value
76775         is signed (when it assumes overflow leads to undefined behavior).
76776         Also, don't assume time_t uses two's complement.
76777
76778 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76779
76780         * MODULES.html.sh: New module wctype.
76781         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76782         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76783         <wctype.h>, since the new wctype module should fix this.
76784         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76785         the wctype module should arrange for it.
76786         * lib/regex_internal.h: Likewise.
76787         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76788         since the wctype module should handle this now.
76789         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76790         * modules/fnmatch (Depends-on): Add wctype.
76791         * modules/quotearg (Depends-on): Likewise.
76792         * modules/regex (Depends-on): Likewise.
76793
76794 2006-12-19  Bruno Haible  <bruno@clisp.org>
76795
76796         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76797         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76798
76799 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76800
76801         * modules/savewd (Depends-on): Fix dependency on fcntl.
76802
76803 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76804
76805         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76806         conforms to C99, rather than relying on the user's environment
76807         setting of STDINT_H.
76808
76809 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76810         and Eric Blake  <ebb9@byu.net>
76811
76812         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76813         This is more consistent with the other defines here.
76814         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76815         Port to z/OS.  Problem reported by Paul Gilmartin.
76816         Change local vars to use gl_ prefix rather than ac_.
76817         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76818         with other defines.
76819         * modules/double-slash-root: New module.
76820         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76821         (Depends-on): Add double-slash-root.
76822         * MODULES.html.sh (File system functions): Mention new module.
76823
76824 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76825
76826         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76827         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76828         This is for the benefit of gzip, which doesn't do i18n.
76829
76830 2006-12-12  Jim Meyering  <jim@meyering.net>
76831
76832         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76833         Reported by Andreas Schwab <schwab@suse.de>.
76834
76835 2006-12-12  Bruno Haible  <bruno@clisp.org>
76836
76837         Merge these changes.
76838         2006-09-05  Bruno Haible  <bruno@clisp.org>
76839         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76840         iconv_alloc succeeded.
76841         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76842         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76843         test for " && dest " at the end - dest is always != NULL there. Call
76844         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76845         with 2xNULL arguments, also to flush the state storage. Handle the
76846         IRIX iconv behaviour. Realloc the final result, to throw away unused
76847         memory.
76848
76849 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76850
76851         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76852         and fchmodat unconditionally, since glibc 2.4 has them.
76853         Problem reported by Arkadiusz Miskiewicz.
76854
76855 2006-12-10  Bruno Haible  <bruno@clisp.org>
76856
76857         * gnulib-tool (func_import): Show the include files only for those
76858         modules that are copied and specified.
76859         Reported by Karl Berry.
76860
76861 2006-12-08  Jim Meyering  <jim@meyering.net>
76862
76863         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76864         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76865
76866         * build-aux/announce-gen: Add two new options, both optional:
76867         --bootstrap-tools=TOOL_LIST
76868               a comma-separated list of tools, e.g.,
76869               autoconf,automake,bison,gnulib
76870         --gnulib-snapshot-date=DATE
76871               if gnulib is in the bootstrap tool list,
76872               then report this as the snapshot date.
76873               If not specified, use the current date/time.
76874               If you specify a date here, be sure it's UTC.
76875
76876 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76877
76878         * tests/test-argp-2.sh: Fix test to match actual output.
76879         (func_compare): Fix sed script to be portable.
76880
76881 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76882
76883         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76884         workaround for this case.  It is not autoconfigured now; offhand
76885         it's hard to see how to autoconfigure it.
76886
76887 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76890         a directory that is about to be chowned.  Such a directory's
76891         initial file permissions should permit the owner only and this
76892         should not be changed until after the chown, since the group and
76893         other bits would be incorrect if they granted permission before
76894         the chown.
76895
76896         Fix porting problem for iswctype reported by Georg Schwarz in:
76897         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76898         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76899         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76900         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76901         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76902
76903 2006-12-03  Jim Meyering  <jim@meyering.net>
76904
76905         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76906         p->fts_statp may not yet be defined.
76907         (fts_read): Instead, set it in the caller, once p->fts_statp is
76908         sure to be defined, and corresponds to a top-level directory.
76909         This bug made du -x fail.  Here's the coreutils test case:
76910         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76911         Reported by Mike Frysinger.
76912
76913 2006-12-01  Jim Meyering  <jim@meyering.net>
76914
76915         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76916         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76917         Reported by Simon Josefsson.
76918
76919 2006-11-30  Jim Meyering  <jim@meyering.net>
76920
76921         * m4/warning.m4: Use the all-permissive copyright notice
76922         recommended by RMS (rather than LGPL).
76923         * m4/vararrays.m4: Likewise.
76924         * m4/flexmember.m4: Likewise.
76925
76926 2006-11-29  Bruno Haible  <bruno@clisp.org>
76927
76928         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76929         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76930         using +=.
76931         Reported by Simon Josefsson <simon@josefsson.org>.
76932
76933 2006-11-28  James Youngman <jay@gnu.org>
76934
76935         * README: Advise users that they might find the bug-gnulib@gnu.org
76936         and autotools-announce@gnu.org mailing lists useful.
76937
76938 2006-11-28  Bruno Haible  <bruno@clisp.org>
76939
76940         * m4/ptrdiff_max.m4: Remove file.
76941
76942 2006-11-21  Bruno Haible  <bruno@clisp.org>
76943
76944         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76945         _AC_COMPUTE_INT.
76946         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76947         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76948         _AC_COMPUTE_INT.
76949         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76950         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76951         _AC_COMPUTE_INT.
76952         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76953
76954 2006-11-28  Jim Meyering  <jim@meyering.net>
76955
76956         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76957         warning from "gcc -Wshadow" about shadowing the builtin.
76958
76959 2006-11-27  Bruno Haible  <bruno@clisp.org>
76960
76961         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76962         _AC_COMPUTE_INT.
76963         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76964
76965 2006-11-27  Bruno Haible  <bruno@clisp.org>
76966             Paul Eggert  <eggert@cs.ucla.edu>
76967
76968         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76969
76970 2006-11-26  Bruno Haible  <bruno@clisp.org>
76971
76972         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76973         noinst_LTLIBRARIES.
76974
76975 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76976             Bruno Haible  <bruno@clisp.org>
76977
76978         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76979         if compiling with "gcc -ansi".
76980
76981 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76982
76983         Fix some incompatibilities with gcc -ansi -pedantic.
76984         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76985         if compiling pedantically with GCC, unless it's C99 or later.
76986         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76987         it mishandles gcc -ansi -pedantic as well.
76988         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76989         if gcc -pedantic.
76990         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76991         initializers for struct if -pedantic, unless it's C99 or later.
76992
76993 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76994
76995         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76996         Don't close an fd more than once. Identical atimes indicate
76997         success, not failure.
76998
76999 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
77000
77001         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
77002
77003 2006-11-23  Jim Meyering  <jim@meyering.net>
77004
77005         * build-aux/announce-gen: New file.  From coreutils.
77006
77007 2006-11-22  Jim Meyering  <jim@meyering.net>
77008
77009         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
77010         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
77011         (fts_read): Use a temporary to narrow the overused st_size member
77012         before using it in a switch statement.  Reported by Matthew Woehlke.
77013
77014         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
77015         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
77016
77017 2006-11-20  Bruno Haible  <bruno@clisp.org>
77018
77019         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
77020         changequote instead of pairs of brackets.
77021         Reported by Andreas Schwab <schwab@suse.de>.
77022
77023 2006-11-21  Jim Meyering  <jim@meyering.net>
77024
77025         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
77026         so as to remain compatible with older compilers.
77027         Patch from Michael Deutschmann.
77028
77029 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77030
77031         * MODULES.html.sh (File system functions): Add openat.
77032
77033         * lib/openat.h (rpl_fstatat): New macro, if
77034         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
77035         (fstatat): Define to rpl_fstatat under the same conditions,
77036         unless COMPILING_FSTATAT.
77037         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
77038         seems to have the bug.
77039         * lib/fstatat.c: New file.
77040         * modules/openat (Files): Add it.
77041
77042 2006-11-20  Bruno Haible  <bruno@clisp.org>
77043
77044         * Makefile: New file.
77045
77046 2006-11-20  Jim Meyering  <jim@meyering.net>
77047
77048         The beginnings of syntax-related checks for gnulib.
77049         * lib/Makefile: New file.
77050         * lib/t-idcache: New script.  Ensure that the two halves of
77051         idcache.c stay in sync.
77052
77053         * lib/idcache.c: Adjust comments in user- and group- portions to
77054         be more accurate, and to be consistent with one another.
77055
77056 2006-11-20  Jim Meyering  <jim@meyering.net>
77057
77058         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
77059         continue using the flexible array member (thus, this module performs
77060         half as many malloc calls), with the addition that...
77061         (getgroup, getuser): Consistently record a non-match via an empty
77062         "name" string, and map an empty string match to a NULL return value.
77063         * modules/idcache (Depends-on): Re-add flexmember.
77064
77065         * lib/idcache.c (getuser): Remove all uses of the register keyword.
77066         (getuidbyname, getgroup, getgidbyname): Likewise.
77067
77068         Use cleaner syntax: NULL rather than 0.
77069         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
77070
77071 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77072
77073         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
77074         It mishandled the case where the group was missing.
77075         Problem reported by Greg Schafer.
77076         * modules/idcache: Likewise.
77077
77078 2006-11-18  Jim Meyering  <jim@meyering.net>
77079
77080         * check-module (%exempt_header): Add exception for some
77081         conditionally-included headers.
77082
77083         * modules/i-ring (Depends-on): Add verify.
77084         (License): Change to LGPL.
77085
77086 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77087
77088         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
77089         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
77090         and inttostr.h.  Use snprintf rather than uinttostr, so that
77091         LGPLed code doesn't depend on GPLed.
77092
77093 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77094
77095         * modules/inline (License): Change from GPL to LGPL.
77096
77097 2006-11-17  Jim Meyering  <jim@meyering.net>
77098
77099         * modules/d-type (License): Switch to LGPL.
77100
77101 2006-11-15  Bruno Haible  <bruno@clisp.org>
77102
77103         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
77104
77105 2006-11-15  Eric Blake  <ebb9@byu.net>
77106
77107         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
77108         the module dependency.
77109
77110 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77111             Bruno Haible  <bruno@clisp.org>
77112
77113         * gnulib-tool (func_create_testdir): Add license consistency check.
77114
77115 2006-11-15  Eric Blake  <ebb9@byu.net>
77116
77117         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
77118         random "(cached)" in configure output.
77119
77120 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77121
77122         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
77123         test for conforming inttypes.h is both announced and cached.
77124
77125         * MODULES.html.sh (seen_modules, seen_files): New variables.
77126         (func_module): Rewrite to use a few less gnulib-tool and sed
77127         invocations.  Avoid a couple of quadratic algorithms for ...
77128         (missed_modules, missed_files): ... these, with ...
77129         (func_append, func_tmpdir): ... these new functions, from
77130         gnulib-tool.  Analogously, install traps for cleanup.
77131
77132         * tests/test-gc.c (main): Remove unused variables.
77133         * tests/test-read-file.c: Include stdlib.h, for 'free'.
77134
77135 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
77136
77137         * modules/inttostr (License): Change to LGPL.
77138
77139 2006-11-14  Eric Blake  <ebb9@byu.net>
77140
77141         * modules/tempname (License): Change to LGPL.
77142
77143 2006-11-14  Eric Blake  <ebb9@byu.net>
77144
77145         * doc/functions.texi (Function Portability): *printf functions on
77146         Cygwin now understand all POSIX size specifiers.
77147
77148 2006-11-14  Bruno Haible  <bruno@clisp.org>
77149
77150         * modules/c-ctype (License): Change to LGPL.
77151
77152 2006-11-12  Bruno Haible  <bruno@clisp.org>
77153
77154         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
77155         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
77156         for GNOME libraries, for which the include files are installed in
77157         subdirectories of $prefix/include.
77158
77159 2006-11-12  Bruno Haible  <bruno@clisp.org>
77160
77161         * m4/lib-link.m4: Require at least autoconf-2.54.
77162         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
77163         name to underscores for the --with option.
77164
77165 2006-11-13  Bruno Haible  <bruno@clisp.org>
77166
77167         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
77168         the tests directory.
77169         Reported by Ralf Wildenhues.
77170
77171 2006-11-13  Bruno Haible  <bruno@clisp.org>
77172
77173         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
77174         (func_emit_initmacro_end): Undo the override here.
77175         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
77176         Works around the famous automake error in coreutils.
77177
77178 2006-11-13  Eric Blake  <ebb9@byu.net>
77179
77180         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
77181         element, not its node.
77182
77183 2006-11-12  Bruno Haible  <bruno@clisp.org>
77184
77185         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
77186         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
77187
77188 2006-11-12  Bruno Haible  <bruno@clisp.org>
77189
77190         * gnulib-tool: New option --local-symlink.
77191         (func_usage): Document it.
77192         (lsymbolic): New variable.
77193         (func_import, func_create_testdir): If --symlink was not specified,
77194         test whether --local-symlink was specified and the file comes from
77195         the local_gnulib_dir.
77196
77197 2006-11-12  Bruno Haible  <bruno@clisp.org>
77198
77199         * gnulib-tool (func_ln): New function.
77200         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
77201
77202 2006-11-12  Bruno Haible  <bruno@clisp.org>
77203
77204         Finish support for source files in subdirectories.
77205         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
77206         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
77207         AUTOMAKE_OPTIONS.
77208         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
77209
77210 2006-11-12  Bruno Haible  <bruno@clisp.org>
77211
77212         * gnulib-tool (func_get_automake_snippet): Synthesize also an
77213         EXTRA_lib_SOURCES augmentation.
77214         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
77215
77216 2006-11-12  Jim Meyering  <jim@meyering.net>
77217
77218         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
77219         file descriptors.  This also averts a failure on systems with
77220         native openat support when a traversed directory lacks "x" access.
77221         * lib/fts_.h: Include "i-ring.h"
77222         (struct FTS) [fts_fd_ring]: New member.
77223         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
77224         (FCHDIR): Add parentheses.
77225         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
77226         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
77227         When descending, rather than simply closing the previous
77228         fts_cwd_fd value, push that file descriptor onto the ring.
77229         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
77230         (fts_open): Initialize the new fd_ring member.
77231         (fts_close): Clear the ring.
77232         (fts_safe_changedir): When possible, use our new fd_ring to skip
77233         the diropen and fstat and dev/ino comparison that would normally
77234         accompany a virtual `chdir ("..")'.
77235
77236         * modules/fts (Depends-on): Add i-ring.
77237         * modules/i-ring: New module.
77238         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
77239         * m4/i-ring.m4: New file.
77240
77241 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77242
77243         * gnulib-tool (func_create_testdir): Fix replacement of
77244         `build-aux' in configure.ac.  Run autotools in gltests
77245         subdirectory.
77246         (func_create_testdir, func_create_megatestdir, test): There is
77247         no need for '--force' in most autotool invocations in a new
77248         tree.  Actually fail the whole test if any of the tools, or the
77249         configure or make stages fail.
77250
77251         Sync from Automake.
77252         * build-aux/gnupload: Revert last change.  Add pointer to upload
77253         instructions of the GNU Maintenance Instructions.
77254         Suggestion by Karl Berry.
77255
77256 2006-11-10  Jim Meyering  <jim@meyering.net>
77257
77258         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
77259
77260 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77261
77262         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
77263         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
77264         (bind_textdomain_codeset) [! ENABLE_NLS]:
77265         Evaluate all the arguments.  That way, callers get compatible behavior
77266         if the arguments have side effects.  Also, it avoids some GCC
77267         diagnostics in some cases; Joel E. Denny reported problems when Bison
77268         was configured with --enable-gcc-warnigs.
77269
77270 2006-11-10  Jim Meyering  <jim@meyering.net>
77271
77272         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
77273         relevant options in CFLAGS (like -O, -fno-inline) are taken into
77274         account.
77275
77276 2006-11-10  Jim Meyering  <jim@meyering.net>
77277
77278         * modules/inline: New file/module.
77279         * modules/xalloc (Files): Remove m4/inline.m4.
77280         (Depends-on): Add inline, instead.
77281         * modules/oset: Likewise.
77282         * modules/list: Likewise.
77283
77284 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77285
77286         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
77287         Problem reported by Matthew Woehlke.
77288
77289 2006-11-09  Bruno Haible  <bruno@clisp.org>
77290
77291         * lib/tempname.c (gen_tempname): Remove variant that invokes
77292         __gen_tempname.
77293         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
77294         __gen_tempname.
77295
77296 2006-11-08  Bruno Haible  <bruno@clisp.org>
77297
77298         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
77299         to 'yes' instead of 'cross-compiling'.
77300
77301 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
77302
77303         * lib/quotearg.h (quotearg_free): New decl.
77304         * lib/quotearg.c (quotearg_free): New function.
77305         (slot0, nslots, slotvec0, slotvec):
77306         Now file-scope so that quotearg_free can get at them.
77307
77308 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77309
77310         Sync from Automake.
77311         * build-aux/gnupload: Add missing 'gnu' to example URL.
77312         Report by Karl Berry.
77313
77314 2006-11-08  Bruno Haible  <bruno@clisp.org>
77315
77316         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
77317         Suggested by Paul Eggert.
77318
77319 2006-11-08  Jim Meyering  <jim@meyering.net>
77320
77321         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
77322         It's already included if !_LIBC.
77323         (fts_safe_changedir): Add a comment.
77324
77325 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77326
77327         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
77328         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
77329         Matthew Woehlke.
77330
77331         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
77332         definitions up, to avoid colliding with change below.
77333         (static_inline) [HAVE_INLINE]: New macro.
77334         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
77335         Provide extern decls when !HAVE_INLINE.  Do not define unless
77336         static_inline is defined, either by us or by xmalloc.c.  Use
77337         static_inline rather than static inline.
77338         (XCALLOC): Optimize sizeof(T) = 1 case.
77339         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
77340
77341 2006-11-07  Bruno Haible  <bruno@clisp.org>
77342
77343         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
77344         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
77345         AC_C_INLINE.
77346         * modules/xalloc (Files): Add m4/inline.m4.
77347
77348 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77349
77350         * README: Fix typo.
77351         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
77352         (Miscellanous Notes): ...from this.
77353
77354 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77355
77356         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
77357         Mention that offsetof should be used instead of sizeof.
77358         From Bruno Haible.
77359
77360 2006-11-07  Bruno Haible  <bruno@clisp.org>
77361
77362         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
77363
77364 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77365
77366         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77367         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
77368         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77369         (gl_tree_add_before, gl_tree_add_after):
77370         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
77371         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
77372         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
77373         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
77374         (gl_linked_add_after, gl_linked_add_at): Likewise.
77375         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
77376         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77377         (gl_tree_add_before, gl_tree_add_after): Likewise.
77378         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
77379         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
77380         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77381
77382 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77383
77384         * lib/gl_oset.h: Use C comment style, not C++ comment style.
77385
77386 2006-11-06  Bruno Haible  <bruno@clisp.org>
77387
77388         * m4/inline.m4: New file.
77389         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
77390         * modules/list (Files): Add m4/inline.m4.
77391         * modules/oset (Files): Likewise.
77392
77393 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77394
77395         * lib/idcache.c: Include <stddef.h>, for offsetof.
77396         (struct userid.name): Change from char * to a flexible array member.
77397         All uses changed.
77398         * modules/idcache (Depends-on): Add flexmember.
77399
77400         * MODULES.html.sh (Core language properties): New module flexmember.
77401         * modules/flexmember, m4/flexmember.m4: New files.
77402
77403         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
77404         inline functions that are identical with the old xnmalloc_inline,
77405         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
77406         that we can avoid some unnecessary integer multiplications and
77407         divisions in the common case where the element size is known at
77408         compile time.
77409         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
77410         needed.
77411         (xnboundedmalloc): Remove.
77412         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
77413         arguments, for consistency with rest of this header.
77414         (xcharalloc): Rewrite using XNMALLOC.
77415         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
77416         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
77417         versions have been moved to lib/xalloc.h and renamed to be the
77418         non-*_inline versions.
77419         (xmalloc, xrealloc): Implement without reference to the xnmalloc
77420         and xnrealloc functions, since those functions are now inline and
77421         now call us.
77422         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
77423         renaming described above.
77424         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
77425         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
77426         captures the dependency in AC_C_INLINE.
77427
77428         New module canonicalize-lgpl, proposed by Charles Wilson in
77429         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
77430         with a few small changes afterwards.
77431         * MODULES.html.sh (File system functions): New module
77432         canonicalize-lgpl.
77433         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
77434         and canonicalize_file_name.
77435         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
77436         * modules/canonicalize-lgpl: New files.
77437
77438 2006-11-05  Bruno Haible  <bruno@clisp.org>
77439
77440         * gnulib-tool (func_import, func_create_testdir): Create directories
77441         also for files in subdirectories of lib/.
77442
77443 2006-11-05  Bruno Haible  <bruno@clisp.org>
77444
77445         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
77446         ANSI C compliant.
77447
77448 2006-11-03  Bruno Haible  <bruno@clisp.org>
77449
77450         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77451         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
77452         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
77453         (xnboundedmalloc): New inline function.
77454         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
77455         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
77456         xmalloc.
77457         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
77458         xmalloc.
77459         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
77460         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
77461         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
77462         xmalloc.
77463         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77464         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
77465         xmalloc.
77466         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
77467         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77468         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
77469         xmalloc.
77470         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77471         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
77472         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77473         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
77474         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
77475         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
77476         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
77477
77478 2006-11-03  Bruno Haible  <bruno@clisp.org>
77479
77480         * lib/c-ctype.h [C++]: Define functions without name mangling.
77481         * lib/fwriteerror.h [C++]: Likewise.
77482         * lib/gcd.h [C++]: Likewise.
77483         * lib/linebreak.h [C++]: Likewise.
77484
77485 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77486
77487         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
77488         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
77489         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
77490         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77491         Check for functions and headers just once.
77492         Check for declaration of canonicalize_file_name.
77493         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
77494
77495 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77496
77497         * gnulib-tool (func_import): Fix typo in actioncmd.
77498
77499 2006-11-02  Bruno Haible  <bruno@clisp.org>
77500
77501         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
77502         newline sequence in the Makefile.am snippet as a space, like "make"
77503         does.
77504         Reported by Roger Persson <perrog@gmail.com>.
77505
77506 2006-11-01  Bruno Haible  <bruno@clisp.org>
77507
77508         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77509         already declared in <string.h>.
77510         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77511
77512 2006-11-01  Bruno Haible  <bruno@clisp.org>
77513
77514         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77515         * lib/strcase.h: Include <string.h>.
77516         (strcasecmp): Define to rpl_strcasecmp here.
77517
77518 2006-11-01  Bruno Haible  <bruno@clisp.org>
77519
77520         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77521
77522 2006-11-01  Eric Blake  <ebb9@byu.net>
77523
77524         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77525
77526         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77527
77528 2006-10-29  Bruno Haible  <bruno@clisp.org>
77529
77530         Make it compile in C++ mode.
77531         * lib/full-write.c (full_rw): Add a cast.
77532
77533 2006-11-01  Bruno Haible  <bruno@clisp.org>
77534
77535         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77536         be POSIX compliant.
77537         Reported by Roger Persson <perrog@gmail.com>.
77538
77539 2006-11-01  Eric Blake  <ebb9@byu.net>
77540
77541         * lib/getopt_.h: Fix comments.
77542
77543 2006-10-31  Eric Blake  <ebb9@byu.net>
77544
77545         * modules/tmpdir (Depends-on): Add sys_stat.
77546         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77547         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77548         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77549         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77550         tempname.
77551
77552 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77553
77554         Avoid some C++ diagnostics reported by Bruno Haible.
77555         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77556         xmalloc.
77557         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77558         (struct slotvec): Move to top level.
77559         (quotearg_n_options): Rewrite to avoid xmalloc.
77560         * lib/xalloc.h (xcharalloc): New function.
77561         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77562         [defined __cplusplus]: Add function template that provides result
77563         type propagation.  This part of the change is from Bruno Haible.
77564
77565 2006-10-29  Bruno Haible  <bruno@clisp.org>
77566
77567         Make it compile in C++ mode.
77568         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77569         * lib/strnlen1.c (strnlen1): Cast memchr result.
77570         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77571         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77572         (create_temp_dir): Rename local variable 'template'.
77573         (compile_csharp_using_sscli): Add cast.
77574         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77575         * lib/findprog.c (find_in_path): Likewise.
77576         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77577         * lib/wait-process.c (register_slave_subprocess): Likewise.
77578
77579 2006-10-22  Bruno Haible  <bruno@clisp.org>
77580
77581         * modules/tsearch: New file.
77582         * lib/tsearch.h: New file.
77583         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77584         * m4/tsearch.m4: New file.
77585         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77586
77587 2006-10-29  Eric Blake  <ebb9@byu.net>
77588
77589         * lib/arcfour.c: Assume config.h.
77590         * lib/arctwo.c: Likewise.
77591         * lib/base64.c: Likewise.
77592         * lib/check-version.c: Likewise.
77593         * lib/crc.c: Likewise.
77594         * lib/des.c: Likewise.
77595         * lib/gc-gnulib.c: Likewise.
77596         * lib/gc-libgcrypt.c: Likewise.
77597         * lib/gc-pbkdf2-sha1.c: Likewise.
77598         * lib/getaddrinfo.c: Likewise.
77599         * lib/getdelim.c: Likewise.
77600         * lib/getline.c: Likewise.
77601         * lib/hmac-md5.c: Likewise.
77602         * lib/hmac-sha1.c: Likewise.
77603         * lib/iconvme.c: Likewise.
77604         * lib/md2.c: Likewise.
77605         * lib/md4.c: Likewise.
77606         * lib/memxor.c: Likewise.
77607         * lib/read-file.c: Likewise.
77608         * lib/readline.c: Likewise.
77609         * lib/rijndael-alg-fst.c: Likewise.
77610         * lib/rijndael-api-fst.c: Likewise.
77611         * lib/xgetdomainname.c: Likewise.
77612
77613 2006-10-28  Eric Blake  <ebb9@byu.net>
77614
77615         * lib/xstrndup.c: Assume config.h.
77616
77617 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77618
77619         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77620         stat-macros.h is now for our own macros, whereas stat_h is for
77621         macros in the <sys/stat.h> name space.
77622         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77623         (STAT_MACROS_H): Remove.
77624         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77625         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77626         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77627         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77628         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77629         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77630         Move these macros to ...
77631         * lib/stat_.h: here.  Don't include stat-macros.h.
77632         * lib/canonicalize.c: Don't include stat-macros.h.
77633         * lib/chown.c: Likewise.
77634         * lib/euidaccess.c: Likewise.
77635         * lib/file-type.c: Likewise.
77636         * lib/filemode.c: Likewise.
77637         * lib/glob.c: Likewise.
77638         * lib/isapipe.c: Likewise.
77639         * lib/lchown.c: Likewise.
77640         * lib/lstat.c: Likewise.
77641         * lib/mkdir-p.c: Likewise.
77642         * lib/rmdir.c: Likewise.
77643         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77644         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77645         unless mkdir isn't declared, to speed up 'configure'.
77646         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77647         would define all the S_* symbols.
77648         * modules/canonicalize (Depends-on):
77649         Depend on sys_stat, not stat-macros.
77650         * modules/chown: Likewise.
77651         * modules/euidaccess: Likewise.
77652         * modules/filemode: Likewise.
77653         * modules/file-type: Likewise.
77654         * modules/glob: Likewise.
77655         * modules/isapipe: Likewise.
77656         * modules/lchown: Likewise.
77657         * modules/lstat: Likewise.
77658         * modules/mkancesdirs: Likewise.
77659         * modules/rmdir: Likewise.
77660         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77661         * modules/modechange: Likewise.
77662         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77663         (configure.ac): Remove gl_STAT_MACROS.
77664         * modules/sys_stat (Depends-on): Remove stat-macros.
77665
77666 2006-10-27  Bruno Haible  <bruno@clisp.org>
77667
77668         * m4/signed.m4: Remove file.
77669         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77670         invocation.
77671         * modules/vasnprintf (Files): Remove m4/signed.m4.
77672
77673 2006-10-27  Bruno Haible  <bruno@clisp.org>
77674
77675         Update to GNU gettext 0.16.
77676         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77677         m4/inttypes-h.m4, m4/signed.m4.
77678         * m4/gettext.m4: Update to GNU gettext 0.16.
77679         * m4/intl.m4: New file, from GNU gettext.
77680         * m4/intldir.m4: New file, from GNU gettext.
77681         * config/srclist.txt: Update
77682
77683 2006-10-27  Eric Blake  <ebb9@byu.net>
77684
77685         * MODULES.html.sh: Document tempname.
77686         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77687         dependencies.
77688         (Files): Move lib/tempname.c...
77689         * modules/tempname: ...to this new module.
77690         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77691         (gl_PREREQ_TEMPNAME): Move...
77692         * m4/tempname.m4: ...to this new file.
77693         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77694         * modules/sys_stat (Depends-on): Add stat-macros.
77695         * lib/stat_.h (includes): Pick up stat macros.
77696         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77697         if stat macros are broken.
77698         * lib/tempname.c (includes): No need to include "stat-macros.h".
77699         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77700         (direxists, __path_search) [!_LIBC]: Don't compile these in
77701         gnulib; the tmpdir module covers that.
77702         * lib/tempname.h: New file.
77703
77704 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77705
77706         * COPYING: Explain how gnulib-tool converts licence headers.
77707         Almost all wording by Eric Blake.
77708
77709 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77710
77711         * lib/mbchar.h (is_basic_table): Make read-only.
77712         * lib/mbchar.c (is_basic_table): Likewise.
77713         Reported by John Darrington.
77714
77715 2006-10-25  Bruno Haible  <bruno@clisp.org>
77716
77717         * lib/progname.h (set_program_name): Undefine before defining.
77718
77719 2006-10-25  Bruno Haible  <bruno@clisp.org>
77720
77721         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77722         false for non-gcc C++ compilers.
77723         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77724
77725 2006-10-24  Bruno Haible  <bruno@clisp.org>
77726
77727         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77728         iconv implementations like Irix iconv.
77729
77730 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77731
77732         * modules/vararrays: New file.
77733         * m4/vararrays.m4: New file, taken from diffutils.
77734         * MODULES.html.sh: New module vararrays.
77735
77736 2006-10-24  Karl Berry  <karl@gnu.org>
77737
77738         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77739         Don't call GNU Unix.
77740
77741 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77742
77743         * users.txt: Add Libtool.
77744
77745         Sync from Libtool:
77746
77747         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77750         to gnulib's policy of including config.h unconditionally.
77751
77752 2006-10-24  Bruno Haible  <bruno@clisp.org>
77753
77754         * modules/wcwidth (Files): Add m4/wint_t.m4.
77755         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77756         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77757
77758 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77759
77760         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77761         to pacify GCC with some -W flags enabled.  Problem reported by
77762         Bruno Haible.
77763
77764 2006-10-24  Jim Meyering  <jim@meyering.net>
77765
77766         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77767         Reported by Karl Berry.
77768
77769 2006-10-23  Bruno Haible  <bruno@clisp.org>
77770
77771         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77772
77773 2006-10-24  Bruno Haible  <bruno@clisp.org>
77774
77775         * lib/gl_list.h: Use C comment style, not C++ comment style.
77776
77777 2006-10-23  Eric Blake  <ebb9@byu.net>
77778
77779         * lib/getaddrinfo.c (includes): Add missing include.
77780
77781 2006-10-23  Bruno Haible  <bruno@clisp.org>
77782             Paul Eggert  <eggert@cs.ucla.edu>
77783
77784         Ability to rename obstack_free.
77785         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77786         obstack_free.
77787         (obstack_free): Invoke the __obstack_free macro.
77788         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77789
77790 2006-10-23  Bruno Haible  <bruno@clisp.org>
77791             Paul Eggert  <eggert@cs.ucla.edu>
77792
77793         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77794         __argc, __argv from the declaration. (They are defined as macros on
77795         mingw.)
77796
77797 2006-10-22  Bruno Haible  <bruno@clisp.org>
77798
77799         * doc/gnulib-intro.texi: New file.
77800         * doc/gnulib.texi: Include it.
77801
77802 2006-10-21  Bruno Haible  <bruno@clisp.org>
77803
77804         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77805         "Introduction", "Miscellanous Notes", "Particular Modules".
77806
77807 2006-10-21  Bruno Haible  <bruno@clisp.org>
77808
77809         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77810         Change mostlyclean-local rule to avoid sh syntax error from bash
77811         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77812
77813 2006-10-23  Jim Meyering  <jim@meyering.net>
77814
77815         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77816         in place of snprintf.
77817
77818         * modules/inttostr (Files): Add lib/uinttostr.c.
77819         * lib/uinttostr.c (inttostr): New file/function.
77820         * lib/inttostr.h (uinttostr): Declare.
77821         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77822         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77823         Add uinttostr.
77824         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77825
77826 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77827
77828         * lib/canonicalize.c (ELOOP): Define if not already defined.
77829         Problem reported by Bruno Haible in
77830         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77831
77832 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77833
77834         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77835         Problem reported by Perry Smith and Ville Laurikari.
77836
77837         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77838         uses.
77839
77840 2006-10-19  Bruno Haible  <bruno@clisp.org>
77841
77842         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77843         for mingw.
77844
77845 2006-10-19  Bruno Haible  <bruno@clisp.org>
77846
77847         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77848         Needed for mingw.
77849
77850 2006-10-19  Bruno Haible  <bruno@clisp.org>
77851
77852         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77853
77854 2006-10-19  Bruno Haible  <bruno@clisp.org>
77855
77856         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77857         it.
77858
77859 2006-10-19  Bruno Haible  <bruno@clisp.org>
77860
77861         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77862         invocation.
77863
77864 2006-10-19  Bruno Haible  <bruno@clisp.org>
77865
77866         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77867         mountlist by default.
77868
77869 2006-10-16  Bruno Haible  <bruno@clisp.org>
77870
77871         * lib/c-strstr.c: Include c-strstr.h.
77872
77873 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77874
77875         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77876         in a slash.
77877
77878 2006-10-18  Bruno Haible  <bruno@clisp.org>
77879
77880         * lib/lock.h [C++]: Wrap definitions in extern "C".
77881
77882 2006-10-18  Bruno Haible  <bruno@clisp.org>
77883
77884         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77885         gl_LIBOBJS list.
77886
77887 2006-10-18  Bruno Haible  <bruno@clisp.org>
77888
77889         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77890
77891 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77892
77893         * lib/xstrtol.h: Include gettext.h.
77894         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77895         Problem reported by Eric Blake.
77896         * modules/xstrtol (Depends-on): Add gettext-h.
77897
77898 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77899
77900         * lib/strftime.c (advance): New macro.
77901         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77902         incomplete type, so you can't add 0 to it.  Problem and patch
77903         reported by Eelco Dolstra for dietlibc.
77904
77905 2006-10-18  Jim Meyering  <jim@meyering.net>
77906
77907         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77908         type for a local, and rename it: s/up/user_proc/.
77909
77910 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77911
77912         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77913         READ_UTMP_USER_PROCESS.
77914         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77915
77916 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77917
77918         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77919         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77920
77921 2006-10-17  Eric Blake  <ebb9@byu.net>
77922
77923         * lib/sigprocmask.c (sigprocmask): Fix typo.
77924
77925         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77926
77927         * modules/clean-temp (Makefile.am): Don't add to make output...
77928         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77929         config.h.
77930
77931 2006-10-17  Bruno Haible  <bruno@clisp.org>
77932
77933         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77934         differently if DEFAULT_TEXT_DOMAIN is set.
77935
77936 2006-10-16  Bruno Haible  <bruno@clisp.org>
77937
77938         * lib/clean-temp.c: Include fwriteerror.h.
77939
77940 2006-10-16  Bruno Haible  <bruno@clisp.org>
77941
77942         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77943
77944 2006-10-16  Bruno Haible  <bruno@clisp.org>
77945
77946         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77947         * lib/sigprocmask.h: Include <sys/types.h>.
77948         (sigset_t): Use the system's definition if present.
77949
77950 2006-10-17  Eric Blake  <ebb9@byu.net>
77951
77952         * lib/xvasprintf.c (includes): Assume config.h.
77953         * lib/xasprintf.c (includes): Likewise.
77954
77955 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77956
77957         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77958         at least as wide as intmax_t.
77959
77960 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77961
77962         (Imported from Automake.)
77963         * build-aux/gnupload: Update to version 1.1 of directive file.
77964
77965 2006-10-16  Eric Blake  <ebb9@byu.net>
77966
77967         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77968         match Automake 1.10a.
77969
77970 2006-10-14  Bruno Haible  <bruno@clisp.org>
77971
77972         * modules/sigprocmask: New file.
77973         * lib/sigprocmask.h: New file.
77974         * lib/sigprocmask.c: New file.
77975         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77976         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77977         request sigprocmask.o.
77978         (gl_PREREQ_SIGPROCMASK): New macro.
77979         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77980         (Depends-on): Add sigprocmask.
77981         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77982         gt_SIGNALBLOCKING. Test for 'raise' only once.
77983         * lib/fatal-signal.c: Include sigprocmask.h.
77984         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77985         unblock_fatal_signals): Define always.
77986         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77987         sigprocmask.
77988
77989 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77990
77991         Sync from Automake.
77992         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77993         which incorrectly sets the mode of an existing destination
77994         directory.  In some cases the unpatched install-sh could do the
77995         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77996         system.  We hope this is rare in practice, but it's clearly worth
77997         fixing.  Problem reported by Alex Unleashed in
77998         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77999         Also, don't bother to check for -m bugs unless we're using -m;
78000         suggested by Stepan Kasal.
78001
78002 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78003
78004         Sync from Automake.
78005         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
78006         `-c' flag, so they appear at the same position as in %FASTDEP%
78007         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
78008         which ignores unknown options only after the first non-option.
78009         Bug report against M4 by Nelson H. F. Beebe.
78010
78011 2006-10-13  Jim Meyering  <jim@meyering.net>
78012
78013         Fix a bug in yesterday's change.
78014         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
78015         p->fts_statp->st_dev would be used uninitialized.
78016         Ensures that we always call fts_stat on the very first entry.
78017         Miklos Szeredi reported that find -xdev stopped working.
78018
78019 2006-10-12  Bruno Haible  <bruno@clisp.org>
78020
78021         * gnulib-tool (func_get_automake_snippet): Append an automatically
78022         computed EXTRA_DIST augmentation.
78023         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
78024         * modules/alloca-opt (Makefile.am): Likewise.
78025         * modules/allocsa (Makefile.am): Likewise.
78026         * modules/arcfour (Makefile.am): Likewise.
78027         * modules/arctwo (Makefile.am): Likewise.
78028         * modules/argmatch (Makefile.am): Likewise.
78029         * modules/argz (Makefile.am): Likewise.
78030         * modules/atexit (Makefile.am): Likewise.
78031         * modules/backupfile (Makefile.am): Likewise.
78032         * modules/byteswap (Makefile.am): Likewise.
78033         * modules/c-strtod (Makefile.am): Likewise.
78034         * modules/c-strtold (Makefile.am): Likewise.
78035         * modules/calloc (Makefile.am): Likewise.
78036         * modules/canon-host (Makefile.am): Likewise.
78037         * modules/canonicalize (Makefile.am): Likewise.
78038         * modules/chdir-long (Makefile.am): Likewise.
78039         * modules/chdir-safer (Makefile.am): Likewise.
78040         * modules/check-version (Makefile.am): Likewise.
78041         * modules/chown (Makefile.am): Likewise.
78042         * modules/cloexec (Makefile.am): Likewise.
78043         * modules/close-stream (Makefile.am): Likewise.
78044         * modules/closeout (Makefile.am): Likewise.
78045         * modules/crc (Makefile.am): Likewise.
78046         * modules/csharpexec (Makefile.am): Likewise.
78047         * modules/cycle-check (Makefile.am): Likewise.
78048         * modules/des (Makefile.am): Likewise.
78049         * modules/dev-ino (Makefile.am): Likewise.
78050         * modules/dirfd (Makefile.am): Likewise.
78051         * modules/dirname (Makefile.am): Likewise.
78052         * modules/dup2 (Makefile.am): Likewise.
78053         * modules/eealloc (Makefile.am): Likewise.
78054         * modules/error (Makefile.am): Likewise.
78055         * modules/euidaccess (Makefile.am): Likewise.
78056         * modules/exclude (Makefile.am): Likewise.
78057         * modules/exitfail (Makefile.am): Likewise.
78058         * modules/fcntl-safer (Makefile.am): Likewise.
78059         * modules/fcntl (Makefile.am): Likewise.
78060         * modules/file-type (Makefile.am): Likewise.
78061         * modules/fileblocks (Makefile.am): Likewise.
78062         * modules/filemode (Makefile.am): Likewise.
78063         * modules/filenamecat (Makefile.am): Likewise.
78064         * modules/fnmatch (Makefile.am): Likewise.
78065         * modules/fopen-safer (Makefile.am): Likewise.
78066         * modules/fpending (Makefile.am): Likewise.
78067         * modules/fprintftime (Makefile.am): Likewise.
78068         * modules/free (Makefile.am): Likewise.
78069         * modules/fsusage (Makefile.am): Likewise.
78070         * modules/ftruncate (Makefile.am): Likewise.
78071         * modules/fts (Makefile.am): Likewise.
78072         * modules/gc-arcfour (Makefile.am): Likewise.
78073         * modules/gc-des (Makefile.am): Likewise.
78074         * modules/gc-hmac-md5 (Makefile.am): Likewise.
78075         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
78076         * modules/gc-md4 (Makefile.am): Likewise.
78077         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78078         * modules/gc-sha1 (Makefile.am): Likewise.
78079         * modules/gc (Makefile.am): Likewise.
78080         * modules/getaddrinfo (Makefile.am): Likewise.
78081         * modules/getcwd (Makefile.am): Likewise.
78082         * modules/getdelim (Makefile.am): Likewise.
78083         * modules/getdomainname (Makefile.am): Likewise.
78084         * modules/getgroups (Makefile.am): Likewise.
78085         * modules/gethostname (Makefile.am): Likewise.
78086         * modules/gethrxtime (Makefile.am): Likewise.
78087         * modules/getline (Makefile.am): Likewise.
78088         * modules/getloadavg (Makefile.am): Likewise.
78089         * modules/getlogin_r (Makefile.am): Likewise.
78090         * modules/getndelim2 (Makefile.am): Likewise.
78091         * modules/getopt (Makefile.am): Likewise.
78092         * modules/getpagesize (Makefile.am): Likewise.
78093         * modules/getpass-gnu (Makefile.am): Likewise.
78094         * modules/getpass (Makefile.am): Likewise.
78095         * modules/getsubopt (Makefile.am): Likewise.
78096         * modules/gettime (Makefile.am): Likewise.
78097         * modules/gettimeofday (Makefile.am): Likewise.
78098         * modules/getugroups (Makefile.am): Likewise.
78099         * modules/getusershell (Makefile.am): Likewise.
78100         * modules/glob (Makefile.am): Likewise.
78101         * modules/group-member (Makefile.am): Likewise.
78102         * modules/hard-locale (Makefile.am): Likewise.
78103         * modules/hash (Makefile.am): Likewise.
78104         * modules/hmac-md5 (Makefile.am): Likewise.
78105         * modules/hmac-sha1 (Makefile.am): Likewise.
78106         * modules/human (Makefile.am): Likewise.
78107         * modules/idcache (Makefile.am): Likewise.
78108         * modules/imaxabs (Makefile.am): Likewise.
78109         * modules/imaxdiv (Makefile.am): Likewise.
78110         * modules/inet_ntop (Makefile.am): Likewise.
78111         * modules/inet_pton (Makefile.am): Likewise.
78112         * modules/intprops (Makefile.am): Likewise.
78113         * modules/inttostr (Makefile.am): Likewise.
78114         * modules/inttypes (Makefile.am): Likewise.
78115         * modules/isapipe (Makefile.am): Likewise.
78116         * modules/javaversion (Makefile.am): Likewise.
78117         * modules/lchmod (Makefile.am): Likewise.
78118         * modules/lchown (Makefile.am): Likewise.
78119         * modules/localcharset (Makefile.am): Likewise.
78120         * modules/long-options (Makefile.am): Likewise.
78121         * modules/lstat (Makefile.am): Likewise.
78122         * modules/malloc (Makefile.am): Likewise.
78123         * modules/mathl (Makefile.am): Likewise.
78124         * modules/mbchar (Makefile.am): Likewise.
78125         * modules/md2 (Makefile.am): Likewise.
78126         * modules/md4 (Makefile.am): Likewise.
78127         * modules/md5 (Makefile.am): Likewise.
78128         * modules/memcasecmp (Makefile.am): Likewise.
78129         * modules/memchr (Makefile.am): Likewise.
78130         * modules/memcmp (Makefile.am): Likewise.
78131         * modules/memcoll (Makefile.am): Likewise.
78132         * modules/memcpy (Makefile.am): Likewise.
78133         * modules/memmem (Makefile.am): Likewise.
78134         * modules/memmove (Makefile.am): Likewise.
78135         * modules/mempcpy (Makefile.am): Likewise.
78136         * modules/memrchr (Makefile.am): Likewise.
78137         * modules/memset (Makefile.am): Likewise.
78138         * modules/memxor (Makefile.am): Likewise.
78139         * modules/mkancesdirs (Makefile.am): Likewise.
78140         * modules/mkdir-p (Makefile.am): Likewise.
78141         * modules/mkdir (Makefile.am): Likewise.
78142         * modules/mkdtemp (Makefile.am): Likewise.
78143         * modules/mkstemp (Makefile.am): Likewise.
78144         * modules/mktime (Makefile.am): Likewise.
78145         * modules/modechange (Makefile.am): Likewise.
78146         * modules/mountlist (Makefile.am): Likewise.
78147         * modules/nanosleep (Makefile.am): Likewise.
78148         * modules/obstack (Makefile.am): Likewise.
78149         * modules/openat (Makefile.am): Likewise.
78150         * modules/pagealign_alloc (Makefile.am): Likewise.
78151         * modules/pathmax (Makefile.am): Likewise.
78152         * modules/physmem (Makefile.am): Likewise.
78153         * modules/poll (Makefile.am): Likewise.
78154         * modules/posixtm (Makefile.am): Likewise.
78155         * modules/posixver (Makefile.am): Likewise.
78156         * modules/putenv (Makefile.am): Likewise.
78157         * modules/quote (Makefile.am): Likewise.
78158         * modules/quotearg (Makefile.am): Likewise.
78159         * modules/raise (Makefile.am): Likewise.
78160         * modules/read-file (Makefile.am): Likewise.
78161         * modules/readline (Makefile.am): Likewise.
78162         * modules/readlink (Makefile.am): Likewise.
78163         * modules/readtokens (Makefile.am): Likewise.
78164         * modules/readutmp (Makefile.am): Likewise.
78165         * modules/realloc (Makefile.am): Likewise.
78166         * modules/regex (Makefile.am): Likewise.
78167         * modules/rename-dest-slash (Makefile.am): Likewise.
78168         * modules/rename (Makefile.am): Likewise.
78169         * modules/rijndael (Makefile.am): Likewise.
78170         * modules/rmdir (Makefile.am): Likewise.
78171         * modules/rpmatch (Makefile.am): Likewise.
78172         * modules/safe-read (Makefile.am): Likewise.
78173         * modules/safe-write (Makefile.am): Likewise.
78174         * modules/same-inode (Makefile.am): Likewise.
78175         * modules/same (Makefile.am): Likewise.
78176         * modules/save-cwd (Makefile.am): Likewise.
78177         * modules/savedir (Makefile.am): Likewise.
78178         * modules/setenv (Makefile.am): Likewise.
78179         * modules/settime (Makefile.am): Likewise.
78180         * modules/sha1 (Makefile.am): Likewise.
78181         * modules/sig2str (Makefile.am): Likewise.
78182         * modules/snprintf (Makefile.am): Likewise.
78183         * modules/stat-macros (Makefile.am): Likewise.
78184         * modules/stat-time (Makefile.am): Likewise.
78185         * modules/stdbool (Makefile.am): Likewise.
78186         * modules/stdint (Makefile.am): Likewise.
78187         * modules/stdlib-safer (Makefile.am): Likewise.
78188         * modules/stpcpy (Makefile.am): Likewise.
78189         * modules/stpncpy (Makefile.am): Likewise.
78190         * modules/strcase (Makefile.am): Likewise.
78191         * modules/strcasestr (Makefile.am): Likewise.
78192         * modules/strchrnul (Makefile.am): Likewise.
78193         * modules/strcspn (Makefile.am): Likewise.
78194         * modules/strdup (Makefile.am): Likewise.
78195         * modules/strerror (Makefile.am): Likewise.
78196         * modules/strftime (Makefile.am): Likewise.
78197         * modules/strndup (Makefile.am): Likewise.
78198         * modules/strnlen (Makefile.am): Likewise.
78199         * modules/strpbrk (Makefile.am): Likewise.
78200         * modules/strsep (Makefile.am): Likewise.
78201         * modules/strstr (Makefile.am): Likewise.
78202         * modules/strtod (Makefile.am): Likewise.
78203         * modules/strtoimax (Makefile.am): Likewise.
78204         * modules/strtok_r (Makefile.am): Likewise.
78205         * modules/strtol (Makefile.am): Likewise.
78206         * modules/strtoll (Makefile.am): Likewise.
78207         * modules/strtoul (Makefile.am): Likewise.
78208         * modules/strtoull (Makefile.am): Likewise.
78209         * modules/strtoumax (Makefile.am): Likewise.
78210         * modules/strverscmp (Makefile.am): Likewise.
78211         * modules/sys_socket (Makefile.am): Likewise.
78212         * modules/sys_stat (Makefile.am): Likewise.
78213         * modules/sysexits (Makefile.am): Likewise.
78214         * modules/time_r (Makefile.am): Likewise.
78215         * modules/timegm (Makefile.am): Likewise.
78216         * modules/timespec (Makefile.am): Likewise.
78217         * modules/tmpfile-safer (Makefile.am): Likewise.
78218         * modules/trim (Makefile.am): Likewise.
78219         * modules/unistd-safer (Makefile.am): Likewise.
78220         * modules/unlinkdir (Makefile.am): Likewise.
78221         * modules/unlocked-io (Makefile.am): Likewise.
78222         * modules/userspec (Makefile.am): Likewise.
78223         * modules/utime (Makefile.am): Likewise.
78224         * modules/utimecmp (Makefile.am): Likewise.
78225         * modules/utimens (Makefile.am): Likewise.
78226         * modules/vasnprintf (Makefile.am): Likewise.
78227         * modules/vasprintf (Makefile.am): Likewise.
78228         * modules/vsnprintf (Makefile.am): Likewise.
78229         * modules/xalloc (Makefile.am): Likewise.
78230         * modules/xgetcwd (Makefile.am): Likewise.
78231         * modules/xnanosleep (Makefile.am): Likewise.
78232         * modules/xreadlink (Makefile.am): Likewise.
78233         * modules/xstrtod (Makefile.am): Likewise.
78234         * modules/xstrtol (Makefile.am): Likewise.
78235         * modules/xstrtold (Makefile.am): Likewise.
78236         * modules/yesno (Makefile.am): Likewise.
78237         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
78238
78239 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78240
78241         * modules/error (Makefile.am): Distribute files through
78242         EXTRA_DIST, not lib_SOURCES.
78243
78244 2006-10-12  Eric Blake  <ebb9@byu.net>
78245
78246         * modules/error (Makefile.am): Distribute files in /lib.
78247         * modules/obstack (Makefile.am): Likewise.
78248
78249 2006-10-12  Bruno Haible  <bruno@clisp.org>
78250
78251         * modules/acl (Makefile.am): Distribute all files in lib/ through
78252         EXTRA_DIST.
78253         * modules/arcfour (Makefile.am): Likewise.
78254         * modules/arctwo (Makefile.am): Likewise.
78255         * modules/argmatch (Makefile.am): Likewise.
78256         * modules/argz (Makefile.am): Likewise.
78257         * modules/atexit (Makefile.am): Likewise.
78258         * modules/backupfile (Makefile.am): Likewise.
78259         * modules/c-strtod (Makefile.am): Likewise.
78260         * modules/c-strtold (Makefile.am): Likewise.
78261         * modules/calloc (Makefile.am): Likewise.
78262         * modules/canon-host (Makefile.am): Likewise.
78263         * modules/canonicalize (Makefile.am): Likewise.
78264         * modules/chdir-long (Makefile.am): Likewise.
78265         * modules/chdir-safer (Makefile.am): Likewise.
78266         * modules/check-version (Makefile.am): Likewise.
78267         * modules/chown (Makefile.am): Likewise.
78268         * modules/cloexec (Makefile.am): Likewise.
78269         * modules/close-stream (Makefile.am): Likewise.
78270         * modules/closeout (Makefile.am): Likewise.
78271         * modules/crc (Makefile.am): Likewise.
78272         * modules/cycle-check (Makefile.am): Likewise.
78273         * modules/des (Makefile.am): Likewise.
78274         * modules/dirfd (Makefile.am): Likewise.
78275         * modules/dirname (Makefile.am): Likewise.
78276         * modules/dup2 (Makefile.am): Likewise.
78277         * modules/euidaccess (Makefile.am): Likewise.
78278         * modules/exclude (Makefile.am): Likewise.
78279         * modules/exitfail (Makefile.am): Likewise.
78280         * modules/fcntl-safer (Makefile.am): Likewise.
78281         * modules/file-type (Makefile.am): Likewise.
78282         * modules/fileblocks (Makefile.am): Likewise.
78283         * modules/filemode (Makefile.am): Likewise.
78284         * modules/filenamecat (Makefile.am): Likewise.
78285         * modules/fnmatch (Makefile.am): Likewise.
78286         * modules/fopen-safer (Makefile.am): Likewise.
78287         * modules/fpending (Makefile.am): Likewise.
78288         * modules/fprintftime (Makefile.am): Likewise.
78289         * modules/free (Makefile.am): Likewise.
78290         * modules/fsusage (Makefile.am): Likewise.
78291         * modules/ftruncate (Makefile.am): Likewise.
78292         * modules/fts (Makefile.am): Likewise.
78293         * modules/gc (Makefile.am): Likewise.
78294         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78295         * modules/getaddrinfo (Makefile.am): Likewise.
78296         * modules/getcwd (Makefile.am): Likewise.
78297         * modules/getdelim (Makefile.am): Likewise.
78298         * modules/getdomainname (Makefile.am): Likewise.
78299         * modules/getgroups (Makefile.am): Likewise.
78300         * modules/gethostname (Makefile.am): Likewise.
78301         * modules/gethrxtime (Makefile.am): Likewise.
78302         * modules/getline (Makefile.am): Likewise.
78303         * modules/getloadavg (Makefile.am): Likewise.
78304         * modules/getlogin_r (Makefile.am): Likewise.
78305         * modules/getopt (Makefile.am): Likewise.
78306         * modules/getpass (Makefile.am): Likewise.
78307         * modules/getpass-gnu (Makefile.am): Likewise.
78308         * modules/getsubopt (Makefile.am): Likewise.
78309         * modules/gettime (Makefile.am): Likewise.
78310         * modules/gettimeofday (Makefile.am): Likewise.
78311         * modules/getugroups (Makefile.am): Likewise.
78312         * modules/getusershell (Makefile.am): Likewise.
78313         * modules/glob (Makefile.am): Likewise.
78314         * modules/group-member (Makefile.am): Likewise.
78315         * modules/hard-locale (Makefile.am): Likewise.
78316         * modules/hash (Makefile.am): Likewise.
78317         * modules/hmac-md5 (Makefile.am): Likewise.
78318         * modules/hmac-sha1 (Makefile.am): Likewise.
78319         * modules/human (Makefile.am): Likewise.
78320         * modules/idcache (Makefile.am): Likewise.
78321         * modules/imaxabs (Makefile.am): Likewise.
78322         * modules/imaxdiv (Makefile.am): Likewise.
78323         * modules/inet_ntop (Makefile.am): Likewise.
78324         * modules/inet_pton (Makefile.am): Likewise.
78325         * modules/inttostr (Makefile.am): Likewise.
78326         * modules/isapipe (Makefile.am): Likewise.
78327         * modules/lchown (Makefile.am): Likewise.
78328         * modules/long-options (Makefile.am): Likewise.
78329         * modules/lstat (Makefile.am): Likewise.
78330         * modules/malloc (Makefile.am): Likewise.
78331         * modules/mathl (Makefile.am): Likewise.
78332         * modules/mbchar (Makefile.am): Likewise.
78333         * modules/md2 (Makefile.am): Likewise.
78334         * modules/md4 (Makefile.am): Likewise.
78335         * modules/md5 (Makefile.am): Likewise.
78336         * modules/memcasecmp (Makefile.am): Likewise.
78337         * modules/memchr (Makefile.am): Likewise.
78338         * modules/memcmp (Makefile.am): Likewise.
78339         * modules/memcoll (Makefile.am): Likewise.
78340         * modules/memcpy (Makefile.am): Likewise.
78341         * modules/memmem (Makefile.am): Likewise.
78342         * modules/memmove (Makefile.am): Likewise.
78343         * modules/mempcpy (Makefile.am): Likewise.
78344         * modules/memrchr (Makefile.am): Likewise.
78345         * modules/memset (Makefile.am): Likewise.
78346         * modules/memxor (Makefile.am): Likewise.
78347         * modules/mkancesdirs (Makefile.am): Likewise.
78348         * modules/mkdir (Makefile.am): Likewise.
78349         * modules/mkdir-p (Makefile.am): Likewise.
78350         * modules/mkdtemp (Makefile.am): Likewise.
78351         * modules/mkstemp (Makefile.am): Likewise.
78352         * modules/mktime (Makefile.am): Likewise.
78353         * modules/modechange (Makefile.am): Likewise.
78354         * modules/mountlist (Makefile.am): Likewise.
78355         * modules/nanosleep (Makefile.am): Likewise.
78356         * modules/openat (Makefile.am): Likewise.
78357         * modules/pagealign_alloc (Makefile.am): Likewise.
78358         * modules/physmem (Makefile.am): Likewise.
78359         * modules/poll (Makefile.am): Likewise.
78360         * modules/posixtm (Makefile.am): Likewise.
78361         * modules/posixver (Makefile.am): Likewise.
78362         * modules/putenv (Makefile.am): Likewise.
78363         * modules/quote (Makefile.am): Likewise.
78364         * modules/quotearg (Makefile.am): Likewise.
78365         * modules/raise (Makefile.am): Likewise.
78366         * modules/read-file (Makefile.am): Likewise.
78367         * modules/readline (Makefile.am): Likewise.
78368         * modules/readlink (Makefile.am): Likewise.
78369         * modules/readtokens (Makefile.am): Likewise.
78370         * modules/readutmp (Makefile.am): Likewise.
78371         * modules/realloc (Makefile.am): Likewise.
78372         * modules/regex (Makefile.am): Likewise.
78373         * modules/rename (Makefile.am): Likewise.
78374         * modules/rename-dest-slash (Makefile.am): Likewise.
78375         * modules/rijndael (Makefile.am): Likewise.
78376         * modules/rmdir (Makefile.am): Likewise.
78377         * modules/rpmatch (Makefile.am): Likewise.
78378         * modules/safe-read (Makefile.am): Likewise.
78379         * modules/safe-write (Makefile.am): Likewise.
78380         * modules/same (Makefile.am): Likewise.
78381         * modules/save-cwd (Makefile.am): Likewise.
78382         * modules/savedir (Makefile.am): Likewise.
78383         * modules/setenv (Makefile.am): Likewise.
78384         * modules/settime (Makefile.am): Likewise.
78385         * modules/sha1 (Makefile.am): Likewise.
78386         * modules/sig2str (Makefile.am): Likewise.
78387         * modules/snprintf (Makefile.am): Likewise.
78388         * modules/stdlib-safer (Makefile.am): Likewise.
78389         * modules/stpcpy (Makefile.am): Likewise.
78390         * modules/stpncpy (Makefile.am): Likewise.
78391         * modules/strcase (Makefile.am): Likewise.
78392         * modules/strcasestr (Makefile.am): Likewise.
78393         * modules/strchrnul (Makefile.am): Likewise.
78394         * modules/strcspn (Makefile.am): Likewise.
78395         * modules/strdup (Makefile.am): Likewise.
78396         * modules/strerror (Makefile.am): Likewise.
78397         * modules/strftime (Makefile.am): Likewise.
78398         * modules/strndup (Makefile.am): Likewise.
78399         * modules/strnlen (Makefile.am): Likewise.
78400         * modules/strpbrk (Makefile.am): Likewise.
78401         * modules/strsep (Makefile.am): Likewise.
78402         * modules/strstr (Makefile.am): Likewise.
78403         * modules/strtod (Makefile.am): Likewise.
78404         * modules/strtoimax (Makefile.am): Likewise.
78405         * modules/strtok_r (Makefile.am): Likewise.
78406         * modules/strtol (Makefile.am): Likewise.
78407         * modules/strtoll (Makefile.am): Likewise.
78408         * modules/strtoul (Makefile.am): Likewise.
78409         * modules/strtoull (Makefile.am): Likewise.
78410         * modules/strtoumax (Makefile.am): Likewise.
78411         * modules/strverscmp (Makefile.am): Likewise.
78412         * modules/time_r (Makefile.am): Likewise.
78413         * modules/timegm (Makefile.am): Likewise.
78414         * modules/tmpfile-safer (Makefile.am): Likewise.
78415         * modules/unistd-safer (Makefile.am): Likewise.
78416         * modules/unlinkdir (Makefile.am): Likewise.
78417         * modules/userspec (Makefile.am): Likewise.
78418         * modules/utime (Makefile.am): Likewise.
78419         * modules/utimecmp (Makefile.am): Likewise.
78420         * modules/utimens (Makefile.am): Likewise.
78421         * modules/vasnprintf (Makefile.am): Likewise.
78422         * modules/vasprintf (Makefile.am): Likewise.
78423         * modules/vsnprintf (Makefile.am): Likewise.
78424         * modules/xalloc (Makefile.am): Likewise.
78425         * modules/xgetcwd (Makefile.am): Likewise.
78426         * modules/xnanosleep (Makefile.am): Likewise.
78427         * modules/xreadlink (Makefile.am): Likewise.
78428         * modules/xstrtod (Makefile.am): Likewise.
78429         * modules/xstrtol (Makefile.am): Likewise.
78430         * modules/xstrtold (Makefile.am): Likewise.
78431         * modules/yesno (Makefile.am): Likewise.
78432
78433 2006-10-12  Jim Meyering  <jim@meyering.net>
78434
78435         * m4/getloadavg.m4: Revert the change below.
78436
78437         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
78438         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
78439         fail with a symlink, which is what coreutils' ./bootstrap now
78440         creates by default.
78441
78442 2006-10-12  Bruno Haible  <bruno@clisp.org>
78443
78444         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
78445         mingw.
78446         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
78447         MSVC and mingw explicitly.
78448
78449 2006-10-11  Simon Josefsson  <jas@extundo.com>
78450             Bruno Haible  <bruno@clisp.org>
78451
78452         Add support for multiple gnulib-tool invocations in the scope of a
78453         single configure.ac file.
78454         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
78455         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
78456         with the same contents as the _LIBADD variable.
78457         (func_emit_initmacro_start, func_emit_initmacro_end,
78458         func_emit_initmacro_done): New functions.
78459         (func_import, func_create_testdir): Invoke them. Allow the identifiers
78460         gl_LIBOBJS and gl_LTLIBOBJS.
78461
78462 2006-10-11  Bruno Haible  <bruno@clisp.org>
78463
78464         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
78465         (func_create_testdir): Don't create po/Makefile.am, don't invoke
78466         autoreconf. Instead, invoke autopoint explicitly but move back the
78467         *.m4 files from gnulib.
78468
78469 2006-10-11  Bruno Haible  <bruno@clisp.org>
78470
78471         * gnulib-tool (func_usage): Make module names after --create-testdir
78472         optional.
78473         (func_create_testdir): If no module was specified, use nearly all
78474         modules.
78475
78476 2006-10-12  Jim Meyering  <jim@meyering.net>
78477
78478         Big performance improvement for fts-based tools that use FTS_NOSTAT.
78479         Avoid spurious inode-mismatch problems on non-POSIX file systems.
78480         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
78481         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
78482         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
78483         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
78484         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
78485         (fts_set_stat_required): New function.
78486         (fts_open): Defer the calls to fts_stat, if possible or requested.
78487         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
78488         into fts_stat itself.
78489         (fts_read): Perform any required (deferred) fts_stat call.
78490         (fts_build): Likewise, for the directory we're about to open and read.
78491         In the readdir loop, carefully decide whether each entry will require
78492         an eventual call to fts_stat, using dirent.d_type info if available.
78493         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
78494         a command line argument into this function.  Update all callers.
78495         Map a return value of FTS_DOT to FTS_D for a command line argument.
78496         * modules/fts (Depends-on): Add d-type.  Alphabetize.
78497         Thanks to Miklos Szeredi for his tenacity and for the initial
78498         bug report about "find" failing on a FUSE-based file system.
78499
78500         * lib/fts.c (fts_open): Use consistent indentation.
78501
78502 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78503
78504         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
78505         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78506         reported by Jim Meyering.  All uses of cache variables renamed
78507         to match Autoconf's.
78508         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78509         the other one.
78510
78511         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78512         Fix misspelling in diagnostic.
78513
78514 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78515
78516         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78517         defined.  Problem reported by Matthew Woehlke.
78518
78519         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78520         Add support for Tandem NonStop R series.
78521         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78522         Use new macro.
78523
78524         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78525         (has_trailing_slash): Omit size arg; all callers changed.
78526         Omit 'inline', since it doesn't help performance and we'd
78527         need to configure it.
78528         Don't count //, ///, etc. as having a trailing slash.
78529         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78530         (rpl_rename_dest_slash): On failure, use rename's errno rather
78531         than (in some cases) an incorrect or junk errno.
78532         Simplify code by removing need to compute length; this does
78533         cause it to make two passes instead of one over the file name,
78534         but it's worth it.
78535
78536         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78537         change, since Autoconf's version may no longer be appropriate now
78538         that we are using CVS Autoconf's version.  Add support for Tandem.
78539
78540 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78541             Bruno Haible  <bruno@clisp.org>
78542
78543         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78544         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78545         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78546         gl_AC_TYPE_LONG_LONG.
78547
78548         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78549         instead of HAVE_LONG_LONG.
78550         * lib/printf-args.c (printf_fetchargs): Likewise.
78551         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78552         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78553         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78554         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78555         gl_AC_TYPE_LONG_LONG.
78556
78557 2006-10-11  Bruno Haible  <bruno@clisp.org>
78558
78559         * m4/longlong.m4: Add comments.
78560         * m4/ulonglong.m4: Likewise.
78561
78562 2006-10-10  Bruno Haible  <bruno@clisp.org>
78563
78564         Make it possible to #define stpcpy, strdup to aliases.
78565         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78566         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78567
78568 2006-10-10  Bruno Haible  <bruno@clisp.org>
78569
78570         Make it possible to #define gcd to an alias.
78571         * lib/gcd.c: Include config.h.
78572
78573 2006-10-10  Bruno Haible  <bruno@clisp.org>
78574
78575         Make it possible to #define c_isascii to an alias.
78576         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78577         defined. Undefine the macros before defining them, to avoid gcc
78578         warnings.
78579         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78580         define NO_C_CTYPE_MACROS early.
78581
78582 2006-10-10  Bruno Haible  <bruno@clisp.org>
78583
78584         Make it possible to #define set_program_name to an alias.
78585         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78586         ENABLE_RELOCATABLE early.
78587
78588 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78589
78590         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78591         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78592         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78593         More generally, don't assume that 64-bit signed int is available
78594         if unsigned int is, and vice versa.
78595         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78596         unsigned symbols, not on their signed counterparts.
78597         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78598         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78599         (UINT64_C, UINTMAX_C):
78600         Likewise.
78601         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78602         unsigned counterparts.
78603         (Have_long_long, Unsigned): New macros.
78604         (Int): Renamed from INT.
78605         (strtoimax): Use the new macros.
78606         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78607         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78608         * modules/inttypes (inttypes.h): Substitute
78609         HAVE_UNSIGNED_LONG_LONG_INT.
78610         * modules/stdint (stdint.h): Likewise.
78611         (Files): Add m4/ulonglong.m4.
78612
78613 2006-10-10  Bruno Haible  <bruno@clisp.org>
78614
78615         Fix a gcc -Wshadow warning.
78616         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78617         to 'bucket'.
78618         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78619         gl_linked_indexof_from_to): Likewise.
78620         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78621         Likewise.
78622         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78623         Likewise.
78624         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78625         Reported by Eric Blake.
78626
78627 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78628
78629         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78630         for NetBSD.  Problem reported by Bruno Haible.
78631
78632 2006-10-09  Jim Meyering  <jim@meyering.net>
78633
78634         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78635         Patch from Bruno Haible.
78636
78637 2006-10-09  Jim Meyering  <jim@meyering.net>
78638
78639         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78640         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78641         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78642
78643 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78644
78645         Don't include <config.h> twice; this doesn't work in some cases,
78646         e.g., when config.h has "#define intmax_t long long int" and
78647         we include <config.h>, <inttypes.h>, <config.h> in that order.
78648         Problem reported by Matthew Woehlke in:
78649         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78650         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78651         * lib/fts-cycle.c: Don't include config.h.
78652         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78653         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78654         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78655         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78656         inttypes.h.
78657         * lib/xstrtoumax.c: Likewise.
78658         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78659         __strtol and the like, so that this module is more like its siblings.
78660         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78661         Remove; no longer needed now that we assume gnulib inttypes.h.
78662
78663 2006-10-08  Bruno Haible  <bruno@clisp.org>
78664
78665         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78666         option.
78667
78668 2006-10-07  Jim Meyering  <jim@meyering.net>
78669
78670         * modules/inttypes (inttypes.h): Revert what seems to have been
78671         an inadvertent part of today's change: use "|", not "/" in the
78672         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78673
78674 2006-10-07  Bruno Haible  <bruno@clisp.org>
78675
78676         * modules/sublist: New file.
78677
78678 2006-10-07  Bruno Haible  <bruno@clisp.org>
78679
78680         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78681         * modules/argz (argz.h): Likewise.
78682         * modules/arpa_inet (arpa/inet.h): Likewise.
78683         * modules/byteswap (byteswap.h): Likewise.
78684         * modules/configmake (configmake.h): Likewise.
78685         * modules/fcntl (fcntl.h): Likewise.
78686         * modules/fnmatch (fnmatch.h): Likewise.
78687         * modules/getopt (getopt.h): Likewise.
78688         * modules/glob (glob.h): Likewise.
78689         * modules/inttypes (inttypes.h): Likewise.
78690         * modules/netinet_in (netinet/in.h): Likewise.
78691         * modules/poll (poll.h): Likewise.
78692         * modules/stdbool (stdbool.h): Likewise.
78693         * modules/stdint (stdint.h): Likewise.
78694         * modules/sys_select (sys/select.h): Likewise.
78695         * modules/sys_socket (sys/socket.h): Likewise.
78696         * modules/sys_stat (sys/stat.h): Likewise.
78697         * modules/sysexits (sysexits.h): Likewise.
78698         * modules/unistd (unistd.h): Likewise.
78699         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78700         Add a "DO NOT EDIT" comment to the generated file.
78701         (func_import): Likewise for gnulib-comp.m4.
78702
78703 2006-10-07  Bruno Haible  <bruno@clisp.org>
78704
78705         * lib/gl_sublist.h: New file.
78706         * lib/gl_sublist.c: New file.
78707
78708 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78709
78710         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78711         name (relative to the original working directory) and the file
78712         name component (relative to the temporary working directory).  All
78713         callers changed.
78714         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78715         * lib/mkdir-p.c (make_dir_parents): Likewise.
78716         * lib/mkdir-p.h (make_dir_parents): Likewise.
78717
78718 2006-10-06  Eric Blake  <ebb9@byu.net>
78719
78720         Define several macros for use by the clean-temp module.
78721         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78722         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78723         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78724
78725         * lib/clean-temp.h (close_stream_temp): New declaration.
78726         * lib/clean-temp.c (includes): Pull in headers according to what
78727         other modules are in use.
78728         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78729
78730 2006-10-06  Bruno Haible  <bruno@clisp.org>
78731
78732         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78733         instead of fopen, fwriteerror.
78734
78735 2006-10-06  Bruno Haible  <bruno@clisp.org>
78736
78737         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78738         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78739         int.
78740         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78741         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78742         Return an error indicator.
78743         Suggested by Eric Blake.
78744
78745 2006-10-06  Bruno Haible  <bruno@clisp.org>
78746
78747         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78748         Reported by Eric Blake.
78749
78750 2006-10-06  Bruno Haible  <bruno@clisp.org>
78751
78752         * modules/closeout (Description): Mention stderr too.
78753
78754 2006-10-06  Bruno Haible  <bruno@clisp.org>
78755         and Paul Eggert  <eggert@cs.ucla.edu>
78756
78757         * lib/closeout.c (close_stdout): Also close stderr.
78758         * lib/closeout.h: Update comment.
78759
78760 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78761
78762         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78763         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78764         * lib/dirchownmod.c: Include lchown.h.
78765         * lib/lchown.c: Don't include files that lchown.h now includes.
78766         Don't declare chown, since lchown.h now does that.
78767         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78768         (lchown): Define to rpl_chown if lchown is declared but
78769         does not exist.  Declare using a prototype if lchown is not
78770         declared.  Add a copyright notice.
78771         * lib/mkstemp.h: Include <unistd.h>.
78772         * lib/openat.c: Include lchown.h.
78773
78774         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78775         we now test for that separately.
78776         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78777         rather than O_NOFOLLOW, when testing whether it's possible to
78778         avoid a race condition reliably.
78779         * lib/savewd.c (savewd_chdir): Likewise.
78780
78781         Remove macros that are no longer needed now that stdint.h is
78782         reliable.
78783         * lib/fsusage.c (UINTMAX_MAX): Remove.
78784         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78785         * lib/utimecmp.c (SIZE_MAX): Remove.
78786
78787         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78788
78789         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78790         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78791         O_NOATIME works.
78792
78793 2006-10-05  Bruno Haible  <bruno@clisp.org>
78794
78795         * lib/gl_list.h (gl_sortedlist_search_from_to,
78796         gl_sortedlist_indexof_from_to): New declarations.
78797         (gl_list_implementation): New fields sortedlist_search_from_to,
78798         sortedlist_indexof_from_to.
78799         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78800         inline functions.
78801         * lib/gl_list.c (gl_sortedlist_search_from_to,
78802         gl_sortedlist_indexof_from_to): New functions.
78803         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78804         function.
78805         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78806         (gl_array_sortedlist_search_from_to): New function.
78807         (gl_array_list_implementation): Update.
78808         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78809         function.
78810         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78811         (gl_carray_sortedlist_search_from_to): New function.
78812         (gl_carray_list_implementation): Update.
78813         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78814         gl_linked_sortedlist_indexof_from_to): New functions.
78815         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78816         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78817         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78818         gl_tree_sortedlist_indexof_from_to): New functions.
78819         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78820         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78821         Update.
78822         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78823         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78824         Update.
78825
78826 2006-10-05  Bruno Haible  <bruno@clisp.org>
78827
78828         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78829         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78830         (struct gl_list_implementation): Add fields search_from_to,
78831         indexof_from_to. Remove fields search, indexof.
78832         (gl_list_search): Use the search_from_to method.
78833         (gl_list_search_from, gl_list_search_from_to): New functions.
78834         (gl_list_indexof): Use the indexof_from_to method.
78835         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78836         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78837         (gl_list_search_from, gl_list_search_from_to): New functions.
78838         (gl_list_indexof): Use the indexof_from_to method.
78839         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78840         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78841         gl_array_indexof. Add start_index, end_index arguments.
78842         (gl_array_search_from_to): Renamed from gl_array_search. Add
78843         start_index, end_index arguments.
78844         (gl_array_remove, gl_array_list_implementation): Update.
78845         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78846         gl_carray_indexof. Add start_index, end_index arguments.
78847         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78848         start_index, end_index arguments.
78849         (gl_carray_remove, gl_carray_list_implementation): Update.
78850         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78851         gl_linked_search. Add start_index, end_index arguments.
78852         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78853         start_index, end_index arguments.
78854         (gl_linked_remove): Update.
78855         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78856         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78857         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78858         field to 'size_t'.
78859         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78860         gl_tree_search. Add start_index, end_index arguments.
78861         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78862         start_index, end_index arguments.
78863         (gl_tree_remove): Update.
78864         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78865         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78866         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78867         function.
78868         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78869         gl_tree_search. Add start_index, end_index arguments.
78870         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78871         start_index, end_index arguments.
78872         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78873         Update.
78874         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78875
78876 2006-10-05  Bruno Haible  <bruno@clisp.org>
78877
78878         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78879
78880         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78881         fwriteerror_temp): New declarations.
78882         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78883         (descriptors): New variable.
78884         (cleanup): First, close the descriptors.
78885         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78886         fclose_temp, fwriteerror_temp): New functions.
78887
78888 2006-10-04  Jim Meyering  <jim@meyering.net>
78889
78890         * lib/fts.c (fts_open): Tiny comment change.
78891
78892 2006-10-04  Bruno Haible  <bruno@clisp.org>
78893
78894         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78895         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78896         gl_LOCK_BODY.
78897         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78898         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78899         gl_LOCK_EARLY_BODY.
78900         (gl_LOCK): Require gl_LOCK_BODY.
78901
78902 2006-10-04  Bruno Haible  <bruno@clisp.org>
78903
78904         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78905         (gl_oset_search_atleast): New declaration.
78906         (struct gl_oset_implementation): Add field 'search_atleast'.
78907         (gl_oset_search_atleast): New inline function.
78908         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78909         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78910         (gl_array_oset_implementation): Update.
78911         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78912         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78913         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78914
78915 2006-10-04  Bruno Haible  <bruno@clisp.org>
78916
78917         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78918
78919 2006-10-03  Bruno Haible  <bruno@clisp.org>
78920
78921         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78922         from gl_avltreehash_list_implementation.
78923
78924 2006-10-03  Bruno Haible  <bruno@clisp.org>
78925
78926         * lib/gl_oset.c (gl_oset_add): Fix return type.
78927
78928 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78929
78930         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78931
78932 2006-10-02  Eric Blake  <ebb9@byu.net>
78933
78934         * modules/strnlen (Depends-on): Add extensions.
78935
78936 2006-10-02  Eric Blake  <ebb9@byu.net>
78937
78938         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78939         definition in 2.60+.
78940
78941 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78942
78943         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78944         checks.
78945
78946 2006-10-02  Bruno Haible  <bruno@clisp.org>
78947
78948         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78949         to the AUTOMAKE_OPTIONS.
78950         Reported by Jim Meyering.
78951
78952 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78953
78954         Work around bug in Solaris 10 /proc file system:
78955         /proc/self/fd/NNN/.. isn't the parent directory of
78956         the directory whose file descriptor is NNN.  This needs to
78957         be worked around at run time, not compile time, since a
78958         program might be built on Solaris 8, where things work, and
78959         run on Solaris 10.
78960         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78961         to use the following interface instead:
78962         (OPENAT_BUFFER_SIZE): New macro.
78963         (openat_proc_name): New function.
78964         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78965         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78966         Likewise.
78967         * lib/openat-proc.c: New file.
78968         * modules/openat (Files): Add lib/openat-proc.c.
78969         (Depends-on): Add same-inode, stdbool.
78970         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78971
78972 2006-09-29  Bruno Haible  <bruno@clisp.org>
78973
78974         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78975         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78976         argument. Set stdout_closed before testing for ferror, not after.
78977         (fwriteerror, fwriteerror_no_ebadf): New functions.
78978
78979 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78980
78981         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78982
78983 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78984
78985         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78986         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78987
78988 2006-09-28  Jim Meyering  <jim@meyering.net>
78989
78990         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78991         Include <unistd.h>.
78992
78993 2006-09-28  Bruno Haible  <bruno@clisp.org>
78994
78995         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78996         * modules/linkedhash-list (Depends-on): Likewise.
78997         * modules/rbtreehash-list (Depends-on): Likewise.
78998
78999 2006-09-28  Bruno Haible  <bruno@clisp.org>
79000
79001         * lib/strndup.h: Simplify the redefinition of strndup.
79002         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
79003         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
79004
79005 2006-09-28  Bruno Haible  <bruno@clisp.org>
79006
79007         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
79008         * lib/gl_linkedhash_list.c: Likewise.
79009         * lib/gl_rbtreehash_list.c: Likewise.
79010
79011 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79012
79013         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
79014         getaddrinfo.
79015
79016         * lib/__fpending.h: Don't include <stdio_ext.h> unless
79017         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
79018         it causes <stdio_ext.h> to cause a compile-time error.
79019         Problem reported by Nelson H. F. Beebe.
79020         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
79021         of HAVE_DECL___PENDING.
79022
79023         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
79024         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
79025         declaration.
79026
79027 2006-09-27  Jim Meyering  <jim@meyering.net>
79028
79029         This file could end up with a definition for a function
79030         named __strndup, rather than rpl_strndup on a system with
79031         incomplete weak_alias support.
79032         * lib/strndup.c (strndup): Rename from __strndup.
79033         Remove #defines that used to map __strndup to strndup.
79034         Don't use K&R prototypes.
79035         Remove LIBC-related code, since this file is not sync'd with glibc.
79036         * lib/strndup.h: Revamp, accordingly.
79037         * m4/strndup.m4: Modernize.
79038
79039 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79040
79041         * modules/savewd (Depends-on): Add 'raise'.
79042         * lib/savewd.c: Include <signal.h>, for 'raise'.
79043
79044 2006-09-26  Jim Meyering  <jim@meyering.net>
79045
79046         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
79047         when we detect Darwin 8.7.0's acl_get_file bug.
79048         Rearrange to perform the new (below) run-test while $LIBS
79049         contains any acl-related library.  Set USE_ACL at the end.
79050         (gl_ACL_GET_FILE): New function.
79051
79052 2006-09-26  Eric Blake  <ebb9@byu.net>
79053
79054         * lib/verror.c: Include <config.h> unconditionally.
79055
79056 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
79057
79058         * modules/clock-time (Maintainer): Add self.
79059         * modules/getlogin_r (Depends-on): Add extensions.
79060
79061 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79062
79063         * modules/clock-time: New module.
79064         * modules/nanosleep (Depends-on): Add clock-time.
79065         * modules/gethrxtime (Depends-on): Likewise.
79066         * modules/gettime (Depends-on): Likewise.
79067         * modules/settime (Depends-on): Likewise.
79068
79069         * modules/fts-lgpl: Depend on openat.
79070         * modules/mkancesdirs: Depend on savewd.
79071         * modules/mkdir-p: Likewise.
79072
79073 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79074
79075         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
79076
79077         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
79078         `gl_have_arbitrary_file_name_length_limit' to
79079         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
79080         actually works between configure runs.
79081
79082 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79083             Bruno Haible  <bruno@clisp.org>
79084
79085         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
79086
79087 2006-09-25  Jim Meyering  <jim@meyering.net>
79088
79089         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
79090         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
79091
79092 2006-09-25  Eric Blake  <ebb9@byu.net>
79093
79094         * gnulib-tool (func_import, func_create_testdir): Fix typos in
79095         exec's in 2006-09-18 patch when shuffling fds.
79096
79097 2006-09-25  Bruno Haible  <bruno@clisp.org>
79098
79099         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
79100         Reported by Jim Meyering.
79101
79102 2006-09-24  Jim Meyering  <jim@meyering.net>
79103
79104         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
79105         compare a pointer against a literal "0".  That caused failures with
79106         at least HP-UX's hpcc.
79107
79108 2006-09-22  Simon Josefsson  <jas@extundo.com>
79109
79110         * modules/gc-sha1:
79111         * modules/gc-md4:
79112         * modules/gc-hmac-sha1:
79113         * modules/gc-hmac-md5:
79114         * modules/gc-des:
79115         * modules/gc-arcfour: Distribute more files.
79116
79117 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79118
79119         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
79120         (gl_linked_iterator_from_to): Initialize struct completely.
79121         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
79122         (gl_tree_iterator_from_to): Likewise
79123         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
79124         * lib/gl_array_list.c [lint] (gl_array_iterator)
79125         (gl_array_iterator_from_to): Likewise.
79126         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
79127         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
79128         (gl_carray_iterator_from_to): Likewise.
79129
79130         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
79131         * lib/md4.c (md4_process_block): Remove unused variable.
79132         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
79133         parentheses for clarity.
79134
79135 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79136
79137         * modules/bison-i18n (Depends-on): Add gettext.
79138
79139 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79140
79141         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
79142         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79143         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
79144         also add missing comma that caused broken test.
79145         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
79146         stdlib.h, for `abort'.
79147         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
79148         variables.
79149         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
79150         include unistd.h if present, for `rmdir'.
79151         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
79152         variables.
79153         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
79154         in the process include standard headers for prototypes.
79155         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
79156         gets declared on GNU/Linux.
79157         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
79158         unistd.h, for `rmdir'.
79159         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
79160
79161         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
79162         always true.
79163         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
79164
79165         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
79166
79167 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79168
79169         * gnulib-tool (func_version): Create output all at once.  This
79170         may help avoid triggering unnecessary SIGPIPEs, and at any
79171         rate it doesn't hurt.
79172
79173 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79174             Bruno Haible  <bruno@clisp.org>
79175
79176         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
79177         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
79178         * m4/signed.m4 (bh_C_SIGNED): Likewise.
79179
79180         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
79181         (gl_FUNC_VASPRINTF): Invoke it.
79182
79183 2006-09-22  Bruno Haible  <bruno@clisp.org>
79184
79185         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
79186         getloadavg.c as first argument.
79187
79188 2006-09-22  Bruno Haible  <bruno@clisp.org>
79189
79190         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
79191         at the beginning of the gl_INIT macro.
79192         * modules/getloadavg (configure.ac): Pass $gl_source_base to
79193         gl_GETLOADAVG.
79194
79195 2006-09-22  Bruno Haible  <bruno@clisp.org>
79196
79197         * gnulib-tool (func_create_megatestdir): Don't include the config-h
79198         module.
79199         Suggested by Ralf Wildenhues.
79200
79201 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79202
79203         Import this patch from libc:
79204
79205         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
79206
79207         * lib/regex_internal.c (re_string_reconstruct): Handle
79208         offset < pstr->valid_raw_len && pstr->offsets_needed case.
79209         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
79210         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
79211         re_string_context_at.
79212
79213         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
79214         now requires it.
79215         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
79216         gl_REGEX now does it for us.
79217         (gl_REGEX): Add test taken from
79218         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
79219
79220         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
79221         Check that large offsets work.  Modernize Autoconf usages.
79222         Prefer "yes" to mean a good thing rather than a bad.
79223         Don't put "#define mkstemp" in config.h, as this might interfere
79224         with standard system headers that "#define mkstemp mkstemp64".
79225
79226         * modules/mkstemp (Depends-on): Add extensions, so that
79227         mkstemp is visible on some platforms.
79228         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
79229         (Include): Change to "mkstemp.h" from <stdlib.h>.
79230         (Files): Add mkstemp.h.
79231
79232         * lib/mkstemp.h: New file, since some standard headers
79233         #define mkstemp.
79234         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
79235         Include "mkstemp.h".
79236         Make the _LIBC code resemble glibc original more,
79237         e.g., use K&R style.
79238         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
79239         (mkstemp): Remove, since mkstemp.h does this for us.
79240         * lib/stdlib--.h: Include mkstemp.h.
79241
79242         Import this patch from libc:
79243
79244         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79245
79246         * lib/tempname.c (__gen_tempname): Change attempts_min
79247         into a macro.  Use preprocessor to decide how to initialize
79248         attempts [Coverity CID 67].
79249
79250 2006-09-20  Bruno Haible  <bruno@clisp.org>
79251
79252         * lib/mkdtemp.c: Import from libc.
79253         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79254                 * sysdeps/posix/tempname.c (__gen_tempname): Change
79255                 attempts_min into a macro.  Use preprocessor to decide how to
79256                 initialize attempts [Coverity CID 67].
79257         2001-11-27  Paul Eggert  <eggert@twinsun.com>
79258                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
79259                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
79260
79261 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79262
79263         * gnulib-tool (func_exit): New function, to allow to pass the
79264         exit status portably through the trap.  Use everywhere.
79265         (--help, --version): Signal a write error.
79266         (trap): catch SIGPIPE, for write errors.
79267         Exit at the end of the trap, with the correct exit status.
79268
79269 2006-09-19  Karl Berry  <karl@gnu.org>
79270
79271         * doc/gnulib.texi: note about the license texinfo files.
79272
79273 2006-09-19  Eric Blake  <ebb9@byu.net>
79274
79275         * gnulib-tool: Avoid space-tab.
79276
79277 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79278
79279         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
79280         that prevented coreutils 6.1 from building.  Problem reported
79281         by Petter Reinholdtsen.
79282
79283 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79284
79285         * gnulib-tool (avoidlist): Fix typo that broke options like
79286         --avoid=lock that are used by coreutils bootstrap.
79287
79288 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
79289
79290         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
79291         more systematically.
79292
79293 2006-09-18  Jim Meyering  <jim@meyering.net>
79294
79295         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
79296
79297 2006-09-18  Bruno Haible  <bruno@clisp.org>
79298
79299         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
79300
79301 2006-09-18  Bruno Haible  <bruno@clisp.org>
79302
79303         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
79304         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
79305         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
79306         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
79307         * m4/gettext.m4: Require autoconf >= 2.52.
79308         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
79309         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
79310         of gl_cv_header_inttypes_h.
79311
79312 2006-09-18  Bruno Haible  <bruno@clisp.org>
79313
79314         * lib/javaversion.c: Include configmake.h.
79315
79316 2006-09-18  Bruno Haible  <bruno@clisp.org>
79317
79318         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
79319         avoid that the while loops be executed in a subshell.
79320
79321 2006-09-18  Bruno Haible  <bruno@clisp.org>
79322
79323         * MODULES.html.sh (func_module): Break long lines.
79324         Suggested by Bruce Korb <bkorb@gnu.org>.
79325
79326 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79327
79328         Speed up by a factor of 1.12.
79329         * gnulib-tool (nl): New variable.
79330         (func_import): Rewrite include directive extraction to only read each
79331         directive once.
79332
79333 2006-09-17  Bruno Haible  <bruno@clisp.org>
79334
79335         * modules/javaversion (Makefile.am): Remove DEFS setting.
79336         (Depends-on): Add configmake, for PKGDATADIR definition.
79337
79338 2006-09-17  Bruno Haible  <bruno@clisp.org>
79339
79340         * gnulib-tool (func_create_testdir): Rewrite all files at once.
79341
79342 2006-09-17  Bruno Haible  <bruno@clisp.org>
79343
79344         * gnulib-tool (func_append): New function, stolen from libtool.m4.
79345         (func_modules_transitive_closure, func_modules_add_dummy,
79346         func_modules_to_filelist, func_import, func_create_testdir,
79347         func_create_megatestdir, ...): Use it wherever possible.
79348         Suggested by Ralf Wildenhues.
79349
79350 2006-09-16  Karl Berry  <karl@gnu.org>
79351
79352         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
79353         to avoid sectioning errors.
79354         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
79355         [ifinfo]: blank line after @center-ed titles.
79356         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
79357         Spell FSF address consistently with others.
79358         (These changes approved by rms.)
79359
79360 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79361
79362         Speed up by a factor of 1.61.
79363         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
79364         already checked module names again.
79365
79366 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79367
79368         Speed up by a factor of 1.13.
79369         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
79370         for new_files, and the input to func_add_or_update.
79371
79372 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79373
79374         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
79375         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
79376
79377 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79378
79379         * modules/mkancesdirs (Depends-on): Add fcntl.
79380         * modules/savewd: New file.
79381         * MODULES.html.sh (File system functions): Add savewd.
79382
79383         * modules/configmake (Makefile.am): Add support for the
79384         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
79385
79386 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * m4/savewd.m4: New file.
79389
79390 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79391
79392         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
79393         (dirchownmod): New arg FD.  All callers changed.
79394         Use FD rather than opening the directory ourself, as opening is
79395         now the caller's responsibility.
79396         * lib/dirchownmod.h: Likewise.
79397         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
79398         hosts that require <sys/types.h> before <sys/stat.h>.  Include
79399         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
79400         (test_dir): Remove.
79401         (mkancesdirs): Return length of prefix of FILE that has already
79402         been made, or -2 if there is a child doing the work.  Redo
79403         algorithm so that it is O(N) rather than O(N**2).  Optimize away
79404         ".", and treat ".." specially since it might stray back into
79405         already-created areas.  Use a subprocess if necessary.  New arg
79406         WD; all users changed.  MAKE_DIR function should now return 1
79407         if it creates a directory that is not readable.  Return -2 if
79408         a child process is spun off.
79409         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
79410         Adjust signature to match code.
79411         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
79412         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
79413         all users changed.
79414         * lib/savewd.c, lib/savewd.h: New files.
79415
79416 2006-09-15  Jim Meyering  <jim@meyering.net>
79417
79418         * modules/rename-dest-slash: New module.
79419         * MODULES.html.sh (posix_compat): Add it here.
79420
79421         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
79422
79423 2006-09-15  Jim Meyering  <jim@meyering.net>
79424
79425         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
79426         file.
79427
79428         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
79429
79430 2006-09-15  Jim Meyering  <jim@meyering.net>
79431
79432         * lib/rename-dest-slash.c (has_trailing_slash): Use
79433         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
79434         (rpl_rename_dest_slash): Perform the cheaper trailing slash
79435         test before testing whether SRC is a directory.
79436         Suggestions from Bruno Haible.
79437
79438         Avoid a warning about an unused variable.
79439         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
79440         into the #ifdef block where it's used.
79441
79442         * lib/rename-dest-slash.c: New file.
79443
79444 2006-09-14  Bruno Haible  <bruno@clisp.org>
79445
79446         * lib/allocsa.c: Include <config.h> unconditionally.
79447         * lib/asnprintf.c: Likewise.
79448         * lib/asprintf.c: Likewise.
79449         * lib/c-strcasecmp.c: Likewise.
79450         * lib/c-strcasestr.c: Likewise.
79451         * lib/c-strncasecmp.c: Likewise.
79452         * lib/c-strstr.c: Likewise.
79453         * lib/classpath.c: Likewise.
79454         * lib/clean-temp.c: Likewise.
79455         * lib/concatpath.c: Likewise.
79456         * lib/copy-file.c: Likewise.
79457         * lib/csharpcomp.c: Likewise.
79458         * lib/csharpexec.c: Likewise.
79459         * lib/execute.c: Likewise.
79460         * lib/fatal-signal.c: Likewise.
79461         * lib/findprog.c: Likewise.
79462         * lib/fwriteerror.c: Likewise.
79463         * lib/gl_array_list.c: Likewise.
79464         * lib/gl_array_oset.c: Likewise.
79465         * lib/gl_avltree_list.c: Likewise.
79466         * lib/gl_avltree_oset.c: Likewise.
79467         * lib/gl_avltreehash_list.c: Likewise.
79468         * lib/gl_carray_list.c: Likewise.
79469         * lib/gl_linked_list.c: Likewise.
79470         * lib/gl_linkedhash_list.c: Likewise.
79471         * lib/gl_list.c: Likewise.
79472         * lib/gl_oset.c: Likewise.
79473         * lib/gl_rbtree_list.c: Likewise.
79474         * lib/gl_rbtree_oset.c: Likewise.
79475         * lib/gl_rbtreehash_list.c: Likewise.
79476         * lib/imaxabs.c: Likewise.
79477         * lib/imaxdiv.c: Likewise.
79478         * lib/javacomp.c: Likewise.
79479         * lib/javaexec.c: Likewise.
79480         * lib/javaversion.c: Likewise.
79481         * lib/linebreak.c: Likewise.
79482         * lib/localcharset.c: Likewise.
79483         * lib/lock.c: Likewise.
79484         * lib/mbchar.c: Likewise.
79485         * lib/mbswidth.c: Likewise.
79486         * lib/mkdtemp.c: Likewise.
79487         * lib/pipe.c: Likewise.
79488         * lib/printf-args.c: Likewise.
79489         * lib/printf-parse.c: Likewise.
79490         * lib/progname.c: Likewise.
79491         * lib/progreloc.c: Likewise.
79492         * lib/readlink.c: Likewise.
79493         * lib/sh-quote.c: Likewise.
79494         * lib/stpcpy.c: Likewise.
79495         * lib/stpncpy.c: Likewise.
79496         * lib/strcasecmp.c: Likewise.
79497         * lib/strcasestr.c: Likewise.
79498         * lib/strcspn.c: Likewise.
79499         * lib/striconv.c: Likewise.
79500         * lib/strncasecmp.c: Likewise.
79501         * lib/strnlen1.c: Likewise.
79502         * lib/strstr.c: Likewise.
79503         * lib/strtok_r.c: Likewise.
79504         * lib/tls.c: Likewise.
79505         * lib/tmpdir.c: Likewise.
79506         * lib/unicodeio.c: Likewise.
79507         * lib/unsetenv.c: Likewise.
79508         * lib/vasnprintf.c: Likewise.
79509         * lib/vasprintf.c: Likewise.
79510         * lib/wait-process.c: Likewise.
79511         * lib/xallocsa.c: Likewise.
79512         * lib/xsetenv.c: Likewise.
79513         * lib/xstriconv.c: Likewise.
79514
79515 2006-09-13  Simon Josefsson  <jas@extundo.com>
79516
79517         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79518         that internally, suggested by Ralf Wildenhues
79519         <Ralf.Wildenhues@gmx.de>.
79520
79521 2006-09-13  Simon Josefsson  <jas@extundo.com>
79522
79523         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79524         @LIBOBJS@.
79525         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79526
79527 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79528
79529         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79530         longer worry about uses that don't define HAVE_CONFIG_H.
79531         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79532         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79533         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79534         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79535         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79536         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79537         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79538         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79539         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79540         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79541         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79542         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79543         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79544         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79545         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79546         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79547         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79548         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79549         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79550         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79551         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79552         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79553         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79554         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79555         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79556         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79557         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79558         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79559         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79560         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79561         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79562         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79563         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79564         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79565         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79566         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79567         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79568         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79569         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79570         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79571         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79572         Likewise.
79573
79574 2006-09-13  Eric Blake  <ebb9@byu.net>
79575
79576         * lib/getopt.c: Fix typo in last commit.
79577
79578 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79579
79580         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79581         dgettext.
79582
79583 2006-09-12  Jim Meyering  <jim@meyering.net>
79584
79585         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79586         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79587         Reported by Nelson H. F. Beebe.
79588
79589 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79590
79591         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79592         program_invocation_name and program_invocation_short_name are
79593         initialized.
79594         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79595         and program_invocation_short_name to argp.h, so they are visible
79596         to user programs.
79597         * lib/argp.h: Likewise
79598
79599 2006-09-10  Bruno Haible  <bruno@clisp.org>
79600
79601         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79602         m4/inttypes_h.m4, m4/uintmax_t.m4.
79603
79604 2006-09-10  Bruno Haible  <bruno@clisp.org>
79605
79606         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79607         gl_AC_TYPE_UINTMAX_T.
79608
79609 2006-09-10  Bruno Haible  <bruno@clisp.org>
79610
79611         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79612
79613 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79614
79615         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79616         convention.  Text proposed by Bruno Haible.
79617         (struct argp_option): Document the use of N_() wrappers.
79618
79619         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79620         '\v', and translate the two parts separately, instead of feeding
79621         the whole string to gettext.  This allows to exclude
79622         '\v' from the strings visible to the translator by writing doc
79623         strings as N_("..") "\v" N_("..").
79624
79625 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79626
79627         * config/srclist.txt: Undo latest change; the bug was fixed.
79628
79629 2006-09-09  Bruno Haible  <bruno@clisp.org>
79630
79631         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79632         assignments if building a library without libtool.
79633         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79634         in func_emit_lib_Makefile_am.
79635         (func_import): When building a static library libfoo.a, arrange to
79636         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79637         (func_create_testdir): Likewise.
79638         * modules/gc (configure.ac, Makefile.am): If building statically,
79639         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79640         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79641         * modules/striconv (configure.ac, Makefile.am): Likewise.
79642         Based on a suggestion by Ralf Wildenhues.
79643
79644 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79645
79646         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79647         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79648         Also:
79649
79650         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79651         Add year_2050_test to catch glibc bug 2821
79652         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79653
79654         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79655         Prefer #ifdef to #if.
79656
79657         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79658         Return from 'main' instead of calling 'exit'.
79659
79660 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79661
79662         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79663         returned the maximum time_t value rather than (time_t) -1.
79664         Problem originally reported by William Bardwell
79665         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79666
79667         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79668         Moved to here ...
79669         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79670         ... from here.
79671
79672 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79673
79674         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79675         2821 is fixed.
79676
79677 2006-09-08  Jim Meyering  <jim@meyering.net>
79678
79679         Don't make generated files read-only.  That would bother too many
79680         people.  However, do retain the ability to work when targets are
79681         read-only: remove the destination and temporary files before writing
79682         them (when generated via sed or echo), or by using the -f option for
79683         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79684         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79685         * modules/byteswap, modules/configmake, modules/fcntl:
79686         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79687         * modules/localcharset, modules/netinet_in, modules/poll:
79688         * modules/stdbool, modules/stdint, modules/sys_select:
79689         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79690
79691 2006-09-08  Jim Meyering  <jim@meyering.net>
79692
79693         Avoid new build failure on FreeBSD 6.0.
79694         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79695         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79696         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79697
79698 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79699
79700         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79701
79702 2006-09-07  Jim Meyering  <jim@meyering.net>
79703
79704         Fix global typo in last change: use chmod u-w, not chmod u-x.
79705         Spotted by Paul Eggert and Bruce Korb.
79706         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79707         * modules/byteswap, modules/configmake, modules/fcntl:
79708         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79709         * modules/localcharset, modules/netinet_in, modules/poll:
79710         * modules/stdbool, modules/stdint, modules/sys_select:
79711         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79712
79713 2006-09-06  Jim Meyering  <jim@meyering.net>
79714
79715         Make generated files be read-only.
79716         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79717         Ensure that each generated file is now read-only.
79718         * modules/argz: Likewise.
79719         * modules/arpa_inet: Likewise.
79720         * modules/byteswap: Likewise.
79721         * modules/configmake: Likewise.
79722         * modules/fcntl: Likewise.
79723         * modules/fnmatch: Likewise.
79724         * modules/getopt: Likewise.
79725         * modules/glob: Likewise.
79726         * modules/inttypes: Likewise.
79727         * modules/netinet_in: Likewise.
79728         * modules/poll: Likewise.
79729         * modules/stdbool: Likewise.
79730         * modules/stdint: Likewise.
79731         * modules/sys_select: Likewise.
79732         * modules/sys_socket: Likewise.
79733         * modules/sys_stat: Likewise.
79734         * modules/sysexits: Likewise.
79735         * modules/localcharset: Same as above, but continue using temporary
79736         file named "t-$@" (why different?) rather than the "$@-t" used
79737         everywhere else.
79738
79739         * modules/sysexits (Makefile.am): Replace literal occurrences
79740         of "sysexit.h" more readable, and more consistent, "$@".
79741
79742 2006-09-06  Bruno Haible  <bruno@clisp.org>
79743
79744         * modules/striconv: New file.
79745         * modules/xstriconv: New file.
79746         * MODULES.html.sh (Internationalization functions): Add striconv,
79747         xstriconv.
79748
79749 2006-09-06  Bruno Haible  <bruno@clisp.org>
79750
79751         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79752         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79753         not using libtool correctly.
79754
79755 2006-09-06  Bruno Haible  <bruno@clisp.org>
79756
79757         * lib/striconv.h: New file.
79758         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79759         iconvstring.c.
79760         * lib/xstriconv.h: New file.
79761         * lib/xstriconv.c: New file.
79762
79763 2006-09-06  Bruno Haible  <bruno@clisp.org>
79764
79765         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79766         lib_..._LDFLAGS.
79767
79768 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79769
79770         * lib/argz_.h: Sync from Libtool.
79771
79772         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79773                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79774
79775         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79776
79777 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79778
79779         * modules/trim: New file.
79780
79781 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79782
79783         * lib/trim.h: New file.
79784         * lib/trim.c: New file.
79785
79786 2006-09-05  Bruno Haible  <bruno@clisp.org>
79787
79788         * MODULES.html.sh (String handling): Add trim.
79789
79790 2006-09-04  Karl Berry  <karl@gnu.org>
79791
79792         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79793         until next release.
79794
79795 2006-09-03  Bruno Haible  <bruno@clisp.org>
79796
79797         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79798         correctly.
79799
79800 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79801
79802         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79803         not gl_GETLOADAVG.  Omit unneeded semicolons.
79804         Problems reported by Ralf Wildenhues in
79805         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79806         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79807         at the end, which is the usual gnulib style.
79808
79809         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79810         of doing all the work ourselves.
79811         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79812         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79813
79814 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79815
79816         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79817         Problem reported by Ralf Wildenhues in
79818         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79819
79820         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79821         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79822
79823 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79824
79825         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79826         yesterday's patch by changing test -n to test -z.
79827
79828 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79829
79830         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79831         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79832         the former is now obsolescent.
79833
79834         * modules/chdir-long (Depends-on): Add fcntl.
79835
79836 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79837
79838         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79839         obsolescent, and programs should use gnulib instead.
79840         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79841         but with prefixes changed.
79842
79843 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79844
79845         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79846         or stdbool.h, because they might not exist while configuring.
79847
79848         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79849         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79850         does that for us.
79851         (O_DIRECTORY): Remove.
79852
79853 2006-08-31  Eric Blake  <ebb9@byu.net>
79854
79855         * gnulib-tool: Don't let emacs change spaces to TAB.
79856
79857 2006-08-31  Bruno Haible  <bruno@clisp.org>
79858
79859         * gnulib-tool: When calling func_import more than once, do it in a
79860         subshell.
79861         Reported by Eric Blake <ebb9@byu.net>.
79862
79863 2006-08-31  Bruno Haible  <bruno@clisp.org>
79864
79865         * gnulib-tool (nl): Remove variable.
79866         (sed_transform_lib_file): Use more robust test for config-h module.
79867         (func_import): Fix typo in 2006-08-25 patch.
79868
79869 2006-08-31  Bruno Haible  <bruno@clisp.org>
79870
79871         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79872         specified, augment Makefile.am variables instead of assigning them.
79873
79874 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         Work around a bug in both the Linux and SunOS 64-bit kernels:
79877         nanosleep mishandles sleeps for longer than 2**31 seconds.
79878         Problem reported by Frank v Waveren in
79879         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79880         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79881         Check for nanosleep bug.
79882         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79883
79884 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79885
79886         Work around a bug in both the Linux and SunOS 64-bit kernels:
79887         nanosleep mishandles sleeps for longer than 2**31 seconds.
79888         Problem reported by Frank v Waveren in
79889         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79890         * lib/nanosleep.c (BILLION): New constant.
79891         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79892         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79893         implementation.
79894
79895 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79896
79897         * modules/nanosleep (Depends-on): Add gettime.
79898
79899 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79900         and Simon Josefsson  <jas@extundo.com>
79901         and Oskar Liljeblad  <oskar@osk.mine.nu>
79902
79903         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79904         * gnulib-tool (func_import): New license type 'unmodifiable license
79905         text'.
79906         * modules/fdl: Use it.  Longer description.
79907         * module/gpl, module/lgpl: New files.
79908
79909 2006-08-30  Jim Meyering  <jim@meyering.net>
79910
79911         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79912         shadowing the parameter.
79913
79914 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79915
79916         Sync from Libtool:
79917
79918         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79919
79920         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79921         sharing with gnulib.  Report by Eric Blake.
79922
79923 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79924
79925         * modules/isapipe: New file.
79926         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79927
79928 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79929
79930         * modules/configmake (Makefile.am): Add a comment, and omit
79931         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79932         by Bruno Haible.
79933
79934 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79935
79936         * m4/isapipe.m4: New file.
79937
79938 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79939
79940         * lib/isapipe.c, lib/isapipe.h: New files.
79941
79942 2006-08-29  Jim Meyering  <jim@meyering.net>
79943
79944         * modules/configmake (Makefile.am): Make configmake.h depend on
79945         Makefile.  Otherwise, a stale configmake.h could hang around.
79946
79947 2006-08-29  Eric Blake  <ebb9@byu.net>
79948
79949         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79950         resolution of upstream bug 3044.
79951
79952 2006-08-29  Bruno Haible  <bruno@clisp.org>
79953
79954         * modules/localcharset (Depends-on): Add configmake.
79955         (Makefile.am): Remove setting of LIBDIR through DEFS.
79956
79957 2006-08-29  Bruno Haible  <bruno@clisp.org>
79958
79959         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79960         defined.
79961
79962 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79963
79964         * modules/fcntl: New file.
79965         * modules/chdir-safer (Depends-on): Add fcntl.
79966         * modules/fts: Likewise.
79967         * modules/mkdir-p: Likewise.
79968
79969         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79970         This undoes the most recent change, since we're now addressing the
79971         problem in a different way.
79972
79973         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79974         into output, since the output might be called Makefile.am even
79975         if $makefile_name is something different.
79976         (func_import): Use $makefile_am rather than
79977         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79978         empty.
79979
79980         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79981
79982 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79983
79984         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79985         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79986         recent change to stdint.m4, since we're now addressing the problem in a
79987         different way.
79988
79989 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79990
79991         * m4/fcntl_h.m4: New file.
79992
79993 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79994
79995         * lib/fcntl_.h: New file.
79996         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79997         the fcntl module.
79998         * lib/dirchownmod.c: Likewise.
79999         * lib/fts.c: Likewise.
80000
80001         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
80002         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
80003         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
80004         just before including <inttypes.h>, to avoid circular inclusion.
80005
80006 2006-08-28  Jim Meyering  <jim@meyering.net>
80007
80008         * doc/visibility.texi: Actually read and correct the grammar of the
80009         sentence affected by yesterday's change.
80010
80011 2006-08-28  Eric Blake  <ebb9@byu.net>
80012
80013         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
80014         needs wrapper.
80015
80016 2006-08-28  Eric Blake  <ebb9@byu.net>
80017
80018         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
80019
80020 2006-08-28  Eric Blake  <ebb9@byu.net>
80021
80022         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
80023
80024 2006-08-28  Bruno Haible  <bruno@clisp.org>
80025
80026         * modules/c-strstr: New file, from GNU gettext.
80027         * MODULES.html.sh (String handling): Add c-strstr.
80028
80029 2006-08-28  Bruno Haible  <bruno@clisp.org>
80030
80031         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
80032         macros.
80033         Reported by Eric Blake.
80034
80035 2006-08-28  Bruno Haible  <bruno@clisp.org>
80036
80037         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
80038         (VASNPRINTF): Return a string of length > INT_MAX without failing.
80039         * lib/vasprintf.c: Include errno.h, limits.h.
80040         (EOVERFLOW): New fallback definition.
80041         (vasprintf): Test here whether the string length is > INT_MAX.
80042         * lib/vsnprintf.c: Include errno.h, limits.h.
80043         (EOVERFLOW): New fallback definition.
80044         (vsnprintf): Fix bug when generated string was too long for the buffer.
80045         Test here whether the string length is > INT_MAX.
80046
80047 2006-08-28  Bruno Haible  <bruno@clisp.org>
80048
80049         * lib/inttypes_.h (SCNX*): Remove definitions.
80050         Reported by Eric Blake.
80051
80052 2006-08-28  Bruno Haible  <bruno@clisp.org>
80053
80054         * lib/c-strstr.h: New file, from GNU gettext.
80055         * lib/c-strstr.c: New file, from GNU gettext.
80056
80057 2006-08-28  Bruno Haible  <bruno@clisp.org>
80058
80059         * gnulib-tool: Reorder some statements.
80060
80061 2006-08-28  Bruno Haible  <bruno@clisp.org>
80062
80063         * gnulib-tool: New option --makefile-name.
80064         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
80065         $makefile_name.
80066         (func_import): Write $makefile_name to the cache file, and read it from
80067         there unless explicitly specified. Use $makefile_name as file name
80068         instead of Makefile.am. Adjust the recommendations accordingly.
80069
80070 2006-08-28  Bruno Haible  <bruno@clisp.org>
80071
80072         * gnulib-tool (func_verify_module): Check against misapplying patch.
80073
80074 2006-08-28  Bruno Haible  <bruno@clisp.org>
80075
80076         * gnulib-tool (func_relativize, func_relconcat): New functions.
80077         Give an error if --local-dir is given with --update.
80078         Remove trailing slashes from $local_gnulib_dir.
80079         (func_import): Store the relativized $local_gnulib_dir in
80080         gnulib-cache.m4, and read it from there if not specified explicitly.
80081
80082 2006-08-28  Bruno Haible  <bruno@clisp.org>
80083
80084         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
80085         is the current directory. Respect also $local_gnulib_dir.
80086
80087 2006-08-28  Bruno Haible  <bruno@clisp.org>
80088             Simon Josefsson  <jas@extundo.com>
80089
80090         BeOS portability.
80091         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
80092
80093 2006-08-27  Jim Meyering  <jim@meyering.net>
80094
80095         * doc/visibility.texi: Remove duplicate word: "pointer".
80096
80097 2006-08-26  Bruno Haible  <bruno@clisp.org>
80098
80099         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
80100         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
80101         (Makefile.am): Create inttypes.h from inttypes_.h.
80102         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
80103
80104         * modules/imaxabs: New file.
80105
80106         * modules/imaxdiv: New file.
80107
80108 2006-08-26  Bruno Haible  <bruno@clisp.org>
80109
80110         * m4/inttypes.m4: New file.
80111         * m4/_inttypes_h.m4: Remove file.
80112         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
80113         PRI_MACROS_BROKEN.
80114         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
80115
80116         * m4/imaxabs.m4: New file.
80117
80118         * m4/imaxdiv.m4: New file.
80119
80120 2006-08-26  Bruno Haible  <bruno@clisp.org>
80121
80122         * lib/inttypes_.h: New file.
80123         * lib/inttypes.h: Remove file.
80124         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
80125
80126         * lib/imaxabs.c: New file.
80127
80128         * lib/imaxdiv.c: New file.
80129
80130 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80131
80132         New config-h module, so that "make" output needn't be cluttered
80133         by -DHAVE_CONFIG_H.
80134         * MODULES.html.sh (Support for building libraries and executables):
80135         Add config-h.
80136         * modules/config-h: New file.
80137         * gnulib-tool (nl, sed_transform_lib_file): New vars.
80138         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
80139         the config-h module is used.
80140
80141         New configmake module, so that "make" output needn't be cluttered
80142         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
80143         * MODULES.html.sh (Support for building libraries and executables):
80144         Add configmake.
80145         * modules/configmake: New file.
80146
80147 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80148
80149         * m4/config-h.m4: New file.
80150
80151 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80152
80153         * config/srclist.txt: Add elisp-comp.
80154
80155 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80156
80157         * MODULES.html.sh (Support for building libraries and executables):
80158         Add elisp-comp.
80159         * build-aux/elisp-comp: New file.
80160         * modules/elisp-comp: New file.
80161
80162 2006-08-24  Bruno Haible  <bruno@clisp.org>
80163
80164         * gnulib-tool (func_create_testdir): Use non-default values of
80165         sourcebase and m4base.
80166
80167 2006-08-24  Bruno Haible  <bruno@clisp.org>
80168
80169         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
80170         HTML structure.
80171
80172 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80173
80174         * modules/openat (Depends-on): Add lchown.
80175
80176 2006-08-23  Bruno Haible  <bruno@clisp.org>
80177
80178         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
80179         of gl_LOCK_EARLY instead of gl_LOCK.
80180
80181 2006-08-23  Bruno Haible  <bruno@clisp.org>
80182
80183         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
80184         on OSF/1 to no.
80185         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
80186
80187 2006-08-23  Bruno Haible  <bruno@clisp.org>
80188
80189         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
80190         as unusable.
80191
80192         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
80193         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
80194         (gl_LOCK): New macro.
80195
80196 2006-08-22  Simon Josefsson  <jas@extundo.com>
80197
80198         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
80199         to md5 module.
80200
80201 2006-08-22  Simon Josefsson  <jas@extundo.com>
80202
80203         * MODULES.html.sh: Add "Support for maintaining and release
80204         projects".
80205
80206         * build-aux/gnupload: New file, from coreutils.
80207
80208 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80209
80210         Avoid the need for AC_LIBSOURCES in m4 macros.
80211         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
80212         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
80213         * modules/check-version (EXTRA_DIST): Add check-version.h.
80214         * modules/crc (EXTRA_DIST): Add crc.h.
80215         * modules/des (EXTRA_DIST): Add des.h.
80216         * modules/gc (EXTRA_DIST): Add gc.h.
80217         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
80218         * modules/getline (EXTRA_DIST): Add getline.h.
80219         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
80220         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
80221         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
80222         * modules/md2 (EXTRA_DIST): Add md2.h.
80223         * modules/md4 (EXTRA_DIST): Add md4.h.
80224         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
80225         * modules/read-file (EXTRA_DIST): Add read-file.h.
80226         * modules/readline (EXTRA_DIST): Add readline.h.
80227         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
80228         rijndael-api-fst.h.
80229
80230 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80231
80232         * m4/rijndael.m4 (gl_ARCFOUR):
80233         * m4/arctwo.m4 (gl_ARCTWO):
80234         * m4/check-version.m4 (gl_CHECK_VERSION):
80235         * m4/crc.m4 (gl_CRC):
80236         * m4/des.m4 (gl_DES):
80237         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
80238         * m4/gc.m4 (gl_GC):
80239         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
80240         * m4/getline.m4 (gl_FUNC_GETLINE):
80241         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
80242         * m4/hmac-md5.m4 (gl_HMAC_MD5):
80243         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
80244         * m4/md2.m4 (gl_MD2):
80245         * m4/md4.m4 (gl_MD4):
80246         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
80247         * m4/read-file.m4 (gl_FUNC_READ_FILE):
80248         * m4/readline.m4 (gl_FUNC_READLINE):
80249         * m4/rijndael.m4 (gl_RIJNDAEL):
80250         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80251         to get the necessary .h files and whatnot.
80252
80253 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80254
80255         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
80256         gnulib rather than the other way around.
80257         * config/srclistvars.sh (COREUTILS): Remove.
80258
80259 2006-08-22  Jim Meyering  <jim@meyering.net>
80260
80261         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
80262
80263         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
80264
80265 2006-08-22  Eric Blake  <ebb9@byu.net>
80266
80267         * modules/regexprops-generic: New file.
80268         * MODULES.html.sh (Support for building documentation): List it.
80269
80270 2006-08-22  Eric Blake  <ebb9@byu.net>
80271
80272         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
80273         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
80274         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
80275         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
80276
80277 2006-08-22  Bruno Haible  <bruno@clisp.org>
80278
80279         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
80280         and lib_LTLIBRARIES like the other lib_* variables.
80281
80282 2006-08-22  Bruno Haible  <bruno@clisp.org>
80283
80284         * build-aux/x-to-1.in: New file, from GNU gettext.
80285
80286 2006-08-22  Bruno Haible  <bruno@clisp.org>
80287
80288         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
80289         <utmpx.h> exists.
80290
80291 2006-08-22  Bruno Haible  <bruno@clisp.org>
80292
80293         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
80294         <utmpx.h> exists.
80295
80296 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80297
80298         BeOS portability.
80299         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
80300         exist.
80301         Problem reported by Bruno Haible.
80302
80303 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80304
80305         Avoid the need for AC_LIBSOURCES in m4 macros.
80306         * modules/acl (EXTRA_DIST): Add acl.h.
80307         * modules/argmatch (Files): Add m4/argmatch.m4.
80308         (configure.ac): Add gl_ARGMATCH.
80309         (EXTRA_DIST): Renamed from lib_SOURCES, for
80310         consistency with the other modules.  Remove argmatch.c.
80311         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
80312         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
80313         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
80314         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
80315         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
80316         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
80317         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
80318         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
80319         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
80320         * modules/closeout (EXTRA_DIST): Add closeout.h.
80321         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
80322         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
80323         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
80324         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
80325         dirname.h; remove basename.c and stripslash.c.
80326         * modules/exclude (EXTRA_DIST): Add exclude.h.
80327         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
80328         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
80329         * modules/file-type (EXTRA_DIST): Add file-type.h.
80330         * modules/filemode (EXTRA_DIST): Add filemode.h.
80331         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
80332         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80333         * modules/fpending (EXTRA_DIST): Add __fpending.h.
80334         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
80335         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
80336         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
80337         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
80338         * modules/getdate (EXTRA_DIST): Add getdate.c.
80339         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
80340         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
80341         * modules/getpass (EXTRA_DIST): Add getpass.h.
80342         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
80343         * modules/group-member (EXTRA_DIST): Add group-member.h.
80344         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
80345         * modules/hash (EXTRA_DIST): Add hash.h.
80346         * modules/human (EXTRA_DIST): Add human.h.
80347         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
80348         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
80349         * modules/lchown (EXTRA_DIST): Add lchown.h.
80350         * modules/long-options (EXTRA_DIST): Add long-options.h.
80351         * modules/lstat (EXTRA_DIST): Add lstat.h.
80352         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
80353         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
80354         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
80355         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
80356         * modules/memxor (EXTRA_DIST): Add memxor.h.
80357         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
80358         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
80359         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
80360         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
80361         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
80362         * modules/physmem (EXTRA_DIST): Add physmem.h.
80363         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
80364         * modules/posixver (EXTRA_DIST): Add posixver.h.
80365         * modules/quote (EXTRA_DIST): Add quote.h.
80366         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
80367         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
80368         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
80369         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
80370         regex_internal.h regexec.c.
80371         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
80372         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
80373         * modules/same (EXTRA_DIST): Add same.h.
80374         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
80375         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
80376         * modules/savedir (EXTRA_DIST): Add savedir.h.
80377         * modules/sha1 (EXTRA_DIST): Add sha1.h.
80378         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
80379         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
80380         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
80381         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
80382         * modules/strdup (EXTRA_DIST): Add strdup.h.
80383         * modules/strftime (EXTRA_DIST): Add strftime.h.
80384         * modules/strndup (EXTRA_DIST): Add strndup.h.
80385         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
80386         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
80387         * modules/time_r (EXTRA_DIST): Add time_r.h.
80388         * modules/timespec (EXTRA_DIST): Add timespec.h.
80389         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80390         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
80391         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
80392         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
80393         * modules/userspec (EXTRA_DIST): Add userspec.h.
80394         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
80395         * modules/utimens (EXTRA_DIST): Add utimens.h.
80396         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
80397         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
80398         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
80399         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
80400         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
80401         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
80402         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
80403         * modules/yesno (EXTRA_DIST): Add yesno.h.
80404
80405 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80406
80407         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
80408
80409         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
80410         * m4/dev-ino.m4, same-inode.m4: Remove.
80411
80412         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
80413         * m4/acl.m4 (AC_FUNC_ACL):
80414         * m4/backupfile.m4 (gl_BACKUPFILE):
80415         * m4/c-strtod.m4 (gl_C99_STRTOLD):
80416         * m4/canon-host.m4 (gl_CANON_HOST):
80417         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
80418         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
80419         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
80420         * m4/cloexec.m4 (gl_CLOEXEC):
80421         * m4/close-stream.m4 (gl_CLOSE_STREAM):
80422         * m4/closeout.m4 (gl_CLOSEOUT):
80423         * m4/dirfd.m4 (gl_FUNC_DIRFD):
80424         * m4/dirname.m4 (gl_DIRNAME):
80425         * m4/exclude.m4 (gl_EXCLUDE):
80426         * m4/exitfail.m4 (gl_EXITFAIL):
80427         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
80428         * m4/file-type.m4 (gl_FILE_TYPE):
80429         * m4/filemode.m4 (gl_FILEMODE):
80430         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
80431         * m4/fpending.m4 (gl_FUNC_FPENDING):
80432         * m4/fprintftime.m4 (gl_FPRINTFTIME):
80433         * m4/fts.m4 (gl_FUNC_FTS):
80434         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
80435         * m4/getdate.m4 (gl_GETDATE):
80436         * m4/gethrxtime.m4 (gl_GETHRXTIME):
80437         * m4/getpagesize.m4 (gl_GETPAGESIZE):
80438         * m4/getpass.m4 (gl_FUNC_GETPASS):
80439         * m4/gettime.m4 (gl_GETTIME):
80440         * m4/getugroups.m4 (gl_GETUGROUPS):
80441         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
80442         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
80443         * m4/hard-locale.m4 (gl_HARD_LOCALE):
80444         * m4/hash.m4 (gl_HASH):
80445         * m4/idcache.m4 (gl_IDCACHE):
80446         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
80447         * m4/lchown.m4 (gl_FUNC_LCHOWN):
80448         * m4/long-options.m4 (gl_LONG_OPTIONS):
80449         * m4/lstat.m4 (gl_FUNC_LSTAT):
80450         * m4/md5.m4 (gl_MD5):
80451         * m4/memcasecmp.m4 (gl_MEMCASECMP):
80452         * m4/memcoll.m4 (gl_MEMCOLL):
80453         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
80454         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
80455         * m4/memxor.m4 (gl_MEMXOR):
80456         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
80457         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
80458         * m4/modechange.m4 (gl_MODECHANGE):
80459         * m4/mountlist.m4 (gl_MOUNTLIST):
80460         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
80461         * m4/openat.m4 (gl_FUNC_OPENAT):
80462         * m4/pathmax.m4 (gl_PATHMAX):
80463         * m4/physmem.m4 (gl_PHYSMEM):
80464         * m4/posixtm.m4 (gl_POSIXTM):
80465         * m4/posixver.m4 (gl_POSIXVER):
80466         * m4/quote.m4 (gl_QUOTE):
80467         * m4/quotearg.m4 (gl_QUOTEARG):
80468         * m4/readtokens.m4 (gl_READTOKENS):
80469         * m4/readutmp.m4 (gl_READUTMP):
80470         * m4/regex.m4 (gl_REGEX):
80471         * m4/safe-read.m4 (gl_SAFE_READ):
80472         * m4/safe-write.m4 (gl_SAFE_WRITE):
80473         * m4/same.m4 (gl_SAME):
80474         * m4/save-cwd.m4 (gl_SAVE_CWD):
80475         * m4/savedir.m4 (gl_SAVEDIR):
80476         * m4/settime.m4 (gl_SETTIME):
80477         * m4/sha1.m4 (gl_SHA1):
80478         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
80479         * m4/stat-macros.m4 (gl_STAT_MACROS):
80480         * m4/stat-time.m4 (gl_STAT_TIME):
80481         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
80482         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
80483         * m4/strdup.m4 (gl_FUNC_STRDUP):
80484         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
80485         * m4/strndup.m4 (gl_FUNC_STRNDUP):
80486         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
80487         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
80488         * m4/time_r.m4 (gl_TIME_R):
80489         * m4/timespec.m4 (gl_TIMESPEC):
80490         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
80491         * m4/unlinkdir.m4 (gl_UNLINKDIR):
80492         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
80493         * m4/userspec.m4 (gl_USERSPEC):
80494         * m4/utimecmp.m4 (gl_UTIMECMP):
80495         * m4/utimens.m4 (gl_UTIMENS):
80496         * m4/xalloc.m4 (gl_XALLOC):
80497         * m4/xgetcwd.m4 (gl_XGETCWD):
80498         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
80499         * m4/xreadlink.m4 (gl_XREADLINK):
80500         * m4/xstrtod.m4 (gl_XSTRTOD):
80501         * m4/yesno.m4 (gl_YESNO):
80502         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80503         to get the necessary .h files and whatnot.
80504
80505 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
80506             Bruno Haible  <bruno@clisp.org>
80507
80508         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80509         /bin/sh understanding of '!' conditional negation.
80510
80511 2006-08-21  Jim Meyering  <jim@meyering.net>
80512
80513         * modules/openat (Depends-on): Really alphabetize.
80514
80515         * modules/acl (Depends-on): Add error and quote.
80516
80517         * check-module (find_included_lib_files): Add at-func.c to the
80518         ok-to-include-more-than-once white list.
80519
80520         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80521
80522 2006-08-21  Bruno Haible  <bruno@clisp.org>
80523
80524         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80525         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80526         Reported by Martin Lambers <marlam@marlam.de>.
80527
80528 2006-08-21  Bruno Haible  <bruno@clisp.org>
80529
80530         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80531         specify an installation location, don't emit a noinst_LIBRARIES or
80532         noinst_LTLIBRARIES assignment.
80533
80534 2006-08-21  Bruno Haible  <bruno@clisp.org>
80535
80536         BeOS portability.
80537         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80538         BeOS has mbrtowc() but no <wctype.h>.
80539
80540 2006-08-21  Bruno Haible  <bruno@clisp.org>
80541
80542         BeOS portability.
80543         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80544         exist.
80545
80546 2006-08-21  Bruno Haible  <bruno@clisp.org>
80547
80548         BeOS portability.
80549         * lib/mbchar.h: Include <wctype.h> only if it exists.
80550
80551 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80552
80553         Remove files that are no longer needed by their respective modules.
80554         * m4/obstack.m4: Remove.
80555         * m4/strerror_r.m4: Remove.
80556         * m4/uint32_t.m4: Remove.
80557         * m4/uintptr_t.m4: Remove.
80558         * m4/ullong_max.m4: Remove.
80559         * m4/xstrtoimax.m4: Remove.
80560         * m4/xstrtoumax.m4: Remove.
80561
80562         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80563         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80564         dependencies now capture this.
80565
80566         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80567         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80568         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80569         * m4/human.m4 (gl_HUMAN): Likewise.
80570         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80571         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80572
80573         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80574
80575         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80576         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80577         stdint.
80578         * m4/human.m4 (gl_HUMAN): Likewise.
80579         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80580         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80581         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80582         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80583         * m4/xstrtol (gl_XSTRTOL): Likewise.
80584
80585         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80586         AC_TYPE_LONG_LONG_INT.
80587         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80588         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80589         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80590         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80591
80592         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80593         on stdbool.
80594
80595         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80596         (gl_PREREQ_XSTRTOUL): Remove.
80597
80598         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80599
80600         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80601         mode.
80602
80603 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80604
80605         Add and change modules to make it easier for coreutils to use
80606         gnulib-tool.
80607         * modules/backupfile (Files): Remove m4/d-ino.m4.
80608         (Depends-on): Add d-ino.
80609         * modules/cycle-check (Depends-on): Add stdint.
80610         (lib_SOURCES): Add cycle-check.h.
80611         * modules/d-ino: New module.
80612         * modules/d-type: New module.
80613         * modules/error (Files): Remove m4/strerror_r.m4.
80614         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80615         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80616         m4/inttypes_h.m4, m4/uintmax_t.m4.
80617         (Depends-on): Add stdint.
80618         (lib_SOURCES): Add fsusage.h.
80619         * modules/getcwd (Files): Remove d-ino.m4.
80620         (Depends-on): Add d-ino.
80621         * modules/getndelim2 (Depends-on): Add stdint.
80622         * modules/glob (Files): Remove m4/d-type.m4.
80623         (Depends-on): Add d-type.
80624         * modules/host-os: New module.
80625         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80626         m4/inttypes_h.m4, m4/uintmax_t.m4.
80627         * Depends-on: Add stdint.
80628         (lib_SOURCES): Add human.h.
80629         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80630         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80631         m4/uintmax_t.m4, m4/ulonglong.m4.
80632         (Depends-on): Add stdint.
80633         (EXTRA_DIST): Add inttostr.h.
80634         * modules/lchmod: New module.
80635         * modules/link-follow: New module.
80636         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80637         (Depends-on): Add lchmod.
80638         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80639         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80640         (Depends-on): Add stdint.
80641         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80642         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80643         (Depends-on): Add stdint.
80644         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80645         * modules/perl: New module.
80646         * modules/regex (Depends-on): Add stdint.
80647         * modules/rmdir-errno: New module.
80648         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80649         m4/intmax_t.m4.
80650         (Depends-on): Add stdint.
80651         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80652         m4/uintmax_t.m4.
80653         (Depends-on): Add stdint.
80654         * modules/unlink-busy: New module.
80655         * modules/utimecmp (Depends-on): Add stdint.
80656         * modules/uptime: New module.
80657         * modules/winsz-ioctl: New module.
80658         * modules/winsz-termios: New module.
80659         * modules/xnanosleep (Depends-on): Add nanosleep.
80660         * modules/ullong_max: Remove.
80661         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80662         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80663         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80664         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80665         (Depends-on): Add inttypes.
80666         (lib_SOURCES): Add xstrtol.h.
80667         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80668         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80669         * MODULES.html.sh: Move 'assert' into the assert section.
80670         Move 'dummy' into the linking section.
80671         Remove ullong_max.
80672         Add section for compatibility checks for POSIX:2001 functions,
80673         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80674         winsz-ioctl, and winsz-termios into it.
80675         Add lchmod.
80676         Add top-level Misc section and put host-os, perl, and uptime
80677         into it.
80678
80679 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80680
80681         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80682         now assume the stdint module.  Do not include inttypes.h.
80683         * lib/fsusage.h: Likewise.
80684         * lib/getndelim2.c: Likewise.
80685         * lib/human.h: Likewise.
80686         * lib/inttostr.h: Likewise.
80687         * lib/obstack.c: Likewise.
80688         * lib/regex_internal.h: Likewise.
80689         * lib/tempname.c: Likewise.
80690         * lib/utimecmp.c: Likewise.
80691         * lib/xstrtol.h: Likewise.
80692
80693         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80694
80695         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80696         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80697         * lib/xtime.h: Likewise.
80698
80699 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80700
80701         * modules/openat (Files): Add lib/fchmodat.c.
80702         Fixes problem reported by Jay Youngman.
80703
80704 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80705
80706         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80707         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80708
80709 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80710             Bruno Haible  <bruno@clisp.org>
80711
80712         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80713         and is a script that invokes bison. Tighten the code. Add comments.
80714
80715 2006-08-18  Jim Meyering  <jim@meyering.net>
80716
80717         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80718         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80719         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80720         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80721
80722 2006-08-18  Bruno Haible  <bruno@clisp.org>
80723
80724         * modules/bison-i18n: New file.
80725         * MODULES.html.sh (Internationalization functions): Add it.
80726
80727 2006-08-18  Bruno Haible  <bruno@clisp.org>
80728
80729         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80730         sys/statvfs.h. When getmntinfo was found, check its declaration and
80731         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80732
80733 2006-08-18  Bruno Haible  <bruno@clisp.org>
80734
80735         * m4/bison-i18n.m4: New file, from bison.
80736
80737 2006-08-18  Bruno Haible  <bruno@clisp.org>
80738
80739         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80740         (ME_DUMMY): Treat "kernfs" as a dummy.
80741         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80742
80743 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80744
80745         Update from coreutils.
80746
80747         2006-08-15  Jim Meyering  <jim@meyering.net>
80748
80749         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80750
80751         2006-01-17  Jim Meyering  <jim@meyering.net>
80752
80753         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80754
80755         2006-01-11  Jim Meyering  <jim@meyering.net>
80756
80757         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80758         Check for the lchmod function.
80759
80760 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80761
80762         Update from coreutils.
80763
80764         * lib/__fpending.h: Add copyright notice.
80765         * lib/fprintftime.h: Likewise.
80766         * lib/savedir.c: Use (C) in copyright notice.
80767         * lib/savedir.h: Likewise.
80768
80769         2006-08-15  Jim Meyering  <jim@meyering.net>
80770
80771         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80772         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80773         in support of the EXPECTED_ERRNO macro.
80774         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80775         definitions.  Instead, define the appropriate symbols and include
80776         "at-func.c".
80777         * lib/mkdirat.c (mkdirat): Likewise.
80778         * lib/fchmodat.c (fchmodat): Likewise.
80779         (ENOSYS): Remove definition.
80780         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80781         it.  Don't include "unistd--.h" -- it wasn't ever used.
80782
80783         2006-01-17  Jim Meyering  <jim@meyering.net>
80784
80785         Rewrite fts.c not to change the current working directory,
80786         by using openat, fstatat, fdopendir, etc..
80787
80788         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80789         (HAVE_OPENAT_SUPPORT): Define.
80790         [_LIBC] (fchdir): Don't undef or define; no longer used.
80791         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80792         Now, this `function' always succeeds, and consumes its file descriptor
80793         parameter -- so callers must not close such FDs.  Update callers.
80794         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80795         (diropen): Add parameter, SP.  Adjust all callers.
80796         Implement using diropen_fd, rather than open.
80797         (fts_open): Initialize new member, fts_cwd_fd.
80798         Remove fts_rft-setting code.
80799         (fts_close): Close fts_cwd_fd, if necessary.
80800         (__opendir2): Define in terms of opendir or opendirat,
80801         depending on whether the FST_NOCHDIR flag is set.
80802         (fts_build): Since fts_safe_changedir consumes its FD, and since
80803         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80804         and close the dup'd file descriptor upon failure.
80805         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80806         (fts_safe_changedir): Tweak semantics to reflect that this function
80807         now calls cwd_advance_fd and hence consumes its FD argument.
80808         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80809         [struct FTS] (fts_rft): Remove now-unused member.
80810         [struct FTS] (fts_cycle.state): Improve comment.
80811
80812         * lib/openat.c (openat_needs_fchdir): New function.
80813         * lib/openat.h (openat_needs_fchdir): Declare it.
80814
80815 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80816
80817         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80818         Problem and fix reported by Pádraig Brady in
80819         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80820
80821 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80822
80823         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80824
80825 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80826
80827         * lib/memcoll.c (memcoll): Optimize for the common case where the
80828         arguments are bytewise equal.
80829
80830 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80831
80832         * doc/regexprops-generic.texi: Add a copyright notice.
80833
80834 2006-08-15  Bruno Haible  <bruno@clisp.org>
80835
80836         * modules/tmpdir (License): Change to LGPL.
80837
80838 2006-08-15  Bruno Haible  <bruno@clisp.org>
80839
80840         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80841         module.
80842
80843 2006-08-14  Simon Josefsson  <jas@extundo.com>
80844
80845         * config/srclist.txt: Add gnupload.
80846
80847 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80848
80849         Change copyright notice from LGPL 2 to GPL 2, since that's the
80850         standard form used in the gnulib repository.
80851         * tests/test-lock.c: Likewise.
80852         * tests/test-stdint.c: Likewise.
80853         * tests/test-tls.c: Likewise.
80854
80855         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80856         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80857         Add copyright notice.
80858
80859         * check-module: Add copyright notice.  Output a copyright
80860         notice if "--version" is specified.
80861         * modules/COPYING: New file.
80862         * tests/test-getaddrinfo.c: Add copyright notice.
80863         * tests/test-verify.c: Likewise.
80864
80865 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80866
80867         Change copyright notice from LGPL 2 to GPL 2, since that's the
80868         standard form used in the gnulib repository.
80869         * lib/lock.c: LGPL -> GPL.
80870         * lib/lock.h: Likewise.
80871         * lib/strnlen1.c: Likewise.
80872         * lib/strnlen1.h: Likewise.
80873         * lib/tls.c: Likewise.
80874         * lib/tls.h: Likewise.
80875         * lib/tmpdir.c: Likewise.
80876
80877         * lib/TODO: Remove; this belongs only in coreutils.
80878
80879 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80880
80881         Add copyright notices to long-enough files that lack them, since
80882         otherwise the files aren't clearly free.  Use the same notice that
80883         getdate.texi already uses.
80884         * doc/alloca-opt.texi: Add copyright notice.
80885         * doc/alloca.texi: Likewise.
80886         * doc/ctime.texi: Likewise.
80887         * doc/functions.texi: Likewise.
80888         * doc/gcd.texi: Likewise.
80889         * doc/gnulib-tool.texi: Likewise.
80890         * doc/inet_ntoa.texi: Likewise.
80891         * doc/visibility.texi: Likewise.
80892
80893         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80894         * doc/quote.texi: Add copyright notice.
80895
80896         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80897         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80898         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80899         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80900         is now obsolete, and give a pointer to the Sun list.
80901         Add copyright notice.
80902
80903 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80904
80905         * config/srclistvars.sh: Add copyright notice.
80906
80907 2006-08-14  Eric Blake  <ebb9@byu.net>
80908
80909         Import the following change from libc:
80910
80911         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80912
80913         Upstream bug 2997.
80914         * lib/misc/error.c: Add space between program name and message if file
80915         name is missing.
80916
80917 2006-08-12  Karl Berry  <karl@gnu.org>
80918
80919         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80920         remove, these originate in gnulib now.
80921
80922 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80923
80924         * doc/Makefile (standards.info standards.html standards.dvi):
80925         Also depend on make-stds.texi.
80926
80927 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80928
80929         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80930         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80931
80932         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80933         in wchar_t.  Problem reported by Eric Blake.
80934
80935         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80936         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80937         Also, help the compiler to keep LEN in a register.
80938
80939 2006-08-11  Eric Blake  <ebb9@byu.net>
80940
80941         * users.txt: Sort.  Add tar.
80942
80943 2006-08-11  Bruno Haible  <bruno@clisp.org>
80944
80945         * users.txt: New file.
80946
80947 2006-08-11  Bruno Haible  <bruno@clisp.org>
80948
80949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80950         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80951
80952 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80953
80954         * modules/snprintf (Depends-on): Remove minmax.
80955         (Maintainer): Add self and Bruno.
80956
80957 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80958
80959         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80960         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80961         (EOVERFLOW): Define if the system does not.
80962         Do not include "minmax.h"; it wasn't used.
80963         (snprintf): Don't assume size_t promotes to an unsigned type.
80964         Fix bug when generated string was too long for the buffer: the
80965         buffer's contents are supposed to be the initial prefix of the
80966         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80967         exceeds INT_MAX; do the check ourselves.
80968
80969         Import the following changes from libc:
80970
80971         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80972
80973         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80974         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80975         set wc to the byte which couldn't be converted.
80976         (re_string_reconstruct): Don't clear valid_raw_len before calling
80977         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80978         tip_context using re_string_context_at.
80979
80980         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80981
80982         * lib/posix/regex.h: g++ still cannot handled [restrict].
80983
80984         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80985
80986         * lib/posix/regex.h: Remove special handling for VMS.
80987
80988 2006-08-10  Jim Meyering  <jim@meyering.net>
80989
80990         * modules/same-inode: New module.
80991         * modules/dev-ino: New module.
80992         * modules/cycle-check: Depend on these modules, rather than simply
80993         including their .h files.
80994         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80995         required via m4/cycle-check.m4.
80996         * modules/same: Depend on new same-inode module, rather than
80997         including same-inode.h.
80998         * modules/chdir-safer: New file.
80999
81000         * modules/chown (Depends-on): Add stat-macros.
81001
81002 2006-08-10  Jim Meyering  <jim@meyering.net>
81003
81004         * m4/cycle-check.m4: New file.
81005         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
81006         * m4/dev-ino.m4, m4/same-inode.m4: New files.
81007
81008 2006-08-10  Eric Blake  <ebb9@byu.net>
81009
81010         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
81011         in from original proposal.
81012
81013 2006-08-10  Eric Blake  <ebb9@byu.net>
81014         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
81015
81016         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
81017         namespace.
81018
81019 2006-08-10  Bruno Haible  <bruno@clisp.org>
81020
81021         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
81022         as well.
81023
81024 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81025
81026         Sync from coreutils.
81027
81028         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
81029
81030         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
81031         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
81032
81033 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81034
81035         * modules/restrict: Remove; no longer needed now that we assume
81036         Autoconf 2.59 or later.
81037         * MODULES.html.sh: Remove 'restrict'.
81038         * modules/argp (Depends-on): Remove 'restrict'.
81039         * modules/base64 (Depends-on): Likewise.
81040         * modules/gc (Depends-on): Likewise.
81041         * modules/getaddrinfo (Depends-on): Likewise.
81042         * modules/glob (Depends-on): Likewise.
81043         * modules/inet_ntop (Depends-on): Likewise.
81044         * modules/inet_pton (Depends-on): Likewise.
81045         * modules/memxor (Depends-on): Likewise.
81046         * modules/regex (Depends-on): Likewise.
81047         * modules/strtok_r (Depends-on): Likewise.
81048         * modules/time_r (Depends-on): Likewise.
81049
81050 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81051
81052         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
81053         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
81054         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81055         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
81056         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
81057         * m4/memxor.m4 (gl_MEMXOR): Likewise.
81058         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
81059         gl_C_RESTRICT replaced by AC_C_RESTRICT.
81060
81061         Merge from coreutils.
81062         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
81063         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
81064         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
81065         * m4/time_r.m4 (gl_TIME_R): Likewise.
81066
81067 2006-08-09  Karl Berry  <karl@gnu.org>
81068
81069         * config/srclist.txt: no more gettext-tools, per Bruno.
81070
81071 2006-08-08  Eric Blake  <ebb9@byu.net>
81072
81073         * modules/verror: New module.
81074         * MODULES.html.sh: Document it.
81075
81076 2006-08-08  Eric Blake  <ebb9@byu.net>
81077
81078         * lib/verror.h, lib/verror.c: New files.
81079
81080 2006-08-08  Eric Blake  <ebb9@byu.net>
81081
81082         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
81083         verror_at_line output complies with GNU Coding Standards even when
81084         file is NULL.
81085
81086 2006-08-07  Bruno Haible  <bruno@clisp.org>
81087
81088         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
81089         versions of AIX.
81090         Reported by Ralf Wildenhues.
81091
81092 2006-08-07  Bruno Haible  <bruno@clisp.org>
81093
81094         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
81095         in an AC_DEFUN. Needed so that the autoconf snippets can use
81096         AC_REQUIRE.
81097
81098 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81099
81100         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81101         Initialize pkgdata_DATA.
81102         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
81103         overriding it.
81104
81105 2006-08-06  Eric Blake  <ebb9@byu.net>
81106
81107         * lib/error.h: Fold in some upstream changes from glibc.
81108         * lib/error.c: Likewise.
81109
81110 2006-08-04  Bruno Haible  <bruno@clisp.org>
81111
81112         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81113         Make the mostlyclean-local rule depend on mostlyclean-generic.
81114         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
81115
81116 2006-07-31  Bruno Haible  <bruno@clisp.org>
81117
81118         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
81119         <stdlib.h>, <string.h>.
81120
81121 2006-07-30  Bruno Haible  <bruno@clisp.org>
81122
81123         * modules/readlink (License): Change to LGPL.
81124
81125 2006-07-30  Bruno Haible  <bruno@clisp.org>
81126
81127         * modules/javaversion (Makefile.am): Distribute javaversion.java and
81128         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
81129         set PKGDATADIR to point to it.
81130
81131 2006-07-30  Bruno Haible  <bruno@clisp.org>
81132
81133         * modules/csharpexec (configure.ac): Comment out macro invocation.
81134         * modules/javaexec (configure.ac): Likewise.
81135         * modules/javacomp-script (configure.ac): Likewise.
81136
81137         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
81138
81139 2006-07-30  Bruno Haible  <bruno@clisp.org>
81140
81141         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
81142         linked-list.
81143
81144 2006-07-30  Bruno Haible  <bruno@clisp.org>
81145
81146         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
81147
81148 2006-07-30  Bruno Haible  <bruno@clisp.org>
81149
81150         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81151         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
81152         get removed.
81153
81154 2006-07-29  Bruno Haible  <bruno@clisp.org>
81155
81156         Make it possible for gnulib-tool to work with locally modified or
81157         augmented gnulib repositories.
81158         * gnulib-tool (func_usage): Document --local-dir option.
81159         (local_gnulib_dir): New variable.
81160         Handle --local-dir option.
81161         (func_lookup_file): New function.
81162         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
81163         (func_get_description, func_get_filelist, func_get_description,
81164         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
81165         func_get_automake_snippet, func_get_include_directive,
81166         func_get_license, func_get_maintainer): Use func_lookup_file.
81167         (func_import, func_create_testdir): Use func_lookup_file.
81168
81169 2006-07-29  Bruno Haible  <bruno@clisp.org>
81170
81171         * modules/setenv (Depends-on): Add unistd.
81172
81173 2006-07-29  Bruno Haible  <bruno@clisp.org>
81174
81175         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
81176
81177 2006-07-29  Bruno Haible  <bruno@clisp.org>
81178
81179         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
81180
81181 2006-07-29  Bruno Haible  <bruno@clisp.org>
81182
81183         * gnulib-tool (import, update): If there is no Makefile.am, look at
81184         aclocal.m4, instead of bailing out.
81185
81186 2006-07-29  Bruno Haible  <bruno@clisp.org>
81187
81188         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
81189         Categorize the options by when they are useful.
81190
81191 2006-07-29  Bruno Haible  <bruno@clisp.org>
81192
81193         * gnulib-tool (func_usage): Document option --no-libtool.
81194         Handle option --no-libtool.
81195         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
81196         for changed semantics of $libtool variable.
81197         (func_import): Likewise. If libtool is not used, show this through
81198         an option --no-libtool.
81199         (func_create_testdir): Update.
81200
81201 2006-07-29  Bruno Haible  <bruno@clisp.org>
81202
81203         * gnulib-tool (func_import): Extend error message about missing
81204         --doc-base.
81205
81206 2006-07-29  Bruno Haible  <bruno@clisp.org>
81207
81208         * gnulib-tool (func_import): Don't create the $docbase directory if
81209         there is no file to store there.
81210
81211 2006-07-29  Bruno Haible  <bruno@clisp.org>
81212
81213         * gnulib-tool (autoconf_minversion): If a --dir option is given and
81214         relevant, look for configure.ac there, not in the current directory.
81215         Also use a simple search for AC_PREREQ, not "autoconf --trace".
81216
81217 2006-07-29  Bruno Haible  <bruno@clisp.org>
81218
81219         * gnulib-tool (SORT): New variable.
81220         (func_usage): Undocument --assume-autoconf option.
81221         Remove --assume-autoconf option handling.
81222         (autoconf_minversion): Determine from the contents of configure.ac.
81223         (func_import): Remove autoconf_minversion handling.
81224         Suggested by Eric Blake.
81225
81226 2006-07-29  Bruno Haible  <bruno@clisp.org>
81227
81228         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
81229
81230 2006-07-29  Bruno Haible  <bruno@clisp.org>
81231
81232         * config/srclist.txt (*setenv.[ch]): Remove rules.
81233
81234 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81235
81236         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
81237
81238 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81239
81240         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
81241         arpa/inet.h.
81242
81243 2006-07-28  Simon Josefsson  <jas@extundo.com>
81244
81245         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
81246         * modules/inet_pton (Depends-on): Likewise.
81247
81248 2006-07-28  Simon Josefsson  <jas@extundo.com>
81249
81250         * m4/netinet_in_h.m4: New file.
81251
81252 2006-07-28  Simon Josefsson  <jas@extundo.com>
81253
81254         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
81255         #include's.
81256
81257 2006-07-28  Simon Josefsson  <jas@extundo.com>
81258
81259         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
81260         #include's.
81261
81262 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
81263
81264         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
81265         setgid on directories only if they set these bits.
81266         * lib/modechange.h: Remove obsolete comment about masks.
81267
81268 2006-07-28  Eric Blake  <ebb9@byu.net>
81269
81270         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
81271         macro expansion.
81272
81273 2006-07-28  Bruno Haible  <bruno@clisp.org>
81274
81275         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
81276
81277 2006-07-28  Bruno Haible  <bruno@clisp.org>
81278
81279         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
81280
81281 2006-07-28  Bruno Haible  <bruno@clisp.org>
81282
81283         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
81284         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
81285         Define fallbacks.
81286         Avoids link error on FreeBSD 4.x.
81287         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81288
81289         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
81290         encoding.
81291         * lib/mbswidth.c (iswcntrl): Likewise.
81292
81293 2006-07-27  Bruno Haible  <bruno@clisp.org>
81294
81295         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
81296         test.
81297
81298 2006-07-27  Bruno Haible  <bruno@clisp.org>
81299
81300         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
81301         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
81302         defined.
81303
81304 2006-07-26  Eric Blake  <ebb9@byu.net>
81305
81306         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
81307
81308 2006-07-26  Eric Blake  <ebb9@byu.net>
81309
81310         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
81311         like mingw that lack mkstemp.
81312         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
81313         avoid compilation warning on mingw.
81314
81315 2006-07-26  Bruno Haible  <bruno@clisp.org>
81316
81317         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
81318         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
81319         INT_FAST*_MIN, INTPTR_MIN.
81320
81321 2006-07-25  Bruno Haible  <bruno@clisp.org>
81322
81323         * modules/version-etc (Depends-on): Add stdarg.
81324
81325 2006-07-25  Bruno Haible  <bruno@clisp.org>
81326
81327         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
81328         complex commands.
81329
81330 2006-07-25  Bruno Haible  <bruno@clisp.org>
81331
81332         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
81333         defined in <stdarg.h> or config.h.
81334
81335 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81336
81337         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
81338         (gl_STDIO_SAFER): Remove.
81339
81340 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81341
81342         * MODULES.html.sh (File stream based Input/Output):
81343         Add fopen-safer, tmpfile-safer; remove stdio-safer.
81344         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
81345         * modules/fopen-safer, modules/tmpfile-safer: New files.
81346         * modules/stdio-safer: Remove.
81347
81348 2006-07-24  Bruno Haible  <bruno@clisp.org>
81349
81350         * modules/tmpdir: New file.
81351         * MODULES.html.sh (File system functions): Add it.
81352
81353 2006-07-24  Bruno Haible  <bruno@clisp.org>
81354
81355         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
81356         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
81357
81358 2006-07-24  Bruno Haible  <bruno@clisp.org>
81359
81360         * modules/clean-temp: New file.
81361
81362 2006-07-24  Bruno Haible  <bruno@clisp.org>
81363
81364         * m4/tmpdir.m4: New file, from GNU gettext.
81365
81366 2006-07-24  Bruno Haible  <bruno@clisp.org>
81367
81368         * lib/tmpdir.h: New file, from GNU gettext.
81369         * lib/tmpdir.c: New file, from GNU gettext.
81370
81371 2006-07-24  Bruno Haible  <bruno@clisp.org>
81372
81373         * lib/clean-temp.h: New file, from GNU gettext.
81374         * lib/clean-temp.c: New file, from GNU gettext.
81375
81376 2006-07-23  Eric Blake  <ebb9@byu.net>
81377
81378         * modules/stdio-safer (Files): Add tmpfile-safer.c.
81379         (Depends-on): Add binary-io.
81380
81381 2006-07-23  Eric Blake  <ebb9@byu.net>
81382
81383         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
81384
81385 2006-07-23  Eric Blake  <ebb9@byu.net>
81386
81387         * lib/tmpfile-safer.c: New file.
81388         * lib/stdio-safer.h (fopen_safer): Add prototype.
81389         * lib/stdio--.h (tmpfile): Make safer.
81390
81391 2006-07-23  Bruno Haible  <bruno@clisp.org>
81392
81393         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
81394         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
81395         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
81396         gl_linked_remove_at): Use it.
81397
81398 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81399         and Simon Josefsson <jas@extundo.com>
81400
81401         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
81402
81403         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
81404
81405 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81406
81407         * modules/close-stream: New file.
81408         * modules/closeout (Description): Make it clear that it exits
81409         with a diagnostic on error.
81410         (Depends-on): Add close-stream.  Remove fpending, stdbool.
81411         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
81412
81413 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81414
81415         * m4/close-stream.m4: New file.
81416
81417 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81418
81419         * lib/close-stream.c, lib/close-stream.h: New files.
81420
81421 2006-07-22  Bruno Haible  <bruno@clisp.org>
81422
81423         Merge from GNU gettext 0.15.
81424
81425         2006-05-01  Bruno Haible  <bruno@clisp.org>
81426
81427                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
81428
81429         2006-07-22  Bruno Haible  <bruno@clisp.org>
81430
81431                 * modules/javaversion: New file.
81432                 * MODULES.html.sh (Java): Add javaversion.
81433
81434         2006-03-12  Bruno Haible  <bruno@clisp.org>
81435
81436                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
81437
81438         2005-12-04  Bruno Haible  <bruno@clisp.org>
81439
81440                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
81441                 (untested).
81442
81443         2006-06-21  Bruno Haible  <bruno@clisp.org>
81444
81445                 Avoid warnings from recent versions of mcs.
81446                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
81447                 -o, -L, -r any more. Use options documented since mcs-1.0
81448                 instead. Similarly for -g.
81449
81450         2005-12-04  Bruno Haible  <bruno@clisp.org>
81451
81452                 * build-aux/csharpcomp.sh.in: Suffix for resources is
81453                 .resources, not .resource.
81454
81455         2005-07-09  Bruno Haible  <bruno@clisp.org>
81456
81457                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
81458                 add a .dll suffix.
81459                 Reported by Mark Junker <mjscod@gmx.de>.
81460
81461         2006-07-22  Bruno Haible  <bruno@clisp.org>
81462
81463                 * modules/gettext: Upgrade to gettext-0.15.
81464                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
81465                 m4/visibility.m4.
81466                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
81467
81468 2006-07-22  Bruno Haible  <bruno@clisp.org>
81469
81470         Merge from GNU gettext 0.15.
81471
81472         2006-03-25  Bruno Haible  <bruno@clisp.org>
81473
81474                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
81475
81476         2006-07-21  Bruno Haible  <bruno@clisp.org>
81477
81478                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
81479                 "1.1".
81480
81481         2006-05-09  Bruno Haible  <bruno@clisp.org>
81482
81483                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
81484                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
81485                 for the conftestver execution.
81486
81487         2006-05-01  Bruno Haible  <bruno@clisp.org>
81488
81489                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
81490                 optional target-version argument. Verify that the compiler
81491                 groks source of the specified source-version, or add -source
81492                 option as necessary. Verify that the compiler produces
81493                 bytecode in the specified target-version, or add -target and
81494                 -source options as necessary. Make the result of the test
81495                 available as variable CONF_JAVAC. Also log error output in
81496                 config.log.
81497
81498         2006-03-11  Bruno Haible  <bruno@clisp.org>
81499
81500                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
81501
81502         2006-05-09  Bruno Haible  <bruno@clisp.org>
81503
81504                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
81505                 CLASSPATH_SEPARATOR to a semicolon.
81506
81507         2006-03-12  Bruno Haible  <bruno@clisp.org>
81508
81509                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81510                 available as variable CONF_JAVA, for subsequent autoconf
81511                 tests. Also log error output in config.log.
81512
81513         2006-07-19  Bruno Haible  <bruno@clisp.org>
81514
81515                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81516                 that getline works on glibc2 systems. Needed to avoid trouble
81517                 in relocatable.c.
81518                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81519
81520         2005-12-04  Bruno Haible  <bruno@clisp.org>
81521
81522                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81523                 launcher (untested).
81524
81525         2005-12-04  Bruno Haible  <bruno@clisp.org>
81526
81527                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81528
81529         2006-07-22  Bruno Haible  <bruno@clisp.org>
81530
81531                 * gettext.m4: Update from GNU gettext-0.15.
81532                 * nls.m4: Likewise.
81533                 * po.m4: Likewise.
81534                 * inttypes-pri.m4: Likewise.
81535                 * inttypes-h.m4: Renamed from inttypes.m4.
81536                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81537
81538 2006-07-22  Bruno Haible  <bruno@clisp.org>
81539
81540         Merge from GNU gettext 0.15.
81541
81542         2005-07-05  Bruno Haible  <bruno@clisp.org>
81543
81544                 * printf-args.c (printf_fetchargs): Work around broken
81545                 definition of wint_t on mingw.
81546
81547         2005-02-12  Bruno Haible  <bruno@clisp.org>
81548
81549                 * xallocsa.h: Add extern "C" for C++.
81550
81551         2006-05-17  Bruno Haible  <bruno@clisp.org>
81552
81553                 Cygwin portability.
81554                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81555
81556         2006-04-30  Bruno Haible  <bruno@clisp.org>
81557
81558                 * progreloc.c: Include <mach-o/dyld.h> if available.
81559                 (find_executable): Use _NSGetExecutablePath when possible.
81560
81561         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81562
81563                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81564                 function.
81565
81566         2005-12-29  Bruno Haible  <bruno@clisp.org>
81567
81568                 * progreloc.c (set_program_name_and_installdir): Fix
81569                 compilation error.
81570
81571         2005-12-04  Bruno Haible  <bruno@clisp.org>
81572
81573                 Cygwin portability.
81574                 * progreloc.c: Include <windows.h> also on Cygwin.
81575                 (find_executable): Add support for Cygwin.
81576                 (set_program_name_and_installdir): Handle also platforms with
81577                 nonempty EXEEXT.
81578
81579         2006-07-11  Bruno Haible  <bruno@clisp.org>
81580
81581                 * javacomp.c: Fix a comment.
81582                 Reported by Jim Meyering.
81583
81584         2006-04-30  Bruno Haible  <bruno@clisp.org>
81585
81586                 * javacomp.h (compile_java_class): Add source_version,
81587                 target_version arguments.
81588                 * javacomp.c: Rewritten to choose only a compiler that
81589                 respects the specified source_version and target_version.
81590
81591         2006-06-27  Bruno Haible  <bruno@clisp.org>
81592
81593                 Assume correct S_ISDIR macro.
81594                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81595
81596         2006-07-22  Bruno Haible  <bruno@clisp.org>
81597
81598                 * javaversion.h: New file, from GNU gettext.
81599                 * javaversion.c: New file, from GNU gettext.
81600                 * javaversion.java: New file, from GNU gettext.
81601                 * javaversion.class: New file, from GNU gettext.
81602
81603         2006-05-17  Bruno Haible  <bruno@clisp.org>
81604
81605                 Cygwin portability.
81606                 * javaexec.c (execute_java_class): Test for jview program
81607                 also on Cygwin.
81608
81609         2006-04-09  Bruno Haible  <bruno@clisp.org>
81610
81611                 * fatal-signal.c: Don't include string.h.
81612                 (at_fatal_signal): Use a copying loop instead of memcpy.
81613
81614         2005-12-04  Bruno Haible  <bruno@clisp.org>
81615
81616                 * csharpexec.c: Add support for 'clix' launcher (untested).
81617                 (execute_csharp_using_sscli): New function.
81618                 (execute_csharp_program): Call it.
81619
81620         2006-06-21  Bruno Haible  <bruno@clisp.org>
81621
81622                 Avoid warnings from recent versions of mcs.
81623                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81624                 -o, -L, -r any more. Use options documented since mcs-1.0
81625                 instead. Similarly for -g.
81626
81627         2005-07-09  Bruno Haible  <bruno@clisp.org>
81628
81629                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81630                 add a .dll suffix.
81631                 Reported by Mark Junker <mjscod@gmx.de>.
81632
81633         2006-06-17  Bruno Haible  <bruno@clisp.org>
81634
81635                 * config.charset: Update for NetBSD 3.0.
81636
81637         2006-05-17  Bruno Haible  <bruno@clisp.org>
81638
81639                 Cygwin portability.
81640                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81641
81642         2006-05-16  Bruno Haible  <bruno@clisp.org>
81643
81644                 * localcharset.c [CYGWIN]: Include <windows.h>.
81645                 (get_charset_aliases): For Cygwin, return the same CPxxx
81646                 aliases list as under WIN32.
81647                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81648                 the environment variables. Fall back to GetACP().
81649
81650         2006-04-05  Bruno Haible  <bruno@clisp.org>
81651
81652                 * config.charset: Update Juan Manuel Guerrero's address.
81653
81654         2005-02-12  Bruno Haible  <bruno@clisp.org>
81655
81656                 * allocsa.h: Add extern "C" for C++.
81657
81658         2005-02-10  Bruno Haible  <bruno@clisp.org>
81659
81660                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81661                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81662
81663         2006-07-22  Bruno Haible  <bruno@clisp.org>
81664
81665                 * gettext.h: Update to GNU gettext-0.15.
81666
81667 2006-07-22  Bruno Haible  <bruno@clisp.org>
81668
81669         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81670         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81671         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81672
81673 2006-07-21  Eric Blake  <ebb9@byu.net>
81674
81675         * modules/stdlib-safer: New file.
81676         * MODULES.html.sh (File stream based Input/Output): Add
81677         stdlib-safer.
81678
81679 2006-07-21  Eric Blake  <ebb9@byu.net>
81680
81681         * lib/stdlib-safer.h: New file from coreutils, required by
81682         stdlib--.h.
81683
81684 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81685
81686         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81687
81688 2006-07-20  Bruno Haible  <bruno@clisp.org>
81689
81690         * gnulib-tool: Recognize new option --assume-autoconf.
81691         (autoconf_minversion): New variable.
81692         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81693
81694 2006-07-20  Bruno Haible  <bruno@clisp.org>
81695
81696         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81697
81698 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81699
81700         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81701         Reindent and repaginate.
81702
81703 2006-07-19  Derek Price  <derek@ximbiot.com>
81704
81705         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81706         Correct grammar.
81707
81708 2006-07-17  Bruno Haible  <bruno@clisp.org>
81709
81710         * modules/list: New file.
81711         * modules/array-list: New file.
81712         * modules/carray-list, modules/carray-list-tests: New files.
81713         * modules/linked-list, modules/linked-list-tests: New files.
81714         * modules/avltree-list, modules/avltree-list-tests: New files.
81715         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81716         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81717         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81718         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81719         * modules/oset: New file.
81720         * modules/array-oset: New file.
81721         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81722         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81723         * tests/test-carray_list.c: New file.
81724         * tests/test-linked_list.c: New file.
81725         * tests/test-avltree_list.c: New file.
81726         * tests/test-rbtree_list.c: New file.
81727         * tests/test-linkedhash_list.c: New file.
81728         * tests/test-avltreehash_list.c: New file.
81729         * tests/test-rbtreehash_list.c: New file.
81730         * tests/test-avltree_oset.c: New file.
81731         * tests/test-rbtree_oset.c: New file.
81732         * MODULES.html.sh (Container data structures): New section.
81733
81734 2006-07-17  Bruno Haible  <bruno@clisp.org>
81735
81736         * m4/gl_list.m4: New file.
81737
81738 2006-07-17  Bruno Haible  <bruno@clisp.org>
81739
81740         * lib/gl_list.h: New file.
81741         * lib/gl_list.c: New file.
81742         * lib/gl_array_list.h: New file.
81743         * lib/gl_array_list.c: New file.
81744         * lib/gl_carray_list.h: New file.
81745         * lib/gl_carray_list.c: New file.
81746         * lib/gl_linked_list.h: New file.
81747         * lib/gl_linked_list.c: New file.
81748         * lib/gl_anylinked_list1.h: New file.
81749         * lib/gl_anylinked_list2.h: New file.
81750         * lib/gl_avltree_list.h: New file.
81751         * lib/gl_avltree_list.c: New file.
81752         * lib/gl_anyavltree_list1.h: New file.
81753         * lib/gl_anyavltree_list2.h: New file.
81754         * lib/gl_rbtree_list.h: New file.
81755         * lib/gl_rbtree_list.c: New file.
81756         * lib/gl_anyrbtree_list1.h: New file.
81757         * lib/gl_anyrbtree_list2.h: New file.
81758         * lib/gl_anytree_list1.h: New file.
81759         * lib/gl_anytree_list2.h: New file.
81760         * lib/gl_linkedhash_list.h: New file.
81761         * lib/gl_linkedhash_list.c: New file.
81762         * lib/gl_anyhash_list1.h: New file.
81763         * lib/gl_anyhash_list2.h: New file.
81764         * lib/gl_avltreehash_list.h: New file.
81765         * lib/gl_avltreehash_list.c: New file.
81766         * lib/gl_rbtreehash_list.h: New file.
81767         * lib/gl_rbtreehash_list.c: New file.
81768         * lib/gl_anytreehash_list1.h: New file.
81769         * lib/gl_anytreehash_list2.h: New file.
81770
81771         * lib/gl_oset.h: New file.
81772         * lib/gl_oset.c: New file.
81773         * lib/gl_array_oset.h: New file.
81774         * lib/gl_array_oset.c: New file.
81775         * lib/gl_avltree_oset.h: New file.
81776         * lib/gl_avltree_oset.c: New file.
81777         * lib/gl_rbtree_oset.h: New file.
81778         * lib/gl_rbtree_oset.c: New file.
81779         * lib/gl_anytree_oset.h: New file.
81780
81781 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81782
81783         * m4/mkancesdirs.m4: New file.
81784         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81785         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81786         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81787         it.
81788
81789 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81790
81791         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81792         * lib/mkancesdirs.h: New files.
81793         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81794         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81795         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81796         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81797         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81798         callers changed.  Revamp internals significantly, by not
81799         attempting to create directories that are temporarily more
81800         permissive than the final results.  Do not attempt to use
81801         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81802         This removes some race conditions, fixes some bugs, and simplifies
81803         things.  Use new dirchownmod function to do owner and mode changes.
81804         * lib/mkdir-p.h: Likewise.
81805         * lib/modechange.c (octal_to_mode): New function.
81806         (struct mode_change): New member mentioned.
81807         (make_node_op_equals): New arg mentioned.  All callers changed.
81808         (mode_compile): Keep track of which mode bits the user has explicitly
81809         mentioned.
81810         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81811         New arg PMODE_BITS, to keep track of which mode bits the user
81812         mentioned; it treats S_ISUID and S_ISGID speciall.
81813         All callers changed.
81814         * lib/modechange.h: Likewise.
81815
81816 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81817
81818         * MODULES.html.sh: Add mkancestors.
81819         * modules/mkancesdirs: New module.
81820         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81821         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81822         The chdir-safer and afs files are now orphans; I'll remove them
81823         unless someone speaks up.
81824         Add lib/dirchownmod.c, lib/dirchownmod.h.
81825         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81826         Add lchown, mkancesdirs.
81827         (Maintainer): Add self.
81828
81829 2006-07-15  Karl Berry  <karl@gnu.org>
81830
81831         * gnulib-tool: help message wording/arrangement.
81832
81833 2006-07-14  Simon Josefsson  <jas@extundo.com>
81834
81835         * doc/gnulib.texi (Libtool and Windows): New section.
81836
81837 2006-07-12  Simon Josefsson  <jas@extundo.com>
81838
81839         * modules/gendocs (License): Fix license, approved by Karl.
81840
81841 2006-07-12  Eric Blake  <ebb9@byu.net>
81842
81843         * MODULES.html.sh: Add gendocs.
81844
81845 2006-07-11  Eric Blake  <ebb9@byu.net>
81846
81847         * modules/fdl: New module, to install doc/fdl.texi.
81848         * MODULES.html.sh: Add new section for documentation modules.
81849         * gnulib-tool: Avoid space-tab.
81850         (--doc-base): New option, to manage files from doc.
81851
81852 2006-07-11  Eric Blake  <ebb9@byu.net>
81853
81854         * m4/absolute-header.m4: Fix comments to match recent change.
81855
81856 2006-07-11  Eric Blake  <ebb9@byu.net>
81857
81858         * gnulib-tool: List --doc-base before --tests-base.
81859
81860 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81861
81862         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81863
81864 2006-07-11  Bruno Haible  <bruno@clisp.org>
81865
81866         * README: Mention where to put documentation.
81867
81868 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81869
81870         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81871
81872 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81873
81874         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81875         to stdint.m4.
81876
81877 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81878
81879         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81880         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81881         "no/such/file/stdint.h" when there is no such file, so that
81882         the resulting C code can be parsed by dodgy compilers.
81883         Problems reported by Bob Proulx.
81884
81885 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81886
81887         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81888         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81889         macros into the GNU _D_EXACT_NAMLEN.
81890         * lib/savedir.c:  Likewise.
81891         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81892
81893 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81894         and Paul Eggert  <eggert@cs.ucla.edu>
81895
81896         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81897         * m4/savedir.m4:
81898         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81899         macros into the GNU _D_EXACT_NAMLEN.
81900
81901 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81902
81903         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81904         around the absolute name, to work around a problem with the HP-UX
81905         11.23 native C compiler, reported by Bob Proulx.
81906
81907 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81908
81909         * doc/maintain.texi, make-stds.texi: Sync from
81910         <http://savannah.gnu.org/projects/gnustandards>.
81911
81912 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81913
81914         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81915
81916 2006-07-09  Jim Meyering  <jim@meyering.net>
81917
81918         * m4/glob.m4: Remove a doubled word in a comment.
81919
81920 2006-07-09  Jim Meyering  <jim@meyering.net>
81921
81922         * lib/argp-pv.c: Remove a doubled word in a comment.
81923         * lib/check-version.c (check_version): Likewise.
81924         * lib/javacomp.c (compile_java_class): Likewise.
81925
81926 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81927
81928         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81929         for the benefit of people using Autoconf 2.60.  If you want to
81930         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81931         (or m4/onceonly.m4, if pre-2.57) manually.
81932
81933 2006-07-08  Jim Meyering  <jim@meyering.net>
81934
81935         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81936         comment.
81937         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81938         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81939         comment.
81940
81941 2006-07-08  Jim Meyering  <jim@meyering.net>
81942
81943         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81944
81945 2006-07-07  Simon Josefsson  <jas@extundo.com>
81946
81947         * tests/test-crc.c: Change expected crc value, the test vector
81948         were probably computed using the old broken crc.c?
81949
81950 2006-07-06  Simon Josefsson  <jas@extundo.com>
81951
81952         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81953         now the canonical place for the M4 file).
81954
81955         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81956         from the sys_socket dependency now.
81957
81958         * modules/inet_pton (Files): Ditto.
81959
81960         * modules/inet_ntop (Files): Ditto.
81961
81962 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81963
81964         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81965         not gl_PREREQ_GETUSERSHELL.
81966
81967 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81968
81969         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81970         with only one argument, for Autoconf 2.60.
81971         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81972         expand to nothing, so add a shell command to avoid syntax error.
81973         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81974
81975 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81976
81977         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81978
81979 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81980
81981         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81982         no longer needed.  Check for isblank decl.
81983         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81984         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81985         of existence.
81986
81987 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81988
81989         * lib/getloadavg.c: Use __VMS, not VMS.
81990         * lib/getopt.c: Likewise.
81991         * lib/getpagesize.h: Likewise.
81992         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81993         and probably does not work.
81994
81995 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81996
81997         * lib/.cppi-disable: Add wcwidth.
81998         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81999         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
82000         (ISGRAPH): Remove.  All uses changed to isgraph.
82001         (FOLD) [!defined _LIBC]: Remove special case.
82002         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
82003         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
82004         HAVE_ISBLANK.
82005         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
82006         case.
82007
82008 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82009
82010         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
82011         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
82012         brackets.  Other minor changes to suppress some compiler
82013         warnings.
82014
82015 2006-07-06  Derek R. Price  <derek@ximbiot.com>
82016         and Paul Eggert  <eggert@cs.ucla.edu>
82017
82018         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
82019         of invoking obsolescent AC_HEADER_DIRENT macro.
82020         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
82021         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
82022         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
82023         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
82024         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
82025         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
82026         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
82027         * m4/readdir.m4: Remove; no longer needed.
82028
82029 2006-07-06  Derek R. Price  <derek@ximbiot.com>
82030         and Paul Eggert  <eggert@cs.ucla.edu>
82031
82032         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
82033         Don't worry about this obsolete case any more.
82034         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
82035         directories.
82036         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
82037         worry about this obsolete case any more.
82038         * lib/fts.c: Likewise.
82039         * lib/getcwd.c: Likewise.
82040         * lib/glob.h: Likewise.
82041         * lib/savedir.c: Likewise.
82042
82043 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82044
82045         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
82046         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
82047         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
82048         needed.
82049         All uses removed.
82050         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82051         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
82052         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
82053         needed.
82054         * m4/getdate.m4 (gl_GETDATE): Likewise.
82055         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
82056         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
82057         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
82058         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82059         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
82060         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82061         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
82062         needed.
82063
82064 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82065
82066         * lib/memcasecmp.c: Include <limits.h>.
82067         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
82068         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
82069         Don't assume isdigit succeeds only on '0' through '9'.
82070
82071 2006-07-05  Eric Blake  <ebb9@byu.net>
82072
82073         * modules/getaddrinfo (Depends-on): Add snprintf.
82074
82075 2006-07-05  Eric Blake  <ebb9@byu.net>
82076
82077         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
82078         to avoid 'header present but could not be compiled' on cygwin.
82079
82080 2006-07-05  Eric Blake  <ebb9@byu.net>
82081
82082         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
82083         missing from netdb.h.
82084         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
82085
82086 2006-07-05  Derek R. Price  <derek@ximbiot.com>
82087
82088         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
82089         no longer needed.
82090         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
82091         * m4/getdate.m4 (gl_GETDATE): Likewise.
82092         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
82093         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
82094         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
82095         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82096         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82097
82098 2006-07-05  Derek R. Price  <derek@ximbiot.com>
82099
82100         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
82101         All uses of is_space replaced by isspace.
82102         * lib/exit.h: Don't talk about STDC_HEADERS.
82103         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
82104         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
82105         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
82106         replaced by isprint etc.
82107         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
82108         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
82109         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
82110         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
82111         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
82112         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
82113
82114 2006-07-05  Bruno Haible  <bruno@clisp.org>
82115
82116         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
82117         the function exists, before testing against AIX.
82118         Reported by Martin Lambers <marlam@marlam.de>.
82119
82120 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
82121
82122         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
82123         From Mark D. Baushke.
82124
82125 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
82126
82127         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
82128         to the absolute name, not just one, to bypass Sun C 5.8's
82129         "warning: #include of /usr/include/... may be non-portable".
82130
82131 2006-07-04  Eric Blake  <ebb9@byu.net>
82132
82133         * modules/dirname-tests: New test module.
82134         * tests/test-dirname.c: New file, replacing dirname.c
82135         TEST_DIRNAME section that was recently deleted.
82136
82137 2006-07-04  Bruno Haible  <bruno@clisp.org>
82138
82139         Assume ANSI C header files and <ctype.h> functions.
82140         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
82141         (mbsnwidth): Use isprint, iscntrl instead.
82142
82143 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82144
82145         Merge from coreutils.
82146         * MODULES.html.sh: Add xstrtold.
82147         * modules/xstrtold: New file.
82148         * modules/cycle-check (Files): Add lib/same-inode.h.
82149         * modules/dirname (Files): Add m4/double-slash-root.m4.
82150         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
82151         * modules/mkdir-p (Files): Add lib/same-inode.h.
82152         * modules/same (Files): Add lib/same-inode.h.
82153
82154 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82155
82156         * m4/absolute-header.m4: Renamed from full-header-path.m4.
82157         This is to keep the terminology clean; POSIX talks about
82158         "absolute pathnames", not "full pathnames", but the GNU
82159         Coding Standards say to use "path" for something else;
82160         so use "absolute" to keep both sides happy.
82161         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
82162         Set gl_absolute_header, not gl_full_header_path.
82163         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
82164         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
82165         All uses changed.
82166
82167         Merge from coreutils.
82168
82169         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82170
82171         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
82172         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
82173         want to require the building of c-strtod.o.
82174         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
82175         needs -lm directly.
82176         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
82177
82178         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82179
82180         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
82181         --as-needed option if available.  Problem reported by Albert Chin in
82182         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
82183         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
82184         cc merely issues a bunch of annoying warnings for --as-needed
82185         (this problem was reported by Bob Proulx).  Also, try linking with
82186         -lm to detect a bug in binutils 2.16 (this problem was reported
82187         by Ralf Wildenhues).
82188
82189         2006-06-18  Jim Meyering  <jim@meyering.net>
82190
82191         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
82192         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
82193         macro.
82194         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
82195         also check for glibc-2.4's abort-inducing bug.
82196
82197         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
82198         Low-probability clean-up should be to use rmdir to get rid of
82199         the just-created directory, not unlink.
82200
82201         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
82202         configure fail, and request a bug report to inform us about it.
82203         Add a comment that, barring reports to the contrary, in 2007 we'll
82204         assume ftruncate is universally available.
82205
82206         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82207
82208         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
82209
82210         2006-03-12  Jim Meyering  <jim@meyering.net>
82211
82212         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
82213         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
82214         * m4/same.m4 (gl_SAME): Likewise.
82215         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
82216
82217         2006-03-11  Eric Blake  <ebb9@byu.net>
82218
82219         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
82220         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
82221         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
82222         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
82223
82224 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82225
82226         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
82227         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
82228         reported by Mark D. Baushke, one in
82229         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
82230
82231         Merge from coreutils.
82232
82233         * lib/.cppi-disable: Add stdint_.h.
82234         * lib/.cvsignore: Add stdint.h.
82235
82236         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82237
82238         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
82239         both double and long double versions.
82240         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
82241         * lib/xstrtold.c: New file.
82242         * lib/xstrtod.h (xstrtold): New decl.
82243
82244         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82245
82246         * lib/filemode.c (setst): Remove.
82247         (strmode): Rewrite to avoid setst.  This makes the code shorter,
82248         (arguably) clearer, and the generated code is a bit smaller on my
82249         Debian GNU/Linux stable x86 host.
82250
82251         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82252
82253         * lib/filemode.c: Include "filemode.h" first, to test the interface.
82254         Assume that filemode.h includes sys/types.h and sys/stat.h.
82255         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
82256         (ftypelet): Reorder to put common cases first, for efficiency.
82257         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
82258         to do 'M'.
82259         (strmode): Renamed from mode_string, and now stores 12 bytes instead
82260         of 10, for compatibility with FreeBSD.  All callers changed.
82261         (filemodestring): Now stores 12 bytes instead of 10, and sets file
82262         types that can't be deduced solely from st_mode.  First arg is now a
82263         const pointer.
82264         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
82265         (strmode): Renamed from mode_string.
82266         (filemodestring): New decl.
82267         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
82268         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
82269         needed.
82270         (S_ISPORT, S_ISWHT): New macros, if not already defined.
82271
82272         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82273
82274         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
82275         fsusage.h now does that.  Include fsusage.h first, to test interface.
82276         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
82277         at most one method (the old code could have generated decls that
82278         didn't conform to C89, not that this was ever exercised).
82279         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
82280
82281         2006-03-19  Jim Meyering  <jim@meyering.net>
82282
82283         Work even in a chroot where d_ino values for entries in "/"
82284         don't match the stat.st_ino values for the same names.
82285         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
82286         number, iterate through all entries again, using lstat instead.
82287         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
82288         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
82289
82290         * lib/getcwd.c (__getcwd): Clarify a comment.
82291         Use memcpy in place of a call to strcpy.
82292
82293         2006-03-12  Jim Meyering  <jim@meyering.net>
82294
82295         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
82296         matches that of the current directory (which we're about to chdir ".."
82297         out of), then save the dev-ino of the parent, instead.
82298
82299         * lib/same-inode.h (SAME_INODE): New file/macro.
82300         * lib/chdir-safer.c (SAME_INODE): Remove definition.
82301         Include "same-inode.h", instead.
82302         * lib/same.c: Likewise.
82303         * lib/cycle-check.h: Include "same-inode.h".
82304         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
82305         * lib/cycle-check.c (SAME_INODE): Remove definition.
82306         * lib/root-dev-ino.h: Include "same-inode.h".
82307
82308         2006-03-11  Eric Blake  <ebb9@byu.net>
82309
82310         * lib/same.c (same_name): s/base_name/last_component/
82311         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
82312         * lib/filenamecat.c (file_name_concat): Likewise.
82313
82314         2006-03-11  Eric Blake  <ebb9@byu.net>,
82315                     Paul Eggert  <eggert@cs.ucla.edu>
82316
82317         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
82318         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
82319         drive prefix.
82320         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
82321         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
82322         (last_component): New method.
82323         * lib/dirname.c (dir_len): Determine when drive letters need a
82324         subsequent slash.  Preserve // when it is special.
82325         (dir_name): Don't append dot when drive letter is absolute.
82326         [TEST_DIRNAME]: Move into a full-blown gnulib test.
82327         * lib/basename.c (base_name): New semantics - malloc the result.
82328         Preserve // when it is special.  Preserve relative files that look
82329         like drive letters.
82330         (base_len): Preserve // when it is special.
82331         (last_component): New method, similar to old base_name semantics.
82332         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
82333         base_name.  Strip redundant slashes from ///.
82334
82335 2006-07-03  Jim Meyering  <jim@meyering.net>
82336
82337         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
82338         macro is used before the first cycle_check call.
82339
82340 2006-07-03  Eric Blake  <ebb9@byu.net>
82341
82342         * modules/dirname (Depends-on): Add xstrndup.
82343
82344 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82345
82346         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
82347         test cases, so that config.log is a bit easier to follow.
82348
82349 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82350
82351         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
82352         both are 64 bits, since this seems to be the tradition, and this
82353         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
82354         we ever run into a host that prefers long long to long in this
82355         case, we'll need another configure-time test.  Problem reported by
82356         Jim Meyering.
82357
82358 2006-07-02  Eric Blake  <ebb9@byu.net>
82359
82360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
82361
82362 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82363
82364         * modules/inttypes (Depends-on): No longer depends on stdint.
82365         * modules/stdint (Description): Say more about assumptions.
82366         Say that the fast types might differ.  Say macros are used.
82367         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
82368         (Makefile.am): Revise list of substituted symbols to match
82369         new stdint.m4.
82370         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
82371         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
82372         * tests/test-stdint.c (verify_same_types)
82373         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
82374         the code conforms to C99/C89.
82375         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
82376         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
82377
82378 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82379
82380         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
82381         but fix a bug, by requiring at least 64 bits.
82382         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82383         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
82384         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
82385         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82386
82387         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
82388         changes.  Make 2.59 a prerequisite.  Check and substitute for
82389         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
82390         inttypes.h.  Do not use special include files; just use the
82391         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
82392         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
82393         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
82394         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
82395         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
82396         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
82397         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
82398         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
82399         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
82400         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
82401         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
82402         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
82403         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
82404         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
82405         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
82406         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
82407         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
82408         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
82409         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
82410         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
82411         WINT_MAX.  Check for C99 conformance more strictly, by detecting
82412         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
82413         not check for things that C99 does not require, e.g., int8_t.  If
82414         a test isn't needed unless <stdint.h> isn't working, and is
82415         unlikely to be needed for any other reason, then don't do it
82416         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
82417         size_t, since we assume C89 freestanding at least.  Do not check
82418         for sig_atomic_t, wchar_t, or wint_t, since the code now does
82419         the right thing even if the types are not defined.  Instead use:
82420         (gl_STDINT_TYPE_PROPERTIES): New macro.
82421         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
82422         testing whether <sys/types.h> clashes, as Autoconf does this for
82423         us now.  All uses removed.
82424         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
82425         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
82426         (gl_CHECK_TYPE_SAME):
82427         Remove; no longer needed.
82428         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
82429         exists, since we'll return 0 anyway in that case.
82430         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
82431
82432 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82433
82434         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
82435         possible collision with system files.
82436         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
82437         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
82438         WCHAR_MIN and WCHAR_MAX in this case.
82439         (<stddef.h>): Do not include; no longer needed.
82440         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
82441         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
82442         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
82443         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
82444         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
82445         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
82446         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
82447         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
82448         !defined(__c99))]: Include in this case too, since it's harmless
82449         now.
82450         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
82451         dangerous to do so.
82452         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
82453         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
82454         (_STDINT_MIN, _STDINT_MAX): New macros.
82455         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
82456         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
82457         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
82458         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
82459         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
82460         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
82461         macros, not typedefs; this simplifies things quite a bit.
82462         Use long int for all types narrower than int64_t.
82463         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
82464         Define in terms of long long int or int64_t or long int,
82465         not int64_t or int32_t.  This saves some compile-time testing.
82466         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
82467         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
82468         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
82469         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
82470         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
82471         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
82472         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
82473         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
82474         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
82475         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
82476         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82477         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82478         undef any previous version and define our own version, for
82479         simplicity and consistency with the new macros for types.
82480         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82481         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82482         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
82483         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
82484         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
82485         @WINT_T_SUFFIX@ to keep things simple here.
82486         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
82487         Simplify by assuming typical 8/16/32/64 host, since we're
82488         already doing that elsewhere anyway.
82489         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
82490         and assume long long int is 64 bits if available.  This
82491         speeds up 'configure'.
82492
82493 2006-07-01  Eric Blake  <ebb9@byu.net>
82494
82495         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
82496         Reported by Andreas Buening.
82497
82498 2006-07-01  Eric Blake  <ebb9@byu.net>
82499
82500         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
82501
82502 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82503
82504         * lib/getaddrinfo.c: fixed typo
82505
82506 2006-06-29  Jim Meyering  <jim@meyering.net>
82507
82508         * modules/strftime (Maintainer): Add my name, since with the
82509         FPRINTFTIME changes strftime.c has forked from glibc.
82510
82511 2006-06-29  Eric Blake  <ebb9@byu.net>
82512
82513         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82514
82515 2006-06-29  Eric Blake  <ebb9@byu.net>
82516
82517         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82518
82519 2006-06-29  Eric Blake  <ebb9@byu.net>
82520
82521         * lib/stat_.h: New file.
82522
82523 2006-06-29  Eric Blake  <ebb9@byu.net>
82524
82525         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82526         unused static function.
82527
82528 2006-06-29  Eric Blake  <ebb9@byu.net>
82529
82530         * doc/functions.texi (Function Portability): Document missing lstat
82531         on mingw.
82532
82533 2006-06-29  Eric Blake  <ebb9@byu.net>
82534
82535         * MODULES.html.sh: Add sys_stat.
82536         * modules/sys_stat: New module.
82537         * modules/mkstemp (Depends-on): Add sys_stat.
82538
82539 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82540
82541         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82542
82543 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82544
82545         * m4/c-bs-a.m4: Removed.
82546
82547 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82548
82549         * lib/strftime.c: Assume strftime() exists.
82550
82551 2006-06-29  Derek Price  <derek@ximbiot.com>
82552
82553         * modules/c-bs-a: Removed - \a is C89.
82554         * MODULES.html.sh: Remove c-bs-a.
82555
82556 2006-06-29  Bruno Haible  <bruno@clisp.org>
82557
82558         * modules/wcwidth (License): Change to LGPL.
82559
82560 2006-06-28  Simon Josefsson  <jas@extundo.com>
82561
82562         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82563         on _WIN32.
82564
82565         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82566         getnameinfo.
82567
82568 2006-06-28  Simon Josefsson  <jas@extundo.com>
82569
82570         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82571
82572 2006-06-28  Simon Josefsson  <jas@extundo.com>
82573
82574         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82575         functions there.  It will succeed on Windows XP, but on Windows
82576         2000 and (presumably) earlier, it will fail, and use the internal
82577         re-implementation.
82578         (use_win32_p): New function.
82579         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82580         Support AI_NUMERICSERV to disable getservbyname.
82581         (getnameinfo): New function, only supports
82582         NI_NUMERICHOST|NI_NUMERICSERV for now.
82583
82584         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82585         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82586         getnameinfo.
82587
82588 2006-06-28  Eric Blake  <ebb9@byu.net>
82589
82590         * modules/wcwidth: New file.
82591         * modules/mbchar (Depends-on): Add wcwidth.
82592         * modules/mbswidth (Depends-on): Add wcwidth.
82593         * MODULES.html.sh: Add wcwidth.
82594
82595 2006-06-28  Eric Blake  <ebb9@byu.net>
82596
82597         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82598         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82599
82600 2006-06-28  Eric Blake  <ebb9@byu.net>
82601
82602         * lib/xvasprintf.h: Fix comments.
82603
82604 2006-06-28  Eric Blake  <ebb9@byu.net>
82605
82606         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82607         * lib/mbswidth.c (wcwidth): Move from here...
82608         * lib/wcwidth.h: ...to this new file.
82609
82610 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82611
82612         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82613
82614         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82615         it's obsolete.
82616         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82617
82618 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82619
82620         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82621         Autoconf 2.60 says this stuff was obsolete.
82622
82623 2006-06-28  Bruno Haible  <bruno@clisp.org>
82624
82625         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82626
82627 2006-06-28  Bruno Haible  <bruno@clisp.org>
82628
82629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82630         gt_TYPE_WCHAR_T.
82631
82632 2006-06-28  Bruno Haible  <bruno@clisp.org>
82633
82634         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82635         declaration for wcwidth.
82636         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82637
82638 2006-06-28  Bruno Haible  <bruno@clisp.org>
82639
82640         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82641         (mkdir): Define using _mkdir.
82642
82643 2006-06-28  Bruno Haible  <bruno@clisp.org>
82644
82645         * lib/getaddrinfo.h: Fix POSIX URL.
82646         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82647         _WIN32.
82648         (use_win32_p): Make static.
82649         (getaddrinfo): Reject service name if it is empty or does not consist
82650         solely of decimal digits, or if its value is > 65535.
82651         (getnameinfo): Remove useless casts.
82652
82653 2006-06-27  Simon Josefsson  <jas@extundo.com>
82654
82655         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82656         Eggert and Martin Lambers.
82657
82658 2006-06-27  Simon Josefsson  <jas@extundo.com>
82659
82660         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82661         Eggert and Martin Lambers.
82662
82663 2006-06-27  Bruno Haible  <bruno@clisp.org>
82664
82665         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82666         result to 0, not to empty.
82667         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82668
82669 2006-06-27  Bruno Haible  <bruno@clisp.org>
82670
82671         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82672
82673 2006-06-26  Simon Josefsson  <jas@extundo.com>
82674
82675         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82676         present.
82677
82678 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82679
82680         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82681         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82682         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82683
82684 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82685
82686         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82687
82688 2006-06-26  Bruno Haible  <bruno@clisp.org>
82689
82690         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82691
82692 2006-06-26  Bruno Haible  <bruno@clisp.org>
82693
82694         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82695
82696 2006-06-26  Bruno Haible  <bruno@clisp.org>
82697
82698         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82699         SGI C compiler in pre-C99 mode.
82700         Suggested by Mark D. Baushke and Larry Jones.
82701
82702 2006-06-26  Bruno Haible  <bruno@clisp.org>
82703
82704         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82705         WCHAR_MAX.
82706         Reported by Mark D. Baushke and Larry Jones.
82707
82708 2006-06-26  Bruno Haible  <bruno@clisp.org>
82709
82710         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82711         in pre-C99 mode.
82712         Suggested by Mark D. Baushke and Larry Jones.
82713
82714 2006-06-23  Simon Josefsson  <jas@extundo.com>
82715             Bruno Haible  <bruno@clisp.org>
82716
82717         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82718         Emit mostlyclean-local rule.
82719         (func_emit_tests_Makefile_am): Likewise.
82720         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82721
82722 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82723
82724         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82725
82726 2006-06-23  Bruno Haible  <bruno@clisp.org>
82727
82728         * tests/test-stdint.c: Update to match ISO C 99 Technical
82729         Corrigendum 1.
82730
82731 2006-06-23  Bruno Haible  <bruno@clisp.org>
82732
82733         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82734
82735 2006-06-23  Bruno Haible  <bruno@clisp.org>
82736
82737         * lib/stdint_.h: Treat IRIX like OpenBSD.
82738
82739 2006-06-23  Bruno Haible  <bruno@clisp.org>
82740
82741         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82742         ISO C 99 Technical Corrigendum 1.
82743
82744 2006-06-22  Simon Josefsson  <jas@extundo.com>
82745
82746         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82747         MinGW.
82748
82749 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82750
82751         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82752         needed.  Some compiler complained about some of them.  Problem reported
82753         by Larry Jones in
82754         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82755
82756 2006-06-21  Simon Josefsson  <jas@extundo.com>
82757
82758         * tests/test-getaddrinfo.c: New file.
82759
82760         * modules/getaddrinfo-tests: New file.
82761
82762         * MODULES.html.sh: Add inet_pton.
82763
82764         * modules/inet_pton: New file.
82765
82766 2006-06-21  Simon Josefsson  <jas@extundo.com>
82767
82768         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82769         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82770         of using the (limited) gnulib implementation on Windows XP.
82771
82772         * m4/inet_pton.m4: New file.
82773
82774 2006-06-21  Simon Josefsson  <jas@extundo.com>
82775
82776         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82777         variable.
82778
82779         * lib/socket_.h: Don't define WINVER.
82780
82781         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82782         slightly modified to work in gnulib.
82783
82784 2006-06-21  Simon Josefsson  <jas@extundo.com>
82785
82786         * doc/gnulib.texi (Windows sockets): Add.
82787
82788 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82789
82790         * lib/read-file.c (fread_file): Start with buffer allocation of
82791         0 bytes rather than 1 byte; this simplifies the code.
82792         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82793         code to free buffer and save/restore errno.
82794         (internal_read_file): Remove unused local.
82795
82796 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82797
82798         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82799         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82800         Problem reported by Denis Excoffier in
82801         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82802
82803 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82804
82805         * modules/sys_socket, modules/socklen: Include sys/types since
82806         FreeBSD 4.x's sys/socket.h needs it.
82807
82808 2006-06-19  Simon Josefsson  <jas@extundo.com>
82809
82810         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82811
82812 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82813
82814         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82815
82816 2006-06-19  Bruno Haible  <bruno@clisp.org>
82817
82818         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82819         and FULL_PATH_INTTYPES_H in angle brackets.
82820         Reported by Mark D. Baushke <mdb@gnu.org>.
82821
82822 2006-06-17  Eric Blake  <ebb9@byu.net>
82823
82824         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82825         errno.
82826
82827 2006-06-17  Bruno Haible  <bruno@clisp.org>
82828
82829         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82830         <sys/inttypes.h>.
82831
82832 2006-06-17  Bruno Haible  <bruno@clisp.org>
82833
82834         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82835         whether errno is declared. Assume <errno.h> declares errno.
82836
82837 2006-06-17  Bruno Haible  <bruno@clisp.org>
82838
82839         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82840
82841 2006-06-17  Bruno Haible  <bruno@clisp.org>
82842
82843         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82844         problem on Solaris 2.5.1.
82845
82846 2006-06-16  Eric Blake  <ebb9@byu.net>
82847
82848         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82849         * lib/unicodeio.c [!defined errno]: Likewise.
82850         * lib/strtol.c [!defined errno]: Likewise.
82851         * lib/strtod.c [!defined errno]: Likewise.
82852
82853 2006-06-15  Eric Blake  <ebb9@byu.net>
82854
82855         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82856
82857 2006-06-15  Eric Blake  <ebb9@byu.net>
82858
82859         * config/srclist.txt (ssize_t.m4): Lose sync.
82860
82861 2006-06-15  Bruno Haible  <bruno@clisp.org>
82862
82863         * modules/stdint (Files): Include m4/full-header-path.m4,
82864         m4/size_max.m4, m4/wchar_t.m4.
82865         (Makefile.am): Many more substitutions.
82866         * modules/stdint-tests: New file.
82867         * tests/test-stdint.c: New file.
82868
82869 2006-06-15  Bruno Haible  <bruno@clisp.org>
82870
82871         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82872         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82873         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82874         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82875         gl_CHECK_TYPE_SAME): New macros.
82876
82877 2006-06-15  Bruno Haible  <bruno@clisp.org>
82878
82879         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82880
82881 2006-06-15  Bruno Haible  <bruno@clisp.org>
82882
82883         * lib/stdint_.h: Rewritten to be fully auto-configured.
82884         Fixes bug on HP-UX/IA64.
82885
82886 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82887
82888         * lib/getdate.y (__attribute__): Don't define if already defined.
82889         Problem reported by Larry Jones.
82890         * lib/utimens.c (__attribute__): Likewise.
82891
82892 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82893
82894         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82895         reported by Andreas Schwab.
82896
82897 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82898             Bruno Haible  <bruno@clisp.org>
82899
82900         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82901         check for the declaration of strnlen and a run test that exposes the
82902         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82903         rpl_strndup.
82904
82905 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82906             Bruno Haible  <bruno@clisp.org>
82907
82908         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82909
82910 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82911
82912         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82913         compile test, for Tru64 4.0D.
82914
82915 2006-05-28  Karl Berry  <karl@gnu.org>
82916
82917         * config/srclist.txt (printf-args.c): lose sync.
82918
82919 2006-05-26  Martin Lambers  <marlam@marlam.de>
82920
82921         * lib/getpass.c: Updates the test for the native W32 API, and adds
82922         missing includes, thus fixing compilation warnings.
82923
82924 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82925
82926         * lib/exclude.c (exclude_fnmatch): New function.
82927         (excluded_file_name): Call exclude_fnmatch.
82928         * lib/exclude.h (excluded_file_name): New prototype
82929
82930 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82931
82932         * lib/tempname.c (small_open, large_open): New macros.
82933         (__open, __open64) [!_LIBC]: Remove.
82934         (__gen_tempname): Use small_open and large_open instead of __open
82935         and __open64.  This fixes a portability bug on HP-UX 11.11i
82936         reported by Simon Wing-Tang in
82937         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82938
82939 2006-05-24  Bruno Haible  <bruno@clisp.org>
82940
82941         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82942         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82943         Reported by Thorsten Maerz <torte@netztorte.de> via
82944         Aaron Stone <aaron@serendipity.cx>.
82945
82946 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82947
82948         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82949         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82950         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82951         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82952         not really conditional on the cache.
82953         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82954
82955 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82956
82957         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82958         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82959         (my_usleep): Don't mishandle maximum value.
82960
82961 2006-05-19  Jim Meyering  <jim@meyering.net>
82962
82963         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82964
82965 2006-05-17  Bruno Haible  <bruno@clisp.org>
82966
82967         Cygwin portability.
82968         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82969
82970 2006-05-17  Bruno Haible  <bruno@clisp.org>
82971
82972         * lib/stdint_.h: Fix recognition of Cygwin.
82973
82974 2006-05-15  Bruno Haible  <bruno@clisp.org>
82975
82976         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82977         on libtool patch by Ralf Wildenhues.
82978
82979 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82980
82981         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82982         test for C99 conformance; (bool) 0.5 is an integer constant
82983         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82984         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82985
82986 2006-05-11  Simon Josefsson  <jas@extundo.com>
82987
82988         * m4/xvasprintf.m4: Fix obvious typo.
82989
82990 2006-05-11  Jim Meyering  <jim@meyering.net>
82991
82992         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82993         James Lemley.
82994
82995 2006-05-10  Simon Josefsson  <jas@extundo.com>
82996
82997         * lib/md4.c: Typo fix, update copyright years.
82998         (K1, K2): Don't use L because it turn computations into 64-bit on
82999         64-bit platforms.
83000
83001 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
83002
83003         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
83004         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
83005         unwanted sign propagation, e.g., on hosts with 64-bit int.
83006         There still are some problems with reeelly weird theoretical hosts
83007         (e.g., 33-bit int) but it's not worth worrying about now.
83008         * lib/sha1.c (rol): Likewise.
83009         (K1, K2, K3, K4): Remove unnecessary L suffix.
83010
83011 2006-05-10  Bruno Haible  <bruno@clisp.org>
83012
83013         * lib/des.c: Cast to avoid warnings.
83014
83015 2006-05-09  Bruno Haible  <bruno@clisp.org>
83016
83017         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
83018         (Depends-on): Depend also on xsize, stdarg.
83019         (configure.ac): Add gl_XVASPRINTF.
83020
83021 2006-05-09  Bruno Haible  <bruno@clisp.org>
83022
83023         * m4/xvasprintf.m4: New file.
83024
83025 2006-05-09  Bruno Haible  <bruno@clisp.org>
83026
83027         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
83028         (EOVERFLOW): Define fallback value.
83029         (xstrcat): New function.
83030         (xvasprintf): Recognize the special case of a string concatenation.
83031
83032 2006-05-08  Eric Blake  <ebb9@byu.net>
83033
83034         * gnulib-tool (func_version): Base copyright year on CVS date.
83035         (func_emit_copyright_notice): New function.
83036         (func_emit_lib_Makefile_am): Use it.
83037         (func_emit_tests_Makefile_am): Likewise.
83038         (func_import): Likewise.
83039
83040 2006-05-08  Bruno Haible  <bruno@clisp.org>
83041
83042         * modules/stdarg: New file.
83043         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
83044
83045 2006-05-08  Bruno Haible  <bruno@clisp.org>
83046
83047         * m4/stdarg.m4: New file, from GNU gettext.
83048
83049 2006-05-08  Bruno Haible  <bruno@clisp.org>
83050
83051         * config/srclist.txt (build-aux/config.rpath): different from latest
83052         release.
83053
83054 2006-05-08  Bruno Haible  <bruno@clisp.org>
83055
83056         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
83057
83058 2006-05-05  Jim Meyering  <jim@meyering.net>
83059
83060         * m4/warning.m4: New file, derived from bison's file by the same name.
83061
83062 2006-05-03  Bruno Haible  <bruno@clisp.org>
83063
83064         * lib/stdint_.h: Shorter URL.
83065         * lib/inttypes.h: Likewise.
83066
83067 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83068
83069         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
83070
83071 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83072
83073         * lib/verify.h: Document the internals better.  Most of this change
83074         was written by Bruno Haible.
83075
83076 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83077
83078         * doc/verify.texi: New file, partly based on a proposal by
83079         Bruno Haible.
83080
83081 2006-05-02  Bruno Haible  <bruno@clisp.org>
83082
83083         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
83084         test from here...
83085         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
83086
83087 2006-04-29  Bruno Haible  <bruno@clisp.org>
83088
83089         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
83090         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
83091
83092 2006-04-29  Bruno Haible  <bruno@clisp.org>
83093
83094         * gnulib-tool: Make --update option actually work.
83095
83096 2006-04-29  Bruno Haible  <bruno@clisp.org>
83097
83098         * doc/gcd.texi: New file.
83099         * doc/gnulib.texi: Include it.
83100
83101 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
83102
83103         * lib/getdate.y (get_date): When adding relative date, start with the
83104         initial time, not with the result of the first mktime call.
83105
83106 2006-04-25  Bruno Haible  <bruno@clisp.org>
83107
83108         * gnulib-tool (func_import): Output the include directives in three
83109         blocks, sorted separately.
83110         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83111
83112 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
83113
83114         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
83115         to define main with arguments, for C++.  Reported by Eric Blake.
83116         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
83117         Prefer 'int main ()' to 'int main (void)', for C++.
83118         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
83119         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
83120         for 'main', for C99 and C++.
83121
83122 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
83123
83124         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
83125         Don't assume that exit status -1 is valid.
83126         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83127         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
83128         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
83129         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
83130         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
83131         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
83132         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
83133         functions can be used without declaring them, or that you can
83134         exit with status -1.
83135         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
83136
83137 2006-04-24  Karl Berry  <karl@gnu.org>
83138
83139         * config/srclist.txt (longdouble.m4): sync lost.
83140
83141 2006-04-24  Eric Blake  <ebb9@byu.net>
83142
83143         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
83144
83145 2006-04-24  Bruno Haible  <bruno@clisp.org>
83146
83147         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
83148         poll() implementation in AIX.
83149         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83150
83151 2006-04-24  Bruno Haible  <bruno@clisp.org>
83152
83153         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
83154         assigned exactly once.
83155
83156 2006-04-23  Claudio Fontana  <claudio@gnu.org>
83157             Bruno Haible  <bruno@clisp.org>
83158
83159         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
83160         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
83161         for AM_CPPFLAGS.
83162
83163 2006-04-23  Bruno Haible  <bruno@clisp.org>
83164
83165         * modules/copy-file: Depend on unistd.
83166         * modules/execute: Likewise.
83167         * modules/fatal-signal: Likewise.
83168         * modules/findprog: Likewise.
83169         * modules/mkdtemp : Likewise.
83170         * modules/pipe: Likewise.
83171         * modules/wait-process: Likewise.
83172
83173 2006-04-23  Bruno Haible  <bruno@clisp.org>
83174
83175         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
83176         condition was already detected.
83177         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83178
83179 2006-04-23  Bruno Haible  <bruno@clisp.org>
83180
83181         * lib/copy-file.c: Include <unistd.h> unconditionally.
83182         * lib/execute.c: Likewise.
83183         * lib/fatal-signal.c: Likewise.
83184         * lib/findprog.c: Likewise.
83185         * lib/mkdtemp.c: Likewise.
83186         * lib/pipe.h: Likewise.
83187         * lib/pipe.c: Likewise.
83188         * lib/wait-process.h: Likewise.
83189
83190 2006-04-23  Bruno Haible  <bruno@clisp.org>
83191
83192         * gnulib-tool (func_usage): Fix --import description. Document
83193         --update.
83194         (func_import): Create temporary file in a temporary directory, if
83195         --dry-run is specified. Silence errors from 'grep' when there are no
83196         m4 files in $m4dir.
83197         (func_create_testdir): Silence errors from 'grep' when there are no
83198         m4 files in $m4dir.
83199         Reported by Karl Berry <karl@freefriends.org>.
83200
83201 2006-04-20  Bruno Haible  <bruno@clisp.org>
83202
83203         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
83204         one argument, so that the code will be portable to Autoconf 2.60.
83205         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
83206         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
83207         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
83208
83209 2006-04-19  Derek Price  <derek@ximbiot.com>
83210             Eric Blake  <ebb9@byu.net>
83211
83212         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
83213         rather than "/full/path.h".  Update comment to match.  Shorten &
83214         generalize m4_translit call via AS_TR_CPP.
83215
83216 2006-04-19  Derek Price  <derek@ximbiot.com>
83217             Eric Blake  <ebb9@byu.net>
83218
83219         * lib/inttypes.h: Correct grammar in comment.
83220
83221 2006-04-18  Derek Price  <derek@ximbiot.com>
83222             Paul Eggert  <eggert@cs.ucla.edu>
83223
83224         * modules/inttypes: New file.
83225         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
83226
83227 2006-04-18  Derek Price  <derek@ximbiot.com>
83228             Paul Eggert  <eggert@cs.ucla.edu>
83229
83230         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
83231         New files.
83232
83233 2006-04-18  Derek Price  <derek@ximbiot.com>
83234             Paul Eggert  <eggert@cs.ucla.edu>
83235
83236         * lib/inttypes.h: New file.
83237         * lib/strtoimax.c: Assume <inttypes.h>.
83238
83239 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
83240
83241         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
83242         isn't mounted.  Problem reported by Kir Kolyshkin.
83243
83244 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83245
83246         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
83247         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
83248         Derek R. Price.
83249         * lib/regex.h (RE_DUP_MAX): Update comment to match current
83250         implementation.
83251
83252 2006-04-12  Eric Blake  <ebb9@byu.net>
83253
83254         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
83255         is now done automatically by the corresponding Autoconf macro.
83256
83257 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
83258
83259         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
83260         time_r.h.
83261
83262 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83263
83264         Merge regex changes from libc, removing some of our
83265         POSIX-conformance changes that were rejected and redoing them in a
83266         less-intrusive way.
83267
83268         * lib/regcomp.c (re_compile_internal, init_dfa):
83269         Length arg is now size_t, not Idx.  All uses changed.
83270         (peek_token): Forward decl now says internal_function.
83271         (__re_error_msgid, __re_error_msgid_idx):
83272         Now static rather than extern with attribute_hidden.
83273         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
83274         For some reason libc prefers K&R style defns for external functions.
83275         (regerror) [!defined _LIBC]: Likewise.
83276         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
83277         (seek_collating_symbol_entry, lookup_collation_sequence_value):
83278         (build_range_exp, build_collating_symbol):
83279         Use K&R-style defn.
83280         (re_compile_fastmap): Use '\0' to memset, not 0.
83281         (utf8_sb_map): Make the calculations more obvious.
83282         (init_dfa, parse_bracket_exp, build_charclass_op):
83283         Call calloc and cast result, as glibc does.
83284         (init_word_char, fetch_token, peek_token, peek_token_bracket):
83285         (build_range_exp, build_collating_symbol):
83286         Now internal functions.
83287
83288         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
83289
83290         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
83291         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
83292         Don't depend on VMS; depend on __VMS instead, for POSIX
83293         namespace cleanness.
83294         (regoff_t): Define to ssize_t, not long int.
83295
83296         Remove the REG_ macros named below.  Instead, make the old names
83297         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
83298         __USE_GNU_REGEX.
83299         (REG_BACKSLASH_ESCAPE_IN_LISTS):
83300         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
83301         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
83302         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
83303         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
83304         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
83305         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
83306         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
83307         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
83308         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
83309         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
83310         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
83311         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
83312         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
83313         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
83314         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
83315         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
83316         (REG_NREGS):
83317         Remove.  All uses replaced by the old RE_* names.
83318         (RE_BACKSLASH_ESCAPE_IN_LISTS):
83319         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
83320         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
83321         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
83322         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
83323         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
83324         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
83325         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
83326         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
83327         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
83328         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
83329         Don't bother having these macros be independent of each others'
83330         values, since they no longer exist in the POSIX name space.
83331
83332         Rename the following member names back to their old names,
83333         unless !__USE_GNU_REGEX.  All uses changed back.
83334         (buffer): Renamed from re_buffer.
83335         (allocated): Renamed from re_allocated.
83336         (used): Renamed from re_used.
83337         (syntax): Renamed from re_syntax.
83338         (fastmap): Renamed from re_fastmap.
83339         (translate): Renamed from re_translate.
83340         (can_be_null): Renamed from re_can_be_null.
83341         (regs_allocated): Renamed from re_regs_allocated.
83342         (fastmap_accurate): Renamed from re_fastmap_accurate.
83343         (no_sub): Renamed from re_no_sub.
83344         (not_bol): Renamed from re_not_bol.
83345         (not_eol): Renamed from re_not_eol.
83346         (newline_anchor): Renamed from re_newline_anchor.
83347         (num_regs): Renamed from rm_num_regs.
83348         (start): Renamed from rm_start.
83349         (end): Renamed from rm_end.
83350
83351         (free_state): Move up a bit.
83352
83353         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
83354         #define to be empty.
83355         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
83356         when that is what is intended.
83357         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
83358         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
83359         (MAX): New macro.
83360         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
83361         All uses changed back to re_malloc, etc.  It's now the caller's
83362         responsibility to check for overflow; all callers changed.
83363         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
83364         (re_x2nrealloc): Remove.
83365         (free_state): Remove decl.
83366
83367         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
83368         (re_set_registers, re_exec):
83369         Use K&R-style defn.
83370
83371         2006-01-31  Roland McGrath  <roland@redhat.com>
83372
83373         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
83374         Reported by Mike Frysinger <vapier@gentoo.org>.
83375
83376         2006-01-15  Andreas Jaeger  <aj@suse.de>
83377
83378         [BZ #1950]
83379         * lib/regex_internal.c (re_string_reconstruct): Adjust for
83380         build_wcs_upper_buffer change.
83381         (build_wcs_upper_buffer): Change return type.
83382
83383         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
83384
83385         * lib/regex_internal.h: Include <stdint.h> if available.
83386
83387         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
83388
83389         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
83390
83391         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
83392
83393         * lib/regcomp.c: Adjust for changed secondary hash function.
83394
83395         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
83396
83397         * lib/regex.h: Pretty printing.
83398         Clean up namespace a bit.
83399
83400         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
83401
83402         * lib/regexec.c (update_cur_sifted_state, check_arrival,
83403         check_arrival_add_next_nodes): Avoid using uninitialized variable.
83404
83405         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83406                     Ulrich Drepper  <drepper@redhat.com>
83407
83408         [BZ #1302]
83409         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
83410         changed.
83411         (bitset_word_t): Renamed from bitset_word.  All uses changed.
83412
83413         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
83414
83415         [BZ #281]
83416         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
83417         * lib/regcomp.c: Remove unnecessary uses of
83418         unsigned RE_TRANSLATE_TYPE.
83419         * lib/regex_internal.h: Likewise.
83420         * lib/regex_internal.c: Likewise.
83421         * lib/regexec.c: Likewise.
83422         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
83423
83424         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
83425
83426         * lib/regexec.c (find_recover_state): Remove unnecessary
83427         initialization.
83428         (transit_state_bkref): Make DFA a const pointer.
83429         (get_subexp): Likewise.
83430         (check_arrival): Likewise.
83431         (update_cur_sifted_state): Likewise.
83432         (re_search_internal): Likewise.
83433         (prune_impossible_nodes): Likewise.
83434         (acquire_init_state_context): Likewise.
83435         (proceed_next_node): Likewise.
83436         (set_regs): Likewise.
83437         (free_fail_stack_return): Likewise.
83438         (check_arrival_expand_ecl): Mark DFA parameter as const.
83439         (check_arrival_expand_ecl_sub): Likewise.
83440         (check_subexp_limits): Likewise.
83441         (sub_epsilon_src_nodes):  Likewise.
83442         (add_epsilon_src_nodes):  Likewise.
83443         (merge_state_array): Likewise.
83444         (update_regs): Likewise.
83445         (build_trtable): Likewise.
83446         (sift_states_backward): Mark MCTX parameter as const.
83447         (build_sifted_states): Likewise.
83448         (update_cur_sifted_state): Likewise.
83449         (sift_states_mkref): Likewise.
83450         (check_arrival_expand_ecl): Mark eclosure as const.
83451         (check_dst_limits_calc_pos_1): Likewise.
83452         * lib/regex_internal.h (re_match_context_t): Make dfa a const
83453         pointer.
83454
83455         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
83456
83457         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
83458         (transit_state_sb): Likewise.
83459         (transit_state_mb): Likewise.
83460         (sift_states_iter_mb): Likewise.
83461         (check_arrival_add_next_nodes): Likewise.
83462         (check_node_accept_bytes): Change first parameter to pointer-to-const.
83463         [_LIBC] (re_search_2_stub): Use mempcpy.
83464
83465         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
83466         mbrtowc for very simple UTF-8 case.
83467
83468         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
83469         a pointer-to-const.
83470         (re_acquire_state_context): Likewise.
83471         * lib/regex_internal.h: Adjust prototypes.
83472
83473         * lib/regex.c: Prevent using C++ compilers.
83474
83475         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
83476         (re_acquire_state_context): Likewise.
83477
83478 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83479
83480         * modules/regex (Depends-on): Add ssize_t.
83481
83482 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83483
83484         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
83485         translation table.
83486
83487 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83488
83489         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
83490
83491 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
83492             Bruno Haible  <bruno@clisp.org>
83493
83494         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
83495         <sys/types.h> and <inttypes.h>.
83496
83497 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83498
83499         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
83500         `__error_t_defined', so argp.h will not typedef the former.
83501
83502 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83503
83504         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
83505         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83506         glibc names.  Even if glibc is changed to conform to POSIX, the
83507         traditional names will be available anyway, since regex depends on
83508         the extensions module.  Also, fix a longstanding typo in the
83509         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83510         reported by Emanuele Giaquinta.  Also, change sense of cached
83511         variable, so that the message makes sense.
83512
83513 2006-03-24  Simon Josefsson  <jas@extundo.com>
83514
83515         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83516         including some doc fixes.
83517         (base64_encode_alloc): Fix +1 bug on allocation failures.
83518
83519 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83520
83521         * lib/base64.c (base64_encode): Do not read past end of array with
83522         unsanitized input on systems with CHAR_BIT > 8.
83523
83524 2006-03-24  Eric Blake  <ebb9@byu.net>
83525
83526         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83527
83528 2006-03-22  Karl Berry  <karl@gnu.org>
83529
83530         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83531         * config/srclistvars.sh (COREUTILS): new var.
83532
83533 2006-03-17  Jim Meyering  <jim@meyering.net>
83534
83535         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83536         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83537
83538 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83539
83540         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83541         no longer needs it.  Instead, check that regoff_t is as least
83542         as wide as ptrdiff_t.
83543
83544         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83545         so that our regex.h stays compatible with the installed regex.
83546         This is helpful for installers who configure --without-included-regex.
83547         Problem reported by Emanuele Giaquinta.
83548
83549 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83550
83551         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83552         Typedef to long int, not to off_, as POSIX will likely change
83553         in that direction.
83554
83555 2006-03-15  Eric Blake  <ebb9@byu.net>
83556
83557         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83558
83559 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83560
83561         * lib/argp-help.c (validate_uparams): Fix typo
83562         * lib/argp-parse.c (argp_default_options): Consistently begin help
83563         messages with a lowercase letter.
83564
83565 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83566
83567         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83568         overrun buffers and shouldn't be used (much as gets shouldn't be
83569         used).
83570         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83571
83572 2006-03-08  Simon Josefsson  <jas@extundo.com>
83573
83574         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83575         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83576
83577 2006-03-08  Simon Josefsson  <jas@extundo.com>
83578
83579         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83580         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83581
83582 2006-03-08  Simon Josefsson  <jas@extundo.com>
83583
83584         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83585         signal that configure disabled the device.
83586
83587 2006-03-08  Simon Josefsson  <jas@extundo.com>
83588
83589         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83590         languages.
83591
83592 2006-03-07  Simon Josefsson  <jas@extundo.com>
83593
83594         * modules/getopt (Depends-on): Add unistd.
83595
83596         * modules/unistd: New file.
83597
83598 2006-03-07  Simon Josefsson  <jas@extundo.com>
83599
83600         * modules/gc-random: New file.
83601
83602 2006-03-07  Simon Josefsson  <jas@extundo.com>
83603
83604         * m4/unistd_h.m4: New file.
83605
83606 2006-03-07  Simon Josefsson  <jas@extundo.com>
83607
83608         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83609         test to be side-effect free by storing the result in the cache
83610         variable gl_cv_lib_readline, and moving the assignment of
83611         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83612         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83613
83614 2006-03-07  Simon Josefsson  <jas@extundo.com>
83615
83616         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83617         error on missing devices (the functions will return an error).
83618
83619         * m4/gc.m4: Move random stuff to gc-random.m4
83620
83621 2006-03-07  Simon Josefsson  <jas@extundo.com>
83622
83623         * lib/unistd_.h: New file.
83624
83625 2006-03-07  Simon Josefsson  <jas@extundo.com>
83626
83627         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83628
83629 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83630
83631         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83632         Problem reported by Juan Manuel Guerrero.
83633
83634 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83635
83636         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83637         the unistd module.
83638         * lib/getlogin_r.c: Likewise.
83639         * lib/getlogin_r.h: Likewise.
83640         * lib/glob.c: Likewise.
83641         * lib/pagealign_alloc.c: Likewise.
83642         * lib/unistd_.h: Remove; no longer needed.
83643
83644 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83645
83646         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83647         Add unistd.
83648         * modules/c-stack (Depends-on): Add unistd.
83649         * modules/getlogin_r: Likewise.
83650         * modules/glob: Likewise.
83651         * modules/pagealign_alloc: Likewise.
83652         * modules/unistd (Files): Remove lib/unistd_.h.
83653         (EXTRA_DIST): Remove.
83654         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83655         need unistd_.h.
83656         (MOSTLYCLEANFILES): Remove unistd.h-t.
83657
83658 2006-03-03  Simon Josefsson  <jas@extundo.com>
83659
83660         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83661
83662 2006-03-03  Simon Josefsson  <jas@extundo.com>
83663
83664         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83665         libidn and bison.
83666
83667 2006-03-03  Simon Josefsson  <jas@extundo.com>
83668
83669         * build-aux/maint.mk: Add indent target.
83670
83671 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83672
83673         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83674         our replacement poll.h in any case, to avoid a differing
83675         declaration from a system header.  Seen on AIX.
83676
83677 2006-03-01  Simon Josefsson  <jas@extundo.com>
83678
83679         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83680         <kasal@ucw.cz>.
83681
83682 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83683
83684         * modules/gettime (Depends-on): Add extensions module.
83685         * modules/nanosleep (Depends-on): Likewise.
83686         * modules/settime (Depends-on): Likewise.
83687
83688 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83689
83690         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83691         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83692         pedantically.
83693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83694         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83695
83696         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83697         not "==".  Reported by Ralf Wildenhues.
83698
83699 2006-03-01  Karl Berry  <karl@gnu.org>
83700
83701         * doc/Copyright/request-*: new files, synced from gnuorg.
83702
83703 2006-03-01  Karl Berry  <karl@gnu.org>
83704
83705         * config/srclist.txt (Copyright/*): new entries.
83706
83707 2006-02-28  Simon Josefsson  <jas@extundo.com>
83708
83709         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83710
83711 2006-02-27  Simon Josefsson  <jas@extundo.com>
83712
83713         * lib/base64.h: Indent #define's.  From Jim Meyering
83714         <jim@meyering.net>.
83715
83716 2006-02-27  Jim Meyering  <jim@meyering.net>
83717
83718         Revert the change of 2006-02-24, so these files can continue
83719         to be sync'd from gettext.
83720         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83721         of `config.h'.
83722
83723 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83724
83725         * modules/intprops: New file.
83726         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83727         Add intprops.
83728         * modules/getloadavg (Files): Remove lib/intprops.h.
83729         (Depends-on): Add intprops.
83730         * modules/human: Likewise.
83731         * modules/inttostr: Likewise.
83732         * modules/openat: Likewise.
83733         * modules/sig2str: Likewise.
83734         * modules/userspec: Likewise.
83735         * modules/utimecmp: Likewise.
83736         * modules/xnanosleep: Likewise.
83737         * modules/xstrtol: Likewise.
83738
83739 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83740
83741         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83742         * modules/lock-tests (TESTS): Use $(EXEEXT).
83743         * modules/tls-tests: Likewise.
83744         * modules/argp-tests: Likewise.
83745         (check_PROGRAMS): New var, replacing...
83746         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83747
83748 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83749
83750         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83751         `config.h'.
83752
83753 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83754
83755         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83756
83757 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83758
83759         Sync from coreutils.
83760         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83761         gl_CHDIR_SAFER.
83762
83763 2006-02-22  Jim Meyering  <jim@meyering.net>
83764
83765         Sync from coreutils.
83766         * m4/chdir-safer.m4: New file.
83767
83768 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83769
83770         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83771         AT_FDCWD exceeds INT_MAX.
83772         * lib/openat.h (AT_FDCWD): Likewise.
83773
83774 2006-02-17  Eric Blake  <address@hidden>
83775
83776         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83777
83778 2006-02-16  Simon Josefsson  <jas@extundo.com>
83779
83780         * modules/getaddrinfo (Depends-on): Add sys_socket.
83781
83782 2006-02-15  Simon Josefsson  <jas@extundo.com>
83783
83784         * build-aux/maint.mk: Add dsyntax-check rule.
83785
83786 2006-02-15  Eric Blake  <ebb9@byu.net>
83787
83788         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83789         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83790         'present but cannot compile' warnings on cygwin.
83791         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83792         use ws2tcpip.h if sys/socket.h works.
83793         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83794         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83795
83796 2006-02-14  Simon Josefsson  <jas@extundo.com>
83797
83798         * modules/maintainer-makefile (Files): Rename.
83799
83800         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83801         and (the local) Makefile.cfg to maint-cfg.mk.
83802
83803         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83804         to the latter.
83805
83806         * modules/maintainer-makefile: New module.
83807
83808         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83809         severaly stripped to make it possible to build it up from scratch
83810         with reliable tests.
83811
83812         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83813         fixes to permit overriding the default actions when configure and
83814         makefile are not available.
83815
83816 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83817
83818         Sync from coreutils.
83819         * modules/lstat (Depends-on): Don't depend on xalloc.
83820         (License): Change from GPL to LGPL, since this is now simply a
83821         replacement for a libc function.
83822
83823 2006-02-14  Jim Meyering  <jim@meyering.net>
83824
83825         Sync from coreutils.
83826
83827         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83828         failure on deficient systems, and simplify gnulib lgpl dependencies.
83829         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83830         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83831
83832         * lib/xalloc-die.c: Remove unused definition of N_.
83833
83834 2006-02-14  Jim Meyering  <jim@meyering.net>
83835
83836         Sync from coreutils.
83837         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83838         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83839         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83840         double-quote uses of that variable, to accommodate the rare case in
83841         which getmntent is available in none of the libraries checked.  This
83842         happens at least on FreeBSD 5.0.
83843
83844 2006-02-13  Simon Josefsson  <jas@extundo.com>
83845
83846         * gnulib-tool (Usage): Fix --import, from
83847         karl@freefriends.org (Karl Berry).
83848
83849 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83850
83851         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83852
83853 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83854
83855         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83856         "autoupdate" on 2005-12-12.
83857
83858 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83859
83860         * modules/closeout (Depends-on): Remove atexit.
83861
83862 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83863
83864         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83865         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83866
83867 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83868
83869         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83870         __EXTENSIONS__ if this causes compilation to fail.  Problem
83871         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83872         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83873
83874 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83875
83876         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83877         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83878         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83879         All uses changed.
83880
83881 2006-01-26  Simon Josefsson  <jas@extundo.com>
83882
83883         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83884         prototype is visible on mingw32.
83885
83886         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83887         for mingw32.
83888
83889         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83890         mingw32).
83891
83892 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83893
83894         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83895         attempt to open for write; this always fails, at least on POSIX
83896         hosts.  This reinstates the 2006-01-09 change, which was
83897         inadvertently removed.
83898
83899 2006-01-26  Bruno Haible  <bruno@clisp.org>
83900
83901         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83902         Reported by Paul Eggert.
83903
83904 2006-01-26  Bruno Haible  <bruno@clisp.org>
83905             Paul Eggert  <eggert@cs.ucla.edu>
83906
83907         * lib/stdbool_.h (_Bool)
83908         [(! (defined __cplusplus || defined __BEOS__)
83909           && !defined __GNUC__
83910           && !(defined __HP_cc || defined __xlc__
83911                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83912                || defined __sgi))]:
83913         #define to signed char in these cases too; this simplifies
83914         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83915         etc., separately) and makes it more conservative.
83916
83917 2006-01-25  Simon Josefsson  <jas@extundo.com>
83918
83919         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83920         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83921         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83922
83923 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83924
83925         * lib/argp-namefrob.h: Bugfix. Remove stray #
83926
83927 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83928
83929         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83930         so that we test the test.
83931         Check for yet another HP-UX cc bug involving *bool |= bool.
83932
83933 2006-01-25  Karl Berry  <karl@gnu.org>
83934
83935         * config/srclist.txt (vasnprintf.c): sync lost.
83936
83937 2006-01-25  Jim Meyering  <jim@meyering.net>
83938
83939         Sync from the stable (b5) branch of coreutils:
83940
83941         * lib/fts.c (fts_children): Don't let close() clobber errno from
83942         failed fchdir().
83943
83944         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83945         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83946         a dangling symlink.  That can also happen at least for ELOOP.
83947         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83948         FYI, this bug predates the inclusion of fts.c in coreutils.
83949
83950         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83951         in their own block, so pre-c99 compilers don't object.
83952
83953         Avoid the double-free (first in fts_read, second in fts_close) that
83954         would occur when an `active' directory is made inaccessible (e.g.,
83955         via chmod a-x) during a traversal.
83956         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83957         before returning.  Reproduce this failure by
83958         mkdir -p a/b; cd a; chmod a-x . b
83959         Reported by Stavros Passas.
83960
83961 2006-01-25  Jim Meyering  <jim@meyering.net>
83962
83963         * lib/fileblocks.c: Remove more useless parentheses.
83964         * lib/readutmp.h: Likewise.
83965
83966 2006-01-25  Bruno Haible  <bruno@clisp.org>
83967
83968         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83969         warnings.
83970         Reported by Paul Eggert.
83971
83972 2006-01-25  Bruno Haible  <bruno@clisp.org>
83973
83974         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83975         rid of a trap command. For Solaris sh.
83976         Reported by Mark D. Baushke <mdb@gnu.org>.
83977
83978 2006-01-24  Simon Josefsson  <jas@extundo.com>
83979
83980         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83981         Bruno.
83982
83983 2006-01-24  Karl Berry  <karl@gnu.org>
83984
83985         * config/srclist.txt (argp-namefrob.h): sync lost.
83986
83987 2006-01-24  Jim Meyering  <jim@meyering.net>
83988
83989         * modules/openat (Files): Add lib/intprops.h.
83990         From Mark D. Baushke.
83991
83992 2006-01-24  Jim Meyering  <jim@meyering.net>
83993
83994         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83995         Reported by Mark D. Baushke.
83996
83997 2006-01-24  Jim Meyering  <jim@meyering.net>
83998
83999         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
84000
84001 2006-01-24  Bruno Haible  <bruno@clisp.org>
84002
84003         * modules/strnlen (Maintainer): Change from glibc to all.
84004
84005 2006-01-24  Bruno Haible  <bruno@clisp.org>
84006
84007         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
84008         Patch by Paul Eggert.
84009
84010 2006-01-24  Bruno Haible  <bruno@clisp.org>
84011
84012         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
84013         already has it.
84014         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
84015         2005-11-26.
84016
84017         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
84018         'signed char' to avoid problems with the built-in _Bool type.
84019         Reported by Paul Eggert on 2005-11-26.
84020
84021 2006-01-24  Bruno Haible  <bruno@clisp.org>
84022
84023         * gnulib-tool (func_import): Avoid constructing complicated sed
84024         expressions inside backquote.
84025         Report and solution by Mark D. Baushke <mdb@gnu.org>.
84026
84027 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
84028
84029         These changes imported from libc.
84030         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
84031         test and two separate function calls.
84032         * lib/strndup.c (__strndup): Add libc_hidden_def.
84033
84034 2006-01-23  Simon Josefsson  <jas@extundo.com>
84035
84036         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
84037         Remove the test_*_SOURCES variable: automake infers it by default.
84038         * modules/tls-tests: Likewise.
84039
84040 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84041
84042         Work around porting bugs reported by Dieter in
84043         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
84044         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
84045         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
84046         Include "getopt.h" first, to check interface.
84047         (getenv): Declare only if defined HAVE_DECL_GETENV &&
84048         !HAVE_DECL_GETENV.
84049         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
84050         (__strndup): Revert to K&R-style function dfns, the glibc style.
84051         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
84052         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
84053         Include strnlen.h first, to get prototype properly.
84054         (strnlen): Renamed from __strnlen.
84055         Remove weak alias.
84056
84057 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84058
84059         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
84060
84061 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84062
84063         * config/srclist.txt: Adjust to reflect glibc reorganization.
84064         This affects only comments.
84065
84066 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84067
84068          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
84069          Reported by Bruce Korb <bkorb@gnu.org>.
84070
84071 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
84072
84073         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
84074         to pacify gcc -Wswitch-default.
84075
84076 2006-01-22  Bruno Haible  <bruno@clisp.org>
84077
84078         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
84079         temporary buffer for sprintf, take into account the precision also
84080         for 'd', 'i', 'u', 'o', 'x', 'X'.
84081
84082 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
84083
84084         * modules/argp-tests: New module
84085         * tests/test-argp.c: New file
84086         * tests/test-argp-2.sh: New file
84087
84088 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
84089
84090         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
84091         (__argp_base_name): Removed
84092         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
84093         typo.
84094         (__argp_base_name): Provide macro definition or extern declaration
84095         depending on the configuration
84096
84097 2006-01-20  Simon Josefsson  <jas@extundo.com>
84098
84099         * modules/inet_ntop (Depends-on): Depend on sys_socket.
84100
84101 2006-01-20  Simon Josefsson  <jas@extundo.com>
84102
84103         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
84104
84105 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84106
84107         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
84108         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
84109         Suggested by Bruno Haible.
84110
84111 2006-01-20  Karl Berry  <karl@gnu.org>
84112
84113         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
84114         until changes propagate, I guess.
84115
84116 2006-01-19  Simon Josefsson  <jas@extundo.com>
84117
84118         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
84119
84120 2006-01-19  Simon Josefsson  <jas@extundo.com>
84121
84122         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
84123
84124 2006-01-19  Simon Josefsson  <jas@extundo.com>
84125
84126         * gnulib-tool: Set check_PROGRAMS.
84127
84128         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84129         modules/des-tests, modules/gc-arcfour-tests,
84130         modules/gc-arctwo-tests, modules/gc-des-tests,
84131         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84132         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84133         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84134         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84135         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84136         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
84137         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
84138         test_*_SOURCES.
84139
84140 2006-01-18  Simon Josefsson  <jas@extundo.com>
84141
84142         * modules/socklen (Depends-on): Depend on sys_socket.
84143
84144 2006-01-18  Simon Josefsson  <jas@extundo.com>
84145
84146         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84147         modules/des-tests, modules/gc-arcfour-tests,
84148         modules/gc-arctwo-tests, modules/gc-des-tests,
84149         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84150         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84151         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84152         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84153         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84154         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
84155         $(EXEEXT) to automake TESTS variable, for mingw32.
84156
84157 2006-01-17  Simon Josefsson  <jas@extundo.com>
84158
84159         * modules/socklen (Include): Need sys/socket.h.
84160
84161 2006-01-17  Bruno Haible  <bruno@clisp.org>
84162
84163         * modules/ssize_t (Include): Add <sys/types.h>.
84164
84165 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
84166
84167         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
84168         it's not portable and it doesn't work with cross-compiles.
84169         Problem reported by Bruno Haible.  Fix missing-$ typo in
84170         'test "gl_cv_ignore_unused_libraries" ...' that prevented
84171         -zignore from being used with Sun's C compiler.
84172
84173 2006-01-12  Simon Josefsson  <jas@extundo.com>
84174
84175         * lib/base64.c: Fix warning, reported by Bruno Haible
84176         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
84177
84178 2006-01-12  Bruno Haible  <bruno@clisp.org>
84179
84180         * modules/ldd: New file.
84181         * build-aux/ldd.sh.in: New file.
84182         * MODULES.html.sh (Support for building libraries and executables): Add
84183         ldd.
84184
84185 2006-01-12  Bruno Haible  <bruno@clisp.org>
84186
84187         * m4/ldd.m4: New file.
84188
84189 2006-01-12  Bruno Haible  <bruno@clisp.org>
84190
84191         * gnulib-tool (func_import, func_create_testdir): Don't go into an
84192         endless loop while replacing $auxdir with build-aux.
84193
84194 2006-01-11  Simon Josefsson  <jas@extundo.com>
84195
84196         * lib/stdint_.h (SIZE_MAX): Add missing (.
84197
84198 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
84199
84200         Sync from coreutils.
84201         * lib/md5.c: Fix commentary typos.
84202         (alignof, UNALIGNED_P): No need for a GCC-specific version.
84203         * lib/md5.h (__attribute__): Remove; unused.
84204         * lib/sha1.c: Fix commentary to match md5 better.
84205         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
84206         so that we don't need to worry about alignment.  All uses changed.
84207         This merges the 2005-10-28 md5 change into sha1.
84208
84209 2006-01-11  Jim Meyering  <jim@meyering.net>
84210
84211         Sync from coreutils.
84212         * lib/md5.c (OP): Fix spacing.
84213
84214 2006-01-11  Bruno Haible  <bruno@clisp.org>
84215
84216         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84217         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
84218         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
84219
84220 2006-01-11  Bruno Haible  <bruno@clisp.org>
84221
84222         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84223         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
84224         the "early" section as well.
84225
84226 2006-01-11  Bruno Haible  <bruno@clisp.org>
84227
84228         Avoid "ar: no archive members specified" error on MacOS X.
84229         * gnulib-tool (func_modules_add_dummy): New function.
84230         (func_import, func_create_testdir): Invoke it.
84231
84232 2006-01-11  Bruno Haible  <bruno@clisp.org>
84233
84234         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
84235         with $auxdir in AC_CONFIG_FILES statements.
84236
84237 2006-01-11  Bruno Haible  <bruno@clisp.org>
84238
84239         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
84240         Initialize also noinst_HEADERS to empty.
84241
84242 2006-01-11  Bruno Haible  <bruno@clisp.org>
84243
84244         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
84245         variables.
84246         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
84247         autoreconf.
84248
84249 2006-01-11  Bruno Haible  <bruno@clisp.org>
84250
84251         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
84252         overridable by the user.
84253         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84254
84255 2006-01-10  Simon Josefsson  <jas@extundo.com>
84256
84257         * modules/sys_socket: New file.
84258
84259 2006-01-10  Simon Josefsson  <jas@extundo.com>
84260
84261         * m4/sys_socket_h.m4: New file.
84262
84263 2006-01-10  Simon Josefsson  <jas@extundo.com>
84264
84265         * lib/socket_.h: New file.
84266
84267 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84268
84269         * modules/readutmp (Maintainer): Add myself.
84270
84271 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84272
84273         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
84274         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
84275         People who are still concerned with buggy memcmp implementations
84276         can invoke gl_FUNC_MEMCMP themselves.
84277
84278 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84279
84280         * lib/regex_internal.h (BITSET_WORD_BITS):
84281         Work around a bug in 64-bit PGC (before version 6.1-2), where the
84282         preprocessor mishandles large unsigned values as if they were signed.
84283         Problem reported by Claudio Fontana in
84284         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
84285
84286 2006-01-10  Jim Meyering  <jim@meyering.net>
84287
84288         Avoid the double-free (first in fts_read, second in fts_close) that
84289         would occur when an `active' directory is made inaccessible (e.g.,
84290         via chmod a-x) during a traversal.
84291         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
84292         before returning.  Reproduce this failure by
84293         mkdir -p a/b; cd a; chmod a-x . b
84294         Reported by Stavros Passas.
84295
84296         Sync from coreutils.
84297         * lib/sha1.c: Tweak grammar in a comment.
84298
84299 2006-01-10  Jim Meyering  <jim@meyering.net>
84300
84301         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
84302         Patch by Joerg Sonnenberger.
84303
84304 2006-01-10  Bruno Haible  <bruno@clisp.org>
84305
84306         * modules/readutmp: Depend on module free.
84307         * modules/strtok_r: Depend on module restrict.
84308
84309 2006-01-10  Bruno Haible  <bruno@clisp.org>
84310
84311         * modules/gettext (configure.ac): Add an invocation of
84312         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
84313
84314 2006-01-10  Bruno Haible  <bruno@clisp.org>
84315
84316         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
84317         Reported by Werner Lemberg <wl@gnu.org>.
84318
84319 2006-01-10  Bruno Haible  <bruno@clisp.org>
84320
84321         * lib/localcharset.c: Update from GNU gettext.
84322
84323 2006-01-10  Bruno Haible  <bruno@clisp.org>
84324
84325         * lib/argp.h (__const): Remove macro. Use const instead.
84326         * lib/argp-fmtstream.h (__const): Likewise.
84327         * lib/glob_.h (__const): Remove macro.
84328         * lib/glob-libc.h: Use const instead of __const.
84329
84330 2006-01-10  Bruno Haible  <bruno@clisp.org>
84331
84332         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
84333         variable.
84334         Needed to avoid an automake error regarding the 'gettext' module.
84335
84336 2006-01-09  Simon Josefsson  <jas@extundo.com>
84337
84338         * modules/inet_ntop (Depends-on): Add restrict.
84339
84340 2006-01-09  Simon Josefsson  <jas@extundo.com>
84341
84342         * modules/gc-rijndael-tests (License): Put under LGPL.
84343
84344         * modules/gc-des-tests (License): Likewise.
84345
84346         * modules/gc-arcfour-tests (License): Likewise.
84347
84348         * modules/gc-arctwo-tests (License): Likewise.
84349
84350         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
84351
84352         * modules/gc-hmac-sha1-tests (Files): Likewise.
84353
84354         * modules/gc-hmac-md5-tests (License): Likewise.
84355
84356         * modules/gc-sha1-tests (License): Likewise.
84357
84358         * modules/gc-md5-tests (License): Likewise.
84359
84360         * modules/gc-md4-tests (License): Likewise.
84361
84362         * modules/gc-md2-tests (License): Likewise.
84363
84364         * modules/gc-tests (License): Likewise.
84365
84366         * modules/des-tests (License): Likewise.
84367
84368         * modules/md4-tests (License): Likewise.
84369
84370         * modules/md2-tests (License): Likewise.
84371
84372 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84373
84374         Sync from coreutils:
84375
84376         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
84377         * modules/lib-ignore: New file.
84378         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
84379         chdir-safer.m4, lchmod.m4.
84380         * modules/openat: Add mkdirat.c, openat-priv.h.
84381
84382 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84383
84384         Sync from coreutils.
84385         * m4/lib-ignore.m4: New file.
84386         * m4/lchmod.m4: New file.
84387
84388 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84389
84390         Sync from coreutils.
84391         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
84392         for write access: POSIX says that must fail.
84393         * lib/fts.c (diropen): Likewise.
84394         * lib/save-cwd.c (save_cwd): Likewise.
84395         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
84396         well, for minor improvements on hosts that lack O_DIRECTORY.
84397         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
84398         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
84399         Fall back on chown if open failed with EACCES.
84400
84401         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
84402         Report an error at compile-time if only a 1-second nominal clock
84403         resolution is found.
84404
84405         * lib/lchmod.h: New file.
84406         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
84407         (make_dir_parents): Use lchown rather than chown, and
84408         lchmod rather than chmod.
84409
84410         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
84411         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
84412         "proc" reported by n0dalus.
84413
84414         * lib/mountlist.c: Include <limits.h>.
84415         (dev_from_mount_options)
84416         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
84417         New function.  It no longer assumes "dev=" has the System V meaning
84418         on Linux (since it doesn't).  It also parses "dev=" more carefully.
84419         (read_file_system_list)
84420         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
84421         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
84422         dev= in that case.
84423
84424         * lib/posixtm.h (PDS_PRE_2000): New macro.
84425         * lib/posixtm.c (year): Arg is now syntax_bits rather than
84426         allow_century.  All usages changed.  Reject dates outside the range
84427         1969-1999 if PDS_PRE_2000 is used.
84428
84429 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84430
84431         Sync from coreutils.
84432         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
84433         (Time of day items): Mention the possibility of leap seconds.
84434         Problem reported by Dr. David Alan Gilbert.
84435
84436 2006-01-09  Jim Meyering  <jim@meyering.net>
84437
84438         Sync from coreutils.
84439
84440         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
84441
84442         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
84443
84444         * lib/modechange.c (mode_compile): Reject an invalid mode string
84445         that starts with an octal digit.  From Andreas Gruenbacher.
84446
84447         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
84448         and dup to open_safer and dup_safer, respectively.
84449         (openat_permissive): Fix typo in comment.
84450
84451         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
84452         "gettext.h"; either no longer needed or are guaranteed by openat.h.
84453         (_): Remove; no longer needed.
84454         (openat): Renamed from rpl_openat; no need for rpl_openat
84455         since openat.h renames openat for us.
84456         Replace most of the body with a call to openat_permissive,
84457         to avoid duplicate code.
84458         Port to (probably hypothetical) environments were mode_t is
84459         wider than int.
84460         (openat_permissive): Require mode arg, so that we can check
84461         types better.  Put it just after flags.  Change cwd failure
84462         indicator from pointer-to-bool to pointer-to-errno-value.
84463         All callers changed.
84464         Invoke openat_save_fail and/or openat_restore_fail if
84465         cwd_errno is null, so that openat can call us.
84466         (openat_permissive, fdopendir, fstatat, unlinkat):
84467         Simplify errno handling to avoid some duplicate code,
84468         as it's OK to set errno on success.
84469         * lib/openat.h: Revamp code so that function macros depend on
84470         __OPENAT_PREFIX only, not also on AT_FDCWD.
84471         (openat_ro): Remove.  Caller changed to use openat_permissive.
84472         (openat_permissive): Now a macro, if not a function.
84473         (openat_restore_fail, openat_save_fail): Now always functions,
84474         since mkdirat needs them even if __OPENAT_PREFIX is defined.
84475
84476         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
84477         and openat.c.
84478         * lib/mkdirat.c: Include openat-priv.h.
84479         Remove definitions of macros defined therein.
84480         * lib/openat.c: Likewise.
84481
84482         * lib/mkdirat.c (mkdirat): New file and function.
84483         * lib/openat.h (mkdirat): Declare.
84484
84485         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
84486
84487         * lib/openat.h (openat_permissive): Declare.
84488         (openat_ro): Define.
84489
84490         * lib/openat.c (EXPECTED_ERRNO): New macro.
84491         (openat_permissive): New function -- used in remove.c rewrite.
84492         (all functions): Set errno just before returning, only if there
84493         was an actual failure.
84494         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
84495
84496         Emulate openat-family functions using Linux's procfs, if possible.
84497         Idea and some code based on Ulrich Drepper's glibc changes.
84498
84499         * lib/openat.c: (BUILD_PROC_NAME): New macro.
84500         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
84501         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
84502         before falling back on save_cwd and restore_cwd.
84503         (fdopendir, fstatat, unlinkat): Likewise.
84504
84505         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84506         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84507
84508         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84509         as second argument to va_arg.  Otherwise, some versions of gcc
84510         warn that `if this code is reached, the program will abort'.
84511
84512 2006-01-09  Jim Meyering  <jim@meyering.net>
84513
84514         Sync from coreutils.
84515         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84516         Require openat-priv.h.
84517
84518 2006-01-09  Bruno Haible  <bruno@clisp.org>
84519
84520         * modules/strnlen (Include): Use strnlen.h.
84521
84522 2006-01-09  Bruno Haible  <bruno@clisp.org>
84523
84524         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84525
84526 2006-01-09  Bruno Haible  <bruno@clisp.org>
84527
84528         * lib/sysexit_.h (EX_OK): New macro.
84529         Suggested by Martin Lambers <marlam@marlam.de>.
84530
84531 2006-01-09  Bruno Haible  <bruno@clisp.org>
84532
84533         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84534         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84535
84536 2006-01-09  Bruno Haible  <bruno@clisp.org>
84537
84538         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84539         numbers.
84540
84541 2006-01-09  Bruno Haible  <bruno@clisp.org>
84542
84543         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84544         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84545         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84546         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84547
84548 2006-01-09  Bruno Haible  <bruno@clisp.org>
84549
84550         * build-aux/javacomp.sh.in: New file, moved from lib/.
84551         * modules/javacomp-script (Files): Update.
84552         (configure.ac): Add AC_CONFIG_FILES invocation.
84553         (EXTRA_DIST): Remove variable.
84554
84555         * build-aux/javaexec.sh.in: New file, moved from lib/.
84556         * modules/javaexec (Files): Update.
84557         (configure.ac): Add AC_CONFIG_FILES invocation.
84558         (EXTRA_DIST): Remove javaexec.sh.in.
84559
84560         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84561         * modules/csharpcomp-script (Files): Update.
84562         (configure.ac): Add AC_CONFIG_FILES invocation.
84563         (EXTRA_DIST): Remove variable.
84564
84565         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84566         * modules/csharpexec (Files): Update.
84567         (configure.ac): Add AC_CONFIG_FILES invocation.
84568         (EXTRA_DIST): Remove csharpexec.sh.in.
84569
84570 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84571
84572         Sync from coreutils.
84573
84574         Add POSIX ACL support
84575         * lib/acl.h (copy_acl, set_acl): Add declarations.
84576         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84577         systems other than Linux.
84578         (chmod_or_fchmod): New function: use fchmod when possible,
84579         and chmod otherwise.
84580         (file_has_acl): Add a POSIX ACL implementation, with a
84581         Linux-specific subcase.
84582         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84583         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84584         acls are unsupported.
84585         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84586         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84587         are unsupported.
84588
84589 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84590
84591         Sync from coreutils.
84592         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84593
84594 2006-01-07  Bruno Haible  <bruno@clisp.org>
84595
84596         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84597         gl_EARLY.
84598
84599 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84600
84601         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84602         Problem reported for Mingw by Mark Junker.
84603
84604 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84605
84606         * README: Gnulib normally doesn't generate a tarball.
84607
84608 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84609
84610         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84611         long int, not int, for nanosecond counts, so that people who are
84612         used to POSIX struct timespec won't be surprised.  Reported by Jim
84613         Meyering.
84614
84615 2005-12-28  Bruno Haible  <bruno@clisp.org>
84616
84617         * build-aux/config.rpath: Update from GNU gettext.
84618
84619 2005-12-16  Jim Meyering  <jim@meyering.net>
84620
84621         * modules/fprintftime: New module.
84622         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84623
84624 2005-12-16  Jim Meyering  <jim@meyering.net>
84625
84626         * m4/fprintftime.m4: New file.
84627
84628 2005-12-16  Jim Meyering  <jim@meyering.net>
84629
84630         * lib/fprintftime.c, lib/fprintftime.h: New files.
84631
84632 2005-12-15  Simon Josefsson  <jas@extundo.com>
84633
84634         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84635         new m4/socklen.m4.
84636
84637 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84638
84639         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84640         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84641
84642 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84643
84644         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84645         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84646         struct uparams is valid. Fall back to the default values if it is
84647         not.
84648
84649 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84650
84651         * modules/argp (Files): Add argp-pin.c
84652         (Depends-on): dirname
84653         (lib_SOURCES): Add argp-pin.c
84654
84655 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84656
84657         * m4/argp.m4:  Check if program_invocation_name and
84658         program_invocation_short_name are declared and define appropriate
84659         macros if they are not.
84660
84661 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84662
84663         * lib/argp-help.c (__argp_base_name): New function
84664         (__argp_short_program_name): Rewrite using __argp_base_name
84665         * lib/argp-namefrob.h: Define program_invocation_name and
84666         program_invocation_short_name if requested
84667         (__argp_base_name): Add prototype
84668         * lib/argp-parse.c (argp_def): Use gettext wrappers
84669         (argp_default_parser): Use __argp_base_name
84670         * lib/argp-pin.c: New file. Defines program_invocation_name and
84671         program_invocation_short_name on systems that lack them.
84672
84673 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84674
84675         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84676         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84677         porting problem reported by Georg Schwarz in
84678         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84679
84680 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84681
84682         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84683         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84684         porting problem reported by Georg Schwarz in
84685         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84686
84687 2005-12-05  Bruno Haible  <bruno@clisp.org>
84688
84689         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84690         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84691         Reported by Mark Junker <mjscod@gmx.de>.
84692
84693 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84694
84695         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84696         Use implementation from Albert Chin, with some
84697         comments/corrections by Stepan Kasal and myself.
84698
84699 2005-12-02  Bruno Haible  <bruno@clisp.org>
84700
84701         * gnulib-tool (func_import): Accept GPLed build tool modules when
84702         --lgpl is given.
84703         * modules/csharpcomp-script: New file.
84704         * modules/csharpcomp: Depend on it.
84705         * modules/javacomp-script: New file.
84706         * modules/javacomp: Depend on it.
84707         Suggested by Simon Josefsson.
84708
84709 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84710
84711         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84712         statement, to work around an HP-UX 10.20 compiler bug reported by
84713         Peter O'Gorman.
84714
84715 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84716
84717         * modules/savedir (Depends-on): Add openat.
84718
84719 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84720
84721         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84722         (uintmax_t) [defined uintmax_t]: Do not declare.
84723         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84724         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84725         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84726         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84727         sake of portability to weird hosts that C allows (though we don't
84728         know of any practical examples).
84729
84730         * lib/savedir.h (fdsavedir): New decl.
84731         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84732         contains most of the former guts of savedir.
84733         (savedir): Use savedirstream.
84734         Include "openat.h".
84735
84736 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84737
84738         * modules/obstack (Files): Add m4/ulonglong.m4.
84739         Problem reported by Davide Angelocola.
84740
84741 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84742
84743         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84744         coreutils no longer futzes with rounding modes.
84745
84746 2005-11-14  Jim Meyering  <jim@meyering.net>
84747
84748         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84749         replacement of mkstemp.
84750
84751 2005-11-10  Simon Josefsson  <jas@extundo.com>
84752
84753         * lib/readline.c: Remove EOL.
84754
84755 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84756
84757         * modules/gethrxtime (Depends-on): Add gettime.
84758
84759 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84760
84761         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84762         or gettimeofday; no longer needed.
84763
84764 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84765
84766         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84767         time business.
84768         (gethrxtime) [! (HAVE_NANOUPTIME
84769         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84770         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84771         our own approximation.
84772
84773 2005-11-08  Eric Blake  <ebb9@byu.net>
84774
84775         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84776
84777 2005-11-08  Eric Blake  <ebb9@byu.net>
84778
84779         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84780
84781 2005-11-04  Bruno Haible  <bruno@clisp.org>
84782
84783         * gnulib-tool: Implement --update mode.
84784
84785 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84786
84787         Fix porting problem reported by Theodoros V. Kalamatianos.
84788         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84789         Don't assume that futimes failing means we must fail.
84790
84791 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84792
84793         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84794         variables to suggest the intended function of the PATH_MAX check.
84795
84796 2005-10-30  Kean Johnston  <jkj@sco.com>
84797
84798         Trivial changes to support SCO systems.
84799         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84800         as PATH_MAX.
84801         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84802         where __ptr is null when no I/O is pending.
84803
84804 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84805
84806         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84807         leave errno alone.  Problem reported by Dmitry V. Levin.
84808
84809 2005-10-28  Simon Josefsson  <jas@extundo.com>
84810
84811         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84812         Test more.
84813
84814         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84815
84816         * modules/md2, modules/md2-tests: New files.
84817
84818 2005-10-28  Simon Josefsson  <jas@extundo.com>
84819
84820         * m4/inet_ntop.m4: More tests.
84821
84822         * m4/gc-md2.m4, md2.m4: New file.
84823
84824 2005-10-28  Simon Josefsson  <jas@extundo.com>
84825
84826         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84827         "restrict" keywords, as per POSIX.  Protect the function
84828         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84829         Don't use K&R prototypes.  Check the sprintf return values.
84830         Re-define EAFNOSUPPORT if not present.  Indent.
84831
84832         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84833         suggested by Bruno Haible <bruno@clisp.org>.
84834
84835         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84836
84837         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84838
84839         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84840         libgcrypt).
84841
84842         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84843
84844         * lib/md2.h, lib/md2.c: New files.
84845
84846 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84847
84848         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84849         errno alone.  Problem reported by Frederic Jolliton.
84850
84851 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84852
84853         * modules/verify (License): Change from GPL to LGPL.  This is a
84854         tiny module and there are apparently near-equivalents that are
84855         under the BSD license.
84856
84857 2005-10-24  Simon Josefsson  <jas@extundo.com>
84858
84859         * modules/sha1: Relicense to LGPL.
84860
84861 2005-10-24  Simon Josefsson  <jas@extundo.com>
84862
84863         * lib/md4.h: Shrink buffer size, now that we changed the type.
84864
84865 2005-10-23  Simon Josefsson  <jas@extundo.com>
84866
84867         * gnulib-tool (func_import): Fix --tests-base.
84868
84869 2005-10-22  Simon Josefsson  <jas@extundo.com>
84870
84871         * modules/arcfour (Depends-on): Need stdint.
84872
84873 2005-10-22  Simon Josefsson  <jas@extundo.com>
84874
84875         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84876         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84877
84878 2005-10-22  Simon Josefsson  <jas@extundo.com>
84879
84880         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84881         suggested by Bruno Haible <bruno@clisp.org>.
84882
84883 2005-10-22  Simon Josefsson  <jas@extundo.com>
84884
84885         * lib/crc.h: Include stddef.h, for size_t.
84886
84887 2005-10-22  Simon Josefsson  <jas@extundo.com>
84888
84889         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84890         arcfour_context struct (simplify test vector testing in GNU
84891         Shishi).
84892
84893 2005-10-21  Simon Josefsson  <jas@extundo.com>
84894
84895         * modules/des, modules/des-tests: New files.
84896
84897         * modules/gc-des, modules/gc-des-tests: New files.
84898
84899         * tests/test-des.c, tests/test-gc-des.c: New file.
84900
84901 2005-10-21  Simon Josefsson  <jas@extundo.com>
84902
84903         * modules/arctwo, modules/arctwo-tests: New files.
84904
84905         * tests/test-arctwo.c: New file.
84906
84907         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84908
84909         * tests/test-gc-arctwo.c: New file.
84910
84911 2005-10-21  Simon Josefsson  <jas@extundo.com>
84912
84913         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84914         Bruno Haible <bruno@clisp.org>.
84915
84916         * m4/gc-des.m4: New file.
84917
84918 2005-10-21  Simon Josefsson  <jas@extundo.com>
84919
84920         * m4/arctwo.m4: New file.
84921
84922         * m4/gc-arctwo.m4: New file.
84923
84924 2005-10-21  Simon Josefsson  <jas@extundo.com>
84925
84926         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84927         block.
84928
84929 2005-10-21  Simon Josefsson  <jas@extundo.com>
84930
84931         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84932         <bruno@clisp.org>.
84933
84934         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84935
84936         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84937         Bruno Haible <bruno@clisp.org>.
84938
84939         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84940         <bruno@clisp.org>.
84941
84942 2005-10-21  Simon Josefsson  <jas@extundo.com>
84943
84944         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84945
84946 2005-10-21  Simon Josefsson  <jas@extundo.com>
84947
84948         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84949
84950 2005-10-21  Simon Josefsson  <jas@extundo.com>
84951
84952         * lib/des.h, lib/des.c: New files.
84953
84954         * lib/gc-gnulib.c: Support DES.c
84955
84956 2005-10-21  Simon Josefsson  <jas@extundo.com>
84957
84958         * lib/arctwo.h, lib/arctwo.c: New files.
84959
84960         * lib/gc-gnulib.c: Support ARCTWO.
84961
84962 2005-10-21  Simon Josefsson  <jas@extundo.com>
84963
84964         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84965         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84966
84967 2005-10-21  Simon Josefsson  <jas@extundo.com>
84968
84969         * gnulib-tool (func_import, func_create_testdir): Define automake
84970         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84971         Makefile.am snippet),
84972         suggested by Bruno Haible <bruno@clisp.org>.
84973
84974         * modules/gc (Makefile.am): Use it.
84975
84976 2005-10-21  Bruno Haible  <bruno@clisp.org>
84977
84978         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84979         patch.
84980
84981 2005-10-19  Simon Josefsson  <jas@extundo.com>
84982
84983         * tests/test-gc-rijndael.c: New file.
84984
84985         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84986
84987 2005-10-19  Simon Josefsson  <jas@extundo.com>
84988
84989         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84990         interface too.
84991
84992 2005-10-19  Simon Josefsson  <jas@extundo.com>
84993
84994         * tests/test-gc-arcfour.c: New file.
84995
84996         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84997
84998 2005-10-19  Simon Josefsson  <jas@extundo.com>
84999
85000         * modules/gc-md4, modules/gc-md4-tests: New file.
85001
85002         * tests/test-gc-md4.c: New file.
85003
85004 2005-10-19  Simon Josefsson  <jas@extundo.com>
85005
85006         * m4/gc-md4.m4: New file.
85007
85008 2005-10-19  Simon Josefsson  <jas@extundo.com>
85009
85010         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
85011         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
85012         <kasal@ucw.cz>.
85013
85014 2005-10-19  Simon Josefsson  <jas@extundo.com>
85015
85016         * m4/gc-arcfour.m4: New file.
85017
85018         * m4/gc-rijndael.m4: New file.
85019
85020 2005-10-19  Simon Josefsson  <jas@extundo.com>
85021
85022         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
85023
85024 2005-10-19  Simon Josefsson  <jas@extundo.com>
85025
85026         * lib/gc-gnulib.c: Support ARCFOUR.
85027
85028 2005-10-19  Simon Josefsson  <jas@extundo.com>
85029
85030         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
85031         support.
85032
85033         * lib/gc.h: Add ECB enum type.
85034
85035         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
85036
85037 2005-10-18  Simon Josefsson  <jas@extundo.com>
85038
85039         * tests/test-md5.c: New file.
85040
85041         * modules/md5-tests: New file.
85042
85043 2005-10-18  Simon Josefsson  <jas@extundo.com>
85044
85045         * tests/test-md4.c: New file.
85046
85047         * modules/md4, modules/md4-tests: New files.
85048
85049 2005-10-18  Simon Josefsson  <jas@extundo.com>
85050
85051         * m4/md4.m4: New file.
85052
85053 2005-10-18  Simon Josefsson  <jas@extundo.com>
85054
85055         * lib/md4.h, lib/md4.c: New files, based on md5.?.
85056
85057 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
85058
85059         * gnulib-tool (func_create_testdir): Omit the second check whether
85060         BUILT_SOURCES in nonempty.
85061
85062 2005-10-17  Simon Josefsson  <jas@extundo.com>
85063
85064         * tests/test-rijndael.c: New file.
85065
85066 2005-10-17  Simon Josefsson  <jas@extundo.com>
85067
85068         * modules/sha1: Depend on stdint instead of md5.
85069
85070         * modules/md5: Depend on stdint, remove uint32_t.
85071
85072 2005-10-17  Simon Josefsson  <jas@extundo.com>
85073
85074         * modules/gc-sha1-tests: New file.
85075
85076         * tests/test-gc-sha1.c: New file.
85077
85078 2005-10-17  Simon Josefsson  <jas@extundo.com>
85079
85080         * m4/md5.m4: Remove call to uint32_t.m4.
85081
85082 2005-10-17  Simon Josefsson  <jas@extundo.com>
85083
85084         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
85085
85086         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
85087         md5.h.
85088
85089         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
85090
85091         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
85092
85093 2005-10-17  Simon Josefsson  <jas@extundo.com>
85094
85095         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
85096
85097 2005-10-17  Simon Josefsson  <jas@extundo.com>
85098
85099         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
85100
85101 2005-10-17  Simon Josefsson  <jas@extundo.com>
85102
85103         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
85104
85105         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
85106
85107 2005-10-17  Bruno Haible  <bruno@clisp.org>
85108
85109         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
85110         that it can also be used in a test.
85111
85112 2005-10-16  Bruno Haible  <bruno@clisp.org>
85113
85114         * gnulib-tool (func_emit_tests_Makefile_am): Also define
85115         TESTS_ENVIRONMENT, so that individual tests can augment it.
85116
85117         * gnulib-tool (func_create_testdir): Use an intermediate target for
85118         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
85119         macros, like $(ALLOCA_H), which cannot be passed through the command
85120         line.
85121
85122 2005-10-15  Simon Josefsson  <jas@extundo.com>
85123
85124         * modules/rijndael-tests: New file.
85125
85126         * modules/rijndael: New file.
85127
85128 2005-10-15  Simon Josefsson  <jas@extundo.com>
85129
85130         * m4/rijndael.m4: New file.
85131
85132 2005-10-15  Simon Josefsson  <jas@extundo.com>
85133
85134         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
85135
85136         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
85137
85138 2005-10-14  Simon Josefsson  <jas@extundo.com>
85139
85140         * tests/test-arcfour.c: New file.
85141
85142         * modules/arcfour, modules/arcfour-tests: New files.
85143
85144 2005-10-14  Simon Josefsson  <jas@extundo.com>
85145
85146         * m4/arcfour.m4: New file.
85147
85148 2005-10-14  Simon Josefsson  <jas@extundo.com>
85149
85150         * lib/arcfour.h, lib/arcfour.c: New files.
85151
85152 2005-10-14  Roland McGrath  <roland@redhat.com>
85153
85154         Import from libc.  [BZ #1331]
85155         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
85156         macro argument.
85157         Reported by Matej Vela <vela@debian.org>.
85158
85159 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85160
85161         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
85162         include <wchar.h>; no longer needed.
85163
85164 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85165
85166         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
85167
85168 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
85169         and  Ulrich Drepper  <drepper@redhat.com>
85170
85171         Import from libc.
85172         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
85173         instead of inline stream orientation test and two separate
85174         function calls.  Pay no attention to USE_IN_LIBIO.
85175
85176 2005-10-13  Simon Josefsson  <jas@extundo.com>
85177
85178         * modules/gc-hmac-md5-tests: New file.
85179
85180         * tests/test-gc-hmac-sha1.c: New file.
85181
85182         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
85183
85184         * modules/gc-hmac-md5-tests: New file.
85185
85186         * tests/test-gc-md5.c: New file.
85187
85188         * modules/gc-md5-tests: New file.
85189
85190 2005-10-13  Simon Josefsson  <jas@extundo.com>
85191
85192         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
85193         Move memory allocation outside of loop.
85194
85195 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
85196
85197         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
85198         intermediate directory is in a read-only file system.  Problem
85199         reported by Eric Blake.
85200
85201 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
85202
85203         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
85204
85205 2005-10-12  Simon Josefsson  <jas@extundo.com>
85206
85207         * tests/test-hmac-sha1.c: New file.
85208
85209         * modules/hmac-sha1-tests: New file.
85210
85211         * modules/hmac-sha1: New file.
85212
85213 2005-10-12  Simon Josefsson  <jas@extundo.com>
85214
85215         * modules/gc-sha1: New file.
85216
85217 2005-10-12  Simon Josefsson  <jas@extundo.com>
85218
85219         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
85220
85221         * tests/test-gc-pbkdf2-sha1.c: New file.
85222
85223 2005-10-12  Simon Josefsson  <jas@extundo.com>
85224
85225         * modules/gc-md5, modules/gc-hmac-md5: New files.
85226
85227         * modules/gc (Files): Remove md5, memxor and hmac files.
85228
85229 2005-10-12  Simon Josefsson  <jas@extundo.com>
85230
85231         * m4/gc-pbkdf2-sha1.m4: New file.
85232
85233         * m4/gc-hmac-sha1.m4: New file.
85234
85235         * m4/gc-sha1: New file.
85236
85237         * m4/hmac-sha1.m4: New file.
85238
85239 2005-10-12  Simon Josefsson  <jas@extundo.com>
85240
85241         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
85242
85243         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
85244
85245 2005-10-12  Simon Josefsson  <jas@extundo.com>
85246
85247         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
85248         suggested by Bruno Haible <bruno@clisp.org>.
85249
85250 2005-10-12  Simon Josefsson  <jas@extundo.com>
85251
85252         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
85253
85254 2005-10-12  Simon Josefsson  <jas@extundo.com>
85255
85256         * lib/gc-pbkdf2-sha1.c: New file.
85257
85258         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
85259
85260 2005-10-12  Simon Josefsson  <jas@extundo.com>
85261
85262         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
85263
85264         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
85265
85266 2005-10-12  Simon Josefsson  <jas@extundo.com>
85267
85268         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
85269         GC_USE_HMAC_MD5, respectively.
85270
85271         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
85272         (gc_md5): Fix typo.
85273
85274         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
85275
85276         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
85277
85278         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
85279
85280 2005-10-12  Bruno Haible  <bruno@clisp.org>
85281
85282         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
85283         Reported by Stepan Kasal <kasal@ucw.cz>.
85284
85285 2005-10-11  Simon Josefsson  <jas@extundo.com>
85286
85287         * tests/test-crc.c: New file.
85288
85289         * modules/crc, modules/crc-tests: New files.
85290
85291 2005-10-11  Simon Josefsson  <jas@extundo.com>
85292
85293         * m4/crc.m4: New file.
85294
85295 2005-10-11  Simon Josefsson  <jas@extundo.com>
85296
85297         * lib/gc.h: Add gc_hash and gc_hash_buffer.
85298
85299         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
85300
85301         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
85302
85303 2005-10-11  Simon Josefsson  <jas@extundo.com>
85304
85305         * lib/crc.h, lib/crc.c: New files.
85306
85307         * lib/gc.h (gc_hash_buffer): Add doc.
85308
85309 2005-10-11  Bruno Haible  <bruno@clisp.org>
85310
85311         * modules/c-strcasestr: New file.
85312         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
85313
85314 2005-10-11  Bruno Haible  <bruno@clisp.org>
85315
85316         * modules/c-strcase: New file.
85317         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
85318
85319 2005-10-11  Bruno Haible  <bruno@clisp.org>
85320
85321         * lib/strcasecmp.c: Include limits.h.
85322         (strcasecmp): Avoid integer overflow on exotic platforms.
85323         * lib/strncasecmp.c: Include limits.h.
85324         (strncasecmp): Avoid integer overflow on exotic platforms.
85325         Reported by Paul Eggert.
85326
85327 2005-10-11  Bruno Haible  <bruno@clisp.org>
85328
85329         * lib/c-strcasestr.h: New file, from GNU gettext.
85330         * lib/c-strcasestr.c: New file, from GNU gettext.
85331
85332 2005-10-11  Bruno Haible  <bruno@clisp.org>
85333
85334         * lib/c-strcase.h: New file, from GNU gettext.
85335         * lib/c-strcasecmp.c: New file, from GNU gettext.
85336         * lib/c-strncasecmp.c: New file, from GNU gettext.
85337
85338 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85339
85340         * modules/mempcpy (License): GPL -> LGPL.
85341         * modules/strchrnul (License): Likewise.
85342         * modules/sysexits (License): Likewise.
85343
85344 2005-10-08  Simon Josefsson  <jas@extundo.com>
85345
85346         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
85347
85348 2005-10-07  Simon Josefsson  <jas@extundo.com>
85349
85350         * m4/memxor.m4: Remove gl_C_RESTRICT call.
85351
85352 2005-10-06  Simon Josefsson  <jas@extundo.com>
85353
85354         * tests/test-hmac-md5.c: New file.
85355
85356         * modules/hmac-md5-tests: New file.
85357
85358         * modules/hmac-md5: New file.
85359
85360 2005-10-06  Simon Josefsson  <jas@extundo.com>
85361
85362         * m4/hmac-md5.m4: New file.
85363
85364         * m4/memxor.m4: Require gl_C_RESTRICT.
85365
85366 2005-10-06  Simon Josefsson  <jas@extundo.com>
85367
85368         * lib/memxor.c (memxor): Avoid casts and warnings.
85369
85370 2005-10-06  Simon Josefsson  <jas@extundo.com>
85371
85372         * lib/hmac-md5.c: New file.
85373
85374         * lib/hmac.h: New file.
85375
85376 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85377
85378         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
85379         promotes to int, not unsigned int, to catch the AIX 5.3
85380         compiler bug.
85381
85382 2005-10-05  Simon Josefsson  <jas@extundo.com>
85383
85384         * modules/memxor: New file.
85385
85386         * modules/iconv (Files): Move config.rpath to havelib, it is used
85387         there.
85388
85389         * modules/havelib (Files): Add config.rpath.
85390
85391 2005-10-05  Simon Josefsson  <jas@extundo.com>
85392
85393         * m4/memxor.m4: New file.
85394
85395 2005-10-05  Simon Josefsson  <jas@extundo.com>
85396
85397         * lib/memxor.c (memxor): Fix compiler error.
85398
85399         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
85400         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
85401
85402         * lib/memxor.h, lib/memxor.c: New files.
85403
85404         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
85405         we assume all systems have it, suggested by Jim Meyering
85406         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
85407         any systems lack sys/socket.h; mingw32 is known to lack it, but we
85408         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
85409         same reasons.
85410
85411 2005-10-05  Simon Josefsson  <jas@extundo.com>
85412
85413         * config/srclist.txt: Add glibc bug 1423 for md5.h.
85414
85415 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
85416
85417         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
85418         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
85419         needed, since the source code now assumes these .h files.
85420
85421 2005-10-05  Derek Price  <derek@ximbiot.com>
85422
85423         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
85424
85425 2005-10-05  Bruno Haible  <bruno@clisp.org>
85426
85427         * modules/stdint (License): Change to LGPL.
85428
85429 2005-10-04  Simon Josefsson  <jas@extundo.com>
85430
85431         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
85432         D. Baushke" <mdb@gnu.org>.
85433
85434 2005-10-04  Bruno Haible  <bruno@clisp.org>
85435
85436         * lib/verify.h (verify_true): Provide alternative definition for C++.
85437
85438 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
85439
85440         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
85441         (SSIZE_MAX): New macro, if not already defined.
85442         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
85443         than 2 GiB.
85444
85445 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85446
85447         Sync from coreutils.
85448         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
85449         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
85450         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
85451         ULLONG_MAX doesn't work with 2.7.2.1.
85452
85453 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85454
85455         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
85456         From Ben Pfaff.
85457
85458         * modules/exclude (Depends-on): Depend on verify.
85459         * modules/strtoimax (Depends-on): Likewise.
85460         * modules/utimecmp (Depends-on): Likewise.
85461
85462 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85463
85464         * lib/exclude.c: Include verify.h.
85465         (verify): Remove.  All callers changed to use verify.h's version.
85466         * lib/strtoimax.c: Likewise.
85467         * lib/utimecmp.c: Likewis.e
85468
85469         Sync from coreutils.
85470         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
85471         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
85472         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
85473         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
85474         bother returning ENOSYS if settimeofday or stime fails; just let
85475         them return whatever errno they want to return.
85476         * lib/utimens.c: Include unistd.h, for dup2.
85477         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
85478         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
85479
85480 2005-10-02  Jim Meyering  <jim@meyering.net>
85481
85482         Sync from coreutils.
85483         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
85484         from glibc-2.2.5 that fails for read-only files.
85485
85486 2005-10-02  Jim Meyering  <jim@meyering.net>
85487
85488         Sync from coreutils.
85489         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
85490         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
85491         `#if HAVE_CONFIG_H'.
85492         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
85493         Remove AT_FDCWD test.
85494         Do not consume the fd unless successful.
85495         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
85496         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
85497         block, so that we don't even try to compile it if settimeofday is
85498         available.  This works around a compilation failure on OSF1 V5.1,
85499         due to stime requiring a `long int*' while tv_sec is `int'.
85500
85501 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
85502
85503         Sync from coreutils.
85504         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
85505         against `yes', rather than just testing for nonempty.
85506
85507 2005-10-01  Simon Josefsson  <jas@extundo.com>
85508
85509         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85510         and Darwin.
85511
85512         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85513         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85514         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85515         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85516         Check if struct addrinfo is declared.
85517
85518 2005-10-01  Simon Josefsson  <jas@extundo.com>
85519
85520         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85521         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85522         AI_* and EAI_* definitions.  Protect function declarations.
85523
85524 2005-10-01  Jim Meyering  <jim@meyering.net>
85525
85526         Sync from coreutils.
85527
85528         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85529         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85530         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85531         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85532         in the inet and nsl libraries.  Required on Solaris 5.7.
85533
85534 2005-10-01  Jim Meyering  <jim@meyering.net>
85535
85536         Sync from coreutils.
85537         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85538         in the inet and nsl libraries.  Required on Solaris 5.7.
85539
85540 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85541
85542         * lib/getdelim.c (getdelim): Remove unused variables.
85543
85544 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85545
85546         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85547         so that the code works even with ancient cpp.  Portability problem
85548         with GCC 2.7.2.1 reported by Thomas M.Ott.
85549
85550 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85551
85552         * modules/regex (Depends-on): Add strcase.
85553
85554         * modules/gethostname (Licence): Change from GPL to LGPL, since
85555         gethostname.c is a trivial implementation of a standard library
85556         function.
85557         * modules/poll (License): Change from GPL to LGPL, since it's
85558         derived from LGPL code.
85559
85560 2005-09-27  Jim Meyering  <jim@meyering.net>
85561
85562         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85563         HAVE_CONFIG_H.
85564
85565         * lib/intprops.h (signed_type_or_expr__): Define.
85566         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85567         for unsigned types.
85568
85569 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85570
85571         * lib/verify.h (verify_expr): Remove, replacing with:
85572         (verify_true): New macro that returns true instead of void.
85573         (verify_type__): Remove.
85574         (verify): Use verify_true rather than verify_type__.
85575
85576 2005-09-26  Bruno Haible  <bruno@clisp.org>
85577
85578         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85579         is necessary.
85580         (lib_SOURCES): Remove mbchar.c.
85581         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85582         (Files): Add m4/mbrtowc.m4.
85583         * modules/mbiter: Likewise.
85584         * modules/mbuiter: Likewise.
85585
85586 2005-09-26  Bruno Haible  <bruno@clisp.org>
85587
85588         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85589         compile mbchar.c if they are not both present.
85590         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85591         * m4/mbiter.m4 (gl_MBITER): Likewise.
85592         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85593         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85594         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85595
85596 2005-09-25  Jim Meyering  <jim@meyering.net>
85597
85598         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85599         also uses socklen_t.
85600
85601 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85602
85603         * lib/utimens.c (ENOSYS): Define if not already defined.
85604         (futimens): Support having a null PATH if the file descriptor
85605         is nonnegative.
85606
85607         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85608         Remove.
85609         (__attribute): Define to empty unless GCC 3.1 or later.
85610         This works around a core dump on OpenBSD 3.4, which has GCC
85611         2.95.3, which dumps core when given __attribute__(()).  It also
85612         simplifies other tests, since we really don't want to bother with
85613         worrying about which ancient version of GCC supported what.
85614         Original problem reported by Yoann Vandoorselaere, with part of
85615         the fix suggested by Derek Price.
85616
85617 2005-09-24  Jim Meyering  <jim@meyering.net>
85618
85619         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85620         so we can once again use a positive bitfield width of 1 -- now we
85621         don't have to explain why we were using a bitfield width of 2.
85622
85623 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85624
85625         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85626         and similarly for the other external symbols.  Problem reported
85627         by James Gallager.
85628
85629         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85630         bug reported by Jim Meyering.
85631
85632         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85633         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85634         not needed, since socklen is a prerequisite module.
85635
85636 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85637
85638         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85639         Problem reported by Eric Blake.
85640         (getaddrinfo): Initialize se so that it's not garbage.
85641         Redo internal storage allocation so that it doesn't make unportable
85642         assumptions about alignment.
85643         Fix a memory leak.
85644
85645         * lib/utimens.c (futimens): Use futimesat if available.
85646         Prefer it to futimes since it doesn't have the futimes bug.
85647
85648         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85649         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85650         Instead, declare a function that returns a pointer to an array,
85651         and use verify_type__ to declare the size of the array.
85652         Problem and germ of a solution reported by Bruno Haible.
85653         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85654         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85655
85656 2005-09-23  Jim Meyering  <jim@meyering.net>
85657
85658         Sync from coreutils.
85659         Correct build failure (socklen_t not defined) on at least
85660         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85661         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85662
85663 2005-09-23  Jim Meyering  <jim@meyering.net>
85664
85665         * modules/getaddrinfo (Depends-on): Add socklen.
85666
85667 2005-09-23  Bruno Haible  <bruno@clisp.org>
85668
85669         * tests/test-verify.c: New file.
85670
85671 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85672
85673         Sync from coreutils.
85674
85675         * modules/argmatch (Depends-on): Add verify.
85676         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85677         unistd-safer.
85678         * modules/save-cwd (Depends-on): Likewise.
85679
85680         * modules/openat (Files): Add lib/openat-die.c.
85681         (Depends-on): Remove error, exitfail.
85682         Add dirname.
85683
85684         * modules/verify: New file.
85685         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85686         with "verify" module.
85687
85688 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85689
85690         Sync from coreutils.
85691
85692         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85693         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85694         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85695         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85696         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85697         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85698         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85699         Don't bother checking for string.h, stdlib.h, unistd.h.
85700         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85701         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85702         module's job.
85703         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85704         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85705
85706         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85707         (gl_GETDATE): Use it.
85708
85709         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85710
85711 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85712
85713         Sync from coreutils.
85714
85715         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85716         stat-time.h.
85717         * lib/argmatch.h: Include verify.h
85718         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85719         (ARGMATCH_ASSERT): Remove; unused.
85720         * lib/canonicalize.c: Assume STDC_HEADERS.
85721         * lib/exclude.c: Include "strcase.h".
85722         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85723         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85724         and stdio-safer.h.
85725         (getusershell): Call fopen, not fopen_safer.
85726         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85727         Do not include unistd-safer.h.
85728         (save_cwd): Don't call fd_safer; no longer needed
85729         now that we include fcntl--.h.
85730
85731         * lib/getdate.y (relative_time): New type.
85732         (RELATIVE_TIME_0): New constant.
85733         (parser_control): Use relative_time instead of doing it ourselves.
85734         (%union): Add new relative_time rel member.
85735         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85736         Now typeless.
85737         (relunit, relunit_snumber): Now of type rel.
85738         (zone, rel, relunit, get_date): Adjust to above changes.
85739
85740         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85741         Do not include unistd-safer.h.
85742         (getloadavg): Don't call fd_safer; no longer needed
85743         now that we include fcntl--.h.
85744
85745         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85746         (make_dir_parents): Treat ENOSYS like EEXIST.
85747
85748         Improve quality of diagnostics on restore_cwd failure.
85749         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85750         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85751         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85752         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85753         each time through the loop.  Do not diagnose restore_cwd failure;
85754         that is the caller's job (and perhaps the caller does not care).
85755
85756         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85757         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85758         If the file already exists but is not a directory, don't bother
85759         to try to make its parents.
85760         Close potential file descriptor leak if we can't chdir("/") (!).
85761         Don't always return true if chdir($PWD) fails; return true only
85762         if the requested action was done successfully (except for the
85763         chdir($PWD)).
85764         Don't log final directory unless we actually made it.
85765         Refactor to avoid duplicate code to fix up permissions.
85766         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85767
85768         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85769         to make it a bit faster and (I hope) clearer.
85770         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85771         Fix bug in formats like %2N.
85772
85773         * lib/verify.h: New file.
85774
85775 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85776
85777         Sync from coreutils.
85778         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85779
85780 2005-09-22  Jim Meyering  <jim@meyering.net>
85781
85782         Sync from coreutils.
85783
85784         * m4/lstat.m4 (gl_FUNC_LSTAT):
85785         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85786         Remove obsolete comment.
85787         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85788         * m4/xstrtod.m4: Likewise.
85789
85790         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85791
85792 2005-09-22  Jim Meyering  <jim@meyering.net>
85793
85794         Sync from coreutils.
85795
85796         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85797
85798         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85799         the .tm_year member, since otherwise gcc-4.0 would now warn about
85800         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85801
85802         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85803         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85804
85805         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85806         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85807         when run in a time zone for which daylight savings time is in effect
85808         for the starting date.
85809
85810         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85811         stop us from restricting permissions of just-created absolute-named
85812         directories.
85813         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85814         to restore initial working directory.
85815         * lib/mkdir-p.c (make_dir_parents): New parameter:
85816         different_working_dir, to tell caller if/when we change the working
85817         directory and are unable to return to the initial one.
85818         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85819         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85820         `return false'.  This fixes a bug introduced on 2004-07-30.
85821
85822         * lib/openat.c (fdopendir): Be sure to close the supplied
85823         file descriptor before returning.  This makes our replacement
85824         implementation a little closer to Solaris's, where fdopendir
85825         ties the file descriptor to the returned DIR* pointer.
85826         * lib/openat.c (unlinkat): New function.
85827         * lib/openat.h (unlinkat): Add prototype.
85828         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85829         (openat_restore_fail): Rename from openat_restore_die.
85830         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85831
85832         Provide an alternative to exiting immediately upon save_cwd or
85833         restore_cwd failure.  Now, an application can arrange e.g.,
85834         to perform a longjump in that case.
85835         * lib/openat.c: Include dirname.h.
85836         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85837         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85838         and openat_restore_die rather than calling error directly.
85839         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85840
85841         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85842         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85843         define.
85844
85845         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85846         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85847                             int utc, int nanoseconds);
85848         Background:
85849         date should not have to allocate a megabyte of virtual memory to
85850         handle a format argument like +%1048575T.  When implemented with
85851         strftime, it must allocate such a buffer, use strftime to fill it
85852         in, print it, then free it.
85853         With fprintftime, it simply prints everything and exits.
85854         With no need for memory allocation, that's one fewer way to fail.
85855         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85856         optional field width, not before, so we accept %9:z, not %:9z.
85857         (my_strftime): Be sure to use L_('x') for literals.
85858
85859         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85860         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85861         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85862         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85863         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85864         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85865         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85866         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85867         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85868         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85869         * lib/xgethostname.c, lib/xreadlink.c:
85870         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85871
85872         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85873         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85874         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85875         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85876         and don't include <sys/file.h>).
85877
85878 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85879
85880         Sync from coreutils.
85881
85882         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85883         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85884         [!LDAV_DONE]: Avoid unused variable warning.
85885
85886 2005-09-21  Bruno Haible  <bruno@clisp.org>
85887
85888         * lib/unicodeio.h (unicode_to_mb): New declaration.
85889
85890 2005-09-20  Derek Price  <derek@ximbiot.com>
85891
85892         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85893         getaddrinfo.h.
85894
85895 2005-09-20  Bruno Haible  <bruno@clisp.org>
85896
85897         * gnulib-tool: Remove trailing slashes from the values specified for
85898         --source-base, --m4-base, --tests-base, --aux-dir.
85899         Suggested by Simon Josefsson <jas@extundo.com>.
85900
85901 2005-09-20  Bruno Haible  <bruno@clisp.org>
85902
85903         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85904         func_modules_to_filelist, func_import, func_create_testdir): Make all
85905         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85906         change when gnulib-tool is invoked in a different locale.
85907
85908 2005-09-19  Simon Josefsson  <jas@extundo.com>
85909
85910         * m4/socklen.m4: Fix typo.
85911
85912 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85913
85914         Use a consistent style for including <config.h>.
85915         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85916         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85917         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85918         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85919         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85920         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85921         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85922         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85923         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85924         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85925         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85926         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85927         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85928         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85929         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85930         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85931         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85932         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85933         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85934         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85935         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85936         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85937         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85938         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85939         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85940         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85941         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85942         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85943         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85944         lib/xstrtoumax.c, lib/yesno.c:
85945         Standardize inclusion of config.h.
85946         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85947         lib/inttostr.h:  Removed inclusion of config.h from header files.
85948         * lib/inttostr.c:  Adjusted in-tree users.
85949         * lib/timespec.h: Remove superfluous warning to include config.h.
85950         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85951         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85952         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85953         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85954         config.h with HAVE_CONFIG_H.
85955
85956 2005-09-19  Jim Meyering  <jim@meyering.net>
85957
85958         * modules/pathmax (License): Change to LGPL.
85959
85960 2005-09-19  Derek Price  <derek@ximbiot.com>
85961
85962         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85963
85964 2005-09-19  Bruno Haible  <bruno@clisp.org>
85965
85966         * gnulib-tool (import): Provide default for --tests-base.
85967
85968 2005-09-19  Bruno Haible  <bruno@clisp.org>
85969
85970         * doc/quote.texi: New file, extracted from gnulib.texi.
85971         * doc/ctime.texi: New file, extracted from gnulib.texi.
85972         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85973         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85974         * doc/gnulib.texi: Include them.
85975
85976 2005-09-18  Bruno Haible  <bruno@clisp.org>
85977
85978         Portability fix.
85979         * gnulib-tool (func_readlink): New function.
85980         (func_ln_if_changed): Use it.
85981
85982 2005-09-18  Bruno Haible  <bruno@clisp.org>
85983
85984         * gnulib-tool: Support --with-tests also with --import.
85985         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85986         (func_import): Use variables $testsbase and $inctests. Emit a
85987         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85988         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85989         SUBDIRS += $testsdir.
85990         (func_create_testdir): Update.
85991
85992 2005-09-18  Bruno Haible  <bruno@clisp.org>
85993
85994         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85995         instead of $dry_run.
85996         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85997         (func_ln_if_changed): Don't handle dry-run here.
85998         (func_import): In dry-run mode, detect more precisely which actions
85999         would be performed, and don't use "...ing" verbs.
86000
86001 2005-09-18  Bruno Haible  <bruno@clisp.org>
86002
86003         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
86004         (func_import): Use join on two temporary files instead of three nested
86005         loops, in order to determine which files are new or old.
86006
86007 2005-09-18  Bruno Haible  <bruno@clisp.org>
86008
86009         * gnulib-tool (func_import): Comment out code that spits out the
86010         new files with --dry-run.
86011
86012 2005-09-18  Bruno Haible  <bruno@clisp.org>
86013
86014         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
86015
86016 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
86017
86018         * lib/stat-time.h: New file.
86019         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
86020         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
86021         in a different way.
86022         (timespec_cmp): New function.
86023         * lib/utimecmp.c: Include stat-time.h.
86024         (SYSCALL_RESOLUTION): Depend on whether various struct stat
86025         members exist, not on the obsolescent ST_MTIM_NSEC.
86026         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
86027
86028 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
86029
86030         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
86031
86032 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
86033
86034         * MODULES.html.sh (File system functions): Add stat-time.
86035         * modules/stat-time: New file.
86036         * modules/timespec (Files): Remove m4/st_mtim.m4; this
86037         is now done in a different way, by the stat-time module.
86038         * modules/utimecmp (Depends-on): Add stat-time.
86039
86040 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
86041
86042         * m4/st_mtim.m4: Remove.  Superseded by...
86043         * m4/stat-time.m4: New file.
86044         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
86045         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
86046
86047 2005-09-15  Derek Price  <derek@ximbiot.com>
86048
86049         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
86050
86051 2005-09-15  Derek Price  <derek@ximbiot.com>
86052
86053         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
86054         * lib/regex_internal.c: Ditto, using this...
86055         (__GNUC_PREREQ): ...new macro.
86056         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
86057         using...
86058         (__GNUC_PREREQ): ...this new macro.
86059
86060         * lib/strstr.h: Include string.h. Define strstr as a macro here.
86061
86062 2005-09-15  Derek Price  <derek@ximbiot.com>
86063             Paul Eggert  <eggert@cs.ucla.edu>
86064
86065         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
86066         changes, consolidating in...
86067         * lib/regex_internal.h: ...this file.
86068
86069 2005-09-13  Jim Meyering  <jim@meyering.net>
86070
86071         * lib/canon-host.c: Filter through gnu indent and reword comments
86072         slightly.
86073         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
86074
86075 2005-09-13  Derek Price  <derek@ximbiot.com>
86076
86077         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
86078         failure.
86079         Reported by Jim Meyering  <jim@meyering.net>.
86080
86081 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86082
86083         * lib/base64.c: Typo.
86084         (base64_encode): Put b64str in initialized data section.
86085
86086 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
86087
86088         Merge glibc and coreutils changes into gnulib, plus a few
86089         extra fixes.
86090         * lib/md5.c: Use #error rather than a string.
86091         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
86092         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
86093         (__attribute__): Define to empty for non recent-GCC.
86094         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
86095         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
86096         Renamed from their non-__ counterparts, with new macros replacing
86097         them if not _LIBC.  Add __THROW attribute.
86098         (rol): Remove.
86099         (struct md5_ctx): Align buffer if using GCC.
86100         * lib/sha1.h (struct sha1_ctx): Likewise.
86101         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
86102         The old name was backwards.
86103         (NOTSWAP): Remove; not used.
86104         (rol): New macro, moved here from md5.h.
86105         (sha1_process_block): Remove a FIXME that doesn't make sense.
86106
86107 2005-09-12  Derek Price  <derek@ximbiot.com>
86108
86109         Return usable errors from canon-host.
86110         * lib/canon-host.h: New file.
86111         * lib/canon-host.c (canon_host): Wrap...
86112         (canon_host_r): ...this new function, which now relies exclusively on
86113         getaddrinfo.
86114         (ch_strerror): New function.
86115         (last_cherror): New global.
86116         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
86117         interface.
86118         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
86119         void *.
86120         (freeaddrinfo): Free ai->ai_canonname when set.
86121
86122 2005-09-12  Derek Price  <derek@ximbiot.com>
86123
86124         Make canon-host require getaddrinfo.
86125         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
86126         AC_LIBSOURCE canon-host.h.  Call...
86127         (gl_PREREQ_CANON_HOST): ...this new function, which requires
86128         gl_GETADDRINFO.
86129         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
86130
86131 2005-09-12  Derek Price  <derek@ximbiot.com>
86132
86133         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
86134         LGPL.
86135         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
86136
86137 2005-09-12  Derek Price  <derek@ximbiot.com>
86138
86139         * lib/gai_strerror.c: Include config.h when available.  Include
86140         getaddrinfo.h before other headers to test interface.
86141         Reported by Larry Jones <lawrence.jones@ugs.com>.
86142
86143 2005-09-12  Derek Price  <derek@ximbiot.com>
86144             Paul Eggert  <eggert@cs.ucla.edu>
86145
86146         * modules/glob (Files): Add glob-libc.h.
86147
86148 2005-09-12  Derek Price  <derek@ximbiot.com>
86149             Paul Eggert  <eggert@cs.ucla.edu>
86150
86151         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
86152         glob_.h, glob-libc.h.
86153         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
86154
86155 2005-09-12  Derek Price  <derek@ximbiot.com>
86156             Paul Eggert  <eggert@cs.ucla.edu>
86157
86158         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
86159         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
86160         protecting things that should be done only in gnulib contexts.
86161         * lib/glob_.h: New file, containing only the glob things needed for
86162         gnulib.
86163         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
86164         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
86165         (glob, globfree, glob_pattern_p): Now defined simply in terms of
86166         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
86167         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
86168         and to respect the namespace rules better.
86169
86170 2005-09-08  Simon Josefsson  <jas@extundo.com>
86171
86172         * modules/socklen: New file.
86173
86174 2005-09-08  Simon Josefsson  <jas@extundo.com>
86175
86176         * m4/socklen.m4: New file.
86177
86178 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86179
86180         * modules/utimens (Files): Add m4/utimbuf.m4, since
86181         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
86182         Reported by Sergey Poznyakoff.
86183
86184 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86185
86186         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
86187         definitions, since that's the preferred style in glibc.
86188         Fix a minor spacing issue, and update copyright notice to match
86189         glibc's.
86190
86191 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86192
86193         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
86194
86195 2005-09-06  Simon Josefsson  <jas@extundo.com>
86196
86197         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
86198         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
86199
86200 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86201
86202         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
86203         warning.
86204
86205 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86206
86207         * config/srclist.txt: Add glibc bug 1302.
86208
86209 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
86210
86211         Change bitset word type from unsigned int to unsigned long int,
86212         as this has better performance on typical 64-bit hosts.
86213         Port bitset code to hosts with unusual word sizes.
86214         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
86215         (build_collating_symbol):
86216         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
86217         argument is a bitset.  This is merely a style issue, but it makes
86218         it clearer that an entire array is expected.
86219         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
86220         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
86221         Port to the case where bitset_word is not the same as unsigned int.
86222         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86223         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
86224         Likewise.
86225         * lib/regexec.c (check_dst_limits_calc_pos_1,
86226         check_subexp_matching_top):
86227         (build_trtable, group_nodes_into_DFAstates):
86228         Likewise.
86229         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
86230         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
86231         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
86232         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
86233         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
86234         * lib/regcomp.c (optimize_subexps, lower_subexp):
86235         Work even if bitset_word has holes in its bitwise representation.
86236         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
86237         * lib/regexec.c (check_dst_limits_calc_pos_1,
86238         check_subexp_matching_top):
86239         Likewise.
86240         * lib/regex_internal.c (re_string_reconstruct):
86241         Don't assume UCHAR_MAX == 255.
86242         * lib/regex_internal.h (bitset_set_all): Likewise.
86243         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
86244         All uses changed.
86245         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
86246         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
86247         All uses changed.
86248         (BITSET_WORD_MAX): New macro.
86249         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
86250         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
86251         (bitset_empty, bitset_copy):
86252         Prefer sizeof (bitset) to multiplying it out ourselves.
86253         (bitset_not_merge): Remove; unused.
86254         (bitset_contain): Return bool, not unsigned int with one bit on.
86255         All callers changed.
86256         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
86257         alignment than re_node_set; do this by defining a new internal
86258         type struct dests_alloc and using it to allocate memory.
86259
86260 2005-09-05  Bruno Haible  <bruno@clisp.org>
86261
86262         * gnulib-tool (func_import): Fix comparison in handling of symbolic
86263         links.
86264
86265 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
86266
86267         * modules/size_max (Makefile.am): Add size_max.h
86268
86269 2005-09-04  Derek Price  <derek@ximbiot.com>
86270
86271         * gnulib-tool (func_import): Fix reversed $symbolic logic.
86272
86273 2005-09-03  Simon Josefsson  <jas@extundo.com>
86274
86275         * gnulib-tool: Fix typo.
86276
86277 2005-09-03  Simon Josefsson  <jas@extundo.com>
86278
86279         * config/srclist.txt: Add glibc bug 1293.
86280
86281 2005-09-03  Derek Price  <derek@ximbiot.com>
86282
86283         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
86284         From Larry Jones <lawrence.jones@ugs.com>.
86285
86286 2005-09-02  Simon Josefsson  <jas@extundo.com>
86287
86288         * modules/socklen: New file.
86289
86290 2005-09-02  Simon Josefsson  <jas@extundo.com>
86291
86292         * modules/havelib: New module.
86293
86294         * modules/gettext, modules/iconv, modules/lock, modules/readline:
86295         Use havelib.
86296
86297 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86298
86299         Check for arithmetic overflow when calculating sizes, to prevent
86300         some buffer-overflow issues.  These patches are conservative, in the
86301         sense that when I couldn't determine whether an overflow was possible,
86302         I inserted a run-time check.
86303         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
86304         macros.
86305         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
86306         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
86307         (re_xnrealloc, re_x2nrealloc): New inline functions.
86308         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
86309         parse_bracket_exp):
86310         (build_equiv_class, build_charclass): Check for arithmetic overflow
86311         in size expression calculations.
86312         * lib/regex_internal.c (re_string_realloc_buffers):
86313         (build_wcs_upper_buffer, re_node_set_add_intersect):
86314         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
86315         (re_dfa_add_node, register_state): Likewise.
86316         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
86317         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
86318         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
86319         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
86320
86321 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86322
86323         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86324         m4/ulonglong.m4.  Problem reported by Martin Lambers.
86325
86326 2005-09-02  Bruno Haible  <bruno@clisp.org>
86327
86328         Support for lib vs. lib64 distinction on biarch platforms.
86329         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
86330         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
86331         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
86332
86333 2005-09-02  Bruno Haible  <bruno@clisp.org>
86334
86335         * gnulib-tool (import): In the other first-use case, provide defaults
86336         as well.
86337
86338 2005-09-02  Bruno Haible  <bruno@clisp.org>
86339
86340         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
86341         patches not yet found in the latest gettext release.
86342
86343 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86344
86345         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
86346         to avoid a collision with bits/local_lim.h in glibc.
86347         All uses changed.  Problem reported by Dmitry V. Levin in
86348         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
86349
86350         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
86351         bugs in int versus size_t comparisons.
86352         (re_string_context_at): Fix bug where the code assumed that
86353         Idx is signed.
86354
86355         Use bool where appropriate.
86356         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
86357         All callers changed.
86358         (calc_eclosure_iter): Likewise, for ROOT arg.
86359         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
86360         (build_charclass_op): Likewise, for NON_MATCH arg.
86361         * lib/regex_internal.c (re_string_allocate, re_string_construct):
86362         (re_string_construct_common): Likewise, for ICASE arg.
86363         * lib/regexec.c (re_search_2_stub, re_search_stub):
86364         Likewise, for RET_LEN arg.
86365         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
86366         (set_regs): Likewise, for FL_BACKTRACK arg.
86367         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
86368         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
86369         (calc_eclosure_iter, parse_bracket_exp):
86370         Use bool for internal variables that are booleans.
86371         * lib/regexec.c (re_search_internal, check_matching,
86372         proceed_next_node):
86373         (set_regs, build_sifted_states, sift_states_bkref):
86374         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
86375         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86376         (find_collation_sequence_value):
86377         Likewise.
86378         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
86379         (re_node_set_compare):
86380         Return bool, not int. All callers changed.
86381         * lib/regexec.c (check_halt_node_context, check_dst_limits):
86382         (build_trtable, check_node_accept): Likewise.
86383         * lib/regex_internal.h: Include stdbool.h.
86384
86385         Fix bugs uncovered when converting to bool.
86386         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
86387         failure instead of charging ahead blindly.
86388         * lib/regex_internal.c (register_state): Likewise.
86389         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
86390         for freeing internal storage.
86391         (group_nodes_into_DFA_states): Use unsigned int, not int, for
86392         bitset pieces used as boolean, to avoid undefined behavior
86393         on hosts that do int overflow checking.
86394
86395 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86396
86397         * config/srclist.txt: Add glibc bugs 1285-1287.
86398
86399 2005-09-01  Jim Meyering  <jim@meyering.net>
86400
86401         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
86402         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
86403         Require gl_STAT_MACROS, too.
86404
86405 2005-09-01  Bruno Haible  <bruno@clisp.org>
86406
86407         * gnulib-tool (import): In the first-use case, provide defaults.
86408
86409 2005-09-01  Bruno Haible  <bruno@clisp.org>
86410
86411         * gnulib-tool (func_import): Remove the .tmp files.
86412
86413 2005-09-01  Bruno Haible  <bruno@clisp.org>
86414
86415         * gnulib-tool (func_import): Fix handling of symbolic links.
86416
86417 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86418
86419         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
86420         old glibc regex code mishandles strings longer than 2**31 bytes.
86421         This patch fixes this when the regex code is used in gnulib
86422         (i.e., outside glibc).
86423
86424         This patch should not affect the use of the regex code inside
86425         glibc.  No doubt this problem also needs to be handled for glibc
86426         as well, but the result will be an incompatible change to the
86427         glibc ABI, and the old ABI will have to be supported too.  That
86428         can be the the subject for another patch.
86429
86430         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
86431         governing whether the rest of this patch is active.  By default,
86432         the macro is disabled and the patch has no effect.
86433         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
86434         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
86435         (struct re_pattern_buffer, re_search, re_search_2, re_match):
86436         (re_match_2, re_set_registers): Use the new types.
86437         * lib/regex_internal.h (Idx, re_hashval_t): New types.
86438         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
86439         New macros.
86440         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
86441         (re_string_context_at, bin_tree_t, re_dfastate_t):
86442         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
86443         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
86444         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
86445         (re_string_char_size_at, re_string_wchar_at):
86446         (re_string_elem_size_at):
86447         Use the new types and macros to port to 64-bit hosts.
86448         Use unsigned types for internal values, so that the code
86449         mostly works even for arrays larger than SSIZE_MAX.
86450         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
86451         (search_duplicated_node, calc_eclosure_iter, fetch_number):
86452         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
86453         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
86454         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
86455         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
86456         (calc_inveclosure, parse_dup_op, build_range_exp):
86457         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
86458         (fetch_number, create_token_tree, mark_opt_subexp):
86459         Likewise.
86460         * lib/regex_internal.c (re_string_construct_common,
86461         create_ci_newstate):
86462         (create_cd_newstate, re_string_allocate, re_string_construct):
86463         (re_string_realloc_buffers, build_wcs_upper_buffer):
86464         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86465         (re_string_reconstruct, re_string_peek_byte_case):
86466         (re_string_fetch_byte_case, re_string_context_at):
86467         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86468         (re_node_set_init_copy, re_node_set_add_intersect):
86469         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86470         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86471         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86472         (re_acquire_state, re_acquire_state_context, register_state):
86473         Likewise.
86474         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
86475         search_cur_bkref_entry):
86476         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
86477         (re_search_internal, re_search_2_stub, re_search_stub)
86478         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
86479         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
86480         (update_cur_sifted_state, check_dst_limits):
86481         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86482         (check_subexp_limits, sift_states_bkref, merge_state_array):
86483         (check_subexp_matching_top, get_subexp, get_subexp_sub):
86484         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
86485         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86486         (expand_bkref_cache, check_node_accept_bytes):
86487         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
86488         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
86489         (acquire_init_state_context, check_halt_node_context):
86490         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
86491         (sift_states_backward, clean_state_log_if_needed):
86492         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
86493         (find_recover_state, transit_state_sb, transit_state_mb):
86494         (transit_state_bkref, build_trtable, match_ctx_clean):
86495         Likewise.
86496         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
86497         to work around an assumption that REG_MISSING is negative.
86498
86499         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
86500         (seek_collating_symbol_entry) [defined _LIBC]:
86501         (lookup_collation_sequence_value) [defined _LIBC]:
86502         (build_range_exp, build_collating_symbol) [defined _LIBC]:
86503         Use prototypes rather than old-style function definitions.
86504         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
86505         (transit_state_sb) [0]:
86506         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86507
86508         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86509         rm_eo.
86510
86511         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86512         (optimize_subexps, lower_subexp):
86513         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86514         since the signed shift might overflow.  Use 1u<<31 instead.
86515         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86516         Likewise.
86517         * lib/regexec.c (check_dst_limits_calc_pos_1,
86518         check_subexp_matching_top): Likewise.
86519
86520         * lib/regcomp.c (optimize_subexps, lower_subexp):
86521         Use CHAR_BIT rather than 8, for clarity.
86522         * lib/regexec.c (check_dst_limits_calc_pos_1):
86523         (check_subexp_matching_top): Likewise.
86524         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86525         have to worry about portability issues when shifting it left.
86526         Remove no-longer-needed test for table_size > 0.
86527         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86528         in a word, as the resulting behavior is undefined.
86529         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86530         in one case, a <= should have been an <, and in another case the
86531         whole test was missing.
86532         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86533         the standard name CHAR_BIT.
86534         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86535         this is not true on one's complement and signed-magnitude hosts.
86536
86537         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86538         next_last_offset.
86539         (struct re_dfa_t): Remove unused member states_alloc.
86540         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86541
86542 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86543
86544         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86545         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86546         and large-file glibc and in 32-bit large-file Solaris.
86547
86548 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86549
86550         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86551         lengths fit in regoff_t; this isn't true if regoff_t is the same
86552         width as size_t.
86553         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86554         (= START + RANGE) instead of RANGE.  This avoids overflow
86555         problems when regoff_t is the same width as size_t.
86556         All callers changed.
86557         (re_search_2_stub): Check for overflow when adding the
86558         sizes of the two strings.
86559         (re_search_stub): Check for overflow when adding START
86560         to RANGE; if it occurs, substitute the extreme value.
86561
86562 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86563
86564         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86565
86566 2005-08-31  Jim Meyering  <jim@meyering.net>
86567
86568         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86569         a pointer-to-const.
86570         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86571         (register_state): Likewise.
86572         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86573         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86574         (group_nodes_into_DFAstates): Likewise.
86575
86576 2005-08-31  Jim Meyering  <jim@meyering.net>
86577
86578         * check-module: Add a FIXME comment.
86579
86580 2005-08-31  Eric Blake  <ebb9@byu.net>
86581
86582         * modules/unistd-safer (Files): Add unistd--.h.
86583         * modules/stdio-safer (Files): Add stdio--.h.
86584
86585 2005-08-31  Derek Price  <derek@ximbiot.com>
86586
86587         * lib/getdelim.c (getdelim): Return EOF on EOF.
86588         Reported by Larry Jones <lawrence.jones@ugs.com>.
86589
86590 2005-08-31  Bruno Haible  <bruno@clisp.org>
86591
86592         Avoid unnecessary diffs in the generated lib/Makefile.am.
86593         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86594         the generated files.
86595         (func_import): Don't set cmd.
86596
86597 2005-08-31  Bruno Haible  <bruno@clisp.org>
86598
86599         * lib/strstr.c: Include <stddef.h>, for NULL.
86600         * lib/strcasestr.c: Likewise.
86601         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86602
86603 2005-08-31  Bruno Haible  <bruno@clisp.org>
86604
86605         * gnulib-tool: New option --macro-prefix.
86606         (func_import): Use macro_prefix.
86607         (import): Handle option --macro-prefix.
86608
86609 2005-08-31  Bruno Haible  <bruno@clisp.org>
86610
86611         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86612         Also use new variables cached_lgpl, cached_libtool.
86613
86614 2005-08-31  Bruno Haible  <bruno@clisp.org>
86615
86616         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86617         always instantiating them.
86618
86619 2005-08-31  Bruno Haible  <bruno@clisp.org>
86620
86621         * gnulib-tool (func_import): Read the previous cached settings
86622         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86623         earlier added by gnulib but are now dropped. Warn when a gnulib file
86624         overwrites a non-gnulib file.
86625
86626 2005-08-31  Bruno Haible  <bruno@clisp.org>
86627
86628         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86629         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86630         projects that don't keep autogenerated files in CVS. Put into
86631         actioncmd only the specified modules, not the transitive closure.
86632
86633 2005-08-31  Bruno Haible  <bruno@clisp.org>
86634
86635         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86636         Create directories that shall be filled.
86637         (import): Don't look for gl_* macros in configure.ac. Recurse across
86638         all directories containing a gnulib-cache.m4 files, if meaningful.
86639
86640 2005-08-31  Bruno Haible  <bruno@clisp.org>
86641
86642         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86643         (import): Set seen_libtool when we see gl_LIBTOOL.
86644
86645 2005-08-31  Bruno Haible  <bruno@clisp.org>
86646
86647         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86648         declaration macro definitions from generated gnulib.m4.
86649
86650 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86651
86652         * lib/iconvme.h: Add prototype for iconv_alloc.
86653
86654 2005-08-29  Simon Josefsson  <jas@extundo.com>
86655
86656         * lib/iconvme.c: Fix errno.
86657
86658 2005-08-29  Bruno Haible  <bruno@clisp.org>
86659
86660         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86661         that it works when the directory contains spaces.
86662
86663 2005-08-29  Bruno Haible  <bruno@clisp.org>
86664
86665         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86666
86667 2005-08-29  Bruno Haible  <bruno@clisp.org>
86668
86669         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86670         Emit more advice.
86671
86672 2005-08-29  Bruno Haible  <bruno@clisp.org>
86673         and Stepan Kasal  <kasal@ucw.cz>
86674
86675         * check-module: If more parameters are given, check each of them
86676         separately; add more exceptions, as noted by Jim Meyering.
86677         (check_module): New procedure.
86678         (%exempt_header): Now contains all exceptions.
86679
86680 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86681
86682         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86683
86684 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86685
86686         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86687
86688 2005-08-28  Bruno Haible  <bruno@clisp.org>
86689
86690         * m4/gnulib-tool.m4: New file.
86691
86692 2005-08-27  Jim Meyering  <jim@meyering.net>
86693
86694         * modules/unistd-safer (Files): Add pipe-safer.c.
86695         * modules/fcntl-safer (Files): Add creat-safer.c.
86696
86697 2005-08-27  Jim Meyering  <jim@meyering.net>
86698
86699         * m4/stdlib-safer.m4: New file.  From coreutils.
86700         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86701         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86702         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86703         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86704         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86705
86706 2005-08-27  Jim Meyering  <jim@meyering.net>
86707
86708         * lib/fopen-safer.c: Merge minor changes from coreutils.
86709         * lib/dup-safer.c: Likewise.
86710         * lib/fd-safer.c: Likewise.
86711
86712         Merge from coreutils.
86713         * lib/stdio--.h: New file.
86714         * lib/stdlib--.h: New file.
86715         * lib/mkstemp-safer.c: New file.
86716
86717         GNU tar needs these.
86718         * lib/pipe-safer.c: New file.
86719         * lib/creat-safer.c: New file.
86720         * lib/fcntl--.h (creat): Define to creat_safer.
86721         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86722         * lib/unistd--.h (pipe): Define to pipe_safer.
86723         * lib/unistd-safer.h: Declare pipe_safer.
86724
86725 2005-08-26  Simon Josefsson  <jas@extundo.com>
86726
86727         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86728         Haible <bruno@clisp.org>.
86729
86730 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86731
86732         * lib/regex_internal.h: Remove all references to
86733         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86734         or better.
86735         (bitset_not, bitset_merge, bitset_not_merge):
86736         (bitset_mask, re_string_allocate, re_string_construct):
86737         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86738         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86739         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86740         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86741         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86742         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86743         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86744         (re_acquire_state_context):
86745         Remove unnecessary forward decls.
86746         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86747         Put __attribute at function definition,
86748         now that the function decl has been removed.
86749         * lib/regex_internal.c (re_string_peek_byte_case):
86750         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86751         Likewise.
86752
86753 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86754
86755         * m4/regex.m4: Add AC_PREREQ(2.50).
86756         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86757
86758 2005-08-25  Simon Josefsson  <jas@extundo.com>
86759
86760         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86761         __fsetlocking.
86762
86763 2005-08-25  Simon Josefsson  <jas@extundo.com>
86764
86765         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86766         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86767         GLIBC specific code.
86768
86769 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86770
86771         Make regex safe for g++.  This fixes one real bug (an "err"
86772         that should have been "*err").  g++ problem reported by
86773         Sam Steingold.
86774         * lib/regex_internal.h (re_calloc): New macro, consistent with
86775         re_malloc etc.  All callers of calloc changed to use re_calloc.
86776         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86777         not int.  All callers changed.
86778         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86779         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86780         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86781         (find_recover_state): Change "err" to "*err"; this fixes what
86782         appears to be a real bug.
86783         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86784         versus int.
86785
86786 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86787
86788         * modules/regex (Depends-on): Add malloc, since the code
86789         assumes that !malloc(0) means failure.
86790
86791 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86792
86793         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86794
86795         alloca modernization/simplification for regex.
86796         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86797         needs to be at the start of the file, and can be moved into
86798         regex_internal.h and simplified.
86799         * lib/regex_internal.h: Include <alloca.h>.
86800         (__libc_use_alloca) [!defined _LIBC]: New macro.
86801         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86802         now works outside glibc.
86803
86804 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86805
86806         * config/srclist.txt: Add glibc bugs 1241, 1245.
86807
86808 2005-08-25  Jim Meyering  <jim@meyering.net>
86809
86810         * lib/open-safer.c: Include <config.h>.
86811         Otherwise, we'd lose LARGEFILE support in any file using
86812         e.g. "fcntl--.h"
86813
86814 2005-08-25  Bruno Haible  <bruno@clisp.org>
86815
86816         * m4/minmax.m4: Require autoconf 2.52.
86817         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86818         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86819         alternatives of translit over the alphabet.
86820         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86821
86822 2005-08-24  Simon Josefsson  <jas@extundo.com>
86823
86824         * tests/test-getpass.c: New file.
86825
86826 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86827
86828         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86829         for GNU regex features.
86830
86831 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86832
86833         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86834         * lib/regex.h (regerror): Likewise.
86835
86836         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86837         requires this.  (The code never needed it.)
86838
86839         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86840         All uses of recently-renamed identifiers changed to use the new,
86841         POSIX-compliant names.  The code will build and run just fine
86842         without these changes, but it's better to eat our own dog food
86843         and use the standard-conforming names.
86844
86845         * lib/regex.h: Fix a multitude of POSIX name space violations.
86846         These changes have an effect only for programs that define
86847         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86848         do not change anything for programs compiled in the normal way.
86849         Also, there is no effect on the ABI.
86850
86851         (_REGEX_SOURCE): New macro.
86852         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86853         defined and _GNU_SOURCE is not; this fixes a name space violation.
86854
86855         Rename the following macros to obey POSIX requirements.
86856         The old names are still visible as macros if _REGEX_SOURCE is defined.
86857         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86858         RE_BACKSLASH_ESCAPE_IN_LISTS.
86859         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86860         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86861         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86862         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86863         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86864         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86865         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86866         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86867         (REG_INTERVALS): renamed from RE_INTERVALS.
86868         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86869         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86870         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86871         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86872         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86873         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86874         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86875         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86876         RE_UNMATCHED_RIGHT_PAREN_ORD.
86877         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86878         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86879         (REG_DEBUG): renamed from RE_DEBUG.
86880         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86881         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86882         unusual, since we can't clash with the POSIX REG_ICASE.
86883         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86884         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86885         (REG_NO_SUB): renamed from RE_NO_SUB.
86886         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86887         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86888         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86889         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86890         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86891         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86892         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86893         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86894         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86895         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86896         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86897         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86898         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86899         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86900         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86901         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86902         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86903         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86904         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86905         (REG_FIXED): Renamed from REGS_FIXED.
86906         (REG_NREGS): Renamed from RE_NREGS.
86907
86908         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86909         of other REG_* macros, since POSIX says the user is allowed to
86910         #undef these macros selectively.
86911
86912         (reg_errcode_t): Update comment stating what other tables need
86913         to be consistent.
86914
86915         Rename the following enum values to obey POSIX requirements.
86916         The old names are still visible as macros.
86917         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86918         is not defined, since GNU is supposed to be a superset of POSIX as
86919         much as possible, and since we want reg_errcode_t to be a signed
86920         type for implementation consistency.
86921         (_REG_NOERROR): Renamed from REG_NOERROR.
86922         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86923         (_REG_BADPAT): Renamed from REG_BADPAT.
86924         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86925         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86926         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86927         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86928         (_REG_EBRACK): Renamed from REG_EBRACK.
86929         (_REG_EPAREN): Renamed from REG_EPAREN.
86930         (_REG_EBRACE): Renamed from REG_EBRACE.
86931         (_REG_BADBR): Renamed from REG_BADBR.
86932         (_REG_ERANGE): Renamed from REG_ERANGE.
86933         (_REG_ESPACE): Renamed from REG_ESPACE.
86934         (_REG_BADRPT): Renamed from REG_BADRPT.
86935         (_REG_EEND): Renamed from REG_EEND.
86936         (_REG_ESIZE): Renamed from REG_ESIZE.
86937         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86938         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86939         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86940         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86941         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86942
86943         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86944         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86945         changed.  But support the old name if the new one is not defined
86946         and if _REGEX_SOURCE.
86947
86948         Change the following member names in struct re_pattern_buffer.
86949         The old names are still supported if !_REGEX_SOURCE.
86950         The new names are always supported, regardless of _REGEX_SOURCE.
86951         (re_buffer): Renamed from buffer.
86952         (re_allocated): Renamed from allocated.
86953         (re_used): Renamed from used.
86954         (re_syntax): Renamed from syntax.
86955         (re_fastmap): Renamed from fastmap.
86956         (re_translate): Renamed from translate.
86957         (re_can_be_null): Renamed from can_be_null.
86958         (re_regs_allocated): Renamed from regs_allocated.
86959         (re_fastmap_accurate): Renamed from fastmap_accurate.
86960         (re_no_sub): Renamed from no_sub.
86961         (re_not_bol): Renamed from not_bol.
86962         (re_not_eol): Renamed from not_eol.
86963         (re_newline_anchor): Renamed from newline_anchor.
86964
86965         Change the following member names in struct re_registers.
86966         The old names are still supported if !_REGEX_SOURCE.
86967         The new names are always supported, regardless of _REGEX_SOURCE.
86968         (rm_num_regs): Renamed from num_regs.
86969         (rm_start): Renamed from start.
86970         (rm_end): Renamed from end.
86971
86972         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86973         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86974         Prepend __ to parameter names.
86975
86976         Undo yesterday's changes.
86977
86978 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86979
86980         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86981         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86982         lib/regex.c.
86983
86984 2005-08-24  Jim Meyering  <jim@meyering.net>
86985
86986         Sync from coreutils.
86987         * m4/fcntl-safer.m4: New file.
86988
86989         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86990         and object files for this module.
86991
86992 2005-08-24  Jim Meyering  <jim@meyering.net>
86993
86994         Sync from coreutils.
86995         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86996
86997 2005-08-24  Jim Meyering  <jim@meyering.net>
86998
86999         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
87000         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
87001
87002 2005-08-24  Jim Meyering  <jim@meyering.net>
87003
87004         * modules/fcntl-safer: New module.
87005         * modules/fts (Depends-on): Add fcntl-safer.
87006         * MODULES.html.sh (File descriptor based Input/Output):
87007         Add fcntl-safer.
87008
87009 2005-08-24  Bruno Haible  <bruno@clisp.org>
87010
87011         Support for unit test modules.
87012         * modules/README: Mention tests modules.
87013         * modules/TEMPLATE-TESTS: New file.
87014         * gnulib-tool: New options --extract-tests-module, --with-tests and
87015         --tests-base (unused for the moment).
87016         (testsbase, inctests): New variables.
87017         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
87018         (func_verify_module): Exclude TEMPLATE-TESTS.
87019         (func_verify_nontests_module, func_verify_tests_module): New functions.
87020         (func_get_dependencies): Add implicit dependency for tests modules.
87021         (func_get_tests_module): New function.
87022         (func_modules_transitive_closure): When --with-tests was specified,
87023         include the unit tests as well, unless explicitly avoided.
87024         (func_emit_lib_Makefile_am): Ignore the tests modules here.
87025         (func_emit_tests_Makefile_am): New function.
87026         (func_create_testdir): When --with-tests was specified, emit a
87027         tests/ directory.
87028         * MODULES.html.sh (Future developments): Update.
87029
87030 2005-08-24  Bruno Haible  <bruno@clisp.org>
87031
87032         * modules/tls-tests: New file.
87033         * tests/test-tls.c: New file, from GNU gettext.
87034
87035 2005-08-24  Bruno Haible  <bruno@clisp.org>
87036
87037         * modules/lock-tests: New file.
87038         * tests/test-lock.c: New file, from GNU gettext.
87039
87040 2005-08-24  Bruno Haible  <bruno@clisp.org>
87041
87042         * lib/lock.h: Add multiple inclusion guard.
87043         * lib/tls.h: Add multiple inclusion guard.
87044
87045 2005-08-24  Bruno Haible  <bruno@clisp.org>
87046
87047         * gnulib-tool: Add support for the --aux-dir option to
87048         --create-testdir, --create-megatestdir, --test, --megatest.
87049         (func_create_testdir, func_create_megatestdir): Optionally emit a
87050         AC_CONFIG_AUX_DIR directive.
87051         (create-testdir, create-megatestdir, test, megatest): Provide a
87052         default value for $auxdir.
87053
87054 2005-08-24  Bruno Haible  <bruno@clisp.org>
87055
87056         * gnulib-tool (import): Use compound statement instead of subshell
87057         where possible.
87058
87059 2005-08-24  Bruno Haible  <bruno@clisp.org>
87060
87061         * gnulib-tool (import): Change --aux-dir default to "build-aux".
87062
87063 2005-08-24  Bruno Haible  <bruno@clisp.org>
87064
87065         * gnulib-tool (func_version): Update.
87066
87067 2005-08-24  Bruno Haible  <bruno@clisp.org>
87068
87069         * gnulib-tool (func_import, func_create_testdir,
87070         func_create_megatestdir): Quote all autoconf macro arguments.
87071
87072 2005-08-24  Bruno Haible  <bruno@clisp.org>
87073
87074         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
87075         option --force, because --force causes the aclocal.m4 of each
87076         subdirectory to be newer than the corresponding config.h.in.
87077
87078 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87079
87080         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
87081         All contents moved to gl_REGEX.
87082         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
87083         assume that it does.
87084
87085 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87086
87087         * lib/regex.h (REG_NOSYS)
87088         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
87089         Define, since POSIX requires it as of 2001.
87090         (_REG_ENOSYS)
87091         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
87092         New private symbol, used to keep the enum signed in all cases.
87093         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
87094         Youngman in
87095         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
87096
87097         * lib/regex_internal.c (re_string_skip_chars, register_state):
87098         (calc_state_hash):
87099         Remove forward decls; no longer needed now that we use prototypes.
87100         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
87101         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
87102         (clean_state_log_if_needed): Likewise.
87103
87104 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87105
87106         * config/srclist.txt: Add glibc bugs 1231-1233.
87107
87108 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87109
87110         Fix problems reported by Sam Steingold in
87111         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
87112         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
87113         assumed that reg_errcode_t is a signed type, which is not
87114         necessarily true if _XOPEN_SOURCE is not defined.
87115         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
87116         since some compilers warn about it otherwise.
87117
87118 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87119
87120         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
87121         (init_word_char, create_initial_state, duplicate_node_closure):
87122         (fetch_token, peek_token_bracket, build_range_exp):
87123         (build_collating_symbol): Remove forward decls; no longer needed
87124         now that we use prototypes.
87125
87126         * lib/regcomp.c:
87127         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
87128         (re_compile_fastmap_iter, regcomp, regerror, regfree):
87129         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
87130         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
87131         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
87132         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
87133         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
87134         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
87135         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
87136         (build_range_exp, build_collating_symbol, parse_bracket_exp):
87137         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
87138         (build_charclass, build_charclass_op, fetch_number, create_tree):
87139         (create_token_tree, mark_opt_subexp, duplicate_tree):
87140         Use prototypes rather than old-style definitions.
87141
87142         * lib/regex_internal.c:
87143         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
87144         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
87145         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
87146         (re_string_reconstruct, re_string_peek_byte_case):
87147         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
87148         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
87149         (re_node_set_init_copy, re_node_set_add_intersect):
87150         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
87151         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
87152         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
87153         (re_acquire_state, re_acquire_state_context, register_state):
87154         (create_ci_newstate, create_cd_newstate, free_state):
87155         Likewise.
87156         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
87157         re_search_2):
87158         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
87159         (re_search_internal, prune_impossible_nodes):
87160         (acquire_init_state_context, check_matching, static):
87161         (check_halt_node_context, check_halt_state_context, proceed_next_node):
87162         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
87163         (update_regs, sift_states_backward, build_sifted_states):
87164         (clean_state_log_if_needed, merge_state_array):
87165         (update_cur_sifted_state, add_epsilon_src_nodes):
87166         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
87167         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
87168         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
87169         (find_recover_state, check_subexp_matching_top, transit_state_mb):
87170         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
87171         (check_arrival, check_arrival_add_next_nodes):
87172         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
87173         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
87174         (check_node_accept_bytes, check_node_accept, extend_buffers):
87175         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
87176         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
87177         (sift_ctx_init):
87178         Likewise.
87179
87180         * lib/regex_internal.h:
87181         (re_string_allocate, re_string_construct, re_string_reconstruct):
87182         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
87183         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
87184         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
87185         (re_string_context_at, re_string_peek_byte_case):
87186         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
87187         is defined, since we now use prototypes always.
87188
87189         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
87190         C89 or better.  All uses removed.
87191
87192 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87193
87194         * config/srclist.txt: Add glibc bugs 1220-1227.
87195
87196 2005-08-20  Jim Meyering  <jim@meyering.net>
87197
87198         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
87199         of unused local, dfa.
87200
87201 2005-08-20  Bruno Haible  <bruno@clisp.org>
87202
87203         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
87204
87205 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87206
87207         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
87208         (re_node_set_insert_last, re_dfa_add_node):
87209         Rename local variables to avoid GCC shadowing warnings.
87210
87211 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87212
87213         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
87214         [defined lint]: Suppress bogus uninitialized-variable warnings.
87215
87216         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
87217         and let the caller return REG_ESPACE if out of space.  This
87218         removes an uninitialied-variable warning with GCC 4.0.1, and also
87219         avoids taking the address of a local variable.  All callers
87220         changed.
87221
87222 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87223
87224         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
87225         $LIBCSRC/posix/regexec.c.
87226         Add glibc bug 1217 for regcomp.c.
87227
87228 2005-08-19  Jim Meyering  <jim@meyering.net>
87229
87230         * lib/regexec.c (proceed_next_node): Redo local variables to
87231         avoid GCC shadowing warnings.
87232
87233 2005-08-18  Bruno Haible  <bruno@clisp.org>
87234
87235         * lib/strstr.c (strstr): Fix return value in multibyte case.
87236         * lib/strcasestr.c (strcasestr): Likewise.
87237
87238 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87239
87240         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
87241
87242 2005-08-17  Jim Meyering  <jim@meyering.net>
87243
87244         Make the %s format (seconds since the epoch) work for a negative
87245         number and when used with a zero-padded field width, e.g. %015s.
87246
87247         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
87248         label so that it precedes the code to set `digits'.  Otherwise,
87249         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
87250         print `00-22'.  Now, it prints `-0022', as it should.
87251
87252 2005-08-17  Bruno Haible  <bruno@clisp.org>
87253
87254         * modules/strstr (Files): Add m4/mbrtowc.m4.
87255         (Depends-on): Add mbuiter.
87256
87257 2005-08-17  Bruno Haible  <bruno@clisp.org>
87258
87259         * modules/strcasestr: New file.
87260         * MODULES.html.sh (String handling, based on ANSI C 89): Add
87261         strcasestr.
87262
87263 2005-08-17  Bruno Haible  <bruno@clisp.org>
87264
87265         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
87266
87267 2005-08-17  Bruno Haible  <bruno@clisp.org>
87268
87269         * modules/mbuiter: New file.
87270         * MODULES.html.sh (Extended multibyte and wide character utilities):
87271         Add mbuiter.
87272
87273 2005-08-17  Bruno Haible  <bruno@clisp.org>
87274
87275         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
87276         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
87277
87278 2005-08-17  Bruno Haible  <bruno@clisp.org>
87279
87280         * m4/strcasestr.m4: New file.
87281
87282 2005-08-17  Bruno Haible  <bruno@clisp.org>
87283
87284         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
87285         * lib/strstr.c: Completely rewritten, with multibyte locale support.
87286
87287 2005-08-17  Bruno Haible  <bruno@clisp.org>
87288
87289         * lib/strcasestr.h: New file.
87290         * lib/strcasestr.c: New file.
87291
87292 2005-08-17  Bruno Haible  <bruno@clisp.org>
87293
87294         * lib/strcasecmp.c: Use mbuiter.h.
87295
87296 2005-08-17  Bruno Haible  <bruno@clisp.org>
87297
87298         * lib/mbuiter.h: New file.
87299
87300 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
87301
87302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
87303         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
87304         and gl_GETOPT are both invoked via different paths (as happens
87305         with GNU tar CVS because it uses both argp and getopt), the former
87306         wins.
87307
87308 2005-08-16  Bruno Haible  <bruno@clisp.org>
87309
87310         * modules/tls: New file.
87311         * MODULES.html.sh (Multithreading): Add tls.
87312
87313 2005-08-16  Bruno Haible  <bruno@clisp.org>
87314
87315         * modules/strnlen1: New file.
87316         * MODULES.html.sh (String handling): Add strnlen1.
87317
87318 2005-08-16  Bruno Haible  <bruno@clisp.org>
87319
87320         * modules/strcase (Files): Add m4/mbrtowc.m4.
87321         (Depends-on): Add strnlen1, mbchar.
87322
87323 2005-08-16  Bruno Haible  <bruno@clisp.org>
87324
87325         * modules/mbiter: New file.
87326         * MODULES.html.sh (Extended multibyte and wide character utilities):
87327         Add mbiter.
87328
87329 2005-08-16  Bruno Haible  <bruno@clisp.org>
87330
87331         * modules/mbfile: New file.
87332         * MODULES.html.sh (Extended multibyte and wide character utilities):
87333         Add mbfile.
87334
87335 2005-08-16  Bruno Haible  <bruno@clisp.org>
87336
87337         * modules/mbchar: New file.
87338         * MODULES.html.sh (Extended multibyte and wide character utilities):
87339         New section.
87340
87341 2005-08-16  Bruno Haible  <bruno@clisp.org>
87342
87343         * m4/tls.m4: New file, from GNU gettext.
87344
87345 2005-08-16  Bruno Haible  <bruno@clisp.org>
87346
87347         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
87348         always.
87349         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
87350
87351 2005-08-16  Bruno Haible  <bruno@clisp.org>
87352
87353         * m4/mbiter.m4: New file.
87354
87355 2005-08-16  Bruno Haible  <bruno@clisp.org>
87356
87357         * m4/mbfile.m4: New file.
87358
87359 2005-08-16  Bruno Haible  <bruno@clisp.org>
87360
87361         * m4/mbchar.m4: New file.
87362
87363 2005-08-16  Bruno Haible  <bruno@clisp.org>
87364
87365         * lib/tls.h: New file, from GNU gettext.
87366         * lib/tls.c: New file, from GNU gettext.
87367
87368 2005-08-16  Bruno Haible  <bruno@clisp.org>
87369
87370         * lib/strnlen1.h: New file.
87371         * lib/strnlen1.c: New file.
87372
87373 2005-08-16  Bruno Haible  <bruno@clisp.org>
87374
87375         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
87376         (mbi_init): Update.
87377         (mbi_avail, mbi_advance): Let the iteration end before the terminating
87378         NUL byte, not after it.
87379
87380 2005-08-16  Bruno Haible  <bruno@clisp.org>
87381
87382         * lib/strcase.h (strcasecmp): Add note in comments.
87383         * lib/strncasecmp.c: Use code from strcasecmp.c.
87384         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
87385         (strcasecmp): Work correctly in multibyte locales.
87386
87387 2005-08-16  Bruno Haible  <bruno@clisp.org>
87388
87389         * lib/mbiter.h: New file.
87390
87391 2005-08-16  Bruno Haible  <bruno@clisp.org>
87392
87393         * lib/mbfile.h: New file.
87394
87395 2005-08-16  Bruno Haible  <bruno@clisp.org>
87396
87397         * lib/mbchar.h: New file.
87398         * lib/mbchar.c: New file.
87399
87400 2005-08-16  Bruno Haible  <bruno@clisp.org>
87401
87402         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
87403         the valid ones. Makes the comparison operations transitive:
87404         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
87405         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
87406
87407 2005-08-15  Simon Josefsson  <jas@extundo.com>
87408
87409         * modules/ssize_t (License): Change to 'unlimited'.
87410
87411         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
87412
87413 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
87414
87415         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
87416         Add comments for each pending glibc patch.
87417
87418 2005-08-15  Bruno Haible  <bruno@clisp.org>
87419
87420         * lib/regex.h (__restrict_arr): Don't define to __restrict if
87421         __cplusplus is defined.
87422
87423 2005-08-14  Jim Meyering  <jim@meyering.net>
87424
87425         Sync from coreutils.
87426
87427         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
87428         Use the hash-table-based cycle-detection code not just when
87429         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
87430         Reported by James Youngman in
87431         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
87432         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
87433         FTS_TIGHT_CYCLE_CHECK.
87434         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
87435         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
87436         once again.
87437         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
87438         * lib/fts.c (fd_safer): Remove decl.
87439         Include fcntl--.h rather than unistd-safer.h
87440         (fts_safe_changedir): Don't call fd_safer; no longer needed
87441         now that we include fcntl--.h.
87442
87443 2005-08-12  Simon Josefsson  <jas@extundo.com>
87444
87445         * modules/getndelim2: Use ssize_t module.
87446         * modules/getnline: Likewise.
87447         * modules/safe-read: Likewise.
87448         * modules/xreadlink: Likewise.
87449
87450         * modules/ssize_t: New file.
87451
87452 2005-08-12  Simon Josefsson  <jas@extundo.com>
87453
87454         * m4/readline.m4: Look for termcap, curses or ncurses if required.
87455
87456 2005-08-12  Simon Josefsson  <jas@extundo.com>
87457
87458         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87459         ssize_t.
87460
87461 2005-08-12  Simon Josefsson  <jas@extundo.com>
87462
87463         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
87464         readline, getdelim and check_version.
87465         (Support for systems lacking ISO C 99: Sizes of integer types):
87466         Add size_max.
87467
87468 2005-08-12  Bruno Haible  <bruno@clisp.org>
87469
87470         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
87471
87472 2005-08-11  Simon Josefsson  <jas@extundo.com>
87473
87474         * modules/readline: New file.
87475
87476         * modules/strnlen (Files): Add strnlen.h.
87477
87478 2005-08-11  Simon Josefsson  <jas@extundo.com>
87479
87480         * m4/readline.m4: New file.
87481
87482 2005-08-11  Simon Josefsson  <jas@extundo.com>
87483
87484         * lib/readline.h, readline.c: New file.
87485
87486 2005-08-11  Simon Josefsson  <jas@extundo.com>
87487
87488         * doc/gnulib.texi (Initial import, Finishing touches): Mention
87489         gl_AVOID.
87490
87491 2005-08-11  Bruno Haible  <bruno@clisp.org>
87492
87493         * lib/strnlen.h (strnlen): Change parameter name to match comment.
87494
87495 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
87496
87497         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
87498
87499 2005-08-10  Simon Josefsson  <jas@extundo.com>
87500
87501         * tests/test-iconvme.c: New file.
87502
87503 2005-08-10  Simon Josefsson  <jas@extundo.com>
87504
87505         * m4/strnlen.m4: New file.
87506
87507         * m4/strndup.m4: Don't check for strnlen declaration, done in
87508         strnlen.m4.
87509
87510 2005-08-10  Simon Josefsson  <jas@extundo.com>
87511
87512         * lib/strndup.c: Use strnlen.h.
87513
87514         * lib/strnlen.h: New file.
87515
87516 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87517
87518         * README: Typos.
87519
87520 2005-08-02  Simon Josefsson  <jas@extundo.com>
87521
87522         * modules/readline: New file.
87523
87524 2005-08-02  Simon Josefsson  <jas@extundo.com>
87525
87526         * modules/getdelim: New file.
87527
87528         * modules/getline: Rewrite, don't use getndelim2.
87529
87530 2005-08-02  Simon Josefsson  <jas@extundo.com>
87531
87532         * m4/getline.m4: Separate out getdelim stuff into separate module.
87533
87534         * m4/getdelim.m4: New file.
87535
87536 2005-08-02  Simon Josefsson  <jas@extundo.com>
87537
87538         * lib/getline.h, getline.c: Rewrite.
87539
87540         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87541
87542 2005-07-31  Bruno Haible  <bruno@clisp.org>
87543
87544         * lib/lock.h (gl_lock_initializer): New macro.
87545         (gl_lock_define_initialized): Use it.
87546         (gl_rwlock_initializer): New macro.
87547         (gl_rwlock_define_initialized): Use it.
87548         (gl_recursive_lock_initializer): New macro.
87549         (gl_recursive_lock_define_initialized): Use it.
87550
87551 2005-07-30  Karl Berry  <karl@gnu.org>
87552
87553         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87554         Report from Ben Pfaff, regarding getopt.
87555
87556 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87557
87558         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87559         normal way.
87560         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87561         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87562         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87563         (gl_GETOPT): Use the new macros.  Most of the implementation
87564         is moved to the new macros.  This is for programs like Emacs
87565         that don't want all the functionality of gl_GETOPT.
87566
87567 2005-07-26  Bruno Haible  <bruno@clisp.org>
87568
87569         * m4/lock.m4: Update from GNU gettext.
87570
87571 2005-07-26  Bruno Haible  <bruno@clisp.org>
87572
87573         * lib/lock.h: Update from GNU gettext.
87574         * lib/lock.c: Update from GNU gettext.
87575
87576 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87577
87578         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87579         obsolescent AC_TRY_RUN.  Include the default includes files, for
87580         'exit'.
87581
87582 2005-07-24  Bruno Haible  <bruno@clisp.org>
87583
87584         * modules/visibility: New file.
87585         * MODULES.html.sh (Misc): Add visibility.
87586
87587 2005-07-24  Bruno Haible  <bruno@clisp.org>
87588
87589         * m4/visibility.m4: New file.
87590
87591 2005-07-24  Bruno Haible  <bruno@clisp.org>
87592
87593         * doc/visibility.texi: New file.
87594
87595 2005-07-22  Bruno Haible  <bruno@clisp.org>
87596
87597         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87598         $(ALLOCA_H), redundant through BUILT_SOURCES.
87599         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87600         redundant through BUILT_SOURCES.
87601         * modules/byteswap (Makefile.am): Remove explicit dependency on
87602         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87603         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87604         $(FNMATCH_H), redundant through BUILT_SOURCES.
87605         * modules/getopt (Makefile.am): Remove explicit dependency on
87606         $(GETOPT_H), redundant through BUILT_SOURCES.
87607         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87608         redundant through BUILT_SOURCES.
87609         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87610         redundant through BUILT_SOURCES.
87611         * modules/stdbool (Makefile.am): Remove explicit dependency on
87612         $(STDBOOL_H), redundant through BUILT_SOURCES.
87613         * modules/stdint (Makefile.am): Remove explicit dependency on
87614         $(STDINT_H), redundant through BUILT_SOURCES.
87615         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87616         Remove explicit dependency on $(SYSEXITS_H).
87617         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87618
87619 2005-07-18  Simon Josefsson  <jas@extundo.com>
87620
87621         * lib/check-version.c (check_version): Accept identical versions too.
87622
87623 2005-07-18  Bruno Haible  <bruno@clisp.org>
87624
87625         * modules/lock: New file.
87626         * MODULES.html.sh (Multithreading): New section.
87627
87628 2005-07-18  Bruno Haible  <bruno@clisp.org>
87629
87630         * m4/lock.m4: New file, from GNU gettext.
87631
87632 2005-07-18  Bruno Haible  <bruno@clisp.org>
87633
87634         * lib/lock.h: New file, from GNU gettext.
87635         * lib/lock.c: New file, from GNU gettext.
87636
87637 2005-07-18  Bruno Haible  <bruno@clisp.org>
87638
87639         * lib/lock.h (gl_once_t): New type.
87640         (gl_once_define, gl_once): New macros.
87641         * lib/lock.c (fresh_once): New variable.
87642         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87643         functions.
87644
87645 2005-07-16  Simon Josefsson  <jas@extundo.com>
87646
87647         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87648         workaround, suggested by Bruno.
87649
87650 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87651
87652         * modules/xalloc (Depends-on): Add xalloc-die.
87653         * modules/xvasprintf (Depends-on): Add xalloc-die.
87654
87655 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87656
87657         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87658         with a minor change.
87659
87660 2005-07-15  Bruno Haible  <bruno@clisp.org>
87661
87662         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87663         When using lib/poll.c, define poll as rpl_poll.
87664
87665 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87666
87667         * modules/argp (Depends-on): Remove unlocked-io.
87668
87669 2005-07-14  Derek Price  <derek@ximbiot.com>
87670
87671         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87672         for glob symlink bug.
87673
87674 2005-07-14  Bruno Haible  <bruno@clisp.org>
87675
87676         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87677         Instead, test for *_unlocked function declarations directly.
87678
87679 2005-07-11  Simon Josefsson  <jas@extundo.com>
87680
87681         * modules/size_max: New file.
87682
87683         * modules/xsize: Depend on size_max module for size_max.m4.
87684
87685 2005-07-11  Simon Josefsson  <jas@extundo.com>
87686
87687         * lib/size_max.h: New file.
87688
87689 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87690
87691         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87692         copyright symbol and the year.
87693         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87694         (version_etc_va): Use parameterized copyright notice.
87695         Reword to conform to the current GNU coding standards.
87696
87697 2005-07-11  Karl Berry  <karl@gnu.org>
87698
87699         * doc/gnulib.texi (Quoting): new node.
87700         (Initial import): more info, from Patrice.
87701
87702 2005-07-11  Bruno Haible  <bruno@clisp.org>
87703
87704         * gnulib-tool (func_usage): Document option --avoid.
87705         (Command line options): Handle --avoid.
87706         (func_acceptable): New function.
87707         (func_modules_transitive_closure): Use it.
87708
87709 2005-07-11  Bruno Haible  <bruno@clisp.org>
87710
87711         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87712         Reported by Jim Meyering.
87713
87714 2005-07-10  Bruno Haible  <bruno@clisp.org>
87715
87716         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87717         Needed when size_t is smaller than 'unsigned int'.
87718         Reported by Paul Eggert.
87719
87720 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87721
87722         * modules/argp (Depends-on): Add unlocked-io
87723
87724 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87725
87726         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87727         block of defines.
87728
87729 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87730
87731         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87732         fix now.
87733
87734 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87735         and Paul Eggert  <eggert@cs.ucla.edu>
87736
87737         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87738         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87739
87740 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87741
87742         * modules/regex (Files): Add lib/regex_internal.c,
87743         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87744         (Depends-on): Add extensions.
87745         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87746
87747 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87748
87749         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87750         pathconf.
87751         * m4/same.m4 (gl_SAME): Likewise.
87752         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87753
87754         * m4/regex.m4: Adjust to new libc regex implementation.
87755         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87756         all the .c and .h parts of (the new) regex.
87757         Quote the m4 stuff better.
87758         Check for RE_ICASE bug of old gnulib.
87759         Check for REG_STARTEND of recent libc.
87760         Rename local variables from jm_* to gl_*.
87761         Quote operand of "test -f".
87762         Say "recent enough" version of libc, not "version 2".
87763         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87764         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87765         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87766         Remove check for btowc, isascii.
87767         Require AM_LANGINFO_CODESET.
87768
87769 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87770
87771         * lib/regex.c, regex.h: Sync from libc.
87772         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87773         * lib/regexec.c:
87774         New files, synced from libc, except that regex_internal.h
87775         currently has a small porting fix.
87776
87777 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87778
87779         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87780         regex_internal.c, regexec.c.
87781         Add regex_internal.h too, but as a comment, since the libc version
87782         is currently broken in gnulib mode.
87783
87784 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87785
87786         Support programs like Emacs that use gnulib but not gettext.
87787         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87788         * modules/gettext-h: New file.
87789         * modules/gettext (Files): Remove lib/gettext.h.
87790         (Depends-on): Add gettext-h.
87791         (Makefile.am): Remove lib_SOURCES.
87792         * modules/argmatch, modules/c-stack, modules/closeout:
87793         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87794         * modules/execute, modules/file-type, modules/getaddrinfo:
87795         * modules/getopt, modules/human, modules/javacomp:
87796         * modules/javaexec, modules/mkdir-p, modules/obstack:
87797         * modules/openat, modules/pagealign_alloc, modules/pipe:
87798         * modules/quotearg, modules/regex, modules/rpmatch:
87799         * modules/unicodeio, modules/userspec, modules/version-etc:
87800         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87801         * modules/xsetenv:
87802         Depend on gettext-h, not gettext.
87803
87804 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87805
87806         * gnulib-tool (func_import): Add support for 'public domain' license.
87807         * modules/alloca, modules/atexit, modules/memmove:
87808         Now public domain, not GPL.
87809         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87810         * modules/realloc, modules/strerror, modules/strtod:
87811         Now LGPL, not GPL.
87812
87813 2005-07-05  Bruno Haible  <bruno@clisp.org>
87814
87815         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87816         autoconf CVS. Needed for mingw.
87817
87818 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87819
87820         Remove the dependency of the strftime module on the tzset module.
87821         * modules/strftime (Depends-on): Remove dependency on tzset.
87822
87823 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87824
87825         Remove the dependency of the strftime module on the tzset module.
87826         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87827         gl_FUNC_TZSET_CLOBBER.
87828
87829 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87830
87831         Remove the dependency of the strftime module on the tzset module.
87832         * lib/strftime.c (my_strftime)
87833         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87834         Copy the input structure, to work around some of the bug with
87835         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87836         Solaris releases, you should also use the tzset module, but we won't
87837         require it as a dependency any more since we don't want LGPLed code
87838         to depend on GPLed code.
87839
87840 2005-07-02  Jim Meyering  <jim@meyering.net>
87841
87842         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87843         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87844         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87845         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87846
87847 2005-07-02  Jim Meyering  <jim@meyering.net>
87848
87849         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87850
87851 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87852
87853         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87854         declares only 'struct timespec;' (!).
87855
87856 2005-07-01  Jim Meyering  <jim@meyering.net>
87857
87858         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87859         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87860         * lib/save-cwd.c, tempname.c:
87861         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87862         and don't include <sys/file.h>).
87863
87864 2005-06-29  Jim Meyering  <jim@meyering.net>
87865
87866         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87867         type name.  Use the variable name instead.
87868         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87869         Likewise.
87870
87871 2005-06-28  Simon Josefsson  <jas@extundo.com>
87872
87873         * modules/check-version (Files): Add check-version.m4.
87874
87875 2005-06-28  Simon Josefsson  <jas@extundo.com>
87876
87877         * m4/check-version.m4: New file, suggested by Jim Meyering
87878         <jim@meyering.net>.
87879
87880 2005-06-28  Simon Josefsson  <jas@extundo.com>
87881
87882         * lib/check-version.h, lib/check-version.c: New files.
87883
87884 2005-06-28  Simon Josefsson  <jas@extundo.com>
87885
87886         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87887         collision with global variable.  Better indentation.  Don't
87888         increment buffer pointer beyond buffer end.  Based on comments
87889         from Paul Eggert <eggert@cs.ucla.edu>.
87890
87891         * lib/base64.h: Indent.
87892
87893 2005-06-28  Simon Josefsson  <jas@extundo.com>
87894
87895         * doc/gnulib.texi (Library version handling): New section.
87896
87897 2005-06-28  Jim Meyering  <jim@meyering.net>
87898
87899         * check-module (find_included_lib_files): Hard-code another
87900         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87901         but modules/fts-lgpl (correctly) does not list those files.
87902
87903         * modules/canonicalize (Files): Add lib/pathmax.h.
87904
87905 2005-06-25  Simon Josefsson  <jas@extundo.com>
87906
87907         * modules/check-version: New file.
87908
87909 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87910
87911         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87912         initializer of struct addrinfo, as an indication that we don't
87913         care how many members the structure has.
87914
87915 2005-06-24  Derek Price  <derek@ximbiot.com>
87916         and Bruno Haible  <bruno@clisp.org>
87917
87918         Remove stat module & update lstat.
87919         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87920         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87921         * m4/stat.m4: Remove this file.
87922
87923 2005-06-24  Derek Price  <derek@ximbiot.com>
87924         and Bruno Haible  <bruno@clisp.org>
87925
87926         Remove stat module & update lstat.
87927         * lib/stat.c: Remove this file...
87928         (slash_aware_lstat): ...moving this content and its support...
87929         * lib/lstat.c (rpl_lstat): ...into here.
87930         * lib/lstat.h: New file.
87931
87932 2005-06-24  Derek Price  <derek@ximbiot.com>
87933         and Bruno Haible  <bruno@clisp.org>
87934
87935         Remove stat module & update lstat.
87936         * config/srclist.txt (libc sources): Remove stat.
87937
87938 2005-06-24  Derek Price  <derek@ximbiot.com>
87939         and Bruno Haible  <bruno@clisp.org>
87940
87941         Remove stat module & update lstat.
87942         * MODULES.html.sh (stat): Remove.
87943         * MODULES.html: Regenerated.
87944         * modules/lstat (Description): Correct function name.
87945         (Files): Add "lstat.h".
87946         (Depends-on): Remove stat, add xalloc, stat-macros.
87947         * modules/stat: Remove this file.
87948         (Include): Add "lstat.h", remove <sys/stat.h>.
87949
87950 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87951
87952         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87953         (ranged_convert): Don't save conversion in a temporary struct.
87954         This causes a warning with GCC 4.0.0, and anyway in the typical
87955         case it's not worth the extra 100 bytes or so of code.
87956         (ranged_convert, __mktime_internal): When calling a function via a
87957         pointer P, use P () rather than (*P) (), as we now assume C89 or
87958         better.
87959
87960 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87961
87962         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87963         "who -r" failed to give output.  Problem reported by Tim Waugh.
87964
87965         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87966         (xcalloc): Use it to avoid needless tests.
87967         Problem reported by Jim Meyering.
87968
87969 2005-06-20  Derek Price  <derek@ximbiot.com>
87970
87971         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87972         unnecessary for Autoconfs > 2.59c.
87973
87974 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87975
87976         * lib/argp.h (__option_is_short): Check upper limit of
87977         __key. Isprint() requires its argument to have the value
87978         of an unsigned char or EOF.
87979
87980 2005-06-16  Jim Meyering  <jim@meyering.net>
87981
87982         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87983         when either N or S is zero.
87984
87985 2005-06-16  Derek Price  <derek@ximbiot.com>
87986
87987         * m4/bison.m4: Declare YACC & YFLAGS precious.
87988
87989 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87990
87991         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87992         multibyte string or pattern, fall back on unibyte matching.
87993         Problem reported by James Youngman.
87994
87995 2005-06-08  Bruno Haible  <bruno@clisp.org>
87996
87997         * modules/csharpcomp: New file.
87998         * MODULES.html.sh (C#): Add csharpcomp.
87999
88000 2005-06-08  Bruno Haible  <bruno@clisp.org>
88001
88002         * m4/csharpcomp.m4: New file, from GNU gettext.
88003
88004 2005-06-08  Bruno Haible  <bruno@clisp.org>
88005
88006         * lib/csharpcomp.h: New file, from GNU gettext.
88007         * lib/csharpcomp.c: New file, from GNU gettext.
88008         * lib/csharpcomp.sh.in: New file, from GNU gettext.
88009
88010 2005-06-08  Bruno Haible  <bruno@clisp.org>
88011
88012         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
88013         warning on mingw.
88014
88015 2005-06-07  Derek Price  <derek@ximbiot.com>
88016
88017         Sync from CVS.
88018         * lib/glob_.h: Indent nested #ifdef.
88019
88020 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88021
88022         Sync from coreutils.
88023         Use "file name" when talking about file names, instead of "filename"
88024         or "path", as per the GNU coding standards.
88025         * lib/mkdir-p.c: Renamed from makepath.c.
88026         (make_dir_parents): Renamed from make_path.  All callers changed.
88027         * lib/mkdir-p.h: Likewise.  All includers changed.
88028         * lib/filenamecat.c: Renamed from path-concat.c.
88029         (file_name_concat): Renamed from path_concat.  All callers changed.
88030         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
88031         * lib/filenamecat.h: Likewise.  All includers changed.
88032         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
88033         in comments or local variable names.
88034         * lib/basename.c: Likewise.
88035         * lib/canonicalize.c, canonicalize.h: Likewise.
88036         * lib/dirname.c, dirname.h: Likewise.
88037         * lib/euidaccess.c: Likewise.
88038         * lib/exclude.c: Likewise
88039         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
88040         * lib/fsusage.c, fsuage.h: Likewise.
88041         * lib/fts.c, fts_.h: Likewise.
88042         * lib/getcwd.c: Likewise.
88043         * lib/getloadavg.c: Likewise.
88044         * lib/mkstemp.c: Likewise.
88045         * lib/mountlist.c, mountlist.h: Likewise.
88046         * lib/openat.c, openat.h: Likewise.
88047         * lib/readlink-stub.c: Likewise.
88048         * lib/readutmp.c, readutmp.h: Likewise.
88049         * lib/rename.c: Likewise.
88050         * lib/rmdir.c: Likewise.
88051         * lib/same.c: Likewise.
88052         * lib/savedir.c: Likewise.
88053         * lib/stripslash.c: Likewise.
88054         * lib/tempname.c: Likewise.
88055         * lib/xreadlink.c: Likewise.
88056         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
88057         All uses changed.
88058         * lib/exclude.h: Likewise.
88059
88060         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
88061         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88062         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
88063         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88064         * lib/pathmax.h: Include <limits.h> unconditionally, since other
88065         files have been getting away with it for years (MORE/BSD 4.3
88066         is extinct now).
88067         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
88068         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88069
88070         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
88071         Define to 256, not 255, as per modern POSIX.
88072
88073 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88074
88075         Sync from coreutils.
88076         Use "file name" when talking about file names, instead of "filename"
88077         or "path", as per the GNU coding standards.
88078         * MODULES.html.sh: mkdir-p renamed from makepath.
88079         filenamecat renamed from path-concat.
88080         * modules/filenamecat: Renamed from modules/path-concat.
88081         (Files): filenamecat.h and filenamecat.c renamed from
88082         path-concat.h and path-concat.c.
88083         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
88084         (Include): filenamecat.h, not path-concat.h.
88085         * modules/mkdir-p: Renamed from modules/makepath.
88086         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
88087         makepath.c.
88088         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
88089         (Include): mkdir-p.h, not makepath.h.
88090
88091 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88092
88093         Sync from coreutils.
88094         * m4/mkdir-p.m4: Renamed from makepath.m4.
88095         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
88096         Rename files from makepath.c to mkdir-p.c, and from
88097         makepath.h to mkdir-p.h.
88098         * m4/filenamecat.m4: Renamed from path-concat.m4.
88099         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
88100         Rename files from path-concat.c to filenamecat.c,
88101         and from path-concat.h to filenamecat.h.
88102         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
88103         "file name" in local variables or comments.
88104         * m4/rename.m4: Likewise.
88105
88106 2005-06-01  Bruno Haible  <bruno@clisp.org>
88107
88108         * modules/csharpexec: New file.
88109         * MODULES.html.sh (C#): New section.
88110
88111 2005-06-01  Bruno Haible  <bruno@clisp.org>
88112
88113         * m4/csharp.m4: New file, from GNU gettext.
88114         * m4/csharpexec.m4: New file, from GNU gettext.
88115
88116 2005-06-01  Bruno Haible  <bruno@clisp.org>
88117
88118         * lib/csharpexec.h: New file, from GNU gettext.
88119         * lib/csharpexec.c: New file, from GNU gettext.
88120         * lib/csharpexec.sh.in: New file, from GNU gettext.
88121
88122 2005-05-31  Derek Price  <derek@ximbiot.com>
88123             Paul Eggert  <eggert@cs.ucla.edu>
88124
88125         Sync from cvs.
88126         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88127
88128 2005-05-31  Derek Price  <derek@ximbiot.com>
88129             Paul Eggert  <eggert@cs.ucla.edu>
88130
88131         Sync from cvs.
88132         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88133
88134 2005-05-29  Derek Price  <derek@ximbiot.com>
88135
88136         * config/srclist.txt (glob_.h, glob.c): Add these files.
88137
88138 2005-05-29  Derek Price  <derek@ximbiot.com>
88139
88140         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
88141         * modules/glob: New file.
88142         * modules/getlogin_r: Add link to POSIX spec in description.
88143
88144 2005-05-29  Derek Price  <derek@ximbiot.com>
88145             Paul Eggert  <eggert@cs.ucla.edu>
88146
88147         * m4/glob.m4: New file.
88148
88149 2005-05-29  Derek Price  <derek@ximbiot.com>
88150             Paul Eggert  <eggert@cs.ucla.edu>
88151
88152         * lib/glob_.h, lib/glob.c: New files.
88153
88154 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88155
88156         * modules/fts (Files): Remove m4/inttypes-pri.m4.
88157         * modules/fts-lgpl (Depends-on): Remove gettext.
88158
88159 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88160
88161         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
88162         and don't require gt_INTTYPES_PRI.
88163
88164 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88165
88166         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
88167
88168         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
88169         the configuration hassle isn't worth it.
88170         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
88171         (LONGEST_MODIFIER, PRIuMAX): Remove.
88172
88173 2005-05-27  Bruno Haible  <bruno@clisp.org>
88174
88175         * lib/getlogin_r.h: Remove second include of <stddef.h>.
88176
88177 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
88178
88179         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
88180         _POSIX_PTHREAD_SEMANTICS for Solaris.
88181
88182 2005-05-25  Derek Price  <derek@ximbiot.com>
88183
88184         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
88185
88186 2005-05-25  Derek Price  <derek@ximbiot.com>
88187             Paul Eggert  <eggert@cs.ucla.edu>
88188
88189         * modules/getlogin_r, m4/getlogin_r.m4: New files.
88190         * lib/getlogin_r.c, getlogin_r.h: New files.
88191
88192 2005-05-25  Bruno Haible  <bruno@clisp.org>
88193             Derek Price  <derek@ximbiot.com>
88194
88195         * lib/getlogin_r.h: Simplify API documentation.
88196
88197 2005-05-23  Derek Price  <derek@ximbiot.com>
88198
88199         * modules/minmax (Files): Add m4/minmax.m4.
88200         (configure.ac): Add gl_MINMAX.
88201
88202 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
88203
88204         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
88205         so that unistd-safer.h (GPL'ed code) need not be included.
88206
88207 2005-05-22  Bruno Haible  <bruno@clisp.org>
88208
88209         * m4/minmax.m4: New file.
88210         Based on a patch by Derek Price <derek@ximbiot.com>.
88211
88212 2005-05-22  Bruno Haible  <bruno@clisp.org>
88213
88214         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
88215         (INT64_MIN): Fix definition.
88216         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
88217
88218         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
88219         NEED_SIGNED_INT_TYPES.
88220
88221         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
88222         HAVE_SYSTEM_INTTYPES.
88223
88224 2005-05-22  Bruno Haible  <bruno@clisp.org>
88225
88226         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
88227         Also include <sys/param.h> if it defines MIN, MAX.
88228         Based on a patch by Derek Price <derek@ximbiot.com>.
88229
88230 2005-05-21  Jim Meyering  <jim@meyering.net>
88231
88232         * modules/fts (Files): Add m4/inttypes-pri.m4.
88233         (Depends-on): Add lstat and remove gettext.  Alphabetize.
88234
88235 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88236
88237         New fts module.
88238         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
88239         (setup_dir, free_dir): New functions.
88240         (enter_dir, leave_dir): Define trivial
88241         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
88242         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
88243         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
88244         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
88245         Move to fts-cycle.c.
88246         (fts_open): Use setup_dir.
88247         (fts_close): Use free_dir.
88248         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
88249         This adds a label and some gotos, but the alternatives were messier.
88250         Check for memory allocation failure when entering a dir.
88251         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
88252         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
88253         (FTS): New member fts_cycle, that is a union that contains the
88254         old active_dir_ht and cycle_state.  All uses changed to mention
88255         fts_cycle.ht and fts_cycle.state.
88256         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
88257         fts.c, with the following changes:
88258         (setup_dir, free_dir): New functions.
88259         (enter_dir): Now returns bool.  Return true if successful, false
88260         if memory exhausted.  All callers changed.
88261         Do not bother partly cleaning up on
88262         memory allocation failure; that is free_dir's job.
88263         However, free ad if hash_insert fails, to avoid memory leak.
88264         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
88265         fts->fts_options to see which union member to use.
88266
88267 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88268
88269         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
88270         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
88271
88272 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88273
88274         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
88275
88276 2005-05-20  Jim Meyering  <jim@meyering.net>
88277
88278         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
88279         Now a macro, to pacify GCC.
88280
88281 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88282
88283         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
88284         of -1.
88285
88286 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88287
88288         * lib/chown.c (rpl_chown): Return -1 on failure.
88289
88290 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88291
88292         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
88293         Don't check for stddef.h.
88294         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
88295         don't use its results.
88296         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
88297         since we include them unconditionally.  Don't require
88298         AM_STDBOOL_H, since stdbool is a prerequisite.
88299         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
88300         since we assume C89 or better.
88301         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
88302         as we don't use their results.
88303         Don't check for fchdir, memmove, memset, strrchr, as we use
88304         them unconditionally.
88305         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
88306         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
88307
88308 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88309
88310         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
88311         Include <stddef.h> unconditionally, since we assume C89 now.
88312         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
88313         * lib/fts.c: Include fts_.h first, to check interface.
88314         Do not include intprops.h; no longer needed.
88315         Include cycle-check.h and hash.h, since fts_.h no longer does.
88316         Remove unnecessary casts of closedir to void.
88317         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
88318         decide whether to decrement nlinks.
88319         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
88320         (FTS): Use struct hash_table * instead of Hash_table, so that
88321         we no longer need to include hash.h here.
88322
88323 2005-05-18  Jim Meyering  <jim@meyering.net>
88324
88325         * modules/dirfd (License): Change to LGPL.  Most of the code
88326         is already in the public domain.
88327
88328 2005-05-18  Jim Meyering  <jim@meyering.net>
88329
88330         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
88331         Reported by Yoann Vandoorselaere.
88332
88333 2005-05-17  Jim Meyering  <jim@meyering.net>
88334
88335         * m4/fts.m4: New file, from coreutils.
88336
88337 2005-05-17  Jim Meyering  <jim@meyering.net>
88338
88339         * lib/fts.c, lib/fts_.h: New files, from coreutils.
88340
88341 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88342
88343         Sync from coreutils.
88344         * m4/unlinkdir.m4: New file.
88345
88346 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88347
88348         Sync from coreutils.
88349         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
88350         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
88351         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
88352         White space changes only.
88353         * lib/makepath.c (make_path): Port to hosts where leading "//" is
88354         special.
88355         * lib/yesno.c: Include getline.h, not ctype.h.
88356         (yesno): Don't remove leading white space; POSIX doesn't allow it.
88357         Use getline to remove arbitrary restriction on response length.
88358
88359 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88360
88361         * config/srclist-update: Spell out "Street" in FSF postal
88362         mail address; this is the style the FSF seems to prefer.
88363
88364         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
88365         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
88366         this updates FSF postal mail address.
88367
88368         Sync from coreutils.
88369         * modules/unlinkdir: New file.
88370         * modules/yesno (Depends-on): Add getline.
88371         * MODULES.html.sh (File system functions): Add unlinkdir.
88372
88373 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88374
88375         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
88376         lib/strsep.h:
88377         Change the initial comment to refer to GPL, not LGPL.
88378         gnulib-tool will change it to LGPL as needed.
88379
88380         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
88381         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
88382         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
88383         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
88384         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
88385         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
88386         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
88387         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
88388         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
88389         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
88390         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
88391         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
88392         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
88393         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
88394         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
88395         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
88396         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
88397         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
88398         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
88399         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
88400         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
88401         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
88402         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
88403         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
88404         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
88405         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
88406         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
88407         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
88408         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
88409         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
88410         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
88411         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
88412         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
88413         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
88414         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
88415         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
88416         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
88417         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
88418         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
88419         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
88420         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
88421         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
88422         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
88423         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
88424         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
88425         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
88426         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
88427         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
88428         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
88429         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
88430         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88431         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
88432         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
88433         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
88434         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
88435         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
88436         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
88437         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
88438         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
88439         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
88440         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
88441         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
88442         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
88443         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
88444         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
88445         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
88446         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
88447         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
88448         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
88449         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
88450         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
88451         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
88452         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
88453         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
88454         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
88455         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
88456         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
88457         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
88458         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
88459         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
88460         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
88461         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
88462         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
88463         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
88464         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
88465         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
88466         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
88467         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
88468         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
88469         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
88470         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
88471         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
88472         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
88473         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
88474         lib/yesno.c, lib/yesno.h:
88475         Update FSF postal mail address.
88476
88477 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88478
88479         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
88480         tests/test-memmem.c, tests/test-stpncpy.c:
88481         Update FSF postal mail address.
88482
88483 2005-05-13  Bruno Haible  <bruno@clisp.org>
88484
88485         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
88486         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
88487         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
88488         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
88489         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
88490         Add support for 64-bit integers in the MSVC compiler.
88491
88492 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88493
88494         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
88495
88496 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
88497
88498         * gnulib-tool (func_import): Sort and uniquify recommended includes.
88499
88500 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
88501
88502         * doc/getdate.texi (General date syntax): Don't say that date
88503         date --iso-8601=ns generates acceptable dates; it doesn't yet.
88504         Problem reported by Nic Ferrier.
88505
88506 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88507
88508         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88509         specified in ai_socktype. Fix invalid ai_protocol
88510         check. ai_protocol is usually set to 0 or depending on
88511         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88512         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88513         ai_socktype / ai_protocol in the returned addrinfo structure.
88514
88515 2005-05-10  Simon Josefsson  <jas@extundo.com>
88516
88517         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88518         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88519
88520 2005-05-10  Karl Berry  <karl@gnu.org>
88521
88522         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88523         (from http://www.gnu.org/licenses).
88524         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88525         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88526         fdl.texi suffices.
88527
88528 2005-05-10  Karl Berry  <karl@gnu.org>
88529
88530         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88531         (COPYING.DOC): remove.
88532
88533         * config/srclist-update: new FSF address.
88534
88535 2005-05-10  Derek Price  <derek@ximbiot.com>
88536
88537         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88538         possible.
88539
88540 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88541             Bruno Haible  <bruno@clisp.org>
88542
88543         * modules/inet_ntop: New file.
88544         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88545         inet_ntop.
88546
88547 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88548             Bruno Haible  <bruno@clisp.org>
88549
88550         * m4/inet_ntop.m4: New file.
88551
88552 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88553             Bruno Haible  <bruno@clisp.org>
88554
88555         * lib/inet_ntop.h: New file.
88556         * lib/inet_ntop.c: New file, from glibc with modifications.
88557
88558 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88559
88560         * modules/time_r (License): Change to LGPL.
88561         * modules/extensions (License): Change to LGPL.  Actually,
88562         the license is more permissive than that, but currently gnulib-tool
88563         doesn't know how to handle more-permissive licenses.
88564
88565         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88566         Problem reported by Dave Love.
88567
88568 2005-05-08  Jim Meyering  <jim@meyering.net>
88569
88570         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88571         blank.
88572
88573 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88574
88575         * modules/argmatch (Depends-on): Add stdbool.
88576         * modules/backupfile (Depends-on): Likewise.
88577         * modules/chdir-long (Depends-on): Likewise.
88578         * modules/closeout (Depends-on): Likewise.
88579         * modules/cycle-check (Depends-on): Likewise.
88580         * modules/dirname (Depends-on): Likewise.
88581         * modules/fnmatch (Depends-on): Likewise.
88582         * modules/fsusage (Depends-on): Likewise.
88583         * modules/fwriteerror (Depends-on): Likewise.
88584         * modules/getcwd (Depends-on): Likewise.
88585         * modules/getloadavg (Depends-on): Likewise.
88586         * modules/hard-locale (Depends-on): Likewise.
88587         * modules/makepath (Depends-on): Likewise.
88588         * modules/mountlist (Depends-on): Likewise.
88589         * modules/nanosleep (Depends-on): Likewise.
88590         * modules/posixtm (Depends-on): Likewise.
88591         * modules/quotearg (Depends-on): Likewise.
88592         * modules/readtokens (Depends-on): Likewise.
88593         * modules/readtokens0 (Depends-on): Likewise.
88594         * modules/readutmp (Depends-on): Likewise.
88595         * modules/save-cwd (Depends-on): Likewise.
88596         * modules/strftime (Depends-on): Likewise.
88597         * modules/userspec (Depends-on): Likewise.
88598         * modules/utimecmp (Depends-on): Likewise.
88599         * modules/xgetcwd (Depends-on): Likewise.
88600         * modules/xnanosleep (Depends-on): Likewise.
88601         * modules/xstrtod (Depends-on): Likewise.
88602         * modules/yesno (Depends-on): Likewise.
88603
88604 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88605
88606         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88607         needless checks.
88608
88609 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88610
88611         Merge from coreutils.  Among other things,
88612         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88613         * lib/fd-safer.c: New file.
88614         * lib/fcntl-safer.h, open-safer.c: Remove.
88615         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88616         * lib/dup-safer.c: Include unistd-safer.h first.
88617         Don't include errno.h.
88618         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88619         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88620         * lib/file-type.c: Rely on file-type.h change.
88621         * lib/getloadavg.c: Include unistd-safer.h.
88622         (getloadavg): Use safer open.
88623         * lib/getusershell.c: Include "stdio-safer.h".
88624         (getusershell): Use safer fopen.
88625         * lib/long-options.c (long_options): Use NULL rather than 0.
88626         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88627         'free'.
88628         * lib/modechange.c: Likewise.
88629         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88630         (MODE_DONE): New constant.
88631         (struct mode_change): Remove 'next' member.
88632         (make_node_op_equals): New function; like the old one of the
88633         same name, except it allocates an array.
88634         (mode_compile, mode_create_from_ref): Use it.
88635         (mode_compile): Allocate result as an array, not a linked list.
88636         Parse octal string ourself, so that we catch mistakes like "+0".
88637         (mode_adjust): Arg is an array, not a linked list.
88638         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88639         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88640         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88641         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88642         Remove.  This is now stat-macros.h's job.
88643         (talloc): Remove.  All callers replaced by xalloc, so that
88644         our invokers don't have to worry about reporting memory failures.
88645         (make_node_op_equals): Remove.
88646         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88647         New constants.
88648         (struct mode_change): Moved here from modechange.h.
88649         (mode_append_entry): Remove.
88650         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88651         apps to have incorrect behavior.  Use simpler algorithm for head
88652         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88653         Detect more invalid usages rather than having somewhat-random behavior.
88654         Don't insert an "a=" action, as that leads to incorrect behavior.
88655         (mode_compile, mode_create_from_ref): Return NULL on error instead
88656         of an enum, since now there's only one way to have an error.  All
88657         callers changed.
88658         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88659         at the correct time.  Simplify calculation of "+u" and its ilk.
88660         Don't mishandle "+X".
88661         (mode_free): Remove "register" and localize decls.
88662         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88663         (struct mode_change): Move to modechange.c; callers don't
88664         need to see this stuff.
88665         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88666         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88667         (mode_change, mode_adjust): Reflect the new signatures noted above.
88668         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88669         that might redefine system include files.
88670         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88671         (my_usleep): Use NULL rather than (void *) 0.
88672         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88673         Use siginterrupt to specify that system calls should be interrupted.
88674         (rpl_nanosleep): Move initialization of suspended closer to call of
88675         my_usleep.
88676         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88677         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88678         (desirable_utmp_entry): New function.
88679         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88680         using x2nrealloc, to simplify logic.
88681         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88682         size calculation.  Do not assume utmp file is a regular file.
88683         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88684         (READ_UTMP_CHECK_PIDS): New constant.
88685         * lib/save-cwd.c: Include unistd-safer.h.
88686         (save_cwd): Use fd_safer.
88687         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88688         [!_LIBC] Include "stat-macros.h" instead.
88689         * lib/unistd-safer.h (fd_safer): New decl.
88690
88691 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88692
88693         * modules/getloadavg (Depends-on): Add unistd-safer.
88694         * modules/getusershell (Depends-on): Add stdio-safer.
88695         * modules/lstat (Depends-on): Remove xalloc.
88696         * modules/mkstemp (Depends-on): Add stat-macros.
88697         * modules/modechange (Depends-on): Remove xstrtol.
88698         Add stat-macros, xalloc.
88699         * modules/save-cwd (Depends-on): Add unistd-safer.
88700         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88701         * modules/unistd-safer (Files): Add lib/fd-safer.c
88702         (Makefile.am): Remove lib_SOURCES.
88703
88704         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88705         Remove fcntl-safer; unistd-safer supersedes it.
88706
88707 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88708
88709         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88710         AC_HEADER_STAT.
88711         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88712         (gl_PREREQ_CHOWN): Remove.
88713         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88714         it.  Don't require AC_HEADER_STAT.
88715         (gl_PREREQ_LSTAT): Remove.
88716         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88717         Don't require AC_HEADER_STAT.
88718         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88719         (gl_PREREQ_RMDIR): Remove.
88720         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88721         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88722         the stat-macros module a prerequisite.
88723         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88724         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88725         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88726         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88727         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88728         variable names.
88729         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88730         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88731         variable prefixes.
88732         * m4/fcntl-safer.m4: Remove.
88733         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88734         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88735         Invoke gl_PREREQ_FD_SAFER.
88736         (gl_PREREQ_FD_SAFER): New macro.
88737         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88738         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88739         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88740         Remove duplicate call to AC_LIBOBJ(readutmp).
88741         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88742
88743         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88744         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88745
88746 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88747
88748         * MODULES.html.sh (Misc): Add byteswap.
88749
88750 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88751
88752         * modules/getcwd (Depends-on): Add extensions.
88753         * modules/openat (Depends-on): Likewise.
88754
88755 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88756
88757         * modules/byteswap: New file.
88758
88759 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88760
88761         * m4/byteswap.m4: New file.
88762
88763 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88764
88765         * lib/byteswap_.h: New file.
88766
88767 2005-04-25  Karl Berry  <karl@gnu.org>
88768
88769         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88770
88771 2005-04-25  Albert Chin  <china@thewrittenword.com>
88772
88773         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88774         Toolkit C bug.
88775
88776 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88777
88778         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88779         (func_ln_if_changed): Remove forcibly for no error message
88780         in case file does not exist.
88781
88782 2005-04-19  Simon Josefsson  <jas@extundo.com>
88783
88784         * gnulib-tool (Options): Make --symlink mean --symbolic.
88785
88786 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88787
88788         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88789
88790 2005-04-16  Simon Josefsson  <jas@extundo.com>
88791
88792         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88793
88794 2005-04-15  Simon Josefsson  <jas@extundo.com>
88795
88796         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88797
88798 2005-04-15  Simon Josefsson  <jas@extundo.com>
88799
88800         * gnulib-tool: Rename --symlink to --symbolic.
88801
88802 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88803
88804         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88805         symbolic links to files instead of copying/moving.  Add --aux-dir,
88806         specifying directory relative --dir where auxiliary build tools
88807         are placed.
88808
88809 2005-04-14  Bruno Haible  <bruno@clisp.org>
88810
88811         * modules/allocsa (License): Change to LGPL.
88812         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88813
88814 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88815
88816         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88817         that "UTC +1 second" continues to work.  Problem reported
88818         by Dmitry V. Levin.
88819         (relunit_snumber): New rule.
88820         (relunit): Use it.
88821
88822 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88823
88824         * lib/getdate.y (universal_time_zone_table): New constant.
88825         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88826         universal_time_zone_table.
88827         (lookup_zone): Prefer universal_time_zone_table to
88828         local_time_zone_table, so that "GMT" time stamps are allowed in
88829         London during the summer.  Problem reported by Ian Abbott.
88830
88831 2005-04-12  Jim Meyering  <jim@meyering.net>
88832
88833         * lib/human.c (humblock): Set *options even when returning due to
88834         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88835         warning from gcc-4.
88836
88837 2005-04-09  Jim Meyering  <jim@meyering.net>
88838
88839         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88840         -Wuninitialized: initialize tm0.tm_year.
88841
88842 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88843
88844         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88845         count, since there's no maximum.  All uses changed.
88846         Add member dsts_seen.
88847         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88848         not being INT_MAX.
88849         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88850         Use pc_rels_seen to decide whether a date is absolute.
88851
88852         * lib/getdate.y (number): Don't overwrite year.
88853         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88854         check.
88855
88856 2005-04-02  Simon Josefsson  <jas@extundo.com>
88857
88858         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88859         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88860
88861 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88862
88863         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88864         where no absolute path name can be longer than PATH_MAX.
88865
88866 2005-03-27  Jim Meyering  <jim@meyering.net>
88867
88868         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88869
88870 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88871
88872         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88873         "one's complement" -> "ones' complement" in comment, as per Knuth.
88874         "value of type" -> "type or expression" in comment.
88875         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88876
88877 2005-03-26  Jim Meyering  <jim@meyering.net>
88878
88879         Comment nits.
88880         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88881         Correct typos: s/or/of/.
88882
88883 2005-03-26  Jim Meyering  <jim@meyering.net>
88884
88885         * modules/check-include-files: Move to ../ and rename to...
88886         * check-module: ...this.
88887
88888 2005-03-25  Jim Meyering  <jim@meyering.net>
88889
88890         * modules/xvasprintf (Files): Add xalloc.h.
88891
88892 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88893
88894         * modules/gettext (Files): config/config.rpath ->
88895         build-aux/config.rpath
88896         * modules/iconv (Files): Likewise.
88897         Problem reported by Oskar Liljeblad.
88898
88899 2005-03-23  Jim Meyering  <jim@meyering.net>
88900
88901         * modules/check-include-files: New script to check for
88902         missing dependencies, multiple includes, etc.
88903
88904         * modules/c-strtold (Depends-on): Add xalloc.
88905         * modules/c-strtod (Depends-on): Add xalloc.
88906         * modules/hash (Depends-on): Add xalloc.
88907         (Files): Remove lib/xalloc.h.
88908
88909         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88910         * modules/userspec (Files): Add lib/inttostr.h.
88911
88912 2005-03-23  Jim Meyering  <jim@meyering.net>
88913
88914         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88915
88916 2005-03-22  Jim Meyering  <jim@meyering.net>
88917
88918         * modules/stat-macros: New module.
88919         * modules/canonicalize, modules/euidaccess, modules/file-type,
88920         * modules/filemode, modules/lchown, modules/makepath,
88921         * modules/rmdir, modules/stat: Depend on new stat-macros module
88922         rather than listing lib/stat-macros.h manually.
88923         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88924
88925 2005-03-22  Jim Meyering  <jim@meyering.net>
88926
88927         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88928
88929 2005-03-22  Bruno Haible  <bruno@clisp.org>
88930
88931         * config/srclist.txt: Replace target directory 'config' with
88932         'build-aux'.
88933         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88934         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88935         ../build-aux/.
88936
88937 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88938
88939         * modules/chdir-long (Depends-on): Add mempcpy.
88940
88941         * modules/acl, modules/backupfile, modules/c-strtod,
88942         modules/c-strtold, modules/canon-host, modules/canonicalize,
88943         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88944         modules/exclude, modules/exitfail, modules/file-type,
88945         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88946         modules/getdate, modules/getline, modules/getpagesize,
88947         modules/getpass, modules/getugroups, modules/group-member,
88948         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88949         modules/inttostr, modules/long-options, modules/makepath,
88950         modules/md5, modules/memcasecmp, modules/memcoll,
88951         modules/modechange, modules/mountlist, modules/path-concat,
88952         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88953         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88954         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88955         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88956         modules/strftime, modules/strndup, modules/strverscmp,
88957         modules/timespec, modules/unlocked-io, modules/userspec,
88958         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88959         modules/yesno:
88960         Remove lib_SOURCES line from Makefile.am section, as this is now
88961         done automatically by the corresponding Autoconf macro.
88962
88963 2005-03-21  Jim Meyering  <jim@meyering.net>
88964
88965         Changes imported from coreutils.
88966
88967         * lib/cycle-check.c: Don't include xalloc.h.
88968
88969         * lib/path-concat.c: Don't include assert.h.
88970         (path_concat): Remove assertion that would have triggered
88971         for ABASE starting with more than one slash.
88972         Reported by Andreas Schwab.
88973
88974         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88975         properly when ABASE is an absolute file name.
88976         Correct the description of this function.
88977         Include <assert.h>.
88978         Add an assertion and a test driver.
88979         This fixes a bug introduced on 2004-07-02.
88980         Andreas Schwab reported the resulting failure of cp --parents:
88981         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88982
88983 2005-03-21  Jim Meyering  <jim@meyering.net>
88984
88985         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88986         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88987
88988 2005-03-21  Jim Meyering  <jim@meyering.net>
88989         and  Paul Eggert  <eggert@cs.ucla.edu>
88990
88991         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88992         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88993         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88994         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88995         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88996         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88997         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88998         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88999         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
89000         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
89001         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
89002         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
89003         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
89004         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
89005         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
89006         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
89007         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
89008         for these modules.
89009
89010 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
89011
89012         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
89013         (which shouldn't happen), generate nothing instead of returning 0
89014         immediately, so that nstrftime (NULL, ...) doesn't return 0.
89015
89016 2005-03-16  Bruno Haible  <bruno@clisp.org>
89017
89018         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
89019         HAVE_LONGLONG_64BIT.
89020
89021 2005-03-16  Bruno Haible  <bruno@clisp.org>
89022
89023         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
89024         HAVE_LONGLONG_64BIT.
89025
89026 2005-03-16  Bruno Haible  <bruno@clisp.org>
89027
89028         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
89029         HAVE_LONGLONG_64BIT.
89030
89031 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
89032
89033         * lib/strftime.c (my_strftime): Prepend space to format so that we can
89034         reliably distinguish strftime failure from empty output on POSIX
89035         hosts.
89036
89037 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
89038
89039         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
89040         (iconv_string): Don't guess a size-zero buffer, as that might cause
89041         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
89042         result would be 'too large', where 'too large' is (heuristically)
89043         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
89044         overflow concerns.  This will prevent some unwanted malloc failures
89045         when the inputs are very large.
89046
89047 2005-03-15  Karl Berry  <karl@gnu.org>
89048
89049         * config/srclist.txt (config.rpath): from gettext.
89050         * config/config.rpath: update.
89051
89052 2005-03-15  Bruno Haible  <bruno@clisp.org>
89053
89054         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
89055         to 'negate'.
89056
89057         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
89058         variable.
89059
89060         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
89061         results.
89062
89063 2005-03-14  Simon Josefsson  <jas@extundo.com>
89064
89065         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
89066         <fx@gnu.org>.
89067
89068 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
89069
89070         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
89071         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
89072         intprops.h.
89073         * lib/strtol.c: Likewise.
89074
89075 2005-03-14  Jim Meyering  <jim@meyering.net>
89076
89077         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
89078         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
89079         to be nonzero so that we (and caller) can detect the difference
89080         between a valid zero-length expansion and an error return, even
89081         when the underlying strftime fails before writing anything into
89082         that location.
89083
89084 2005-03-14  Bruno Haible  <bruno@clisp.org>
89085
89086         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
89087         Update from GNU gettext 0.14.3.
89088
89089 2005-03-10  Jim Meyering  <jim@meyering.net>
89090
89091         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
89092
89093 2005-03-10  Jim Meyering  <jim@meyering.net>
89094
89095         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
89096         so that this module works on systems without fchdir.
89097
89098 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
89099
89100         Factor int-properties macros into a single file, except for
89101         glibc-related files.
89102         * lib/intprops.h: New file.
89103         * lib/getloadavg.c: Include it instead of limits.h.
89104         (INT_STRLEN_BOUND): Remove.
89105         * lib/human.c: Include intprops.h.
89106         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
89107         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
89108         302/1000.
89109         * lib/inttostr.h: Include intprops.h instead of limits.h.
89110         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
89111         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
89112         for consistency with intprops.h.
89113         (time_t_is_integer, twos_complement_arithmetic): Use them.
89114         * lib/sig2str.h: Include <signal.h>, intprops.h.
89115         (INT_STRLEN_BOUND): Remove.
89116         * lib/strftime.c (TYPE_SIGNED): Remove.
89117         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
89118         * lib/strtol.c: Adjust comments to match intprops.h.
89119         * lib/userspec.c: Include intprops.h.
89120         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
89121         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
89122         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
89123         instead of rolling our own expressions.
89124         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
89125
89126         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
89127         instead of int.
89128         (my_strftime): Do not mishandle years close to INT_MAX, by doing
89129         the right thing even if adding 1900 would overflow.  Similarly
89130         for tm_mon + 1 and tm_yday + 1.
89131         Make %Y always equivalent to %C%y, and similarly for %G and %g.
89132         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
89133         (DO_SIGNED_NUMBER): New macro.
89134         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
89135
89136 2005-03-07  Bruno Haible  <bruno@clisp.org>
89137
89138         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
89139
89140 2005-03-07  Bruno Haible  <bruno@clisp.org>
89141
89142         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
89143
89144 2005-03-04  Derek R. Price  <derek@ximbiot.com>
89145
89146         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
89147         (func_import): Only replace files via --import when they have actually
89148         changed.
89149
89150 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89151
89152         * m4/mmap-anon.m4: New file.
89153         * m4/pagealign_alloc.m4: New file.
89154
89155 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89156             Bruno Haible  <bruno@clisp.org>
89157
89158         * modules/pagealign_alloc: New file.
89159         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
89160
89161 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89162             Bruno Haible  <bruno@clisp.org>
89163
89164         * lib/pagealign_alloc.h: New file.
89165         * lib/pagealign_alloc.c: New file.
89166
89167 2005-03-03  Bruno Haible  <bruno@clisp.org>
89168
89169         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
89170         Use an all-permissive copyright notice, recommended by RMS.
89171
89172 2005-03-02  Bruno Haible  <bruno@clisp.org>
89173
89174         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
89175         of AIX, the replacement has to be done only after <string.h> is
89176         included, therefore not in config.h. stpncpy.h does the replacement,
89177         and stpncpy.c uses it.
89178
89179 2005-03-02  Bruno Haible  <bruno@clisp.org>
89180
89181         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
89182         stpncpy.c uses it.
89183
89184 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89185
89186         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
89187         The workaround isn't strictly needed for POSIX conformance, and
89188         it's too much of a pain to configure and maintain.  We'll ask
89189         people to fix their kernels instead.
89190         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
89191         (NANOSLEEP_BUG_WORKAROUND): Remove.
89192         (xnanosleep): Remove the workaround.
89193
89194 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89195
89196         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
89197         Reported by Derek Price.
89198         (Include): Add "timespec.h".
89199
89200         * modules/xnanosleep (Depends-on): Remove gethrxtime.
89201
89202 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89203
89204         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
89205         to detect nanosleep bug.
89206
89207 2005-03-01  Bruno Haible  <bruno@clisp.org>
89208
89209         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
89210
89211 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
89212
89213         * modules/gethrxtime: New file.
89214         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
89215         (Depends-on): Add gethrxtime.
89216         (configure.ac): Add gl_XNANOSLEEP.
89217         (Makefile.am): Remove lib_SOURCES line.
89218
89219 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89220
89221         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
89222         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
89223
89224 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89225
89226         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
89227         * lib/timespec.h (gettime): Return void, since it always
89228         succeeds now.  All uses changed.
89229         * lib/gettime.c (gettime): Likewise.
89230         [HAVE_NANOTIME]: Prefer nanotime.
89231         Assume gettimeofday succeeds, as POSIX requires.
89232         Assime time () succeeds, since other code already does.
89233         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
89234         (timespec_subtract): Remove.
89235         (NANOSLEEP_BUG_WORKAROUND): New constant.
89236         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
89237         things considerably.  Use it only on GNU/Linux hosts, since the
89238         workaround shouldn't be needed elsewhere.
89239
89240 2005-02-24  Bruno Haible  <bruno@clisp.org>
89241
89242         * modules/gettext (Files): Add m4/glibc2.m4.
89243
89244 2005-02-24  Bruno Haible  <bruno@clisp.org>
89245
89246         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
89247         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
89248         * m4/progtest.m4:
89249         Update from GNU gettext 0.14.2.
89250         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
89251
89252 2005-02-24  Bruno Haible  <bruno@clisp.org>
89253
89254         * lib/localcharset.c: Update from GNU gettext 0.14.2.
89255         * lib/config.charset: Update from GNU gettext 0.14.2.
89256
89257 2005-02-24  Bruno Haible  <bruno@clisp.org>
89258
89259         * lib/gettext.h: Update from GNU gettext 0.14.2.
89260
89261 2005-02-23  Simon Josefsson  <jas@extundo.com>
89262
89263         * m4/iconvme.m4: New file.
89264
89265 2005-02-23  Jim Meyering  <jim@meyering.net>
89266
89267         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
89268         change.
89269         Thanks to Bruno Haible for catching it.
89270
89271 2005-02-22  Simon Josefsson  <jas@extundo.com>
89272
89273         * modules/iconvme: New file.
89274
89275         * MODULES.html.sh: Add iconvme.
89276
89277 2005-02-22  Simon Josefsson  <jas@extundo.com>
89278
89279         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
89280
89281 2005-02-22  Simon Josefsson  <jas@extundo.com>
89282
89283         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
89284
89285 2005-02-22  Jim Meyering  <jim@meyering.net>
89286
89287         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
89288         s/ifndef/ifdef/.
89289
89290 2005-02-20  Neil Conway  <neilc@samurai.com>
89291
89292         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
89293         returned by OSX/Darwin if the specified buffer is not large
89294         enough for the hostname.
89295
89296 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89297
89298         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
89299         pass it to _help, otherwise the latter coredumps trying to
89300         dereference state.root_argp.
89301
89302 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89303
89304         * modules/chdir-long (Depends-on): Add memrchr.
89305         * modules/memrchr (Files): Add lib/memrchr.h.
89306         (Include): "memrchr.h".
89307
89308 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89309
89310         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
89311
89312 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89313
89314         * lib/memrchr.h: New file.
89315         * lib/chdir-long.c: Include it.
89316         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
89317         Don't bother including stddef.h.
89318
89319 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89320
89321         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
89322         inclusion.
89323         Include <sys/types.h>, for dev_t.
89324         (ME_DUMMY, ME_REMOTE): Move from here....
89325         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
89326         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
89327         Dmitry V. Levin.
89328         Include mountlist.h first, to test the interface.
89329
89330 2005-01-29  Bruno Haible  <bruno@clisp.org>
89331
89332         * lib/progname.c (program_name): Initialize.
89333         Needed when linking statically on MacOS X.
89334
89335 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89336
89337         Sync from coreutils.
89338         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
89339         (Depends-on): Add c-strtod.
89340         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
89341
89342 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89343
89344         Sync from coreutils.
89345         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
89346
89347         Remove files that are specific to coreutils.
89348         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
89349
89350 2005-01-28  Bruno Haible  <bruno@clisp.org>
89351
89352         * modules/javacomp: New file.
89353         * MODULES.html.sh (Java): Add javacomp.
89354
89355 2005-01-28  Bruno Haible  <bruno@clisp.org>
89356
89357         * m4/javacomp.m4: New file, from GNU gettext.
89358
89359 2005-01-28  Bruno Haible  <bruno@clisp.org>
89360
89361         * lib/javacomp.sh.in: New file, from GNU gettext.
89362         * lib/javacomp.h: New file, from GNU gettext.
89363         * lib/javacomp.c: New file, from GNU gettext.
89364
89365 2005-01-26  Simon Josefsson  <jas@extundo.com>
89366
89367         * lib/gai_strerror.c: Use GPL in header.
89368
89369 2005-01-26  Bruno Haible  <bruno@clisp.org>
89370
89371         * modules/javaexec: New file.
89372         * MODULES.html.sh (Java): Add javaexec.
89373
89374 2005-01-26  Bruno Haible  <bruno@clisp.org>
89375
89376         * m4/javaexec.m4: New file, from GNU gettext.
89377
89378 2005-01-26  Bruno Haible  <bruno@clisp.org>
89379
89380         * lib/javaexec.sh.in: New file, from GNU gettext.
89381         * lib/javaexec.h: New file, from GNU gettext.
89382         * lib/javaexec.c: New file, from GNU gettext.
89383
89384 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89385
89386         * modules/lchown (Depends-on): Remove lchown.h
89387
89388 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89389
89390         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
89391         must be defined if the header file was not found, in order
89392         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
89393
89394 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89395
89396         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
89397         initializers for struct pentry_state.
89398         (__argp_error): Check return value of __asprintf
89399         (__argp_failure): Translate error message
89400
89401         * lib/argp-parse.c: Removed braces around the expansion of N_()
89402
89403 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89404
89405         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
89406         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
89407         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
89408         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
89409         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
89410         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
89411         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
89412         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
89413         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
89414         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
89415         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
89416         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
89417         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
89418         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
89419         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
89420         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
89421         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
89422         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
89423         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
89424         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
89425         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
89426         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
89427         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
89428         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
89429         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
89430         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
89431         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
89432         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
89433         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
89434         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
89435         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
89436         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
89437         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
89438         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
89439         xstrtol.m4, xstrtoumax.m4, yesno.m4:
89440         Use an all-permissive copyright notice, recommended by RMS.
89441
89442 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
89443
89444         * modules/chdir-long (Depends-on): Remove mempcpy.
89445
89446 2005-01-21  Jim Meyering  <jim@meyering.net>
89447
89448         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
89449         same value as for Solaris 9.
89450
89451         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
89452         component length.  This included changing the parameter to be
89453         of type `char *' rather than `char const *'.
89454         * lib/chdir-long.h (chdir_long): Update prototype.
89455
89456         * lib/openat.c (fdopendir, fstatat): New functions.
89457         * lib/openat.h: Include headers required for use of DIR and struct
89458         stat.
89459         [AT_SYMLINK_NOFOLLOW]: Define.
89460         (fdopendir, fstatat): Add prototypes.
89461
89462 2005-01-21  Bruno Haible  <bruno@clisp.org>
89463
89464         * modules/classpath: New file.
89465         * MODULES.html.sh (Java): Add classpath.
89466
89467 2005-01-21  Bruno Haible  <bruno@clisp.org>
89468
89469         * lib/classpath.h: New file, from GNU gettext.
89470         * lib/classpath.c: New file, from GNU gettext.
89471
89472 2005-01-20  Simon Josefsson  <jas@extundo.com>
89473
89474         * modules/version-etc-fsf: New file.
89475
89476 2005-01-20  Simon Josefsson  <jas@extundo.com>
89477
89478         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
89479         * lib/version-etc.c: Remove version_etc_copyright.
89480         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
89481         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
89482
89483 2005-01-20  Simon Josefsson  <jas@extundo.com>
89484
89485         * lib/base64.h (isbase64): Add.
89486
89487         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
89488         using a unsigned prototype, don't inline.
89489         (base64_decode): Use it.
89490
89491 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89492
89493         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
89494         it.
89495
89496 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89497
89498         * lib/save-cwd.c (save_cwd): Remove code to support the case
89499         where fchdir is missing or flaky.
89500
89501 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89502
89503         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
89504
89505 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89506
89507         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89508         AC_LIBSOURCES now does this.
89509         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89510         with new ullong_max module.
89511
89512 2005-01-19  Bruno Haible  <bruno@clisp.org>
89513
89514         * modules/sh-quote: New file.
89515         * MODULES.html.sh (Executing programs): Add sh-quote.
89516
89517 2005-01-19  Bruno Haible  <bruno@clisp.org>
89518
89519         * lib/sh-quote.h: New file, from GNU gettext.
89520         * lib/sh-quote.c: New file, from GNU gettext.
89521
89522 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89523
89524         Merge from coreutils.
89525         * m4/ullong_max.m4: New file.
89526         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89527         (gl_MACROS): Assume localeconv exists.
89528
89529 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89530
89531         Merge changes from coreutils, as described below in several
89532         changelogs dated today.
89533
89534         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89535         (O_DIRECTORY): Remove; not needed here, since "." must be
89536         a directory.  All uses removed.
89537         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89538         universal on Suns, and we also need to test for IRIX.
89539         Revamp code to use 'if' rather than '#if'.
89540         Avoid unnecessary comparison of cwd->desc to 0.
89541
89542         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89543         for known valid error numbers rather than observed invalid ones.
89544
89545 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89546
89547         * modules/ullong_max: New file.
89548
89549         * modules/chdir-long, modules/openat: New files.
89550         * modules/save-cwd (Depends-on): Depend on chdir-long.
89551         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89552
89553 2005-01-18  Jim Meyering  <jim@meyering.net>
89554
89555         Merge from coreutils.
89556         * m4/chdir-long.m4, m4/openat.m4: New files.
89557         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89558         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89559         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89560         is sane and DOES follow symlinks.  Besides, testing 20 different
89561         systems found no broken chown implementations.
89562         Prompted by a change in rsync's copy of this macro.
89563         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89564
89565         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89566
89567         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89568         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89569         NULL-means-set-to-current-time semantics.
89570         Remove temporary file immediately, rather than waiting
89571         for configure's at-exit trap code to do it.
89572
89573 2005-01-18  Jim Meyering  <jim@meyering.net>
89574
89575         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89576
89577         * lib/utimens.c (futimens): Account for the fact that futimes
89578         can also fail with errno == ENOSYS or errno == ENOENT.
89579         Patch from Dmitry V. Levin.
89580
89581         Change the name of the robust chdir function from chdir to chdir_long.
89582         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89583         (restore_cwd): Use chdir_long, not chdir.
89584         * lib/chdir-long.c: Renamed from chdir.c.
89585         * lib/chdir-long.h: Renamed from chdir.h.
89586         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89587         Hurd.
89588
89589 2005-01-18  Bruno Haible  <bruno@clisp.org>
89590
89591         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89592         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89593         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89594         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89595         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89596         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89597         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89598         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89599         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89600         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89601         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89602         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89603         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89604         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89605         Use an all-permissive copyright notice, recommended by RMS.
89606
89607 2005-01-18  Bob Proulx  <bob@proulx.com>
89608
89609         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89610         simplify offsetof() macro construct to avoid compile failure with
89611         native HP-UX 11.0 ANSI C compiler.
89612
89613 2005-01-17  Bruno Haible  <bruno@clisp.org>
89614
89615         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89616         redundant because stpncpy.m4 takes care of it.
89617
89618 2005-01-17  Bruno Haible  <bruno@clisp.org>
89619
89620         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89621
89622 2005-01-17  Bruno Haible  <bruno@clisp.org>
89623
89624         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89625         used.
89626
89627 2005-01-17  Bruno Haible  <bruno@clisp.org>
89628
89629         * lib/fwriteerror.h (fwriteerror): Change specification to include
89630         fclose.
89631         * lib/fwriteerror.c: Include <stdbool.h>.
89632         (fwriteerror): At the end, close the file stream. Record whether
89633         stdout was already closed.
89634
89635 2005-01-17  Bruno Haible  <bruno@clisp.org>
89636
89637         * lib/execute.c (environ): Declare if needed.
89638         * lib/pipe.c (environ): Likewise.
89639         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89640
89641 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89642
89643         * modules/argp: Depend on vsnprintf
89644
89645 2005-01-10  Jim Meyering  <jim@meyering.net>
89646
89647         * modules/closeout (Depends-on): Add atexit.
89648
89649 2005-01-06  Bruno Haible  <bruno@clisp.org>
89650
89651         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89652
89653 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89654
89655         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89656         definitions to be after all include files, to avoid collisions.
89657         Problem reported by Bob Proulx.
89658
89659 2005-01-04  Jim Meyering  <jim@meyering.net>
89660
89661         Changes imported from coreutils.
89662         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89663         as the mkstemp template, use a temporary directory and an
89664         8.3-friendly template to avoid trouble on systems like DJGPP.
89665         Reported by Juan M. Guerrero via Stepan Kasal.
89666         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89667         close. Remove the temporary directory right away, rather than waiting
89668         for configure's at-exit trap code to do it.
89669         Suggestion from Stepan Kasal.
89670
89671 2005-01-01  Simon Josefsson  <jas@extundo.com>
89672
89673         * gnulib-tool: Print #include directives when --import'ing.
89674
89675 2004-12-28  Simon Josefsson  <jas@extundo.com>
89676
89677         * tests/test-base64.c: Include required header files.  Remove
89678         unused variables.
89679
89680 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89681
89682         * modules/error (Depends-on): Remove gettext.
89683
89684 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89685
89686         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89687         not needed.  This removes a dependency on the gettext module.
89688         [defined _LIBC]: Do not include <libintl.h>; not needed.
89689
89690 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89691
89692         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89693         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89694
89695 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89696
89697         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89698         HAVE_DECL_STRTOLD.
89699
89700 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89701
89702         * modules/getdate (Depends-on): Remove alloca-opt.
89703
89704 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89705
89706         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89707
89708 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89709
89710         * lib/argp-parse.c: Include <stddef.h>.
89711         (alignof, alignto): New macros.
89712         (parser_init): Don't assume that void * is aligned sufficiently
89713         for struct option.
89714
89715         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89716         need to extend the stack.
89717         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89718         large.
89719
89720 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89721
89722         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89723
89724 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89725
89726         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89727         (2004-10-24) change.  Apparently this was a false alarm.
89728
89729         * modules/getdate: Depend on alloca-opt, not alloca.
89730
89731 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89732
89733         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89734         Remove now-obsolete comment about AIX.
89735         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89736         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89737         (YYMAXDEPTH): New macro.
89738
89739 2004-12-18  Simon Josefsson  <jas@extundo.com>
89740
89741         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89742
89743 2004-12-18  Bruno Haible  <bruno@clisp.org>
89744
89745         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89746
89747 2004-12-18  Bruno Haible  <bruno@clisp.org>
89748
89749         * lib/fatal-signal.c (fatal_signals): Make non-const.
89750         (init_fatal_signals): New function.
89751         (uninstall_handlers, install_handlers): Ignore signals that were set to
89752         SIG_IGN.
89753         (at_fatal_signal): Call init_fatal_signals.
89754         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89755         SIG_IGN.
89756         Reported by Paul Eggert.
89757
89758 2004-12-18  Bruno Haible  <bruno@clisp.org>
89759
89760         * doc/alloca.texi: New file.
89761         * doc/alloca-opt.texi: New file.
89762
89763 2004-12-17  Jim Meyering  <jim@meyering.net>
89764
89765         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89766         Otherwise, install-sh could exit with improper exit status when
89767         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89768
89769 2004-12-16  Simon Josefsson  <jas@extundo.com>
89770
89771         * tests/test-base64.c: Add license.
89772
89773 2004-12-15  Stepan Kasal  <address@hidden>
89774
89775         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89776
89777 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89778
89779         * modules/getcwd (Files): Add m4/d-ino.m4.
89780         Suggested by Mark D. Baushke.
89781
89782 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89783
89784         * lib/getdate.y (textint): New member "negative".
89785         (time_zone_hhmm): New function.
89786         Expect 14 shift-reduce conflicts, not 13.
89787         (o_colon_minutes): New rule.
89788         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89789         (yylex): Set the "negative" member of signed numbers.
89790
89791 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89792
89793         * doc/getdate.texi (Time of day items, Time zone items):
89794         Describe new formats +00:00, UTC+00:00.
89795
89796 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89797
89798         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89799         spurious "-l"s.  Problem reported by Stepan Kasal.
89800
89801 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89802
89803         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89804         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89805
89806 2004-12-04  Simon Josefsson  <jas@extundo.com>
89807
89808         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89809         Vandoorselaere <yoann@prelude-ids.org>.
89810
89811 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89812
89813         Changes imported from coreutils.
89814         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89815         exist.
89816         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89817
89818 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89819
89820         Changes imported from coreutils.
89821         * lib/hard-locale.c: Assume <locale.h> exists.
89822         Include "strdup.h".
89823         (GLIBC_VERSION): New macro.
89824         (hard_locale): Assume setlocale exists.
89825         Rewrite to avoid #ifdef.
89826         Use strdup rather than malloc + strcpy.
89827         * lib/human.c: Assume <locale.h> exists.
89828         (human_readable): Assume localeconv exists.
89829
89830 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89831
89832         * modules/hard-locale (Depends-on): Add strdup.
89833
89834 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89835
89836         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89837         convert T2, not T.  (Imported from libc.)
89838
89839 2004-11-30  Simon Josefsson  <jas@extundo.com>
89840
89841         * modules/restrict (License): Change to LGPL.
89842
89843 2004-11-30  Simon Josefsson  <jas@extundo.com>
89844
89845         * m4/restrict.m4: Add copyright and copying conditions.
89846
89847 2004-11-30  Simon Josefsson  <jas@extundo.com>
89848
89849         * m4/base64.m4: New file.
89850
89851 2004-11-30  Simon Josefsson  <jas@extundo.com>
89852
89853         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89854         base64.
89855
89856         * tests/test-base64.c: New file.
89857
89858         * modules/base64: New file.
89859
89860 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89861
89862         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89863         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89864
89865         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89866
89867 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89868
89869         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89870         (__getcwd.c): Don't restore errno; glibc doesn't.
89871         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89872         first, falling back to our code only if its results look suspicious.
89873         Ensure that the resulting buffer is only as large as necessary.
89874
89875         * lib/readutmp.c: Include readutmp.h first.
89876         Include <errno.h>, since readutmp.h no longer does that.
89877         * lib/readutmp.h: Don't include <errno.h>,
89878         <sys/param.h>, <time.h>; not needed to establish interface.
89879         (errno): Remove decl.
89880         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89881         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89882         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89883
89884 2004-11-28  Simon Josefsson  <jas@extundo.com>
89885
89886         * lib/base64.h, base64.c: New file.
89887
89888 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89889
89890         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89891
89892 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89893
89894         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89895         (Depends-on): Remove pathmax, same.  Add mempcpy.
89896         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89897         (Makefile.am): Append getcwd.h to lib_SOURCES.
89898         (Include): Add getcwd.h.
89899         (Maintainer): Change from Jim Meyering to "all, glibc",
89900         since getdate now uses intended-for-glibc code.
89901         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89902         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89903
89904 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89905
89906         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89907         HP's ANSI C compiler.
89908         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89909         Declaring int functions causes warnings on some modern systems and
89910         shouldn't be needed to compile on ancient ones.
89911         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89912         defined.
89913
89914         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89915         with the following changes.
89916         (__set_errno): Parenthesize properly.
89917         Include <stdbool.h>.
89918         (MIN, MAX, MATCHING_INO): New macros.
89919         (__getcwd): Define with prototype, not K&R form.
89920         Use heuristics to allocate default buffer on stack if possible.
89921         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89922         behavior, and to avoid the PATH_MAX limit when computing
89923         ../../../../...
89924         Use MATCHING_INO to compare inode number to file.
89925         Check for arithmetic overflow in size calculations.
89926         Fix bug in reallocation of dot array that caused getcwd to fail
89927         on directories nested deeper than 75.
89928         Be more careful about saving errno on error.
89929         Do not use realloc; use only free+malloc, as this is a bit
89930         more flexible and avoids a needless copy operation.
89931         Do not inspect st_dev and st_ino for symbolic links; POSIX
89932         doesn't specify the latter.
89933         Check for closedir errors.
89934         Avoid needless casts.
89935         Use "#ifdef weak_alias" around weak_alias, to be like other
89936         glibc code.
89937         The following changes to getcwd.c have effect only when used in
89938         gnulib; they have no effect inside glibc proper.
89939         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89940         as alloca isn't used.
89941         (alloca, __alloca): Likewise.
89942         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89943         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89944         unconditionally, as gnulib assumes C89 or better.
89945         Do not include <sys/param.h>.
89946         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89947         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89948         better.
89949         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89950         Include <dirent.h> in a way that is compatible with modern Autoconf.
89951         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89952         New macros, if not already defined.
89953         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89954         Use "_LIBC", not "defined _LIBC", for consistency.
89955         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89956         a mempcpy module.
89957         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89958         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89959         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89960         credit only to Jim Meyering and adjust the copyright dates.
89961         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89962         <stdlib.h>, <unistd.h>, "pathmax.h".
89963         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89964         (INITIAL_BUFFER_SIZE): Remove.
89965         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89966
89967 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89968
89969         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89970         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89971         Use the _ONCE methods, for efficiency.
89972         Check for fcntl.h.  In test program, include <errno.h>
89973         and <fcntl.h> if available.  Remove old K&R cruft from
89974         test program.  Check for common errors in GNU/Linux,
89975         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89976         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89977         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89978         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89979         name accordingly.
89980         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89981         accommodate new getcwd.c.
89982         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89983         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89984         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89985         that's all we need now.
89986
89987 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89988
89989         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89990         argp-parse.c depends on getopt internals, that means we should
89991         always use our getopt, to be on the safe side.
89992         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89993         order not to spoil the result of an eventual previous invocation
89994         of gl_GETOPT_SUBSTITUTE.
89995
89996 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89997
89998         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89999         redefinition warnings. To avoid them, include the defines
90000         in `#if !defined __need_getopt ... #endif'. The only place
90001         where __getopt_argv_const is used is in definitions
90002         of getopt_long and getopt_long_only below, which are as well
90003         protected by `#ifndef __need_getopt'.
90004         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
90005         __need_getopt after including <stdio.h> and <unistd.h> These
90006         headers might have defined it.
90007
90008 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
90009
90010         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
90011
90012 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
90013
90014         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
90015         (futimens): New function, which uses futimes if available.
90016         (futimens, utimens): Support timespec==NULL, with same semantics
90017         as utime and utimens.
90018         * lib/utimens.h (futimens): New decl.
90019
90020 2004-11-23  Jim Meyering  <jim@meyering.net>
90021
90022         * lib/getopt_.h: Remove trailing blanks.
90023
90024 2004-11-23  Jim Meyering  <jim@meyering.net>
90025
90026         * lib/__fpending.c: Add comment.
90027
90028 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
90029
90030         * modules/canonicalize (Depends-on): Add xreadlink.
90031         Problem reported by James Youngman.
90032
90033 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
90034
90035         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
90036         New macros.
90037         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
90038         optopt): Use them instead of invoking ## directly; otherwise, the
90039         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
90040
90041 2004-11-19  Bruno Haible  <bruno@clisp.org>
90042
90043         * lib/strtok_r.c: Move comments from here...
90044         * lib/strtok_r.h: ... to here.
90045
90046 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
90047
90048         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
90049         implementations that mishandle size_t overflow.
90050
90051 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
90052
90053         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
90054         might fail.  Problem reported by Yoann Vandoorselaere.
90055         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
90056         implementations that mishandle size_t overflow.
90057
90058 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90059
90060         * modules/canon-host (Depends-on): Add strdup.
90061
90062 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90063
90064         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
90065
90066 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90067
90068         * lib/canon-host.c: Include "strdup.h".
90069         (canon_host): Use getaddrinfo if available, so that IPv6 works.
90070         Use strdup instead of malloc/strcpy to duplicate strings.
90071
90072         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
90073         (human_space_before_unit): New constant.
90074         * lib/human.c (human_readable): Support it.
90075
90076         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
90077         (xgetcwd): Set errno correctly when failing.
90078         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
90079         the failure is actually due to a PATH_MAX problem.
90080
90081         Further getopt changes to make it more likely that glibc will
90082         buy the changes back.
90083         * lib/getopt.c (POSIXLY_CORRECT): New constant.
90084         (getopt): Use it, so to preserve glibc semantic
90085         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
90086         when compiling for libc.
90087         * lib/getopt_.h (__getopt_argv_const): Bring it back.
90088         (getopt_long, getopt_long_only): Use it.
90089
90090         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90091         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
90092         (getopt): Argv is now char * const *, as per standard.
90093         (_getopt_internal_r, _getopt_internal): Argv is now char **,
90094         not char *__getopt_argv_const *.
90095         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90096         _getopt_long_only_r): Likewise.
90097         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
90098         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90099         _getopt_long_r, _getopt_long_only_r): Likewise.
90100         * lib/getopt_.h (__getopt_argv_const): Remove.
90101         (getopt): Argv is now char * const *, as per standard.
90102
90103         * lib/getdate.y (tORDINAL): New token.
90104         (day, relunit): Allow it for relative times.
90105         (relative_time_table): Use tORDINAL for ordinals.
90106
90107 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90108
90109         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
90110         Document that "second" isn't allowed as an ordinal number.
90111
90112 2004-11-16  Jim Meyering  <jim@meyering.net>
90113
90114         * modules/closeout (Depends-on): Add fpending.
90115
90116 2004-11-15  Jim Meyering  <jim@meyering.net>
90117
90118         * lib/closeout.c: Include "__fpending.h" once again.
90119         Include <stdbool.h>.
90120         (close_stdout): Don't fail just because stdout was closed initially,
90121         since some programs don't write to stdout in the normal course of
90122         operation (other than --version and --help), and we don't want this
90123         function to make e.g. `touch file >&-' fail.
90124         But do fail if it was closed and someone has tried to write to it.
90125         E.g., `printf foo >&-' must fail.
90126
90127 2004-11-13  Jim Meyering  <jim@meyering.net>
90128
90129         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
90130
90131 2004-11-12  Simon Josefsson  <jas@extundo.com>
90132
90133         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
90134         small doc fix is still pending.
90135
90136 2004-11-11  Simon Josefsson  <jas@extundo.com>
90137
90138         * modules/strtok_r: New file.
90139
90140         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90141         strtok_r.
90142
90143 2004-11-11  Simon Josefsson  <jas@extundo.com>
90144
90145         * m4/strtok_r.m4: New file.
90146
90147         * m4/getopt.m4: Replace opterr.
90148
90149 2004-11-11  Simon Josefsson  <jas@extundo.com>
90150
90151         * lib/strtok_r.h, strtok_r.c: New file.
90152
90153 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90154
90155         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
90156         of replacing opterr, getopt, etc.  This should handle the
90157         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
90158
90159 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90160
90161         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
90162         we can stop lying to compilers about the constness of argv when we
90163         are compiled outside glibc.
90164         (getopt, getopt_long, getopt_long_only): Use it.
90165         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90166         _getopt_internal, getopt): Likewise.
90167         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90168         _getopt_long_only_r): Likewise.
90169         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90170         _getopt_long_r, _getopt_long_only_r): Likewise.
90171
90172         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
90173         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
90174         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
90175         the other external symbols.
90176         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
90177         declaration, since the above renaming now works around collisions.
90178
90179 2004-11-11  Jim Meyering  <jim@meyering.net>
90180
90181         * lib/linebreak.c: Remove trailing blanks.
90182         * lib/alloca_.h: Likewise.
90183         * lib/acosl.c: Likewise.
90184         * lib/euidaccess.c: Likewise.
90185         * lib/allocsa.h: Likewise.
90186
90187 2004-11-10  Simon Josefsson  <jas@extundo.com>
90188
90189         * m4/getaddrinfo.m4: New file.
90190
90191 2004-11-10  Simon Josefsson  <jas@extundo.com>
90192
90193         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
90194
90195 2004-11-10  Simon Josefsson  <jas@extundo.com>
90196
90197         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90198         getaddrinfo.
90199
90200         * modules/getaddrinfo: New file.
90201
90202 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90203
90204         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
90205
90206 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90207
90208         * lib/mktime.c (SHR): New macro, which is a portable
90209         substitute for >> that should work even on Crays.
90210         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
90211         Problem reported by Mark D. Baushke in
90212         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
90213         * lib/getdate.y (SHR): Likewise.
90214         (tm_diff): Use it.
90215         * lib/strftime.c (SHR): Likewise.
90216         (tm_diff): Use it.
90217         * lib/quotearg.c (struct quoting_options): Use unsigned int for
90218         quote_these_too, so that right shifts are well defined.  All uses
90219         changed.
90220
90221 2004-11-10  Jim Meyering  <jim@meyering.net>
90222
90223         Ensure that no close failure goes unreported.
90224         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
90225         return early when it seems there's nothing to flush.
90226         Don't include __fpending.h.
90227
90228 2004-11-10  Jim Meyering  <jim@meyering.net>
90229
90230         * modules/closeout (Depends-on): Remove fpending.
90231
90232 2004-11-10  Jim Meyering  <jim@meyering.net>
90233
90234         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
90235
90236 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90237
90238         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
90239         gl_FUNC_STRFTIME.
90240         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
90241         and AC_REQUIRE when possible, to avoid duplicate checks.
90242         Check for <wchar.h>.
90243
90244 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90245
90246         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
90247
90248 2004-11-09  Bruno Haible  <bruno@clisp.org>
90249
90250         * m4/sockpfaf.m4: New file.
90251
90252 2004-11-05  Bruno Haible  <bruno@clisp.org>
90253
90254         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
90255         Reported by Mark D. Baushke <mdb@cvshome.org>.
90256
90257 2004-11-04  Bruno Haible  <bruno@clisp.org>
90258
90259         2004-09-11  Bruno Haible  <bruno@clisp.org>
90260                 * allocsa.valgrind: New file.
90261         2004-02-06  Bruno Haible  <bruno@clisp.org>
90262                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
90263                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
90264                 Reported by Christopher Seip <chris.seip@hp.com>.
90265
90266 2004-11-04  Bruno Haible  <bruno@clisp.org>
90267
90268         * modules/allocsa (Files): Add lib/allocsa.valgrind.
90269         (Makefile.am): Distribute it.
90270
90271 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
90272
90273         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
90274         with errno == ERANGE if the buffer is too small.
90275         Problem reported by Mark D. Baushke.
90276
90277 2004-11-03  Albert Chin  <china@thewrittenword.com>
90278             Paul Eggert  <eggert@cs.ucla.edu>
90279
90280         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
90281         equivalent, substitute $ac_type for equivalent type rather than
90282         blindly using uint32_t *always* which won't work if uint32_t is not
90283         available.  Define _UINT32_T to work around typedef of uint32_t if
90284         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
90285         2.5.1.
90286
90287 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90288
90289         * m4/jm-macros.m4: Sync from coreutils.
90290         (gl_MACROS): Check for mbrlen, for pathchk.
90291         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
90292
90293 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90294
90295         * lib/xreadlink.c (MAXSIZE): New macro.
90296         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
90297         size does not exceed MAXSIZE.  Avoid cast.
90298         As suggested by Mark D. Baushke in
90299         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
90300         if readlink fails with buffer size just under MAXSIZE, try again
90301         with MAXSIZE.
90302
90303 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90304
90305         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
90306
90307 2004-11-02  Derek R. Price  <derek@ximbiot.com>
90308         and  Paul Eggert  <eggert@cs.ucla.edu>
90309
90310         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
90311         (get_date): Overparenthesize to avoid GCC warning.
90312
90313 2004-11-02  Bruno Haible  <bruno@clisp.org>
90314
90315         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
90316         returns void.
90317
90318 2004-11-02  Bruno Haible  <bruno@clisp.org>
90319
90320         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
90321         function returns void.
90322
90323 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90324
90325         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
90326         fflush_unlocked, flockfile, funlockfile, funlockfile,
90327         fputs_unlocked, putc_unlocked.
90328
90329 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90330
90331         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90332         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
90333         already declared.
90334
90335 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90336
90337         * modules/getdate (Files): Add doc/getdate.texi.
90338         (Depends-on): Add setenv, xalloc.
90339
90340 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90341
90342         * lib/getdate.y: Add support for TZ="foo" within a date string.
90343         Fix some bugs near time_t boundaries.  Reject dates with
90344         out-of-range components, e.g., "Sept 31".
90345         Include <stdlib.h>, "setenv.h", "xalloc.h".
90346         (ISDIGIT_LOCALE): Remove; unused.
90347         Note that the TZ and time functions used here are not reentrant.
90348         (mktime_ok, get_tz): New functions.
90349         (TZBUFSIZE): New constant.
90350         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
90351         This requires that we sometimes generate our own TZ="XXX..." setting.
90352
90353 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90354
90355         * doc/getdate.texi: New file, from coreutils with modifications for
90356         the new TZ parsing.
90357
90358 2004-10-27  Derek R. Price  <derek@ximbiot.com>
90359
90360         * lib/mktime.c (not_equal_tm): Remove redundant check.
90361
90362 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90363
90364         * modules/regex (lib_SOURCES): Add regex.c.
90365         Reported by James Youngman in
90366         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
90367
90368 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90369
90370         * lib/getdate.y: Use Bison 1.875 features, and some minor
90371         code cleanups.  This change does not affect semantics.
90372         Don't include <stdlib.h>; no longer needed.
90373         Don't include unlocked-io.h; only the "#if TEST" code uses
90374         stdio, and performance isn't crucial there.
90375         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
90376         Bison 1.875 features as described below.
90377         All uses of "PC." replaced by "pc->".
90378         (YYSTYPE): Add a forward declaration.
90379         (yylex, yyerror): Use full prototypes in forward decls.
90380         Use "%pure-parser" rather than obsolescent "%pure_parser".
90381         Use %parse-param and %lex-param instead of obsolescent
90382         YYPARSE_PARAM and YYLEX_PARAM.
90383         (meridian_table, month_and_day_table, time_units_table,
90384         relative_time_table, time_zone_table, military_table,
90385         lookup_zone, lookup_word, get_date):
90386         Use NULL instead of 0 where appropriate.
90387         (to_hour): Avoid abort (), to avoid a dependency on
90388         stdlib.h.
90389         (yyerror, yylex): Now accepts parser_control * arg.
90390         (main) [TEST]: Use '\0' rather than 0 for char.
90391
90392 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90393
90394         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
90395
90396 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90397
90398         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
90399         It's now the caller's responsibility to handle the case where
90400         !HAVE_GETPAGESIZE && !defined getpagesize.
90401
90402         * lib/mktime.c (leapyear): Arg is long int, not int.
90403
90404 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
90405
90406         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
90407
90408 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90409
90410         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
90411         missing.  Problem reported by James Youngman.
90412
90413 2004-10-16  Simon Josefsson  <jas@extundo.com>
90414
90415         * gnulib-tool: Fix comments.  Fix parse problem.
90416         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
90417
90418 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
90419
90420         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
90421         implementation of getopt_long.  Problem reported by Alexander Taler in:
90422         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
90423
90424 2004-10-15  Bruno Haible  <bruno@clisp.org>
90425
90426         * gnulib-tool: Untabify. Initialize supplied_libname.
90427         (func_usage): More homogenous output.
90428         (func_modules_transitive_closure, func_modules_to_filelist,
90429         func_emit_lib_Makefile_am): New functions.
90430         (func_import): New function, extracted from big case statement. Use
90431         func_get_license, func_modules_transitive_closure,
90432         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
90433         opt_lgpl. Don't use test -a, as it's not portable.
90434         (func_create_testdir): Use func_modules_transitive_closure,
90435         func_modules_to_filelist, func_emit_lib_Makefile_am.
90436
90437 2004-10-15  Bruno Haible  <bruno@clisp.org>
90438
90439         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
90440
90441 2004-10-15  Bruno Haible  <bruno@clisp.org>
90442
90443         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
90444         the portions belonging to each module.
90445         Suggested by Derek Robert Price <derek@ximbiot.com>.
90446
90447 2004-10-12  Simon Josefsson  <jas@extundo.com>
90448
90449         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90450         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
90451         to real functions.
90452
90453 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90454
90455         * modules/vsnprintf: New file.
90456
90457 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90458
90459         * m4/vsnprintf.m4: New file.
90460
90461 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90462
90463         * lib/vsnprintf.h: New file.
90464         * lib/vsnprintf.c: New file.
90465
90466 2004-10-11  Bruno Haible  <bruno@clisp.org>
90467
90468         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
90469         vsnprintf.
90470
90471 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90472
90473         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
90474
90475 2004-10-07  Bruno Haible  <bruno@clisp.org>
90476
90477         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
90478         fits into the provided buffer.
90479
90480 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90481
90482         * lib/diacrit.c, diacrit.h: Add GPL notice.
90483
90484         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
90485         notice.
90486         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
90487         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
90488         This avoids a potential constant-folding bug.
90489
90490 2004-10-05  Bruno Haible  <bruno@clisp.org>
90491
90492         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
90493         for the declaration of strsep.
90494
90495 2004-10-05  Bruno Haible  <bruno@clisp.org>
90496
90497         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
90498
90499 2004-10-04  Simon Josefsson  <jas@extundo.com>
90500
90501         * modules/memmem: New file.
90502         * tests/test-memmem.c: New file.
90503         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
90504
90505 2004-10-04  Simon Josefsson  <jas@extundo.com>
90506
90507         * m4/memmem.m4: New file.
90508
90509 2004-10-04  Simon Josefsson  <jas@extundo.com>
90510
90511         * lib/memmem.h: New file.
90512         * lib/memmem.c: New file, taken from glibc.
90513
90514 2004-10-04  Simon Josefsson  <jas@extundo.com>
90515
90516         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90517         '#ifdef USE_UNLOCKED_IO'.
90518
90519 2004-10-04  Simon Josefsson  <jas@extundo.com>
90520
90521         * config/srclist.txt: Add memmem from glibc.
90522
90523 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90524
90525         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90526
90527         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90528         modules/exclude, modules/getdate, modules/getline,
90529         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90530         modules/getusershell, modules/linebuffer, modules/md5,
90531         modules/mountlist, modules/posixtm, modules/readtokens,
90532         modules/readutmp, modules/regex, modules/sha1,
90533         modules/version-etc, modules/yesno:
90534         Remove dependency on unlocked-io.
90535
90536 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90537
90538         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90539
90540         * m4/unlocked-io.m4: Add copyright notice.
90541         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90542
90543 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90544
90545         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90546         * lib/xmalloc.c (xmemdup): Likewise.
90547         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90548         XFREE): Remove these long-obsolescent macros.
90549         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90550         * lib/xstrdup.c: Remove.
90551
90552         * lib/regex.c (re_comp): Cast gettext return value to char *,
90553         Problem reported by Martin Neitzel via Mark D. Baushke.
90554
90555 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90556
90557         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90558         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90559         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90560         regex.c, sha1.c, version-etc.c, yesno.c:
90561         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90562         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90563         the includer's responsibility.
90564
90565         Sync from coreutils.
90566
90567         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90568         points to the start of a string, as the C Standard says the
90569         resulting behavior is undefined.
90570
90571         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90572         simple -> simple_backups, numbered_existing ->
90573         numbered_existing_backups, numbered -> numbered_backups
90574         to avoid shadowing problems.  All uses changed.
90575         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90576         * lib/backupfile.c (check_extension, numbered_backup):
90577         Rename locals to avoid shadowing 'basename'.
90578         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90579         once.
90580
90581         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90582         * lib/.cvsignore: Add getopt.h.
90583
90584 2004-10-04  Bruno Haible  <bruno@clisp.org>
90585
90586         * modules/README: New file.
90587         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90588         not a module.
90589
90590 2004-10-02  Jim Meyering  <jim@meyering.net>
90591
90592         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90593
90594 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90595
90596         * modules/strsep: New file.
90597
90598 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90599
90600         * m4/strsep.m4: New file.
90601
90602 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90603
90604         * lib/strsep.h: New file.
90605         * lib/strsep.c: New file.
90606
90607 2004-10-01  Simon Josefsson  <jas@extundo.com>
90608
90609         * lib/snprintf.c (snprintf): Handle size==0.
90610
90611 2004-10-01  Simon Josefsson  <jas@extundo.com>
90612             Bruno Haible  <bruno@clisp.org>
90613
90614         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90615         (snprintf): Declare 'args'.
90616
90617 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90618
90619         * lib/snprintf.c: Remove comments as to why each header is needed.
90620
90621 2004-10-01  Bruno Haible  <bruno@clisp.org>
90622
90623         * MODULES.html.sh: Add strsep.
90624
90625 2004-09-30  Simon Josefsson  <jas@extundo.com>
90626
90627         * modules/snprintf: New file.
90628
90629 2004-09-30  Simon Josefsson  <jas@extundo.com>
90630
90631         * m4/snprintf.m4: New file.
90632
90633 2004-09-30  Simon Josefsson  <jas@extundo.com>
90634
90635         * lib/snprintf.h, lib/snprintf.c: New files.
90636
90637 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90638
90639         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90640         (hol_entry_help): Never translate an empty string.
90641         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90642         * lib/argp.h (OPTION_NO_TRANS): New option.
90643
90644 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90645
90646         * modules/argp (Maintainer): Replace Simon Josefsson
90647         by Sergey Poznyakoff.
90648
90649 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90650
90651         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90652         changes merged back into glibc.
90653
90654 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90655
90656         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90657
90658 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90659
90660         * lib/xvasprintf.c: Include xalloc.h.
90661         (xvasprintf): Use xalloc_die, not xmalloc_die.
90662
90663 2004-09-29  Bruno Haible  <bruno@clisp.org>
90664
90665         * modules/alloca-opt: New file, derived from modules/alloca.
90666         * modules/allocsa: Depend on alloca-opt instead of alloca.
90667         * modules/setenv: Likewise.
90668         * modules/vasnprintf: Likewise.
90669         * MODULES.html.sh: Add alloca-opt.
90670
90671 2004-09-28  Simon Josefsson  <jas@extundo.com>
90672
90673         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90674         LGPL, and to replace license template from GPL to LGPL.
90675
90676 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90677
90678         * modules/dummy: Change license to LGPL.
90679
90680 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90681
90682         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90683
90684 2004-09-24  Simon Josefsson  <jas@extundo.com>
90685
90686         * modules/minmax (License): Change from GPL to LGPL.
90687
90688 2004-09-23  Simon Josefsson  <jas@extundo.com>
90689
90690         * gnulib-tool (--import): Typo.
90691
90692 2004-09-23  Simon Josefsson  <jas@extundo.com>
90693
90694         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90695
90696 2004-09-22  Bruno Haible  <bruno@clisp.org>
90697
90698         * modules/*: Add 'License' field.
90699         * gnulib-tool: Accept --extract-license option.
90700         (func_get_license): New function.
90701
90702 2004-09-21  Bruno Haible  <bruno@clisp.org>
90703
90704         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90705         Reported by Simon Josefsson.
90706
90707 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90708
90709         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90710         gl_AC_TYPE_LONG_LONG.
90711
90712 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90713
90714         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90715
90716 2004-09-18  Simon Josefsson  <jas@extundo.com>
90717         and  Paul Eggert  <eggert@cs.ucla.edu>
90718
90719         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90720         calls with autoreconf.  Define GL_LIB.
90721
90722 2004-09-14  Karl Berry  <karl@gnu.org>
90723
90724         * config/srclist.txt: unsync setenv.c, sigh.
90725
90726 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90727
90728         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90729         Problem reported by Bruno Haible in:
90730         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90731
90732 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90733
90734         * config/srclist.txt: Comment out argp-pvh.c.
90735
90736 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90737
90738         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90739         in case some system header has #define'd it.  Problem reported by
90740         Soeren D. Schulze in
90741         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90742
90743 2004-09-09  Karl Berry  <karl@gnu.org>
90744
90745         * regex.[ch]: delete from the root.  These were supposed to be
90746                 synced with emacs cvs, but this has not happened for about
90747                 a year, and anyway nothing else uses emacs regex.[ch].
90748                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90749                 lib/regex[.ch] is untouched.
90750
90751 2004-09-09  Bruno Haible  <bruno@clisp.org>
90752
90753         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90754
90755 2004-09-09  Bruno Haible  <bruno@clisp.org>
90756
90757         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90758         modifications.
90759         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90760
90761 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90762
90763         * modules/xvasprintf: New file.
90764         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90765
90766 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90767
90768         * lib/xvasprintf.h: New file.
90769         * lib/xvasprintf.c: New file.
90770         * lib/xasprintf.c: New file.
90771
90772 2004-09-08  Bruno Haible  <bruno@clisp.org>
90773
90774         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90775
90776 2004-09-08  Bruno Haible  <bruno@clisp.org>
90777
90778         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90779         length is > INT_MAX.
90780         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90781         more.
90782
90783 2004-09-08  Bruno Haible  <bruno@clisp.org>
90784
90785         * lib/stdint_.h: New file, taken from GNU clisp.
90786
90787 2004-09-08  Bruno Haible  <bruno@clisp.org>
90788             Oskar Liljeblad  <oskar@osk.mine.nu>
90789
90790         * modules/stdint: New file.
90791         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90792
90793 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90794
90795         Import from coreutils.
90796         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90797         strings on unbounded length.  alloca's performance benefits aren't
90798         that important here.
90799         (V_STRDUP): Remove.
90800         (parse_with_separator): New function, with most of the internals
90801         of the old parse_user_spec.  Allow user to omit both user and group,
90802         for compatibility with FreeBSD.
90803         Clone only the user name, not the entire spec.
90804         Do not set *uid, *gid unless entirely successful.
90805         Avoid memory leak in some failing cases.
90806         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90807         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90808         (parse_user_spec): Rewrite to use parse_with_separator.
90809
90810 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90811
90812         * modules/userspec: Don't depend on alloca.
90813
90814 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90815
90816         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90817
90818 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90819
90820         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90821         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90822         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90823
90824 2004-08-16  Simon Josefsson  <jas@extundo.com>
90825
90826         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90827         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90828         Add --dry-run for --import.
90829         Let user provided command line parameters override configure.ac
90830         settings.
90831
90832 2004-08-12  Simon Josefsson  <jas@extundo.com>
90833
90834         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90835         as discussed with Paul Eggert in threads rooted at
90836         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90837         and
90838         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90839         Before, the test was empty, and relied on ELIDE_CODE in source
90840         code.)
90841         (gl_PREREQ_GETOPT): New macro.
90842         (gl_GETOPT): Use them.
90843
90844 2004-08-12  Simon Josefsson  <jas@extundo.com>
90845
90846         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90847         * lib/getopt_.h: Renamed from getopt.h.
90848
90849 2004-08-12  Simon Josefsson  <jas@extundo.com>
90850
90851         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90852         Change default library name from libfoo to libgnu.
90853         Now, if you have a configure.ac that says:
90854                 gl_SOURCE_BASE(gl)
90855                 gl_M4_BASE(gl/m4)
90856                 gl_MODULES(error getopt etcetera)
90857                 gl_INIT
90858         you can import all you need by running:
90859                 ../gnulib/gnulib-tool --import
90860
90861         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90862         (Makefile.am): Rewrite, use logic from argz.
90863         (Include): Use <getopt.h> instead of "getopt.h".
90864
90865 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90866
90867         * modules/argp (Files): Add m4/unlocked-io.m4.
90868         (Depends-on): Add extensions.
90869
90870 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90871
90872         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90873         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90874         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90875         Check for program_invocation_name, program_invocation_short_name,
90876         flockfile, funlockfile, features.h, _getopt_long_only_r.
90877
90878 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90879
90880         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90881         its complicated substitute.
90882         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90883         and program_invocation_name.
90884         (__argp_basename) [!_LIBC]: Remove; the only use was
90885         replaced by its body.
90886         (__argp_short_program_name): Change condition from
90887         !defined __argp_short_program_name to
90888         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90889         to match argp-namefrob.h.
90890         (__argp_failure): Don't assume strerror_r returns char *.
90891         * lib/argp-parse.c (N_): Define unconditionally.
90892         (argp_default_options): Fill out initializers with 0 to avoid
90893         gcc warnings.
90894
90895 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90896
90897         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90898         getopt1.c.
90899
90900 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90901
90902         Merge from coreutils.
90903
90904         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90905
90906         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90907         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90908
90909 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90910
90911         Merge from coreutils.
90912
90913         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90914         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90915         for Reliant Unix 5.43.
90916
90917         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90918         (union fooround): Use uintmax_t, not long int.
90919         The rest is a merge from libc:
90920         [defined _LIBC]: Include <shlib-compat.h>.
90921         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90922
90923         * lib/settime.c (settime): Recode to avoid warning with
90924         Sun Forte C 6U2.
90925
90926         * lib/strverscmp.c: Convert to UTF-8.
90927
90928 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90929
90930         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90931         m4/uintmax_t.m4.
90932
90933 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90934
90935         * modules/xalloc-die: New file.
90936         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90937
90938         * modules/md5 (Files): Add m4/uint32_t.m4.
90939         * modules/sha1: Renamed from modules/sha.
90940         (Files):
90941         Rename lib/sha.h to lib/sha1.h.
90942         Rename lib/sha.c to lib/sha1.c.
90943         Rename m4/sha.m4 to m4/sha1.m4.
90944         (lib_SOURCES): Likewise.
90945         (configure.ac): Rename gl_SHA to gl_SHA1.
90946         (Include): sha.h -> sha1.h.
90947
90948 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90949
90950         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90951         * m4/sha1.m4: Renamed from sha.m4.
90952         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90953
90954 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90955
90956         * lib/obstack.h (obstack_empty_p):
90957         Don't assume that chunk->contents is suitably aligned.
90958         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90959         Likewise. Problem reported by Benno in
90960         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90961
90962         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90963         readable.  This could be improved further but it'd take some work.
90964
90965 2004-08-08  Simon Josefsson  <jas@extundo.com>
90966
90967         * modules/xgethostname (Depends-on): Remove exit and error (not
90968         used).
90969
90970         * modules/getpass-gnu: Add getpass.h.
90971         (Depends-on): Add stdbool.
90972         * modules/getpass: Add getpass.h.
90973
90974 2004-08-08  Simon Josefsson  <jas@extundo.com>
90975
90976         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90977         Check getpass declaration.
90978
90979 2004-08-08  Simon Josefsson  <jas@extundo.com>
90980
90981         * lib/xgethostname.c: Don't include error.h (not used).
90982
90983         * lib/getpass.h: Add.
90984         * lib/getpass.c: Include getpass.h first.
90985
90986 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90987
90988         * lib/xalloc-die.c: New file.
90989         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90990         All uses removed.
90991         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90992         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90993         xalloc-die.c.
90994         (_, N_, xalloc_die): Move to xalloc-die.c.
90995         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90996         so that we needn't mess with xalloc_msg_memory_exhausted.
90997
90998         * lib/sha1.h: Renamed from sha.h.
90999         (SHA1_H): Renamed from _SHA_H.
91000         (sha1_ctx): Renamed from sha_ctx.
91001         (sha1_init_ctx): Renamed from sha_init_ctx.
91002         (sha1_process_block): Renamed from sha_process_block.
91003         (sha1_process_bytes): Renamed from sha_process_bytes.
91004         (sha1_finish_ctx): Renamed from sha_finish_ctx.
91005         (sha1_read_ctx): Renamed from sha_read_ctx.
91006         (sha1_stream): Renamed from sha_stream.
91007         (sha1_buffer): Renamed from sha_buffer.
91008         * lib/sha1.c: Likewise; renamed from sha.c.
91009         Do not include <sys/types.h>.
91010         Include <stddef.h> rather than <stdlib.h>.
91011
91012 2004-08-08  Bruno Haible  <bruno@clisp.org>
91013
91014         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
91015         FILESYSTEM_PREFIX_LEN.
91016         * lib/progreloc.c: Likewise.
91017         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
91018
91019 2004-08-06  Simon Josefsson  <jas@extundo.com>
91020
91021         * modules/progname (Depends-on): Don't depend on stdbool.
91022
91023 2004-08-06  Simon Josefsson  <jas@extundo.com>
91024
91025         * modules/getsubopt: New file.
91026         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91027         getsubopt.
91028
91029 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
91030
91031         More merge from coreutils.
91032
91033         * m4/utimens.m4, m4/utimecmp.m4: New files.
91034         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
91035         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
91036         prereq.m4, sha.m4: Import changes from coreutils.
91037
91038 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
91039
91040         More merge from coreutils.
91041         * modules/raise, modules/readtokens0, modules/utimens:
91042         * modules/utimecmp, module/xnanosleep: New files.
91043         * modules/strftime: Add lib/strftime.h.
91044         Change include from <time.h> to "strftime.h".
91045         * modules/yesno: Add lib/yesno.h.
91046         * modules/backupfile: Remove lib/addext.c.
91047         * modules/euidaccess: Add stat-macros.h.
91048         * modules/canonicalize, modules/euidaccess,
91049         modules/filemode, modules/lchown, modules/makepath,
91050         modules/rmdir, modules/stat: Likewise.
91051
91052 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
91053
91054         Merge from tar.
91055         * lib/argp-help.c (make_hol, hol_append): Don't assume that
91056         SIZE_MAX is a valid preprocessor constant.
91057         (__argp_basename): Change from "#ifndef _LIBC"
91058         to "#ifndef __argp_short_program_name", so that
91059         we don't compile these functions for tar.
91060
91061         More merges from coreutils.
91062         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
91063         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
91064         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
91065         * lib/addext.c: Remove; no longer needed.
91066         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
91067         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
91068         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
91069         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
91070         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
91071         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
91072         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
91073         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
91074         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
91075         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
91076         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
91077         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
91078         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
91079         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
91080         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
91081         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
91082         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
91083         Import changes from coreutils.
91084
91085 2004-08-05  Simon Josefsson  <jas@extundo.com>
91086
91087         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
91088
91089 2004-08-05  Simon Josefsson  <jas@extundo.com>
91090
91091         * m4/getsubopt.m4: New file.
91092
91093 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91094
91095         Merge from coreutils.
91096
91097         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
91098         * m4/getcwd-path-max.m4: New files.
91099
91100         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
91101         FILESYSTEM_PREFIX_LEN ->
91102         FILE_SYSTEM_PREFIX_LEN.
91103         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
91104         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
91105         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
91106         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
91107
91108         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
91109         prerequisite modules now handle the DOS stuff.
91110         Don't check for unistd.h.
91111
91112 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91113
91114         Merge from coreutils.
91115
91116         * lib/.gdb-history: Remove; this doesn't belong here.
91117
91118         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
91119         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
91120         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
91121         * lib/getcwd.c: New files.
91122
91123         * lib/dirname.h: Include <stdbool.h>.
91124         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
91125         for consistency with POSIX terminology.  All uses changed.
91126         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
91127         (strip_trailing_slashes): Use bool for booleans.
91128         * lib/stripslash.c (strip_trailing_slashes): Likewise.
91129
91130         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
91131         sometimes returns a positive errno value even when it succeeds.
91132         (print_errno_message) [!LIBC]: Fall back on strerror if
91133         __strerror_r fails.
91134
91135         * lib/path-concat.c (mempcpy): Don't define if a system header defines
91136         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
91137         (longest_relative_suffix): New function.
91138         (path_concat): Use it.  Assume first argument is not NULL.
91139         Port to DOS.  Omit redundant separators.
91140         Report an error instead of returning NULL.
91141         Use mempcpy instead of memcpy.
91142         (xpath_concat): Remove: not declared or used.
91143
91144         * lib/same.h: Include <stdbool.h>
91145         (same_name): Return bool, not int.
91146         * lib/same.c (same_name): Likewise.
91147         (errno): Don't declare; we assume C89 or better now.
91148
91149         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
91150         if not already defined.
91151
91152         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
91153         * lib/dup-safer.c (errno): Likewise.
91154
91155 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91156
91157         Merge from coreutils.
91158         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
91159         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
91160         * modules/path-concat: Don't depend on strdup.
91161
91162 2004-08-03  Simon Josefsson  <jas@extundo.com>
91163
91164         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
91165         * lib/progname.h: Don't include stdbool.h.
91166
91167 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91168
91169         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
91170         * MODULES.html.sh (func_all_modules): Remove fatal.
91171
91172 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91173
91174         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
91175
91176 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91177
91178         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
91179         working.
91180
91181 2004-08-02  Simon Josefsson  <jas@extundo.com>
91182
91183         * lib/getsubopt.h: New file, with comments from Bruno Haible.
91184         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
91185         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
91186
91187 2004-08-01  Simon Josefsson  <jas@extundo.com>
91188
91189         * lib/xgetdomainname.c: Include stdlib.h, for free().
91190
91191 2004-07-19  Bruno Haible  <bruno@clisp.org>
91192
91193         * MODULES.html.sh (func_all_modules): Add dummy.
91194
91195 2004-07-16  Simon Josefsson  <jas@extundo.com>
91196
91197         * modules/dummy: New file.
91198
91199 2004-07-16  Simon Josefsson  <jas@extundo.com>
91200
91201         * lib/dummy.c: New file.
91202
91203 2004-07-16  Bruno Haible  <bruno@clisp.org>
91204
91205         * lib/backupfile.h: Add extern "C" for C++.
91206         * lib/closeout.h: Likewise.
91207         * lib/copy-file.h: Likewise.
91208         * lib/findprog.h: Likewise.
91209         * lib/full-write.h: Likewise.
91210         * lib/pathname.h: Likewise.
91211         * lib/progname.h: Likewise.
91212         * lib/stpcpy.h: Likewise.
91213         * lib/stpncpy.h: Likewise.
91214         * lib/strcase.h: Likewise.
91215         * lib/strstr.h: Likewise.
91216         * lib/xalloc.h: Likewise.
91217
91218         * lib/mbswidth.h: Add extern "C" for C++.
91219         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
91220
91221 2004-07-13  Robert Millan  <robertmh@gnu.org>
91222
91223         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
91224
91225 2004-07-09  Simon Josefsson  <jas@extundo.com>
91226
91227         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
91228         failed without this.)
91229
91230 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91231
91232         * modules/chown (Files): Add lib/fchown-stub.c, since
91233         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
91234
91235 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91236
91237         * lib/fchown-stub.c: New file.
91238
91239 2004-06-24  Jim Meyering  <jim@meyering.net>
91240
91241         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
91242
91243 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91244
91245         * modules/argz: Omit "#include".
91246
91247         * MODULES.html.sh (func_all_modules): Add calloc, to match
91248         2004-06-01 addition of calloc module.
91249
91250 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91251
91252         * m4/argz.m4: New file, which is autoupdated from libtool.
91253
91254 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91255
91256         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
91257         libtool.
91258
91259 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91260
91261         * config/srclist-update: Don't insist on "USA." before the
91262         close-comment, as libtool omits the period and puts the */ on a
91263         separate line.
91264         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
91265         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
91266
91267 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
91268
91269         * modules/argz: New file.
91270         * MODULES.html.sh (func_all_modules): Add argz.
91271
91272 2004-06-12  Jim Meyering  <jim@meyering.net>
91273         and  Paul Eggert  <eggert@cs.ucla.edu>
91274
91275         * modules/hash (Files): Add lib/xalloc.h.
91276         * modules/pipe (Depends-on): Add wait-process.
91277         * modules/stat (Depends-on): Add xalloc.
91278         * modules/userspec (Files): Add lib/userspec.h.
91279         * modules/xstrto
91280
91281         Upgrade from gettext-0.13.
91282         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
91283         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
91284         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
91285
91286 2004-06-10  Jim Meyering  <jim@meyering.net>
91287
91288         * lib/calloc.c: New file.
91289
91290 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
91291
91292         * lib/getdate.y (yylex): Allow space between sign and number.
91293         Problem reported by Dan Jacobson.
91294
91295 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91296
91297         Merge from coreutils CVS.
91298
91299         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
91300         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
91301         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
91302         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
91303         xstrtol.m4: Fix copyright date and/or serial number.
91304
91305         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
91306         See if we need an fchown replacement.
91307         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
91308         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
91309         and use the replacement function if we detect either defect.
91310
91311         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
91312         gl_UTIMECMP.
91313
91314 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91315         and  Jim Meyering  <jim@meyering.net>
91316
91317         Merge from coreutils CVS.
91318
91319         * lib/stat-macros.h: New file, with contents from file-type.h
91320         and coreutils' system.h.
91321         * lib/file-type.c: Include "stat-macros.h".
91322         * lib/file-type.h (file_type): Move all macro definitions to new file,
91323         stat-macros.h.
91324
91325         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
91326         Wrap old code with this conditional.
91327         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
91328         function that does not dereference symlinks.
91329         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
91330
91331         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
91332         dependency problems.
91333         (xreadlink): Accept new arg SIZE, for efficiency.
91334         All decls and uses changed.
91335         * lib/xreadlink.h: Include <stddef.h>, for size_t.
91336
91337         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
91338         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
91339
91340         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
91341         sysexits.h.
91342
91343 2004-06-01  Jim Meyering  <jim@meyering.net>
91344
91345         * m4/calloc.m4: New file.
91346
91347 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
91348
91349         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
91350         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
91351         Also, fix a typo in a diagnostic.
91352
91353 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91354
91355         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
91356         or AC_FUNC_REALLOC.
91357
91358 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91359
91360         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
91361         macros to be defined.
91362         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
91363         the allocator returns NULL because the requested size is zero.
91364
91365 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
91366
91367         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
91368         var.  Add comment explaining why libc still defines it.  This
91369         merges the following patch from glibc:
91370         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
91371
91372 2004-05-20  Andreas Schwab  <schwab@suse.de>
91373
91374         * m4/free.m4: Replace free if it not known to work, not the other
91375         way round.
91376
91377 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91378
91379         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
91380         present in glibc since revision 1.1 of this file.
91381         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
91382         obstack_alignment_mask, obstack_alloc, obstack_base,
91383         obstack_blank, obstack_blank_fast, obstack_chunk_size,
91384         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
91385         obstack_grow0, obstack_init, obstack_int_grow,
91386         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
91387         obstack_next_free, obstack_object_size, obstack_ptr_grow,
91388         obstack_ptr_grow_fast, obstack_room): Remove declarations of
91389         nonexistent functions.
91390
91391 2004-05-18  Karl Berry  <karl@gnu.org>
91392
91393         * config/srclist.txt: break link for vasnprintf.c.
91394
91395 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91396
91397         Port obstack to the AS/400, where pointers are 16 bytes wide and
91398         you cannot cast an integer to a valid pointer.  This patch is
91399         currently waiting to be integrated into glibc; see
91400         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
91401
91402         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
91403         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
91404         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
91405         (struct obstack): temp member is now a union of a pointer and
91406         an integer, instead of an integer.  All integer uses changed.
91407         This does not affect the physical layout of struct obstack,
91408         except on hosts (like the AS/400) where the size or alignment of
91409         void * is greater than that of ptrdiff_t.
91410         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
91411         __STDC__)]: Store temporary in pointer member of union, not
91412         integer member.
91413         * lib/obstack.c: Include <stddef.h>, for offsetof.
91414         (struct fooalign): Remove; it doesn't need a name.
91415         (union fooround): Change double to long double, and add void *.
91416         (DEFAULT_ALIGNMENT): Use offsetof to compute.
91417         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
91418         not a macro.  Hence the values are always int; so remove all
91419         casts-to-int in uses.
91420
91421 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91422
91423         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
91424         we can get this patch merged into glibc.
91425
91426 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91427             Paul Eggert  <eggert@cs.ucla.edu>
91428
91429         * m4/argp: Depend on alloca.
91430
91431 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91432             Paul Eggert  <eggert@cs.ucla.edu>
91433
91434         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
91435         freecoding.
91436
91437 2004-05-17  Bruno Haible  <bruno@clisp.org>
91438
91439         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
91440         precision that consists of a '.' followed by an empty digit string.
91441         Patch by Tor Lillqvist <tml@iki.fi>.
91442
91443 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91444
91445         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
91446         for backward compatibility with older code.  We need our own
91447         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
91448         it under some other name, and our alloca.h will define it.
91449
91450 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91451             Derek Price  <derek@ximbiot.com>
91452
91453         * lib/alloca.c: Include <alloca.h>, to get our interface.
91454         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
91455         include <alloca.h> first.  Use C89 prototype for alloca; this
91456         requires including <stddef.h> for size_t.  Use extern "C" if C++.
91457         Use #elif for simplicity, since we can assume C89 now.
91458         Don't try to source the system alloca.h since it will not be found
91459         and to prevent recursively including its replacement.
91460         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
91461         * lib/regex.c: Likewise.
91462
91463 2004-05-16  Derek Price  <derek@ximbiot.com>
91464             Paul Eggert  <eggert@cs.ucla.edu>
91465
91466         getline cleanup.  This changes the getndelim2 API: both order of
91467         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
91468         no delimiter).
91469
91470         * lib/getline.c: Don't include stddef.h or stdio.h, since our
91471         interface does that.
91472         (getline): Always use getdelim, so that we don't have two
91473         copies of this code.
91474         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
91475         if available.
91476         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
91477         (GETNDELIM2_MAXIMUM): New macro.
91478         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
91479         instead of the old practice of delim2==0.  All callers changed.
91480         Return -1 on overflow, instead of returning junk.
91481         Do not set *linesize unless allocation succeeds.
91482         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
91483         that we include sys/types.h.
91484         * lib/getnline.h: Likewise.
91485         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
91486         (getndelim2): Reorder arguments.
91487         * lib/getnline.c (getnline, getndelim):
91488         Don't discard the NMAX argument.
91489         (getnline): Invoke getndelim, to avoid code duplication.
91490         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
91491         of (size_t) -1 by callers of the getnline family.
91492
91493 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91494
91495         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
91496         Check for gettimeofday.
91497         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
91498         Check for settimeofday, stime.
91499
91500 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91501
91502         * lib/nanosleep.c (suspended): Change its type from int to
91503         sig_atomic_t volatile.
91504         (first_call): Make it private to rpl_nanosleep, and have it
91505         be zero initially as that's a bit faster.
91506         (my_usleep): Round up fractional times instead of truncating them,
91507         as this is the usual meaning for 'sleep'.
91508
91509         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91510         doesn't work.
91511         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91512         (ENOSYS): Define if not defined.
91513         (settime): Fall back on stime if it exists and settimeofday fails.
91514         But don't bother with fallbacks if a method fails with errno == EPERM.
91515
91516 2004-05-11  Jim Meyering  <jim@meyering.net>
91517
91518         Prior to this change, the save_cwd caller required read access to the
91519         current directory on most systems (ones with the fchdir function).
91520
91521         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91522         fails, try write-only, and finally, resort to using xgetcwd.
91523
91524 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91525
91526         * lib/obstack.c, obstack.h: Import changes from libc.
91527
91528 2004-04-28  Bruno Haible  <bruno@clisp.org>
91529
91530         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91531         also implicitly appends .exe to executables.
91532         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91533         accepts Windows pathnames.
91534         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91535         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91536         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91537         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91538         Reported by Derek Robert Price <derek@ximbiot.com>.
91539
91540 2004-04-21  Karl Berry  <karl@gnu.org>
91541
91542         * config/srclist.txt (localcharset.c): break sync.
91543
91544 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91545
91546         * m4/host-os.m4: Add a copyright notice.
91547
91548 2004-04-20  Jim Meyering  <jim@meyering.net>
91549
91550         Change UTILS_ to gl_ in AC_DEFINE'd names.
91551         Change utils_- and jm_-prefixed variables, too.
91552         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91553         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91554         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91555
91556         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91557         Don't emit trailing blanks.
91558         Also rename jm_-prefixed variables to have gl_ prefix.
91559
91560         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91561         Also rename jm_-prefixed variables to have gl_ prefix.
91562
91563         * m4/jm-macros.m4: Reflect the renamings.
91564         * m4/prereq.m4: Likewise.
91565
91566 2004-04-20  Jim Meyering  <jim@meyering.net>
91567
91568         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91569         memory.
91570
91571 2004-04-20  Jim Meyering  <jim@meyering.net>
91572             Bruno Haible  <bruno@clisp.org>
91573
91574         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91575         memory when realloc fails.
91576
91577 2004-04-19  Jim Meyering  <jim@meyering.net>
91578
91579         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91580         now that readutmp.c may call `free (0)'.
91581
91582 2004-04-19  Bruno Haible  <bruno@clisp.org>
91583
91584         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91585         * m4/inttypes_h.m4: Likewise.
91586         * m4/stdint_h.m4: Likewise.
91587         * m4/intmax_t.m4: Likewise.
91588         * m4/uintmax_t.m4: Likewise.
91589
91590 2004-04-18  Jim Meyering  <jim@meyering.net>
91591
91592         * m4/prereq.m4: Don't forbid jm_ prefix.
91593
91594         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91595         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91596         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91597         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91598         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91599         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91600         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91601         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91602         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91603         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91604         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91605         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91606         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91607         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91608         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91609         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91610         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91611         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91612         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91613
91614 2004-04-18  Jim Meyering  <jim@meyering.net>
91615
91616         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91617         failure, don't leak memory and do call END_UTMP_ENT.
91618
91619 2004-04-16  Jim Meyering  <jim@meyering.net>
91620
91621         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91622         coreutils' stat program.
91623         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91624
91625 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91626
91627         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91628         C89.
91629         (CHAR_BIT): Remove, since we assume C89.
91630         Include <stdint.h> if available, as per current Autoconf CVS advice.
91631
91632 2004-03-31  Jim Meyering  <jim@meyering.net>
91633
91634         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91635         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91636         * m4/xalloc.m4: Likewise.
91637
91638 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91639
91640         Merge from coreutils.
91641
91642         * m4/inttostr.m4: New file.
91643         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91644         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91645         Require gl_CLOCK_TIME.
91646         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91647
91648 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91649
91650         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91651         not bool, to be more consistent with Unix conventions.
91652         Suggested by Bruno Haible.
91653
91654         Merge from coreutils.
91655
91656         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91657         * lib/umaxtostr.c: New files.
91658
91659         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91660         the usual <time.h> dance.
91661         (get_date): Change signature to support fractional time stamps.
91662         All callers changed.
91663         * lib/getdate.y: Include "getdate.h" first, as we can now
91664         assume C89 and don't need to worry about 'const'.
91665         Similarly, include "unlocked-io.h" near start, not in middle.
91666         Include <limits.h>.
91667         (textint.value): Use long int rather than int.
91668         (textint.digits): Use size_t rather than int.
91669         (BILLION, LOG10_BILLION): New constants.
91670         (parser_control): New member rel_ns.  Members day_ordinal,
91671         time_zone, month, day, hour, minutes, rel_year, rel_month,
91672         rel_day, rel_hour, rel_minutes, rel_seconds
91673         are now long int, not int.  Member seconds is now struct timespec,
91674         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91675         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91676         not int.
91677         (%union.intval): Now long int, not int.
91678         New member timespec.
91679         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91680         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91681         (spec): Now is a timespec or an item list.
91682         (timespec, items): New nonterminals.
91683         (time, rel, relunit, number, get_date):
91684         Add support for fractional seconds.
91685         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91686         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91687         (to_hour): First arg is now long int, not int.
91688         (to_year): Returns long int, not int.
91689         Don't treat year -70 like 70.
91690         (tm_diff): Returns long int, not int.
91691         (lookup_word): Use bool instead of int when appropriate.
91692         (yylex): Use size_t for count, not int.
91693         Detect overflow when parsing large integer constants.
91694         Add support for fractions.
91695         (get_date): Make pointers 'const' if possible.
91696         Use more-portable code to detect integer overflow.
91697         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91698         Don't use ctime; it's not reliable if the year has >4 digits.
91699
91700         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91701         This is for compatibility with BSD.
91702
91703         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91704         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91705         From coreutils' system.h.
91706
91707         * lib/userspec.c: Don't include "posixver.h".
91708         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91709         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91710         compatible extension.  Simplify code by removing a boolean int
91711         that was always nonzero if a string was nonnull.
91712
91713 2004-03-30  Jim Meyering  <jim@meyering.net>
91714
91715         Merge from coreutils.
91716
91717         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91718         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91719         on some systems one must include <grp.h> before it.
91720         Reported by Christian Krackowizer.
91721
91722 2004-03-30  Jim Meyering  <jim@meyering.net>
91723
91724         Merge from coreutils.
91725
91726         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91727
91728         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91729         an empty input stream.
91730
91731         * lib/readtokens.c: Include <stdbool.h>.
91732         (readtoken): Use `size_t' rather than int/long.
91733         All callers adjusted.
91734         Use `bool' rather than `int' where appropriate.
91735         Use memset rather than an explicit loop.
91736         Use x2nrealloc rather than xrealloc.
91737         Allow the use of `\0' as a delimiter.
91738         (readtokens): Likewise.
91739         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91740
91741 2004-03-30  Jim Meyering  <jim@meyering.net>
91742
91743         * m4/realloc.m4: Remove file, since now it does no more than
91744         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91745         the `configure.ac' section of module/realloc.
91746         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91747
91748 2004-03-30  Bruno Haible  <bruno@clisp.org>
91749
91750         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91751         nonnull.
91752
91753 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91754
91755         Merge changes to getloadavg.c from coreutils and Emacs.
91756
91757         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91758         Define to an expression, not to the empty string.
91759         Include cloexec.h and xalloc.h.
91760         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91761         Use set_cloexec_flag rather than rolling our own.
91762         * lib/cloexec.c, lib/cloexec.h: New files.
91763
91764 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91765
91766         * m4/cloexec.m4: New file.
91767
91768 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91769
91770         * lib/getopt.h: Sync with libc CVS.
91771
91772 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91773             Bruno Haible  <bruno@clisp.org>
91774
91775         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91776         mbswidth.
91777
91778 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91779             Bruno Haible  <bruno@clisp.org>
91780
91781         * lib/mbswidth.h: Include <wchar.h> only if
91782         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91783         <wchar.h>.
91784         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91785
91786 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91787
91788         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91789         Sync with libc CVS.
91790         * lib/getopt_int.h: New file, also synced from libc.
91791
91792 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91793
91794         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91795         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91796         Bring back getopt.c, getopt.h, getopt1.c.
91797
91798 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91799
91800         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91801         All uses changed.  Check for sa_sigaction member; this fixes
91802         a bug first reported by Jason Andrade in
91803         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91804
91805 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91806
91807         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91808         '#if' expressions.  Unlike the code it replaces, it does not
91809         depend on (defined _SC_PAGESIZE).  However, it does depend on
91810         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91811         first reported by Jason Andrade in
91812         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91813
91814 2004-02-25  Simon Josefsson  <jas@extundo.com>
91815
91816         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91817
91818 2004-02-25  Simon Josefsson  <jas@extundo.com>
91819
91820         * lib/strdup.h: New file.
91821         * lib/strdup.c: Include it.
91822         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91823         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91824
91825 2004-02-23  Karl Berry  <karl@gnu.org>
91826
91827         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91828         (from fencepost.gnu.org:/gd/gnuorg).
91829
91830 2004-02-23  Karl Berry  <karl@gnu.org>
91831
91832         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91833         * config/srclist.txt: add maintain/standards documents.
91834
91835 2004-02-18  Bruno Haible  <bruno@clisp.org>
91836
91837         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91838         Reported by Derek Robert Price <derek@ximbiot.com>.
91839
91840 2004-02-16  Karl Berry  <karl@gnu.org>
91841
91842         * config/mkinstalldirs, install-sh: update from automake.
91843
91844 2004-02-06  Karl Berry  <karl@gnu.org>
91845
91846         * m4/po.m4: update from gettext 0.14.1.
91847
91848 2004-02-06  Karl Berry  <karl@gnu.org>
91849
91850         * lib/config.charset: update from gettext 0.14.1.
91851
91852 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91853
91854         Add comments and code, prompted by suggestions from Bruno Haible
91855         for sh-quote.
91856         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91857         describing the enum quoting_style values.
91858         * lib/quotearg.c (quotearg_alloc): New function.
91859         (quotearg_buffer_restyled): Treat lone { and } as special.
91860         Treat = as special.  Work around bug with older shells
91861         that "see" a '\' that is really the 2nd byte of a multibyte char.
91862         Quote empty string with shell_quoting_style.
91863
91864 2004-02-03  Bruno Haible  <bruno@clisp.org>
91865
91866         * m4/pipe.m4: New file, from GNU gettext.
91867
91868 2004-02-03  Bruno Haible  <bruno@clisp.org>
91869
91870         * lib/pipe.h: New file, from GNU gettext.
91871         * lib/pipe.c: New file, from GNU gettext.
91872
91873 2004-01-27  Bruno Haible  <bruno@clisp.org>
91874
91875         * m4/execute.m4: New file, from GNU gettext.
91876
91877 2004-01-27  Bruno Haible  <bruno@clisp.org>
91878
91879         * lib/execute.h: New file, from GNU gettext.
91880         * lib/execute.c: New file, from GNU gettext.
91881         * lib/w32spawn.h: New file, from GNU gettext.
91882
91883 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91884
91885         Merge from diffutils.
91886
91887         * lib/file-type.c (file_type): Add typed memory objects.
91888         * lib/file-type.h (S_TYPEISTMO): New macro.
91889
91890         * lib/c-stack.h (c_stack_action): Remove argv argument.
91891         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91892         (die): Don't calculate message unless segv_action returns.
91893         (get_stack_location, min_address_from_argv, max_address_from_argv,
91894         volatile stack_base, volatile_stack_size): Remove.
91895         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91896         that every segmentation violation is a stack overflow.  (Ouch!)
91897         See Debian bug 136249 (still outstanding) for more info about why
91898         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91899
91900 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91901
91902         Exit-status fix from coreutils.
91903
91904         Use exit_failure consistently in place of EXIT_FAILURE,
91905         so that program exit statuses are consistent on failure.
91906
91907         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91908         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91909         * lib/argmatch.h: Comment fix to match the above.
91910         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91911         Now a macro referring to exit_failure, instead of a separate
91912         variable.  Include "exitfail.h" to get it.
91913         * lib/xstrtol.h: Include "exitfail.h".
91914         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91915
91916         * lib/long-options.c (parse_long_options): Use prototype
91917         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91918         for clarity.
91919
91920 2004-01-21  Jim Meyering  <jim@meyering.net>
91921
91922         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91923         so as not to conflict with a different-sized __mktime_internal
91924         function in GNU libc.
91925         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91926         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91927
91928 2004-01-20  Karl Berry  <karl@gnu.org>
91929
91930         * config/config.guess: update from config.
91931
91932         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91933
91934 2004-01-20  Bruno Haible  <bruno@clisp.org>
91935
91936         Safer stack allocation.
91937         * lib/setenv.c: Include allocsa.h.
91938         (alloca): Remove fallback definition.
91939         (freea): Remove macro.
91940         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91941         instead of freea.
91942
91943 2004-01-20  Bruno Haible  <bruno@clisp.org>
91944
91945         * m4/eealloc.m4: New file, from GNU gettext.
91946
91947 2004-01-20  Bruno Haible  <bruno@clisp.org>
91948
91949         * m4/allocsa.m4: New file, from GNU gettext.
91950
91951 2004-01-20  Bruno Haible  <bruno@clisp.org>
91952
91953         * lib/xallocsa.h: New file, from GNU gettext.
91954         * lib/xallocsa.c: New file, from GNU gettext.
91955
91956 2004-01-20  Bruno Haible  <bruno@clisp.org>
91957
91958         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91959
91960 2004-01-20  Bruno Haible  <bruno@clisp.org>
91961
91962         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91963         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91964         specially.
91965
91966 2004-01-20  Bruno Haible  <bruno@clisp.org>
91967
91968         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91969         patch.
91970
91971 2004-01-20  Bruno Haible  <bruno@clisp.org>
91972
91973         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91974
91975 2004-01-20  Bruno Haible  <bruno@clisp.org>
91976
91977         * lib/eealloc.h: New file.
91978
91979 2004-01-20  Bruno Haible  <bruno@clisp.org>
91980
91981         * lib/binary-io.h: Avoid warnings on Cygwin.
91982
91983 2004-01-20  Bruno Haible  <bruno@clisp.org>
91984
91985         * lib/allocsa.h: New file, from GNU gettext.
91986         * lib/allocsa.c: New file, from GNU gettext.
91987
91988 2004-01-18  Karl Berry  <karl@gnu.org>
91989
91990         * doc/gpl.texi, doc/lgpl.texi: new files.
91991
91992 2004-01-18  Karl Berry  <karl@gnu.org>
91993
91994         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91995         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91996
91997 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91998
91999         Merge from coreutils.
92000
92001         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
92002         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
92003         (gl_DEFAULT_POSIX2_VERSION): Move
92004         the documentation from 'configure' into 'config.hin',
92005         so that 'configure --help' isn't burdened by it and
92006         we don't have to worry about its formatting there.
92007         Reword the documentation so that it's more succinct
92008         and can be run together into a single paragraph.
92009         * m4/same.m4 (gl_SAME): Check for pathconf.
92010
92011 2004-01-15  Paul Eggert  <eggert@twinsun.com>
92012
92013         Merge from coreutils.
92014
92015         * lib/posixver.c: Include posixver.h.
92016
92017         * lib/same.c: Include <stdbool.h>, <limits.h>.
92018         (_POSIX_NAME_MAX): Define if not defined.
92019         (MIN): New macro.
92020         (same_name): If file names are silently truncated, report
92021         that the file names are the same if they are the same after
92022         the silent truncation.
92023
92024         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
92025         conversion function.
92026         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
92027         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
92028         longer needed.
92029
92030 2004-01-15  Jim Meyering  <jim@meyering.net>
92031
92032         Merge from coreutils.
92033
92034         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
92035         if no library is required.
92036         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
92037         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
92038         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
92039         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
92040         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
92041         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
92042         value, $ac_cv_search_crypt, if it's "none required".
92043         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
92044         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
92045         not gl_FUNC_GETLOADAVG.
92046         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
92047         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
92048
92049 2004-01-15  Jim Meyering  <jim@meyering.net>
92050
92051         Merge from coreutils.
92052
92053         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
92054         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
92055         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
92056
92057         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
92058         optional configure-time default.
92059
92060         * lib/version-etc.c (version_etc_copyright): Update copyright date.
92061
92062         * lib/xreadlink.c (xreadlink): Correct outdated comment.
92063
92064 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
92065
92066         Merge from coreutils.
92067
92068         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
92069         value, $ac_cv_search_nanosleep, if it's "none required".
92070
92071 2004-01-14  Paul Eggert  <eggert@twinsun.com>
92072
92073         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
92074         with like-named macro in fnmatch.c.
92075         (EXT): Use an internal constant instead.
92076
92077         Merge fnmatch patches from glibc.
92078         * lib/fnmatch.c (mbsinit): Remove define.
92079         Add libc_hidden_ver (__fnmatch, fnmatch).
92080         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
92081         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
92082
92083 2004-01-14  Karl Berry  <karl@gnu.org>
92084
92085         * config/install-sh: update from automake.
92086
92087 2004-01-13  Karl Berry  <karl@gnu.org>
92088
92089         * config/install-sh: update from automake.
92090
92091 2004-01-09  Karl Berry  <karl@gnu.org>
92092
92093         * config/install-sh: update from automake.
92094
92095 2004-01-05  Karl Berry  <karl@gnu.org>
92096
92097         * config/config.{sub,guess}: update from config.
92098
92099 2003-12-31  Karl Berry  <karl@gnu.org>
92100
92101         * config/depcomp: update from automake.
92102
92103 2003-12-14  Karl Berry  <karl@gnu.org>
92104
92105         * lib/config.charset: update from gettext-runtime.
92106
92107 2003-12-03  Paul Eggert  <eggert@twinsun.com>
92108
92109         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
92110         Bug reported by Alfred M. Szmidt.
92111
92112 2003-12-03  Bruno Haible  <bruno@clisp.org>
92113
92114         * m4/gettext.m4: Upgrade from gettext-0.13.
92115         * m4/po.m4: Upgrade from gettext-0.13.
92116         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
92117         * m4/intmax.m4: New file, from gettext-0.13.
92118         * m4/printf-posix.m4: New file, from gettext-0.13.
92119
92120 2003-11-29  Karl Berry  <karl@gnu.org>
92121
92122         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
92123
92124 2003-11-25  Paul Eggert  <eggert@twinsun.com>
92125             Bruno Haible  <bruno@clisp.org>
92126
92127         * lib/printf-parse.h: Don't include sys/types.h.
92128         (ARG_NONE): New macro.
92129         (char_directive): Change type of *arg_index fields to size_t.
92130         * lib/printf-parse.c: Don't include sys/types.h.
92131         (SSIZE_MAX): Remove macro.
92132         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
92133         Remove unnecessary overflow check.
92134         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
92135         fields.
92136
92137 2003-11-25  Bruno Haible  <bruno@clisp.org>
92138
92139         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
92140
92141 2003-11-25  Bruno Haible  <bruno@clisp.org>
92142
92143         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
92144         gt_TYPE_SSIZE_T.
92145
92146 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92147
92148         * modules/alloca: Remove dependency on xalloc.
92149
92150 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92151
92152         * lib/alloca.c: Remove dependency on xalloc module.
92153         (xalloc_die): Remove.
92154         (memory_full) [!defined emacs]: New macro.
92155         [!defined emacs]: Don't include xalloc.h.
92156         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
92157         address arithmetic overflows.  Change datatypes a bit to avoid
92158         unnecessary casts.
92159
92160 2003-11-22  Jim Meyering  <jim@meyering.net>
92161
92162         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
92163         s/size/size_t/.
92164
92165 2003-11-21  Karl Berry  <karl@gnu.org>
92166
92167         * config/config.{sub,guess}: update from config.
92168
92169 2003-11-18  Karl Berry  <karl@gnu.org>
92170
92171         * config/config.{sub,guess}: update from config.
92172
92173         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
92174
92175 2003-11-17  Paul Eggert  <eggert@twinsun.com>
92176
92177         * README: Mention that S+T cannot overflow if S is the size of
92178         an existing object and T is sufficiently small.
92179
92180 2003-11-17  Jim Meyering  <jim@meyering.net>
92181
92182         On systems without utime and without a utimes function capable of
92183         dealing with a NULL struct utimbuf* argument, this utime replacement
92184         could -- in unusual circumstances -- leak a file descriptor.
92185         * lib/utime.c: Include <unistd.h> and <errno.h>.
92186         (utime_null): Be sure to close `fd' and to preserve errno.
92187         Reported by Geoff Collyer via Arnold Robbins.
92188
92189 2003-11-17  Bruno Haible  <bruno@clisp.org>
92190
92191         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
92192         (Depends-on): Add xsize.
92193
92194 2003-11-17  Bruno Haible  <bruno@clisp.org>
92195
92196         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
92197
92198 2003-11-17  Bruno Haible  <bruno@clisp.org>
92199
92200         * lib/vasnprintf.c (alloca): Remove fallback definition.
92201         (freea): Remove definition.
92202         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
92203         Reported by Paul Eggert.
92204
92205 2003-11-16  Paul Eggert  <eggert@twinsun.com>
92206             Bruno Haible  <bruno@clisp.org>
92207
92208         Protect against address arithmetic overflow.
92209         * lib/printf-args.h: Include stddef.h.
92210         (arguments): Change type of field 'count' to size_t.
92211         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
92212         'unsigned int' where appropriate.
92213         * lib/printf-parse.h: Include sys/types.h.
92214         (char_directive): Change type of *arg_index fields to ssize_t.
92215         (char_directives): Change type of fields 'count', max_*_length to
92216         size_t.
92217         * lib/printf-parse.c: Include sys/types.h and xsize.h.
92218         (SSIZE_MAX): Define fallback value.
92219         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
92220         instead of 'int' where appropriate. Check a_allocated, d_allocated
92221         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
92222         * lib/vasnprintf.c: Include xsize.h.
92223         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
92224         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
92225         overflow. Avoid wraparound when converting a width or precision from
92226         decimal to binary.
92227
92228 2003-11-16  Bruno Haible  <bruno@clisp.org>
92229
92230         Update from GNU gettext.
92231         * lib/printf-parse.c: Generalize to it can be compiled for wide
92232         strings.
92233         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
92234         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
92235         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
92236         SNPRINTF): New macros.
92237         Don't include <alloca.h> if the file is used inside libintl.
92238         (local_wcslen): New function, for Solaris 2.5.1.
92239         (VASNPRINTF): Use it instead of wcslen.
92240
92241 2003-11-16  Bruno Haible  <bruno@clisp.org>
92242
92243         * lib/xsize.h (xmax): New function.
92244         (xsum, xsum3, xsum4): Declare as "pure" functions.
92245
92246 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92247
92248         * modules/xalloc (Files): Undo latest change, since xalloc.h
92249         no longer needs SIZE_MAX or PTRDIFF_MAX.
92250
92251 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92252
92253         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
92254         gl_PTRDIFF_MAX.
92255
92256 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92257
92258         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
92259         "return", to pacify some unknown compiler.  Problem reported
92260         by Joerg Schilling.
92261
92262 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92263
92264         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
92265         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
92266         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
92267         heuristic is just as accurate as far as we know, and it removes a
92268         dependency on size_max.m4 and ptrdiff_max.m4.
92269
92270 2003-11-11  Bruno Haible  <bruno@clisp.org>
92271
92272         * modules/xsize (Files): Add m4/size_max.m4.
92273         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
92274
92275 2003-11-11  Bruno Haible  <bruno@clisp.org>
92276
92277         * m4/size_max.m4: New file.
92278         * m4/ptrdiff_max.m4: New file.
92279         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
92280         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
92281         (gl_XALLOC): Invoke it.
92282
92283 2003-11-11  Bruno Haible  <bruno@clisp.org>
92284
92285         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
92286         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
92287         defined.
92288
92289 2003-11-10  Paul Eggert  <eggert@twinsun.com>
92290
92291         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
92292         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
92293         rejected some allocations of exactly SIZE_MAX - 2 bytes.
92294         From Bruno Haible.
92295         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
92296         not (size_t) -1, since it's defined here.
92297
92298 2003-11-09  Karl Berry  <karl@gnu.org>
92299
92300         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
92301
92302 2003-11-06  Paul Eggert  <eggert@twinsun.com>
92303
92304         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
92305         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
92306         Reject sizes of exactly SIZE_MAX bytes.
92307         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
92308         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
92309
92310 2003-11-05  Bruno Haible  <bruno@clisp.org>
92311
92312         * lib/xsize.h: Include limits.h, to avoid a possible collision with
92313         SIZE_MAX defined in <limits.h> on Solaris.
92314
92315 2003-11-04  Jim Meyering  <jim@meyering.net>
92316
92317         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
92318         variable names, rather than @VAR@.
92319         * modules/poll: Likewise.
92320
92321 2003-11-04  Bruno Haible  <bruno@clisp.org>
92322
92323         * modules/xsize: New file.
92324         * modules/linebreak: Depend on xsize.
92325         * MODULES.html.sh (func_all_modules): Add xsize.
92326
92327 2003-11-04  Bruno Haible  <bruno@clisp.org>
92328
92329         * m4/xsize.m4: New file.
92330
92331 2003-11-04  Bruno Haible  <bruno@clisp.org>
92332
92333         * lib/xsize.h: New file.
92334         * lib/linebreak.c: Include xsize.h.
92335         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
92336         argument for overflow.
92337         Suggested by Paul Eggert.
92338
92339 2003-11-03  Karl Berry  <karl@gnu.org>
92340
92341         * config/config.{guess,sub}: update from config.
92342
92343 2003-11-03  Jim Meyering  <jim@meyering.net>
92344
92345         * modules/userspec (lib_SOURCES): Add userspec.h.
92346         (Include): Add "userspec.h".
92347         Improve description.
92348
92349 2003-11-03  Jim Meyering  <jim@meyering.net>
92350
92351         * lib/userspec.c: Include "userspec.h".
92352         * lib/userspec.h: New file.
92353
92354 2003-11-03  Bruno Haible  <bruno@clisp.org>
92355
92356         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
92357
92358 2003-11-03  Bruno Haible  <bruno@clisp.org>
92359
92360         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
92361         available, to avoid (extremely rare) race condition.
92362         Suggested by Paul Eggert.
92363
92364 2003-11-02  Karl Berry  <karl@gnu.org>
92365
92366         * config/srclist.txt (vasprintf.c): sync broken, sigh.
92367
92368 2003-10-31  Paul Eggert  <eggert@twinsun.com>
92369
92370         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
92371         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
92372         (read_filesystem_list): Set and use me_type_malloced.
92373         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
92374         whatever the type happens to be), for brevity and consistency.
92375         Check for size calculation overflow on Alphas running OSF/1.
92376
92377 2003-10-31  Jim Meyering  <jim@meyering.net>
92378
92379         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
92380
92381         * lib/linebuffer.c: Include <string.h> for declaration of memset.
92382
92383 2003-10-30  Paul Eggert  <eggert@twinsun.com>
92384             Bruno Haible  <bruno@clisp.org>
92385
92386         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
92387         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
92388
92389 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
92390
92391         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
92392         netbsd*-gnu*.  Suggested by Robert Millan.
92393
92394 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92395
92396         * modules/group-member: Depend on stdbool.
92397
92398 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92399
92400         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
92401
92402 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92403
92404         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
92405         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
92406         after the 'gnu' in these cases.  This fixes some bugs in the
92407         previous change, and is based on suggestions by Robert Millan.
92408
92409 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92410
92411         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
92412         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
92413         no longer needed.
92414         * lib/quotearg.c (quotearg_n_options): Use it.
92415         * lib/group-member.c: Include <stdbool.h>.
92416         (free_group_info): Arg is now const *; don't free arg.
92417         (get_group_info): Now returns bool and accepts struct group_info *,
92418         rather than returning a malloc'ed struct group_info *.
92419         All uses changed.  Check for overflow in internal size calculation.
92420
92421         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
92422         rather than xmalloc/xrealloc.
92423         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
92424         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
92425         conformance bug: the old code used a pointer after freeing the
92426         storage that it addressed.
92427         * lib/hash.c (hash_initialize): Simplify the code by using
92428         xalloc_oversized rather than doing it by hand.
92429         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
92430         the buffer preserved.  Use free and xmalloc instead.
92431         * lib/quotearg.c (quotearg_n_options): Likewise.
92432         Use a simpler test for size overflow.  Don't use xalloc_oversized
92433         because unsigned int might be wider than size_t (!); this suggests
92434         that we should switch from unsigned int to size_t for slot numbers.
92435
92436 2003-10-28  Paul Eggert  <eggert@twinsun.com>
92437
92438         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
92439         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
92440         NetBSD kernels.  Requested by Richard Stallman.
92441
92442 2003-10-27  Paul Eggert  <eggert@twinsun.com>
92443
92444         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
92445         to allocate the returned structure.  Do not allocate a subarray,
92446         as x2nrealloc will do that.
92447         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
92448         instead of xnrealloc.
92449         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
92450
92451 2003-10-27  Bruno Haible  <bruno@clisp.org>
92452
92453         * lib/stdbool_.h: Better support for BeOS.
92454
92455 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92456
92457         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
92458         now uses inline.
92459
92460 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92461
92462         * lib/xalloc.h (xalloc_oversized): New static inline function, for
92463         callers that want to do their own size-overflow checking.  Include
92464         <stdbool.h>, since xalloc_oversized returns bool.
92465         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
92466         to use xalloc_oversized.
92467
92468         Add two functions x2realloc, x2nrealloc, for programs that grow
92469         arrays dynamically by doubling their sizes.
92470         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
92471         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
92472         New functions.
92473
92474         Port to C99 semantics for 'inline' of external functions.
92475         Bug reported by Bruno Haible.
92476         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
92477         with the old contents of xnmalloc.
92478         (xnmalloc, xmalloc): Use it.
92479         (xnrealloc_inline): New static inline function,
92480         with the old contents of xnrealloc.
92481         (xnrealloc, xrealloc): Use it.
92482
92483         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
92484         that.
92485
92486 2003-10-26  Karl Berry  <karl@gnu.org>
92487
92488         * config/srclist.txt (COPYING.DOC): no longer available from
92489         /gd/gnuorg; don't know where the ultimate source is.
92490
92491 2003-10-25  Paul Eggert  <eggert@twinsun.com>
92492
92493         Fix several address-calculation bugs in the hash modules,
92494         plus some minor code cleanup.
92495
92496         * lib/hash.h: Include <stdbool.h>, for bool.
92497         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
92498         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
92499         hash_get_n_entries, hash_get_max_bucket_length,
92500         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
92501         hash_rehash): Use size_t rather than unsigned.
92502         * lib/hash.c (struct hash_table, hash_get_n_buckets,
92503         hash_get_n_buckets_used, hash_get_n_entries,
92504         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
92505         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92506         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92507         Likewise.
92508         (SIZE_MAX): Define if not defined.
92509         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92510         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92511         hash_print):
92512         Use const * when possible.
92513         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92514         (check_tuning): Fix bug: if tuning parameters were very close to
92515         0 or 1, rounding errors could have caused subscript violations.
92516         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92517         (hash_initialize): Add 'fail:' label
92518         to free table and return NULL, and use it to simplify code.
92519         Use calloc rather than clearing the storage ourself.
92520         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92521         buffer size calculations.
92522         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92523         Include <stddef.h>, for size_t.
92524         * lib/hash-pjw.c (hash_pjw): Likewise.
92525         Switch to method described by Bruno Haible.
92526         Include <limits.h>, for CHAR_BIT.
92527         (SIZE_BITS): New macro.
92528
92529 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92530
92531         * m4/getline.m4 (AM_FUNC_GETLINE):
92532         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92533         hosts.  Problem reported by Derek Robert Price in
92534         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92535         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92536         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92537
92538 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92539
92540         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92541         ceiling the allocation at NMAX bytes rather than silently
92542         discarding input bytes before NMAX is reached.  This makes
92543         a difference only if NMAX exceeds SIZE_MAX / 2.
92544
92545         * lib/obstack.c: Merge from glibc.
92546         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92547         Add libc_hidden_def (_obstack_newchunk).
92548         (_obstack_free) [! defined _LIBC]: Remove.
92549         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92550         a clone of the function body.
92551         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92552         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92553
92554         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92555         glibc.
92556         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92557         arg to memcpy.
92558
92559         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92560         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92561         Don't use lvalue casts, as GCC plans to remove support for them
92562         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92563         was also present in the non-GCC version, indicating that this
92564         code had always been buggy and had never been widely used.
92565         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92566         Use the fast variant of each macro, rather than copying the
92567         definiens of the fast variant; that way, we'll be more likely to
92568         catch future bugs in the fast variants.
92569
92570 2003-10-20  Bruno Haible  <bruno@clisp.org>
92571
92572         * modules/wait-process: New file.
92573         * MODULES.html.sh (func_all_modules): Add wait-process.
92574
92575 2003-10-20  Bruno Haible  <bruno@clisp.org>
92576
92577         * m4/wait-process.m4: New file.
92578
92579 2003-10-20  Bruno Haible  <bruno@clisp.org>
92580
92581         * lib/wait-process.h: New file, from GNU gettext.
92582         * lib/wait-process.c: New file, from GNU gettext.
92583
92584 2003-10-19  Jim Meyering  <jim@meyering.net>
92585
92586         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92587         HPUX 10.20.
92588
92589 2003-10-18  Karl Berry  <karl@gnu.org>
92590
92591         * config/config.guess: update from config.
92592
92593 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92594
92595         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92596         (getgroups): First arg is int, not size_t.
92597         Don't let 'free' mangle errno.
92598
92599 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92600
92601         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92602
92603 2003-10-16  Karl Berry  <karl@gnu.org>
92604
92605         * config/config.{guess,sub}: update from config.
92606
92607 2003-10-16  Jim Meyering  <jim@meyering.net>
92608
92609         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92610         memcpy.
92611
92612 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92613
92614         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92615         (SIZE_MAX): Remove.
92616         (new_exclude, add_exclude_file): Initial size no longer needs to
92617         be a power of 2.
92618         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92619         our own address arithmetic overflow checking.
92620
92621         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92622         (fnmatch): Do not alloca more than 2000 wide characters;
92623         instead, use malloc for large buffers.
92624         Check for address arithmetic overflow, and return -1
92625         with errno set to ENOMEM in that case.
92626         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92627         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92628         instead, return -1.  Check for address arithmetic overflow.
92629
92630 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92631
92632         Handle invalid suffixes and overflow independently, so that
92633         callers can treat them independently as needed.  Fix some bugs in
92634         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92635         suffix for a human-readable blocksize.  The major caller-visible
92636         change is the addition of a new
92637         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92638         that both overflow and suffix chars were found.
92639
92640         * lib/human.c (humblock): Don't check separately for invalid suffix
92641         char; that is xstrtoumax's job (now that its bug is fixed).
92642         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92643         INTMAX_MAX]: New macros.
92644         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92645         TYPE_MAXIMUM): New macros.
92646         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92647         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92648         if overflow occurs, as it's what __strtol does and it's more useful
92649         in practice.
92650         (__xstrtol): If __strtol reports some error other than ERANGE,
92651         reflect it to the caller as LONGINT_INVALID.  If it reports
92652         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92653         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92654         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92655         value.
92656         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92657         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92658         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92659         [defined UINTMAX_MAX]: New macros.
92660
92661 2003-10-14  Bruno Haible  <bruno@clisp.org>
92662
92663         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92664
92665 2003-10-14  Bruno Haible  <bruno@clisp.org>
92666
92667         * m4/sig_atomic_t: New file, from GNU gettext.
92668         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92669
92670 2003-10-14  Bruno Haible  <bruno@clisp.org>
92671
92672         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92673         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92674         Also use volatile where needed.
92675
92676 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92677
92678         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92679         Change maintainer from Bruno Haible to 'all'.
92680
92681 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92682
92683         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92684
92685 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92686
92687         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92688         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92689         and define in terms of the other primitives.
92690         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92691         (SIZE_MAX): Define if not already defined.
92692         (array_size_overflow): New function.
92693         (xalloc_die): Abort instead of exiting if 'error' returns.
92694         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92695         (xmalloc, xrealloc): Use them.
92696         (xcalloc): Check for address arithmetic overflow.
92697         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92698         a bit faster than strcpy.
92699
92700 2003-10-10  Simon Josefsson  <jas@extundo.com>
92701
92702         * modules/argp (Depends-on): Add restrict and strcase.
92703
92704 2003-10-10  Simon Josefsson  <jas@extundo.com>
92705
92706         * m4/argp.m4: Add AC_C_INLINE.
92707
92708 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92709
92710         Merge getpass from libc, plus a few fixes.
92711
92712         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92713         Include <stdbool.h>.
92714         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92715         __fsetlocking to empty.
92716         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92717         do include <bits/libc-lock.h>.
92718         Do not include <fcntl.h>; not needed.
92719         [_LIBC]: Include <wchar.h>.
92720         (NOTCANCEL_MODE): New macro.
92721         (flockfile, funlockfile) [_LIBC]: New macros.
92722         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92723         [!_LIBC]: New macros.
92724         (call_fclose): New function.
92725         (getpass): Use it.  Save tty stream separately; this simplifies the
92726         code and makes it more reliable if stdin happens to equal stdout.
92727         Invoke __fsetlocking on tty.
92728         Handle thread cancellation if needed.
92729         Namespace cleanup (use __tcgetattr, __getline).
92730         Use bool for Booleans.
92731         [USE_IN_LIBIO]: Handle wide streams.
92732         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92733         stream might go where.
92734
92735         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92736         doesn't have to include <stdio.h> before us.
92737         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92738         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92739         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92740         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92741         if not declared, so that we can use getpass.c code from libc without
92742         rewriting it.
92743         (flockfile, ftrylockfile, funlockfile): New macros.
92744
92745 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92746
92747         * modules/getpass: Depend on stdbool.
92748
92749 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92750
92751         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92752
92753 2003-10-07  Karl Berry  <karl@gnu.org>
92754
92755         * config/config.{guess,sub}: update from config.
92756
92757 2003-10-06  Jim Meyering  <jim@meyering.net>
92758             Bruno Haible  <bruno@clisp.org>
92759
92760         This lets translators provide better translations for the
92761         "Written by ..." part of --version output.
92762         * lib/version-etc.h: Include stdarg.h.
92763         (version_etc_copyright): Declare as readonly.
92764         (version_etc): Make this function variadic with a NULL-terminated list
92765         of author name strings.
92766         (version_etc_va): New declaration.
92767         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92768         (version_etc_copyright): Declare as readonly.
92769         (version_etc_va): New function. Provide a different translatable string
92770         for each possible number of authors < 10. Abbreviate when there are 10
92771         authors or more.
92772         (version_etc): Make this function variadic. Call version_etc_va.
92773         Suggestion from Gary V. Vaughan.
92774
92775         * lib/long-options.h (parse_long_options): Change prototype: the
92776         authors string is moved to the end and becomes variadic.
92777         * lib/long-options.c: Include stdarg.h.
92778         (parse_long_options): Make this function variadic, too.
92779         Call version_etc_va, not version_etc.
92780
92781 2003-10-06  Bruno Haible  <bruno@clisp.org>
92782
92783         * modules/version-etc-2: Remove file.
92784         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92785
92786 2003-10-06  Bruno Haible  <bruno@clisp.org>
92787
92788         * modules/fatal-signal: New file.
92789         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92790
92791 2003-10-06  Bruno Haible  <bruno@clisp.org>
92792
92793         * m4/fatal-signal.m4: New file.
92794         * m4/signalblocking.m4: New file, from GNU gettext.
92795
92796 2003-10-06  Bruno Haible  <bruno@clisp.org>
92797
92798         * lib/version-etc-2.h: Remove file.
92799         * lib/version-etc-2.c: Remove file.
92800
92801 2003-10-06  Bruno Haible  <bruno@clisp.org>
92802
92803         * lib/fatal-signal.h: New file, from GNU gettext.
92804         * lib/fatal-signal.c: New file, from GNU gettext.
92805
92806 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92807
92808         * README: Rework advice for preventing empty .o files.
92809         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92810         not <sys/types.h>.
92811
92812 2003-10-04  Karl Berry  <karl@gnu.org>
92813
92814         * lib/argp*: update from libc.
92815
92816 2003-10-04  Karl Berry  <karl@gnu.org>
92817
92818         * config/config.{guess,sub}: update from config.
92819
92820 2003-10-02  Bruno Haible  <bruno@clisp.org>
92821
92822         * modules/lchown (Include): Add lchown.h.
92823         * modules/time_r (Include): Use "..." syntax.
92824         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92825
92826 2003-10-01  Simon Josefsson  <jas@extundo.com>
92827
92828         * MODULES.html.sh (func_all_modules): Move gethostname from section
92829         'based on' to section 'lacking' POSIX:2001.
92830
92831 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92832
92833         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92834         to output mode on the same stream.
92835
92836 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92837
92838         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92839         Fix arg typo in previous patch.
92840
92841 2003-09-28  Jim Meyering  <jim@meyering.net>
92842
92843         * lib/error.c: Correct cpp indentation.
92844
92845 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92846
92847         * modules/free: New file.
92848
92849 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92850
92851         * m4/free.m4: New file.
92852
92853 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92854
92855         * lib/minmax.h (MIN, MAX)
92856         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92857         Omit the special code that used __typeof__, since we worry that
92858         it could be more trouble than it's worth.  See:
92859         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92860         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92861
92862         * lib/free.c: New file.
92863
92864 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92865
92866         Trivial fixes to Makefile.am parts of module listings.
92867         * modules/strstr: Append strstr.h to lib_SOURCES.
92868         * modules/strcase: Likewise, for strcase.h.
92869
92870 2003-09-27  Karl Berry  <karl@gnu.org>
92871
92872         * config/mkinstalldirs: update from automake.
92873
92874 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92875
92876         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92877         (error_tail): Do not loop, reallocating temporary buffer, since
92878         the output cannot contain more wide characters than the input
92879         contains bytes, the size must be big enough already.  This avoids
92880         one potential size overflow calculation.  Check for size overflow
92881         when calculating temporary buffer size.  Free temporary buffer
92882         when done, if it was allocated with malloc; this plugs a memory
92883         leak.  Remove casts from void * to pointers, that are no longer
92884         needed now that we're assuming C89 or better.
92885
92886         Merge error changes from glibc.
92887
92888         * lib/error.c, error.h: Update copyright notice header to match glibc.
92889         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92890         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92891         Disable cancellation while printing error.
92892         * lib/error.h: Prepend __ to parameter names.
92893
92894 2003-09-26  Jim Meyering  <jim@meyering.net>
92895
92896         * lib/error.c (error_tail): Move some declarations
92897         into inner scope where the local variables are used.
92898
92899 2003-09-26  Bruno Haible  <bruno@clisp.org>
92900
92901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92902         stpncpy().
92903         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92904
92905 2003-09-26  Bruno Haible  <bruno@clisp.org>
92906
92907         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92908         (stpncpy): Define as alias for gnu_stpncpy.
92909         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92910
92911 2003-09-25  Simon Josefsson  <jas@extundo.com>
92912
92913         * lib/xgetdomainname.h: New file.
92914         * lib/xgetdomainname.c: New file.
92915
92916 2003-09-25  Simon Josefsson  <jas@extundo.com>
92917             Bruno Haible  <bruno@clisp.org>
92918
92919         * modules/getdomainname: New file.
92920         * modules/xgetdomainname: New file.
92921         * MODULES.html.sh (func_all_modules): Add getdomainname,
92922         xgetdomainname.
92923
92924 2003-09-25  Simon Josefsson  <jas@extundo.com>
92925             Bruno Haible  <bruno@clisp.org>
92926
92927         * m4/getdomainname.m4: New file.
92928
92929 2003-09-25  Simon Josefsson  <jas@extundo.com>
92930             Bruno Haible  <bruno@clisp.org>
92931
92932         * lib/getdomainname.h: New file.
92933         * lib/getdomainname.c: New file.
92934
92935 2003-09-25  Karl Berry  <karl@gnu.org>
92936
92937         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92938
92939 2003-09-25  Karl Berry  <karl@gnu.org>
92940
92941         * config/install-sh: update from automake.
92942
92943 2003-09-25  Bruno Haible  <bruno@clisp.org>
92944
92945         * modules/version-etc-2: New file, from modules/version-etc with
92946         modifications.
92947         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92948
92949 2003-09-25  Bruno Haible  <bruno@clisp.org>
92950
92951         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92952         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92953
92954 2003-09-24  Simon Josefsson  <jas@extundo.com>
92955
92956         * modules/xgethostname: Add xgethostname.h.
92957
92958 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92959
92960         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92961         the buffer associated with the argument.  Bug reported by
92962         Simon Josefsson.
92963
92964 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92965
92966         * README: Document assumptions that 'int' is at least 32 bits
92967         wide, that integer arithmetic is 2's complement without overflow,
92968         that there are no holes in integer values, that adding sizes of
92969         two nonoverlapping objects can't overflow, and that all-bits-zero
92970         yields scalar zero.  Fix spelling and capitalization typos.
92971
92972 2003-09-19  Karl Berry  <karl@gnu.org>
92973
92974         * lib/argp.h: update from libc.
92975
92976 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92977
92978         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92979         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92980         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92981
92982 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92983
92984         * gnulib-tool: Use "test -h", not "test -L", for portability
92985         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92986         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92987         (sed_extract_prog): Issue s commands one-by-one, rather than
92988         using \| in one s command.
92989
92990 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92991
92992         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92993         input error, instead of returning NULL the next time we are called
92994         (and therefore losing track of errno).
92995
92996 2003-09-16  Bruno Haible  <bruno@clisp.org>
92997
92998         * gnulib-tool (func_create_testdir): Warn about duplicated
92999         dependencies.
93000
93001 2003-09-15  Paul Eggert  <eggert@twinsun.com>
93002
93003         * modules/argmatch, modules/fatal, modules/obstack,
93004         modules/xalloc, modules/xgethostname: Sort dependencies by
93005         importance, not alphabetically.
93006
93007 2003-09-15  Paul Eggert  <eggert@twinsun.com>
93008
93009         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
93010         fails, so that the caller gets the proper errno.
93011
93012         * lib/readutmp.c (read_utmp): Likewise.
93013         Check for fstat error.  Close stream and free storage
93014         when failing.
93015
93016 2003-09-14  Karl Berry  <karl@gnu.org>
93017
93018         * config/srclist.txt (strdup.c): disable for c89 changes.
93019
93020 2003-09-14  Jim Meyering  <jim@meyering.net>
93021
93022         * lib/getloadavg.c: Correct cpp indentation.
93023         * lib/strdup.c: Likewise.
93024         * lib/vasnprintf.c: Likewise.
93025
93026 2003-09-14  Bruno Haible  <bruno@clisp.org>
93027
93028         * modules/fwriteerror: New file.
93029         * MODULES.html.sh (func_all_modules): Add fwriteerror.
93030
93031 2003-09-14  Bruno Haible  <bruno@clisp.org>
93032
93033         * lib/fwriteerror.h: New file.
93034         * lib/fwriteerror.c: New file.
93035
93036 2003-09-12  Paul Eggert  <eggert@twinsun.com>
93037
93038         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
93039         modules/xgethostname, modules/xalloc: Depend on exit.
93040
93041 2003-09-12  Paul Eggert  <eggert@twinsun.com>
93042
93043         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
93044
93045         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
93046         and AC_MINIX, too, so that their extensions are available.
93047
93048         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
93049         This macro has been superseded by gl_BACKUPFILE.
93050
93051         More patches to assume C89 or better.
93052
93053         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
93054
93055         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
93056         unconditionally.
93057         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
93058         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
93059         Include <string.h>, <stdlib.h> unconditionally.
93060         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
93061         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
93062         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
93063         headers or for string.h.
93064         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
93065         or strtoul.
93066
93067         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
93068         headers.
93069         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
93070         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93071         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
93072         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
93073         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93074         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
93075         memcpy, memset.
93076         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
93077         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
93078         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
93079         strtol.
93080         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
93081         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
93082         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
93083         strtoul.
93084
93085 2003-09-12  Paul Eggert  <eggert@twinsun.com>
93086
93087         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
93088         * lib/obstack.c [!defined _LIBC]: Likewise.
93089         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
93090         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
93091         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
93092
93093         More changes to assume C89 or better.
93094
93095         * lib/error.c (error_tail): Assume vprintf.
93096
93097         * lib/argmatch.c (getenv): Remove decl.
93098         * lib/progreloc.c (get_full_program_name): Define via prototype.
93099         * lib/setenv.c (clearenv): Likewise.
93100         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
93101         needed.
93102         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
93103         (malloc, memcpy): Remove decls.
93104         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
93105         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
93106         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93107         (memcpy): Remove macro.
93108         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
93109         (__P): Remove.  All uses removed.
93110         (PTR): Remove.  All uses changed to void *.
93111         (CHAR_BIT, NULL): Remove.
93112         (spaces, zeros, memset_space, memset_zero)
93113         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
93114         Remove.
93115         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
93116         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
93117         Define with prototype.
93118         Remove now-unnecessary prototype decl.
93119         (extra_args_spec): Assume ANSI C.  All uses changed.
93120         (extra_args_spec_iso): Remove.
93121         (my_strftime, emacs_strftimeu): Define via prototype.
93122         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
93123         unconditionally.
93124         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
93125         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
93126         (strtoul, strtol): Remove decls.
93127         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
93128         LONG_MAX): Remove.
93129         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93130         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
93131         (LOCALE_PARAM_PROTO): New macro.
93132         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
93133         (INTERNAL (strtol), strtol): Define with a prototype.
93134         (PARAMS): Remove.  All uses removed.
93135         * lib/tempname.c: Include <string.h> unconditionally.
93136         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
93137         * lib/xgethostname.c (main): Define with a prototype.
93138         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
93139         Include <stdlib.h> unconditionally.
93140         (calloc, malloc, realloc, free): Remove decls.
93141         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
93142         Include <stdlib.h> unconditionally.  Sort include file names.
93143         (strtod): Remove.
93144         (xstrtod): Define with a prototype.
93145         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
93146         (strtol, strtoul): Remove decls.
93147
93148 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93149
93150         More patches to assume C89 or better.
93151         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
93152         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
93153         string.h, memchr, STDC_HEADERS.
93154
93155 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93156
93157         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
93158         Include <stdlib.h>, <string.h> unconditionally.
93159         Remove now-unnecessary cast to char *.
93160         * lib/strnlen.c: Include <string.h> unconditionally.
93161         * lib/yesno.c (yesno): Define with a prototype.
93162
93163 2003-09-11  Bruno Haible  <bruno@clisp.org>
93164
93165         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
93166
93167 2003-09-10  Jim Meyering  <jim@meyering.net>
93168
93169         * lib/error.c: Correct indentation of cpp directives.
93170
93171 2003-09-10  Bruno Haible  <bruno@clisp.org>
93172
93173         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
93174         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
93175         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
93176         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
93177         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
93178         <stdlib.h> and <string.h> checks.
93179         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
93180         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
93181
93182 2003-09-10  Bruno Haible  <bruno@clisp.org>
93183
93184         * lib/strcspn.c: Include <string.h> unconditionally.
93185         * lib/strpbrk.c: Include <string.h> unconditionally.
93186         * lib/strstr.c: Include <string.h> unconditionally.
93187         * lib/unicodeio.c: Include <string.h> unconditionally.
93188         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
93189         * lib/unsetenv.c: Likewise.
93190         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
93191         * lib/yesno.c: Include <stdlib.h> unconditionally.
93192         (rpmatch): Add prototype.
93193
93194 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93195
93196         More patches to assume C89 or better.
93197         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
93198         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
93199         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
93200         or for string.h.
93201         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
93202         stdlib.h.
93203         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
93204         C headers.
93205         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
93206         string.h.
93207         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
93208         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
93209         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
93210         or for string.h.
93211         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
93212         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
93213         C headers.
93214         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
93215         memcpy.
93216         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
93217         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
93218         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
93219         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
93220         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
93221         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
93222         string.h, free.
93223         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
93224         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
93225         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
93226         C headers, or for string.h.
93227         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
93228         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
93229         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
93230         headers, memory.h, stdlib.h, string.h, strings.h.
93231         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
93232         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
93233         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
93234         strchr.
93235         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
93236         headers, memory.h, string.h.
93237         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
93238         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
93239         free.
93240         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
93241         headers.
93242         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
93243         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
93244         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
93245         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
93246         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
93247
93248 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93249
93250         More K&R removal.
93251
93252         * lib/acosl.c (main): Use a prototype.
93253         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
93254         tanl.c: Likewise.
93255
93256         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
93257
93258         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
93259         (getopt, etopt_long, getopt_long_only, _getopt_internal)
93260         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
93261         with a prototype.
93262         * lib/getopt.c (const): Remove macro.
93263         Include <string.h> unconditionally.
93264         (my_index): Remove; all uses changed to strchr.
93265         (strlen): Remove decl.
93266         (exchange): Remove forward decl; no longer needed.
93267         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
93268         Define with prototype.
93269         * lib/getopt1.c (const): Remove macro.
93270         (getopt_long, getopt_long_only, main): Define with prototype.
93271
93272         * lib/getugroups.c: Include <string.h> unconditionally.
93273
93274         * lib/getusershell.c: Include <stdlib.h> unconditionally.
93275         (getusershell, setusershell, endusershell, readname, main):
93276         Define with prototypes.
93277
93278         * lib/group-member.c: Include group-member.h first.
93279         Include <stdlib.h> unconditionally.
93280
93281         * lib/hard-locale.c: Include hard-locale.h first.
93282         Include <stdlib.h>, <string.h> unconditionally.
93283
93284         * lib/hash.c (free, malloc): Remove decls.
93285         Include <stdlib.h> unconditionally.
93286
93287         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
93288         (getenv): Do not declare.
93289
93290         * lib/idcache.c: Include <string.h> unconditionally.
93291
93292         * lib/long-options.c: Include long-options.h first, to test interface.
93293         Include <stdlib.h> unconditionally.
93294
93295         * lib/makepath.c: Include makepath.h first, to test interface.
93296         Include <stdlib.h> and <string.h> unconditionally.
93297
93298         * lib/linebuffer.c: Include <stdlib.h>.
93299         (free): Remove decl.
93300
93301         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
93302         stddef.h. rpl_malloc returns void *, not char *.
93303         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
93304         prototype.
93305
93306         * lib/md5.h: Include <limits.h> unconditionally.
93307         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
93308         (__P): Remove; all uses removed.
93309         * lib/md5.c: Include "md5.h" first.
93310         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
93311         md5_buffer, md5_process_bytes, md5_process_block):
93312         Define with prototypes.
93313         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
93314         * lib/sha.c: Include "sha.h" first.
93315         Include <stdlib.h>, <string.h> unconditionally.
93316
93317         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
93318         * lib/memcmp.c (__ptr_t): Likewise.
93319         * lib/memrchr.c (__ptr_t): Likewise.
93320         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
93321         Include <string.h> unconditionally.
93322         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
93323         * lib/memchr.c: Include <stdlib.h> unconditionally.
93324         * lib/memchr.c (LONG_MAX): Remove.
93325         * lib/memrchr.c (LONG_MAX): Likewise.
93326         * lib/memchr.c (__memchr): Define via a prototype.
93327         * lib/memrchr.c (__memrchr): Likewise.
93328         * lib/memcmp.c (__P): Remove, and remove all uses.
93329         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
93330         Remove forward decls; no longer needed.
93331         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
93332         Use types required by C89 in prototype.
93333
93334         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
93335         * lib/savedir.c: Likewise.
93336         * lib/mkdir.c (free): Remove decl.
93337         * lib/rmdir.c (rmdir): Define with a prototype.
93338         * lib/savedir.c: Include savedir.h first, to test interface.
93339
93340         * lib/mktime.c (STDC_HEADERS): Remove.
93341         Include <stdlib.h>, <string.h> unconditionally.
93342
93343         * lib/modechange.c: Include <stdlib.h> unconditionally.
93344         (malloc): Remove decl.
93345
93346         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
93347         (free): Remove decl.
93348
93349         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
93350         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
93351         (This type really should be intptr_t, but that's a C99ism.)
93352         (_obstack_memcpy): Remove: all uses changed to memcpy.
93353         Include <string.h> unconditionally.
93354         (struct obstack): Assume __STDC__ for types of members
93355         chunkfun, freefun, extra_arg.
93356         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
93357         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
93358         obstack_begin, obstack_specify_allocation,
93359         obstack_specify_allocation_with_arg, obstack_chunkfun,
93360         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
93361         Remove unprototyped decls and the macros that use them.
93362         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
93363         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
93364         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
93365         (defined __STDC__ && __STDC__)]:
93366         Remove nonprototyped code.
93367         Include <stdlib.h> unconditionally.
93368         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
93369         _obstack_allocated_p, _obstack_free, obstack_free,
93370         _obstack_memory_used, print_and_abort):
93371         Define using prototypes.
93372         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
93373         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
93374         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
93375         obstack_next_free, obstack_object_size, obstack_room) [0]:
93376         Remove unused, unprototyped code.
93377
93378         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
93379
93380         * lib/physmem.c (physmem_total, physmem_available, main): Define
93381         with prototypes.
93382
93383         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
93384         (main): Define with a prototype.
93385
93386         * lib/posixver.c (getenv): Remove decl.
93387
93388         * lib/putenv.c (malloc): Returns void *, not char *.
93389         Include <string.h> unconditionally.
93390         (strchr, memcpy, NULL): Do not define.
93391
93392         * lib/readtokens.c: Include readtokens.h first, to test interface.
93393         Include <stdlib.h>, <string.h> unconditionally.
93394         (init_tokenbuffer): Define with a prototype.
93395
93396         * lib/regex.c (PARAMS): Remove.  All uses removed.
93397         All uses of _RE_ARGS removed, too.
93398         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
93399         unconditionally.
93400         (bzero): Assume memset exists.
93401         (memcmp, memcpy, NULL): Remove.
93402         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
93403         char, or assignments to local vars of type signed char.
93404         (init_syntax_once, PREFIX(extract_number_and_incr),
93405         PREFIX(print_partial_compiled_pattern),
93406         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
93407         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
93408         PREFIX(regex_grow_registers), PREFIX(regex_compile),
93409         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
93410         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
93411         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
93412         wcs_compile_range, byte_compile_range, truncate_wchar,
93413         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
93414         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
93415         count_mbs_length, wcs_re_match_2_internal,
93416         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
93417         PREFIX(alt_match_null_string_p),
93418         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
93419         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
93420         regfree, PREFIX(extract_number)): Define with prototype.  Remove
93421         now-unnecessary declaration, if any.
93422         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
93423         regcomp, regexec):
93424         Remove now-unnecessary casts among pointer types.
93425         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
93426
93427         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
93428         (free): Remove decl.
93429
93430         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
93431
93432         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
93433         (free): Remove decl.
93434
93435         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
93436         * lib/xgetcwd.c: Likewise.
93437
93438         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
93439         (free): Remove decl.
93440
93441         * lib/strchrnul.c (strchrnul): Define with a prototype.
93442         Fix bug: c_in was not converted to char before searching.
93443
93444         The following changes are not K&R related:
93445
93446         * lib/group-member.h: Include <sys/types.h>, so that this file is
93447         self-contained.
93448         * lib/makepath.h: Likewise.
93449
93450         * lib/getusershell.c (readname, default_index, line_size, readname):
93451         Use size_t, not int, for sizes.
93452         (readname): If the size overflows, report an error instead of
93453         looping forever.
93454
93455 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93456
93457         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
93458         libc.
93459
93460 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93461
93462         * README: New section: portability guidelines.
93463
93464 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93465
93466         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
93467         C89 spec.
93468
93469 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93470
93471         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
93472
93473 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93474
93475         Assume C89 or better; remove K&R cruft.
93476         A few of these changes were first proposed by Derek Robert Price
93477         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
93478
93479         * lib/addext.c: Include <string.h> unconditionally.
93480         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
93481         Don't declare getenv or malloc.
93482
93483         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
93484         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
93485         (NULL): Remove.
93486         (find_stack_direction, alloca): Use prototypes.
93487
93488         * lib/atexit.c (atexit): Define using a prototype.
93489
93490         * lib/basename.c, dirname.c, stripslash.c:
93491         Include <string.h> unconditionally.
93492
93493         * lib/bcopy.c: Include <stddef.h>.
93494         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
93495
93496         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
93497
93498         * lib/error.h (error, error_at_line, error_print_progname)
93499         [! (defined (__STDC__) && __STDC__)]: Remove decls.
93500         * lib/error.c: Include error.h first, to check interface.
93501         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93502         (VA_START): Remove; all uses changeed to va_start.
93503         (exit, strerror): Remove decls.
93504         (error_print_progname): Prototype uncondionally.
93505         Don't include <errno.h>; no longer needed.
93506         (private_strerror): Remove.
93507         (error_tail): Always define.
93508         (error, error_at_line): Assume C89 or better; always use prototypes.
93509         * lib/fatal.c: Include "fatal.h" first, to test interface.
93510         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93511         (VA_START): Remove; all uses changed to va_start.
93512         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93513         this case.
93514         (exit): Remove decl.
93515         (fatal): Prototype unconditionally.  Assume va_start works.
93516         Abort at end, to pacify gcc.
93517
93518         * lib/euidaccess.c (main): Define with a prototype.
93519
93520         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93521
93522         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93523
93524         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93525         prototypes.
93526         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93527         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93528         (getenv): Remove decl.
93529         (fnmatch): Define using a prototype.
93530         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93531         (FCT): Define using a prototype.
93532
93533         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93534
93535         * lib/gethostname.c: Include <stddef.h>.
93536         (gethostname): Define with prototype.  Length is size_t, not int.
93537
93538 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93539
93540         Assume C89 or better; remove K&R cruft.
93541         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93542         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93543         string.h, getenv, malloc.
93544         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93545         headers.
93546         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93547         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93548         do not check for strerror.
93549         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93550         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93551         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93552         do not check for doprnt or vprintf.
93553         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93554         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93555
93556 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93557
93558         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93559         getversion.c should have been removed then, but was accidentally
93560         preserved.
93561
93562         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93563         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93564
93565 2003-09-08  Karl Berry  <karl@gnu.org>
93566
93567         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93568                 config, forget about prep.
93569
93570         * config/depcomp, missing: update from automake.
93571
93572 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93573
93574         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93575         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93576
93577 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93578
93579         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93580         copy_tm_result.  Bug reported by Simon Josefsson in
93581         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93582
93583 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93584
93585         * m4/time_r.m4: New file.
93586         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93587         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93588         is. Check for timegm declaration.
93589         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93590         Do not check for gmtime_r.
93591         Replace mktime if __mktime_internal does not exist and if mktime
93592         hasn't been replaced already.
93593
93594 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93595
93596         * lib/time_r.c, lib/time_r.h: New files.
93597
93598         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93599         __localtime_r.
93600         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93601         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93602
93603         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93604         __gmtime_r.
93605         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93606         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93607         Include <time_r.h>.
93608
93609         * lib/timegm.c: Switch to glibc implementation, with the following
93610         changes:
93611         [defined HAVE_CONFIG_H]: Include <config.h>.
93612         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93613         (__mktime_internal) [!defined _LIBC]: New decl.
93614         (__gmtime_r) [!defined _LIBC]: New macro and function.
93615         (timegm): Use a prototype, since gnulib assumes C89.
93616         Do not bother declaring tmp to be const, as it's not really usefu.
93617         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93618         (timegm): Declare only if HAVE_DECL_TIMEGM.
93619
93620 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93621
93622         * MODULES.html.sh (func_all_modules): Add time_r.
93623         * modules/time_r: New file.
93624         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93625         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93626
93627 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93628
93629         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93630         Bug reported by Lute Kamstra in
93631         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93632
93633         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93634         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93635         course with correspondingly smaller numbers for tomorrow and
93636         yesterday.  From Tadayoshi Funaba.  Originally installed into
93637         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93638         coreutils merge?).
93639
93640 2003-08-31  Simon Josefsson  <jas@extundo.com>
93641
93642         * modules/timegm: New file.
93643         * MODULES.html.sh (func_all_modules): Add timegm.
93644
93645 2003-08-31  Simon Josefsson  <jas@extundo.com>
93646
93647         * m4/timegm.m4: New file.
93648
93649 2003-08-31  Simon Josefsson  <jas@extundo.com>
93650
93651         * lib/timegm.h: New file.
93652         * lib/timegm.c: New file.  Based on
93653         wget-1.8.2/src/http.c:mktime_from_utc.
93654
93655 2003-08-31  Karl Berry  <karl@gnu.org>
93656
93657         * lib/argp.h: update from libc.
93658
93659 2003-08-28  Bruno Haible  <bruno@clisp.org>
93660
93661         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93662         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93663         followed by '#define fnmatch fnmatch_posix' gives an error.
93664
93665 2003-08-28  Bruno Haible  <bruno@clisp.org>
93666
93667         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93668         warning on QNX, which defines O_BINARY to 000000.
93669
93670 2003-08-27  Jim Meyering  <jim@meyering.net>
93671
93672         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93673         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93674         would fail after 32.  Reported by Danny Levinson.  Details here:
93675         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93676
93677 2003-08-24  Bruno Haible  <bruno@clisp.org>
93678
93679         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93680         MSVC7 <stdio.h> is included later.
93681
93682 2003-08-22  Simon Josefsson  <jas@extundo.com>
93683
93684         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93685
93686 2003-08-20  Karl Berry  <karl@gnu.org>
93687
93688         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93689
93690 2003-08-20  Bruno Haible  <bruno@clisp.org>
93691
93692         * modules/progname: New file.
93693         * MODULES.html.sh (func_all_modules): Add progname.
93694
93695 2003-08-20  Bruno Haible  <bruno@clisp.org>
93696
93697         * lib/progname.h: New file, from GNU gettext.
93698         * lib/progname.c: New file, from GNU gettext.
93699         * lib/progreloc.c: New file, from GNU gettext.
93700
93701 2003-08-19  Jim Meyering  <jim@meyering.net>
93702
93703         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93704         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93705
93706 2003-08-19  Bruno Haible  <bruno@clisp.org>
93707
93708         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93709         more.
93710
93711 2003-08-19  Bruno Haible  <bruno@clisp.org>
93712
93713         * lib/xstrdup.c: Assume <string.h> exists.
93714
93715 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93716
93717         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93718         in makefile rules.
93719
93720 2003-08-18  Jim Meyering  <jim@meyering.net>
93721
93722         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93723         * m4/lib-ld.m4: Likewise.
93724
93725 2003-08-18  Jim Meyering  <jim@meyering.net>
93726
93727         * lib/setenv.h: Indent nested cpp directive.
93728         * lib/vasnprintf.c: Remove trailing blanks.
93729
93730 2003-08-17  Simon Josefsson  <jas@extundo.com>
93731
93732         * modules/xstrndup: New file.
93733         * MODULES.html.sh (func_all_modules): Add xstrndup.
93734
93735 2003-08-17  Simon Josefsson  <jas@extundo.com>
93736
93737         * modules/argp: Fix autoconf macro name. Add more dependencies.
93738
93739 2003-08-17  Simon Josefsson  <jas@extundo.com>
93740
93741         * m4/xstrndup.m4: New file.
93742
93743 2003-08-17  Simon Josefsson  <jas@extundo.com>
93744
93745         * m4/argp.m4: New file.
93746
93747 2003-08-17  Simon Josefsson  <jas@extundo.com>
93748             Bruno Haible  <bruno@clisp.org>
93749
93750         * lib/xstrndup.h: New file.
93751         * lib/xstrndup.c: New file.
93752
93753 2003-08-17  Bruno Haible  <bruno@clisp.org>
93754
93755         * modules/strndup (Files, Include): Add lib/strndup.h.
93756
93757 2003-08-17  Bruno Haible  <bruno@clisp.org>
93758
93759         * modules/euidaccess (Files): Add lib/euidaccess.h.
93760
93761 2003-08-17  Bruno Haible  <bruno@clisp.org>
93762
93763         * lib/strndup.h: New file.
93764
93765 2003-08-17  Bruno Haible  <bruno@clisp.org>
93766
93767         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93768         like AC_GNU_SOURCE.
93769         * modules/extensions (configure.ac): Comment out the invocation of
93770         gl_USE_SYSTEM_EXTENSIONS.
93771
93772 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93773
93774         Merges from coreutils, etc.
93775         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93776         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93777         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93778         fixing a typo.
93779         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93780         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93781
93782 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93783
93784         Document merge from coreutils.
93785         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93786         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93787         * modules/utime: Add m4/utimes-null.m4.
93788
93789 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93790
93791         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93792         space, undoing this 2003-08-12 change:
93793         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93794
93795 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93796
93797         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93798         strtoul.c from libc, undoing this 2003-08-12 change:
93799         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93800
93801 2003-08-16  Jim Meyering  <jim@meyering.net>
93802
93803         Merges from coreutils.
93804         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93805         prefix.  Adjust cache variables similarly.  Create 500 rather than
93806         just 300 files, to exercise bug on Darwin6.5, too.
93807         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93808         $missing_dir.
93809         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93810         AM_SYS_POSIX_TERMIOS.
93811         Reported by mkc@mathdogs.com.
93812         Also change use of $am_cv_sys_posix_termios
93813         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93814         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93815         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93816         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93817         in /proc/mounts until it finds one with matching device number.  This
93818         is unnecessary when the FILE argument *is* a mount point.  No stat call
93819         is necessary in that case.  So, disable the statvfs-testing code on
93820         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93821         as RedHat bug# 84846.
93822         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93823         to 1MB, so as not to render systems with no stack size limit (e.g.,
93824         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93825         Include <unistd.h>.  On some systems,
93826         it is required for the definition of _SC_PAGESIZE.
93827
93828 2003-08-16  Jim Meyering  <jim@meyering.net>
93829
93830         Merge from coreutils.
93831         * lib/xstrtoimax.c: #else #if -> #elif.
93832         * lib/xstrtoumax.c: Likewise.
93833
93834 2003-08-16  Jim Meyering  <jim@meyering.net>
93835
93836         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93837         * m4/utimes.m4: Removed.
93838         * m4/utimes-null.m4: Renamed from utimes.m4.
93839
93840         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93841         to 1MB, so as not to render systems with no stack size limit (e.g.,
93842         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93843         Include <unistd.h>.  On some systems,
93844         it is required for the definition of _SC_PAGESIZE.
93845
93846 2003-08-16  Jim Meyering  <jim@meyering.net>
93847         and Paul Eggert  <eggert@cs.ucla.edu>
93848
93849         Merges from coreutils, etc.
93850
93851         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93852         using the latest version from cvs.  This avoids problems with #line
93853         directives using a vendor (Sun) compiler.
93854         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93855         Don't set GETGROUPS_LIB here; now it's
93856         done via getgroups.m4's wrapper function.
93857         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93858         rather than just in sh-util/configure.in, so that the
93859         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93860         same.
93861         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93862         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93863         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93864         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93865         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93866         Remove code that is now done by the newly-required macros.
93867         Append $(EXEEXT) to DF_PROG.
93868         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93869         Do not invoke or require the following here,
93870         since prereq.m4 or some gnulib .m4 now does this for us:
93871         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93872         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93873         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93874         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93875         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93876         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93877         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93878         AC_FUNC_OBSTACK.
93879         Do not replace the following functions, as this is now the job
93880         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93881         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93882         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93883         atexit getpass, strdup, getpagesize.
93884         Replace 'raise'.
93885         Do not check for the following functions, as this is now the job
93886         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93887         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93888         setregid.
93889         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93890         Check for sys/sysctl.h.
93891         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93892         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93893         of checking for ssize_t ourselves.
93894
93895         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93896         Require every macro that gnulib/modules/* suggests for us.
93897         (jm_PREREQ_ADDEXT): New macro.
93898         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93899         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93900
93901         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93902         (gl_PHYSMEM): Use it.
93903         Also check for `table' function.
93904         Check for new headers and functions.
93905         Add check for sys/sysmp.h.
93906         With suggestions from Kaveh Ghazi.
93907         Ignore headers that are present but cannot be compiled.  This
93908         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93909         C 5.4.
93910
93911 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93912
93913         Document merge from coreutils.
93914         * modules/userspec: Depend on posixver.
93915         * modules/strftime: Depend on tzset.
93916
93917 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93918
93919         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93920         rather than tab, after '#' in shell-script copyright notices.
93921         Suggested by Bruno Haible.
93922
93923 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93924
93925         * config/srclist-update: Use three spaces, rather than tab, after '#'
93926         in shell-script copyright notices.  Suggested by Bruno Haible.
93927         Remove unnecessary parenthesization in regular expression.
93928
93929 2003-08-15  Jim Meyering  <jim@meyering.net>
93930
93931         Merge from coreutils.
93932         * lib/xgethostname.c: Include <stdlib.h>.
93933         (xghostname): Don't exit for anything other than memory-related
93934         failure; just return NULL.
93935         * lib/userspec.c: Include "posixver.h".
93936         (parse_user_spec): Accept `.' as a separator only
93937         in pre-POSIX-200112 mode.
93938         * lib/strtoimax.c: Use #elif rather than #else #if.
93939         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93940         Remove function, now that we can rely on a working tzset function.
93941         [!_LIBC]: Ensure that the required autoconf test has been run.
93942         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93943         Use underlying_strftime for %r.
93944         * lib/sha.c: Merge in some clean-up and optimization changes from
93945         glibc.
93946         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93947         Ensure that it is a multiple of 64.
93948         Rearrange loop exit tests so as to avoid performing an
93949         additional fread after encountering an error or EOF.
93950         * lib/realloc.c: Update copyright date.
93951
93952 2003-08-15  Jim Meyering  <jim@meyering.net>
93953         and Paul Eggert  <eggert@twinsun.com>
93954
93955         Merge from coreutils.
93956         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93957         member but strut utmpx does not.  Needed for AIX 4.3.3.
93958         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93959
93960 2003-08-15  Jim Meyering  <jim@meyering.net>
93961         and Paul Eggert  <eggert@cs.ucla.edu>
93962
93963         Merges from coreutils, etc.
93964         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93965         Require gl_FUNC_TZSET_CLOBBER.
93966         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93967         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93968         members.
93969
93970 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93971
93972         Help the merge from coreutils.
93973         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93974         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93975         * m4/tzset.m4: Use it too.
93976
93977 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93978
93979         * modules/tzset: New file.
93980
93981 2003-08-14  Jim Meyering  <jim@meyering.net>
93982
93983         Merges from coreutils.
93984         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93985         variable names, rather than @FNMATCH_H@.
93986         * modules/alloca: Likewise for $(ALLOCA_H).
93987
93988         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93989         the three copies of the literal target, `fnmatch.h'.
93990         * modules/alloca (alloca.h): Likewise.
93991
93992 2003-08-14  Jim Meyering  <jim@meyering.net>
93993
93994         Merge from coreutils.
93995         * m4/tzset.m4: New file.
93996         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93997         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93998         otherwise, AIX 5.1 systems would end up using the latter.
93999         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
94000         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
94001         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
94002         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
94003
94004 2003-08-14  Jim Meyering  <jim@meyering.net>
94005
94006         Merge from coreutils.
94007         * lib/obstack.h: Whitespace changes.
94008         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
94009         and xcalloc return values.
94010         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
94011         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
94012         hang on OSF/1 5.1 for DIR on both local and remote file systems.
94013         Reported by (and fix confirmed by) Nelson H. F. Beebe.
94014         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94015         error from mntctl.
94016         Use mntctl's return value to drive the entry-processing loop, since
94017         we can't rely on the value of the vmt_length member in the last
94018         entry.  On some systems doing so could result in exhausting
94019         virtual memory.  Based in part on a patch from Mike Jetzer.
94020
94021 2003-08-14  Jim Meyering  <jim@meyering.net>
94022         and Paul Eggert  <eggert@twinsun.com>
94023
94024         Merges from coreutils, plus other fixes.
94025         * lib/physmem.c: Merge in portability changes from gcc/libiberty
94026         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
94027         for credits and details.  Thanks to Kaveh Ghazi for helping
94028         to keep these files in sync.
94029         (ARRAY_SIZE): Define it.
94030         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
94031         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
94032         (memcasecmp): Don't assume size_t fits in unsigned int.
94033         Remove casts and duplicate code.
94034         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
94035         (memcpy): Remove definition.
94036         Merge in some clean-up and optimization changes from glibc.
94037         [BLOCKSIZE]: Move definition to top of file.
94038         Ensure that it is a multiple of 64.
94039         Rearrange loop exit tests so as to avoid performing an
94040         additional fread after encountering an error or EOF.
94041         * lib/md5.h (md5_uintptr): Define.
94042         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
94043         return to the initial working directory.  Preserve errno
94044         for caller.
94045         * lib/idcache.c: Include "xalloc.h".
94046         (xmalloc, xrealloc): Remove decls.
94047         (getuser): Remove casts no longer required in C89.
94048         * lib/human.c: Include stdio.h, for sprintf.
94049         * lib/group-member.c: Include "xalloc.h".
94050         (xmalloc, xrealloc): Remove decls.
94051         (get_group_info): Remove casts no longer required in C89.
94052         * lib/getusershell.c (readname): Remove casts no longer required in
94053         C89.
94054         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
94055         * lib/getline.c: Whitespace fix, from coreutils.
94056
94057 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94058
94059         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
94060         Check for isascii.
94061
94062         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
94063         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
94064         Undo previous (whitespace-only) change.
94065
94066 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94067
94068         * lib/exclude.c: Include <ctype.h>
94069         (IN_CTYPE_DOMAIN): New macro.
94070         (is_space): New fn.
94071         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
94072         and empty lines.
94073
94074         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
94075         Undo previous (whitespace-only) change.
94076
94077 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94078
94079         * config/srclist-update: Change update back to the old behavior,
94080         leaving whitespace alone.  Use one 'sed' command rather than a
94081         pipeline.
94082         (fixlicense): Now a variable, not a function.
94083         (remove_trailing_blanks): Remove.
94084         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
94085         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94086         Undo previous (whitespace-only) change.
94087
94088 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94089
94090         Merge from coreutils.
94091         * modules/euidaccess: Add lib_SOURCES, include for new
94092         file euidaccess.h
94093
94094 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94095
94096         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
94097         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
94098         Normalize leading white space and remove trailing white space.
94099
94100         Merge from coreutils
94101         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
94102
94103         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
94104         0.12.1.  These files are now being upgraded automatically by
94105         ../config/srclist-update.
94106
94107 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94108
94109         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
94110         Normalize leading white space and remove trailing white space.
94111         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
94112         notice, as per ../config/srclist-update.
94113
94114         Merge from coreutils.
94115         * lib/euidaccess.h: New file.
94116         * lib/euidaccess.c: Include it.
94117         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
94118         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
94119         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
94120
94121 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94122
94123         * config/srclist-update: Add copyright notice.
94124         (remove_id_lines, remove_trailing_blanks): New constants.
94125         (fixfile): Use them to normalize spacing a bit in copied files.
94126         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94127         Normalize leading white space and remove trailing white space.
94128
94129         * config/texinfo.tex: Sync with texinfo.
94130
94131         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
94132         strtoul.c from libc, to merge coreutils whitespace changes.
94133
94134         * config/srclist.txt: Get the following m4 files from gettext:
94135         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
94136         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
94137         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
94138         wint_t.m4.
94139
94140 2003-08-12  Karl Berry  <karl@gnu.org>
94141
94142         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
94143         been made.
94144
94145 2003-08-11  Paul Eggert  <eggert@twinsun.com>
94146
94147         * modules/gnu-source, m4/gnu-source.m4:
94148         Remove; we're assuming Autoconf 2.54 or later now.
94149         Suggested by Bruno Haible.
94150         * MODULES.html.sh (func_all_modules): Remove gnu-source.
94151
94152 2003-08-11  Bruno Haible  <bruno@clisp.org>
94153
94154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
94155
94156 2003-08-11  Bruno Haible  <bruno@clisp.org>
94157
94158         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
94159         (vasnprintf): Use it instead of wcslen.
94160
94161 2003-08-11  Bruno Haible  <bruno@clisp.org>
94162
94163         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
94164         value to ensure that _Bool promotes to int. Use #define for _Bool when
94165         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
94166
94167 2003-08-10  Karl Berry  <karl@gnu.org>
94168
94169         * lib/regex.h: update from libc (whitespace fix).
94170
94171 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94172
94173         Merge some files from coreutils.  These changes were
94174         originally made by Jim Meyering.
94175         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
94176         many older Unixes require this.
94177         * lib/alloca.c (alloca): Remove cast to argument of free;
94178         no longer needed in C89.
94179         * lib/alloca_.h, regex.h: Fix white space to match
94180         what GNU indent does.
94181
94182 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94183
94184         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
94185         apparently Emacs's Unicode mode got confused before my 2003-08-05
94186         checkin.
94187
94188 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94189
94190         * m4/extensions.m4: New file.
94191         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
94192         Require gl_USE_SYSTEM_EXTENSIONS.
94193         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
94194         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
94195
94196 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94197
94198         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
94199         * modules/extensions, modules/gnu-source: New files.
94200         * modules/timespec, modules/unlocked-io: Depend on extensions.
94201
94202 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94203
94204         * modules/restrict: New file.
94205         * MODULES.html.sh (func_all_modules): Add restrict.
94206         * modules/regex: Depend on restrict.
94207
94208 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94209
94210         * m4/restrict.m4: New file.
94211         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
94212
94213 2003-08-07  Bruno Haible  <bruno@clisp.org>
94214
94215         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
94216         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
94217
94218 2003-08-07  Bruno Haible  <bruno@clisp.org>
94219
94220         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
94221         makes the module 'getndelim2' compatible with the module 'getline'.
94222
94223 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94224
94225         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
94226         byte with "\201" to avoid glitches when editing that source file
94227         with multi-gnome-terminal.
94228
94229 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94230
94231         * lib/bumpalloc.h: Remove.
94232
94233 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94234
94235         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
94236         * modules/bumpalloc: Remove.
94237
94238 2003-08-04  Paul Eggert  <eggert@twinsun.com>
94239
94240         * lib/getloadavg.c: Change copyright notice and spacing to conform to
94241         GNU coding style.
94242
94243         Merge from coreutils.
94244         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
94245         1. From glibc.
94246         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
94247         from Karl Berry, implemented by Jim Meyering.
94248         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
94249         from Dmitry V. Levin.
94250         Remove anachronistic cast of xrealloc.
94251         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
94252         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
94253         type. Otherwise, it wouldn't compile with at least /bin/cc on
94254         ymp-cray-unicos9.0.2.X.
94255         Combine two mostly-identical uses of alloca into one.
94256         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
94257
94258 2003-08-04  Dave Love  <d.love@dl.ac.uk>
94259
94260         [From Emacs.]
94261
94262         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
94263         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
94264         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
94265         obsolete NLIST_NAME_UNION.
94266         [__GNU__]: Undef BSD and FSCALE.
94267         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
94268
94269 2003-08-03  Paul Eggert  <eggert@twinsun.com>
94270
94271         * lib/stdbool_.h (_Bool): Make it signed char, instead of
94272         an enum type, so that it's guaranteed to promote to int.  See:
94273         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
94274
94275 2003-08-03  Karl Berry  <karl@gnu.org>
94276
94277         * config/depcomp: update from automake.
94278
94279 2003-07-31  Paul Eggert  <eggert@twinsun.com>
94280
94281         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
94282         (strerror): Don't assume that a printable int fits in 14 bytes.
94283
94284 2003-07-31  Bruno Haible  <bruno@clisp.org>
94285
94286         * modules/getpass-gnu: New file.
94287         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
94288
94289 2003-07-31  Bruno Haible  <bruno@clisp.org>
94290
94291         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
94292
94293 2003-07-24  Karl Berry  <karl@gnu.org>
94294
94295         * config/missing: update from automake.
94296
94297 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
94298             Bruno Haible  <bruno@clisp.org>
94299
94300         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
94301         * lib/getline.c (getline, getdelim): Likewise.
94302         Remove _GNU_SOURCE define; now it's defined in config.h through
94303         m4/getline.m4.
94304
94305 2003-07-23  Karl Berry  <karl@gnu.org>
94306
94307         * config/config.sub: update from prep.
94308
94309 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94310
94311         * modules/xalloc (Depends-on): Add exitfail.
94312         * modules/xmemcoll: Likewise.
94313
94314 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94315
94316         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
94317         over-parenthesization in macros.
94318
94319         Sync with coreutils.
94320
94321         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
94322         required by C99.
94323
94324         Use `exit_failure' for xalloc and xmemcoll instead of their own
94325         private exit-failure variables.
94326         * lib/xalloc.h (xalloc_exit_failure): Remove.
94327         * lib/xmalloc.c: Likewise.  Include exitfail.h.
94328         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
94329         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
94330         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
94331         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
94332
94333 2003-07-20  Jim Meyering  <jim@meyering.net>
94334
94335         * modules/closeout (Depends-on): Add exitfail.
94336         Suggestion from Bruno Haible.
94337
94338 2003-07-19  Karl Berry  <karl@gnu.org>
94339
94340         * config/config.sub: update from prep.
94341
94342 2003-07-18  Paul Eggert  <eggert@twinsun.com>
94343
94344         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
94345         Remove.
94346         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
94347         to test that it can stand by itself.  Include "exitfail.h".
94348         Clients should set exit_failure instead.
94349         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
94350
94351 2003-07-18  Bruno Haible  <bruno@clisp.org>
94352
94353         * modules/getndelim2: New file.
94354         * modules/getline: Share files with module getndelim2.
94355         * modules/getnline: Depend on getndelim2 instead of sharing files with
94356         it. Add getnline.c to lib_SOURCES.
94357         * MODULES.html.sh (func_all_modules): Add getndelim2.
94358
94359 2003-07-18  Bruno Haible  <bruno@clisp.org>
94360
94361         * m4/getndelim2.m4: New file.
94362         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
94363         invoke gl_PREREQ_GETNDELIM2.
94364         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
94365         gl_PREREQ_GETNDELIM2.
94366         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
94367         gl_GETNDELIM2.
94368
94369 2003-07-18  Bruno Haible  <bruno@clisp.org>
94370
94371         * lib/getndelim2.h: New file.
94372         * lib/getndelim2.c: Make into a module of its own. Include config.h,
94373         getndelim2.h.
94374         (getndelim2): Make non-static. Change return type to ssize_t.
94375         * lib/getline.h: Change argument names.
94376         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
94377         * lib/getnline.c: Include getndelim2.h.
94378
94379 2003-07-18  Andreas Schwab  <schwab@suse.de>
94380
94381         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
94382
94383 2003-07-17  Karl Berry  <karl@gnu.org>
94384
94385         * config/config.sub: update from prep.
94386
94387 2003-07-17  Bruno Haible  <bruno@clisp.org>
94388
94389         * modules/getnline: New file.
94390         * modules/getline: Add lib/getndelim2.c to source file list.
94391         * MODULES.html.sh (func_all_modules): Add getnline.
94392
94393 2003-07-17  Bruno Haible  <bruno@clisp.org>
94394
94395         * m4/getnline.m4: New file.
94396
94397 2003-07-17  Bruno Haible  <bruno@clisp.org>
94398
94399         * m4/Makefile.am.in: Remove file.
94400         * m4/Makefile.am: Remove file.
94401         * m4/Makefile.in: Remove file.
94402
94403 2003-07-17  Bruno Haible  <bruno@clisp.org>
94404
94405         * lib/getnline.h: New file.
94406         * lib/getnline.c: New file.
94407         * lib/getndelim2.c: New file, extracted from getline.c.
94408         (getndelim2): Renamed from getdelim2, with added nmax argument.
94409         * lib/getline.c: Include getndelim2.c.
94410         (getdelim2): Moved out to getndelim2.c.
94411         (getline, getdelim): Update.
94412
94413 2003-07-17  Bruno Haible  <bruno@clisp.org>
94414
94415         * lib/Makefile.am: Remove file.
94416         * lib/Makefile.in: Remove file.
94417
94418 2003-07-17  Bruno Haible  <bruno@clisp.org>
94419
94420         * configure.in: Remove file.
94421         * Makefile.in: Remove file.
94422
94423 2003-07-17  Bruno Haible  <bruno@clisp.org>
94424
94425         * MODULES.html.sh: Put the </BODY> right before </HTML>.
94426
94427 2003-07-16  Karl Berry  <karl@gnu.org>
94428
94429         * config/srclist-update: was running fixlicense twice, which caused
94430                 texinfo.tex to be nullified for some reason.  Simplify,
94431                 $gplsrc is no longer needed as far as I can see?
94432
94433 2003-07-16  Jim Meyering  <jim@meyering.net>
94434
94435         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
94436
94437 2003-07-15  Paul Eggert  <eggert@twinsun.com>
94438
94439         * config/srclist.txt: Get the following files from gettext-runtime/intl
94440         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
94441         ref-del.sin.  From Bruno Haible.
94442         * config/srclist-update (fixfile): Change grep pattern again, since the
94443         previous fix didn't work (there was another trailing $).  Use
94444         '[$]' to escape the $s.
94445
94446 2003-07-15  Karl Berry  <karl@gnu.org>
94447
94448         * lib/vasnprintf.c: update from gettext.
94449
94450 2003-07-15  Karl Berry  <karl@gnu.org>
94451
94452         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
94453         gets expanded when surrounded by '$'.
94454
94455 2003-07-15  Jim Meyering  <jim@meyering.net>
94456
94457         * modules/save-cwd: Don't depend on error.  From Derek Price.
94458
94459 2003-07-15  Jim Meyering  <jim@meyering.net>
94460
94461         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
94462
94463 2003-07-14  Simon Josefsson  <jas@extundo.com>
94464
94465         * modules/mempcpy: New file.
94466         * MODULES.html.sh (func_all_modules): Add mempcpy.
94467
94468 2003-07-14  Simon Josefsson  <jas@extundo.com>
94469
94470         * m4/mempcpy.m4: New file.
94471
94472 2003-07-14  Simon Josefsson  <jas@extundo.com>
94473
94474         * lib/mempcpy.h: New file.
94475         * lib/mempcpy.c: New file.
94476
94477 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94478
94479         * modules/getdate, modules/posixtm: Depend on mktime.
94480
94481 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94482
94483         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
94484         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
94485         unicodeio.c, unicodeio.h, unlocked-io.h:
94486         Switch from LGPL to GPL.
94487
94488 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94489
94490         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
94491         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
94492         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
94493         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
94494         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
94495         updated automatically by ../config/srclist-update.  This changes
94496         their license from LPGL to GPL.
94497
94498 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94499
94500         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
94501         assumed to refer to the root of the most recent stable gettext version.
94502         * config/srclistvars.sh: Add defaults for eggert.
94503         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
94504         Match "This program" as well as "The program".  This is needed
94505         for gettext.
94506
94507 2003-07-14  Jim Meyering  <jim@meyering.net>
94508
94509         Don't emit diagnostics.  Let callers do that.
94510         * lib/save-cwd.c: Don't include "error.h".
94511         (save_cwd): Don't call error.  Ensure that errno is valid
94512         when returning nonzero.
94513
94514         * lib/save-cwd.h (restore_cwd): Update prototype.
94515         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94516         Simplify.  Don't call error upon failure.  Let callers do that.
94517         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94518         when auditing is enabled.  But don't bother updating the #if.
94519
94520 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94521
94522         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94523         it breaks C++ compilation.
94524         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94525
94526 2003-07-10  Simon Josefsson  <jas@extundo.com>
94527
94528         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94529
94530 2003-07-10  Jim Meyering  <jim@meyering.net>
94531
94532         * m4/clock_time.m4: Remove trailing blank.
94533         * m4/intmax_t.m4: Likewise.
94534
94535 2003-07-10  Jim Meyering  <jim@meyering.net>
94536
94537         * lib/vasnprintf.c: Remove trailing blanks.
94538         Make cpp indentation consistent.
94539
94540 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94541
94542         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94543         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94544         Switch from LGPL to GPL.
94545
94546 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94547
94548         * config/srclist.txt: Sort sublists.  Add
94549         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94550         that differ from gnulib for one reason or another; we'd like this list
94551         to be smaller but for now let's document what we have.
94552
94553 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94554
94555         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94556         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94557         and sweeter "eval x=$x".
94558         * config/srclist.txt: Get lib/argp* from glibc.
94559
94560 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94561
94562         * lib/mktime.c: Fix some boundary cases and remove need for floating
94563         point.
94564
94565         Issue a compile-time diagnostic if time_t is floating point, or if
94566         two's complement arithmetic is not in effect, or if arithmetic
94567         right shift does not propagate the sign.  These assumptions were
94568         all in the original code but they weren't checked.
94569
94570         (TIME_T_MIDPOINT, verify): New macros.
94571         (__isleap): Remove; it has integer overflow problems.
94572         (leapyear): New function, without those problems.
94573         (ydhms_tm_diff): Remove; splitting into two parts.
94574         (ydhms_diff): New function, containing the arithmetic part of
94575         the old ydhms_tm_diff function.  Issue a compile-time
94576         diagnostic if we are not using C99 integer division.
94577         Avoid casts when possible.
94578         (guess_time_tm): New function, containing the checking part of
94579         the old ydhms_tm_diff function.  Return the new value, rather than
94580         the difference between it and the old.  Accept a new argument T
94581         so that *T specifies the old value.  Check for overflow in the result.
94582
94583         (__mktime_internal): Use a time_t offset, not a long int offset.
94584         This undoes the 2003-06-04 change, which is no longer needed now
94585         that we have better overflow checking.
94586         (localtime_offset): Likewise.
94587
94588         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94589         and long are 64-bit but int is only 32-bit.
94590         (ydhms_diff): Use long int to store year1 and yday1.
94591         Issue a compile-time diagnostic if long int is not wide enough.
94592
94593         (__mktime_internal): Use long int to store adjusted year and yday.
94594         Use plain C rather than preprocessor commands, if that doesn't
94595         affect efficiency.
94596         Check for overflow (and try to repair) after each probe
94597         rather than checking only at the very end.  This avoids some bugs
94598         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94599         does not equal GMT offset at maximum time).
94600         Use integer to check for overflow rather than floating point; this
94601         is more portable to non-IEEE hosts, and is a tad faster.
94602         When we detect that we are oscillating between two values,
94603         don't check whether tm_isdst has the requested value, since
94604         we already know the answer.  When tm_isdst has the wrong value,
94605         use a different heuristic to find the right one, based on the
94606         extreme values actually observed in practice in tz2003a,
94607         rather than the (overly optimistic) "previous 3 calendar quarters".
94608
94609         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94610         "T const" to accommodate glibc style.
94611         (check_result): Use less-confusing report format.  "long" -> "long int.
94612         (main): Likewise.
94613         Don't loop if the iteration overflows time_t.
94614         Allow a negative step in the iteration.
94615
94616 2003-07-06  Karl Berry  <karl@gnu.org>
94617
94618         * config/depcomp: update from automake.
94619         * config/config.sub: update from prep.
94620
94621 2003-07-03  Karl Berry  <karl@gnu.org>
94622
94623         * config/config.guess: update from prep.
94624
94625 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94626
94627         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94628         xreadlink.c now includes it unconditionally.
94629
94630 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94631
94632         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94633         having it depend on HAVE_SYS_TYPES_H.
94634
94635 2003-07-01  Bruno Haible  <bruno@clisp.org>
94636
94637         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94638         <sys/types.h> should be sufficient.
94639         Reported by Paul Eggert.
94640
94641 2003-06-26  Karl Berry  <karl@gnu.org>
94642
94643         * config/depcomp: update from automake.
94644
94645 2003-06-26  Bruno Haible  <bruno@clisp.org>
94646
94647         * modules/human: Depend on module stdbool.
94648
94649 2003-06-25  Bruno Haible  <bruno@clisp.org>
94650
94651         * modules/readlink: New file.
94652         * modules/xreadlink: Depend on it.
94653         * MODULES.html.sh (func_all_modules): Add readlink.
94654
94655 2003-06-25  Bruno Haible  <bruno@clisp.org>
94656
94657         * m4/readlink.m4: New file.
94658
94659 2003-06-25  Bruno Haible  <bruno@clisp.org>
94660
94661         * lib/readlink.c: New file.
94662
94663 2003-06-22  Karl Berry  <karl@gnu.org>
94664
94665         * config/srclist.txt: update mkinstalldirs from automake.
94666         * config/mkinstalldirs: update.
94667
94668 2003-06-22  Bruno Haible  <bruno@clisp.org>
94669
94670         Portability to mingw32.
94671         * m4/ssize_t.m4: New file, from GNU gettext.
94672         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94673         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94674
94675 2003-06-22  Bruno Haible  <bruno@clisp.org>
94676
94677         * modules/safe-read: Add m4/ssize_t.m4.
94678         * modules/xreadlink: Add m4/ssize_t.m4.
94679
94680 2003-06-20  Bruno Haible  <bruno@clisp.org>
94681
94682         Assume C89, so PARAMS isn't needed.
94683         * lib/unicodeio.h (PARAMS): Remove.
94684         * lib/unicodeio.c: Don't use PARAMS.
94685
94686 2003-06-18  Karl Berry  <karl@gnu.org>
94687
94688         * config/config.{guess,sub}: update from prep.
94689
94690 2003-06-18  Jim Meyering  <jim@meyering.net>
94691
94692         Merge changes from coreutils.
94693         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94694         Remove explicit declarations of xmalloc and realloc.
94695         Include xalloc.h.
94696         (read_utmp): Remove anachronistic cast of xmalloc.
94697
94698 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94699
94700         Assume C89, so PARAMS isn't needed.
94701         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94702         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94703         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94704         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94705         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94706         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94707         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94708         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94709         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94710         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94711         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94712         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94713         no longer needed. Anyway, config.h should always be included before any
94714         other file.
94715
94716 2003-06-11  Simon Josefsson  <jas@extundo.com>
94717
94718         * modules/sysexits: New file.
94719         * MODULES.html.sh (func_all_modules): Add sysexits.
94720
94721 2003-06-11  Simon Josefsson  <jas@extundo.com>
94722
94723         * lib/sysexit_.h: New file.
94724
94725 2003-06-11  Derek Price  <derek@ximbiot.com>
94726
94727         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94728         necessary.
94729
94730 2003-06-11  Bruno Haible  <bruno@clisp.org>
94731
94732         * m4/sysexits.m4: New file.
94733
94734 2003-06-10  Simon Josefsson  <jas@extundo.com>
94735
94736         * lib/argp.h: New file, from glibc.
94737         * lib/argp-ba.c: New file, from glibc.
94738         * lib/argp-eexst.c: New file, from glibc.
94739         * lib/argp-fmtstream.c: New file, from glibc.
94740         * lib/argp-fmtstream.h: New file, from glibc.
94741         * lib/argp-fs-xinl.c: New file, from glibc.
94742         * lib/argp-help.c: New file, from glibc.
94743         * lib/argp-namefrob.h: New file, from glibc.
94744         * lib/argp-parse.c: New file, from glibc.
94745         * lib/argp-pv.c: New file, from glibc.
94746         * lib/argp-pvh.c: New file, from glibc.
94747         * lib/argp-xinl.c: New file, from glibc.
94748
94749 2003-06-10  Simon Josefsson  <jas@extundo.com>
94750
94751         * modules/strchrnul: New file.
94752
94753 2003-06-10  Simon Josefsson  <jas@extundo.com>
94754
94755         * modules/argp: New file.
94756
94757 2003-06-10  Simon Josefsson  <jas@extundo.com>
94758
94759         * m4/strchrnul.m4: New file.
94760
94761 2003-06-10  Simon Josefsson  <jas@extundo.com>
94762
94763         * lib/strchrnul.h: New file.
94764         * lib/strchrnul.c: New file.
94765
94766 2003-06-10  Bruno Haible  <bruno@clisp.org>
94767
94768         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94769
94770 2003-06-07  Karl Berry  <karl@gnu.org>
94771
94772         * config/config.{guess,sub}: update from prep.
94773
94774 2003-06-07  Jim Meyering  <jim@meyering.net>
94775
94776         * modules/strtod: Use $(...) notation, not @...@ for
94777         AC_REPLACE'd variables.
94778         * modules/localcharset: Likewise.
94779
94780 2003-06-07  Jim Meyering  <jim@meyering.net>
94781
94782         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94783         in place of my name in the copyright comment.
94784         Remove definition and uses of __P.
94785
94786         From coreutils.
94787         * lib/stat.c: Don't declare xmalloc explicitly.
94788         Instead, include "xalloc.h".
94789         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94790         xrealloc, and xcalloc return values.
94791         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94792         Improve comment.
94793         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94794
94795 2003-06-07  Bruno Haible  <bruno@clisp.org>
94796
94797         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94798         avoid AC_CONFIG_LINKS.
94799         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94800         fnmatch.h, to avoid AC_CONFIG_LINKS.
94801         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94802
94803 2003-06-07  Bruno Haible  <bruno@clisp.org>
94804
94805         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94806         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94807         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94808         directory.
94809         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94810         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94811         directory.
94812
94813 2003-06-06  Jim Meyering  <jim@meyering.net>
94814
94815         Merge from coreutils.
94816         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94817         Consolidate declarations and initializations of *_base* locals.
94818
94819         Merge from coreutils.
94820         This avoids a core dump on systems without GNU putenv,
94821         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94822         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94823         (unsetenv): New static function, from GNU libc.
94824         (rpl_putenv): Use it.
94825
94826         * lib/modechange.c: Remove trailing blanks.
94827
94828         Merge from coreutils.
94829         * lib/fsusage.c: Remove declaration of statfs.
94830         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94831
94832         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94833
94834 2003-06-06  Jim Meyering  <jim@meyering.net>
94835
94836         * lib/stdbool_.h: Renamed from stdbool.h.in.
94837
94838 2003-06-06  Jim Meyering  <jim@meyering.net>
94839             Bruno Haible  <bruno@clisp.org>
94840
94841         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94842         Adjust Makefile.am snippet not to redirect directly to target.
94843         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94844
94845 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94846
94847         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94848         mismatch, look in future quarters as well as past.  This fixes a
94849         bug when processing fall-backwards gaps immediately after a long
94850         period of daylight-saving time.
94851
94852         * lib/mktime.c: Assume freestanding C89 or better.
94853         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94854         (__P): Remove; not used.
94855         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94856         (mktime, not_equal_tm, print_tm, check_result,
94857         main): Use prototypes.  Use const * where appropriate.
94858         (main): Fix typo in testing code that uncovered by above changes.
94859         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94860
94861 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94862
94863         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94864         locale.h, localeconv.  This merges changes from coreutils.
94865
94866         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94867         It can be removed after the next Autoconf is released.
94868         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94869         needed.
94870
94871 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94872
94873         * lib/mktime.c: Fix Debian bug 177940
94874         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94875         (localtime_offset): Now long int, not time_t, because we want it
94876         to be guaranteed to be signed.  All uses changed.
94877         (__mktime_internal): If overflow would occur when adding offset,
94878         don't add it.
94879
94880         Merge 'human' changes from coreutils.  Rewrite to support
94881         locale-specific notations like thousands separators.
94882         * lib/human.c: Simplify authorship notice.
94883         Include human.h immediately after config.h.
94884         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94885         <limits.h>: Do not include, since human.h does.
94886         (SIZE_MAX, UINTMAX_MAX): New macros.
94887         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94888         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94889         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94890         (power_letter): Renamed from suffixes.
94891         (generate_suffix_backwards): Remove.
94892         (adjust_value): Now takes int style (because of human.h changes)
94893         and long double value (for greater precision on some platforms).
94894         (group_number): New function.
94895         (human_readable): Use it.  Use integer options, not enum.
94896         Put the options before the sizes in the arg list.
94897         Support all the new options.
94898         The old human_readable function has been removed;
94899         use inttostr.h instead.
94900         (human_readable, default_block_size, humblock):
94901         Use uintmax_t, not int, for block sizes.
94902         (human_readable_inexact, block_size_types): Remove.
94903         (block_size_opts): New constant.
94904         (human_options): Renamed from human_block_size, with new signature
94905         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94906         * lib/human.h: Add copyright and authorship notice.
94907         Include <limits.h> and <stdbool.h> unconditionally.
94908         (PARAMS): Remove.  All uses removed.
94909         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94910         (enum human_inexact_style): Remove tag; now a nameless enum.
94911         (human_floor, human_ceiling, human_round_to_even): Now have
94912         values 2, 0, 1 rather than -1, 1, 0.
94913         (human_group_digits, human_suppress_point_zero, human_autoscale,
94914         human_base_1024, human_SI, human_B): New constants.
94915         (human_readable_inexact, human_block_size): Remove.
94916         (human_readable): Size args are now uintmax_t, not int.
94917         (human_options): New decl.
94918
94919         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94920         unnecessary now that we assume C89 or better.  This change
94921         imported from coreutils.
94922
94923         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94924         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94925         in the 2003-05-30 sync from glibc.
94926
94927         .h files should stand alone, but we shouldn't include <sys/types.h>
94928         if we can get away with just <stddef.h>.
94929
94930         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94931         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94932         rather than <sys/types.h>, as we merely need size_t.
94933         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94934         to get size_t.
94935         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94936         Include <stdio.h>, to get FILE.
94937         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94938         memcasecmp.h has included <stddef.h> and all we need is size_t.
94939         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94940         our interface, instead of including <sys/types.h>
94941
94942 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94943
94944         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94945         now, as glibc mktime is buggy on non-glibc systems.
94946
94947 2003-06-03  Karl Berry  <karl@gnu.org>
94948
94949         * config/config.sub: update from prep.
94950
94951 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94952
94953         [from coreutils]
94954         Fix some minor time-related bugs with POSIX time arguments.
94955         Some valid time stamps were being rejected (notably -1, and
94956         time stamps before 1900 on 64-bit hosts).  And some invalid
94957         time stamps were being accepted, e.g. September 31.
94958
94959         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94960         that we can return (time_t) -1 successfully.
94961         * lib/posixtm.c: Likewise.
94962         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94963         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94964         (t): Remove static var.
94965         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94966         of static var.  All uses changed.
94967         (year): Do not reject years before 1900; they can occur with
94968         64-bit time_t.
94969         (posix_time_parse): Do not check for out-of-range components;
94970         that is now the caller's responsibility, since our checks were
94971         only approximations.
94972         (posixtime): Use mktime to check for out-of-range components,
94973         since it knows them exactly.
94974         If mktime returns (time_t) -1, check whether an error actually occurred
94975         by invoking localtime on -1.
94976         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94977         posixtime failures better.
94978         Improve the test data (in comments only).
94979
94980 2003-06-02  Karl Berry  <karl@gnu.org>
94981
94982         * config/mkinstalldirs (version): new variable.
94983         (--version): new option.
94984         (usage): improve message.
94985
94986 2003-05-30  Karl Berry  <karl@gnu.org>
94987
94988         * lib/mktime.c: update from libc.
94989
94990 2003-05-30  Bruno Haible  <bruno@clisp.org>
94991
94992         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94993         * config/config.rpath: Upgrade to gettext-0.12.1.
94994
94995 2003-05-30  Bruno Haible  <bruno@clisp.org>
94996
94997         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94998         * m4/nls.m4: New file, from gettext-0.12.1.
94999         * m4/po.m4: New file, from gettext-0.12.1.
95000         * m4/progtest.m4: Upgrade to gettext-0.12.1.
95001
95002 2003-05-30  Bruno Haible  <bruno@clisp.org>
95003
95004         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
95005         * lib/localcharset.h: Likewise.
95006         * lib/localcharset.c: Likewise.
95007
95008 2003-05-29  Karl Berry  <karl@gnu.org>
95009
95010         * config/config.rpath: update from gettext.
95011
95012 2003-05-28  Paul Eggert  <eggert@twinsun.com>
95013
95014         Assume the headers required for C89 freestanding compilers.
95015         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
95016         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
95017         * m4/human.m4 (gl_HUMAN): Likewise.
95018         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
95019         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
95020         * m4/userspec.m4 (gl_USERSPEC): Likewise.
95021         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
95022         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
95023         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
95024
95025 2003-05-28  Paul Eggert  <eggert@twinsun.com>
95026
95027         Assume the headers required for C89 freestanding compilers.
95028         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
95029         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
95030         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
95031         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
95032         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
95033         define, since <limits.h> is guaranteed to do that.
95034         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
95035         * lib/exclude.c: Include <stdbool.h> unconditionally.
95036         * lib/tempname.c: Include <stddef.h> unconditionally.
95037         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
95038         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
95039         <stddef.h> does that.
95040         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
95041         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
95042         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
95043         needed.
95044         * lib/xstrtol.c: Likewise.
95045         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
95046         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
95047
95048         * lib/addext.c (addext): Use assignment rather than cast, to avoid
95049         warnings on some platforms.
95050
95051         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
95052         arbitrarily.
95053
95054 2003-05-26  Jim Meyering  <jim@meyering.net>
95055
95056         Merge in a change from coreutils:
95057         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
95058         that is guaranteed to be `no'.  Use `no_such_member' to indicate
95059         that condition, rather than `-1' which is slightly misleading.
95060         Change the name of the cache variable to have the gl_ prefix.
95061         Prompted by a patch from Richard Dawe for DJGPP.
95062
95063 2003-05-24  Karl Berry  <karl@gnu.org>
95064
95065         * config/config.guess: update from prep.
95066
95067 2003-05-22  Karl Berry  <karl@gnu.org>
95068
95069         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
95070
95071 2003-05-20  Karl Berry  <karl@gnu.org>
95072
95073         * config/config.guess: update from prep.
95074
95075 2003-05-18  Karl Berry  <karl@gnu.org>
95076
95077         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
95078         might actually be set by the user.
95079
95080         * config/depcomp, install-sh, mdate-sh: update from automake.
95081
95082 2003-05-17  Bruno Haible  <bruno@clisp.org>
95083
95084         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
95085         invalid expansion for AC_EGREP_CPP.
95086         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
95087         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
95088         Suggested by Akim Demaille <akim@epita.fr> in
95089         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
95090
95091 2003-05-12  Jim Meyering  <jim@meyering.net>
95092
95093         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
95094         the space-padded-by-default conversion specifiers, %e, %k, %l.
95095
95096 2003-05-12  Bruno Haible  <bruno@clisp.org>
95097
95098         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
95099         the string is longer than 4 KB.
95100
95101 2003-05-11  Karl Berry  <karl@gnu.org>
95102
95103         * config/config.{guess,sub}: update from prep.
95104
95105 2003-05-09  Bruno Haible  <bruno@clisp.org>
95106
95107         * modules/error: Add m4/strerror_r.m4 to file list.
95108
95109 2003-05-03  Bruno Haible  <bruno@clisp.org>
95110
95111         Upgrade to Unicode-4.0.
95112         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
95113         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
95114         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
95115         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
95116         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
95117         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
95118         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
95119         Change width of U+E0100..U+E01EF from 1 to 0.
95120
95121 2003-04-25  Jim Meyering  <jim@meyering.net>
95122
95123         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
95124         of type size_t, not int.
95125
95126 2003-04-25  Bruno Haible  <bruno@clisp.org>
95127
95128         * lib/copy-file.c: Include <stddef.h>, for size_t.
95129
95130 2003-04-21  Paul Eggert  <eggert@twinsun.com>
95131
95132         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
95133         code which expansion is under static control.  Patch imported from
95134         Akim Demaille's patch to Bison; see
95135         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
95136
95137 2003-04-14  Bruno Haible  <bruno@clisp.org>
95138
95139         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
95140
95141 2003-04-11  Jim Meyering  <jim@meyering.net>
95142
95143         Merge changes from Coreutils.
95144
95145         2003-03-22  Jim Meyering  <jim@meyering.net>
95146
95147         * lib/strftime.c (widen): Cast alloca return value to proper type.
95148
95149         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
95150
95151         From GNU libc.
95152         * lib/strftime.c (my_strftime): Handle very large width
95153         specifications for numeric values correctly.  Improve checks for
95154         overflow.
95155
95156         2003-01-19  Jim Meyering  <jim@meyering.net>
95157
95158         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
95159         definitions.
95160         (nl_get_alt_digit) [! defined my_strftime]: Define.
95161         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
95162         _nl_get_alt_digit and _nl_get_walt_digit.
95163
95164         * lib/strftime.c (my_strftime): Merge in locale-related changes from
95165         libc. These changes have no effect outside of _LIBC.
95166
95167 2003-04-10  Bruno Haible  <bruno@clisp.org>
95168
95169         * modules/findprog: New file.
95170         * MODULES.html.sh (func_all_modules): Add it.
95171
95172 2003-04-10  Bruno Haible  <bruno@clisp.org>
95173
95174         * m4/findprog.m4: New file.
95175         * m4/eaccess.m4: New file.
95176
95177 2003-04-10  Bruno Haible  <bruno@clisp.org>
95178
95179         * lib/findprog.h: New file, from GNU gettext.
95180         * lib/findprog.c: New file, from GNU gettext.
95181
95182 2003-04-05  Jim Meyering  <jim@meyering.net>
95183
95184         Merge changes from Coreutils.
95185
95186         * lib/exclude.h (PARAMS): Remove definition and uses.
95187         * lib/exclude.c: Remove uses of `PARAMS'.
95188
95189         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
95190         Add test-cases for DOS filenames. Declare program_name.
95191         (main): Set up program_name.  Patch by Rich Dawe.
95192
95193         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
95194         error from mntctl.
95195         Use mntctl's return value to drive the entry-processing loop, since
95196         we can't rely on the value of the vmt_length member in the last
95197         entry.  On some systems doing so could result in exhausting
95198         virtual memory.  Based in part on a patch from Mike Jetzer.
95199
95200 2003-04-04  Bruno Haible  <bruno@clisp.org>
95201
95202         * modules/linebreak: New file.
95203         * MODULES.html.sh (func_all_modules): Add it.
95204
95205 2003-04-04  Bruno Haible  <bruno@clisp.org>
95206
95207         * m4/linebreak.m4: New file.
95208
95209 2003-04-04  Bruno Haible  <bruno@clisp.org>
95210
95211         * lib/linebreak.h: New file, from GNU gettext.
95212         * lib/linebreak.c: New file, from GNU gettext with slight
95213         modifications.
95214         * lib/lbrkprop.h: New file, from GNU gettext.
95215
95216 2003-04-03  Bruno Haible  <bruno@clisp.org>
95217
95218         * modules/utf8-ucs4: New file.
95219         * modules/utf16-ucs4: New file.
95220         * modules/ucs4-utf8: New file.
95221         * modules/ucs4-utf16: New file.
95222         * MODULES.html.sh (func_all_modules): Add them.
95223
95224 2003-04-03  Bruno Haible  <bruno@clisp.org>
95225
95226         * m4/utf-ucs4.m4: New file.
95227         * m4/ucs4-utf.m4: New file.
95228
95229 2003-04-03  Bruno Haible  <bruno@clisp.org>
95230
95231         * lib/utf8-ucs4.h: New file, from GNU gettext.
95232         * lib/utf16-ucs4.h: New file, from GNU gettext.
95233         * lib/ucs4-utf8.h: New file, from GNU gettext.
95234         * lib/ucs4-utf16.h: New file, from GNU gettext.
95235
95236 2003-04-02  Bruno Haible  <bruno@clisp.org>
95237
95238         * modules/binary-io: New file.
95239         * MODULES.html.sh (func_all_modules): Add it.
95240
95241 2003-04-02  Bruno Haible  <bruno@clisp.org>
95242
95243         * lib/binary-io.h: New file, from GNU gettext.
95244
95245 2003-04-01  Bruno Haible  <bruno@clisp.org>
95246
95247         * modules/pathname: New file.
95248         * MODULES.html.sh (func_all_modules): Add it.
95249
95250 2003-04-01  Bruno Haible  <bruno@clisp.org>
95251
95252         * lib/pathname.h: New file, from GNU gettext.
95253         * lib/concatpath.c: New file, from GNU gettext.
95254
95255 2003-03-30  Bruno Haible  <bruno@clisp.org>
95256
95257         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
95258
95259 2003-03-30  Bruno Haible  <bruno@clisp.org>
95260
95261         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
95262         function chown() doesn't exist.
95263
95264 2003-03-28  Bruno Haible  <bruno@clisp.org>
95265
95266         * modules/copy-file: New file.
95267         * MODULES.html.sh (func_all_modules): Add it.
95268
95269 2003-03-28  Bruno Haible  <bruno@clisp.org>
95270
95271         * m4/copy-file.m4: New file.
95272
95273 2003-03-28  Bruno Haible  <bruno@clisp.org>
95274
95275         * lib/copy-file.h: New file, from GNU gettext.
95276         * lib/copy-file.c: New file, from GNU gettext.
95277
95278 2003-03-18  Jim Meyering  <jim@meyering.net>
95279
95280         * lib/quote.c (quote_n): Fix typo in comment.
95281
95282 2003-03-18  Bruno Haible  <bruno@clisp.org>
95283
95284         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
95285         checking.
95286         * m4/onceonly_2_57.m4: Likewise.
95287
95288 2003-03-17  Bruno Haible  <bruno@clisp.org>
95289
95290         * m4/onceonly.m4: Require autoconf 2.54 or newer.
95291         (m4_quote): Remove macro.
95292         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
95293
95294 2003-03-14  Jim Meyering  <jim@meyering.net>
95295
95296         Merge changes from Coreutils.
95297         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
95298         to be const, in order to avoid warnings.
95299         (obstack_room): Likewise.
95300         (obstack_empty_p): Likewise.
95301
95302 2003-03-14  Bruno Haible  <bruno@clisp.org>
95303
95304         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
95305         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
95306
95307 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95308
95309         Merge changes from Bison.
95310         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
95311         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
95312         when compiling Bison 1.875's `bitset bset = obstack_alloc
95313         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
95314         * lib/hash.c: Include <stdbool.h> unconditionally.
95315
95316 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95317
95318         * m4/onceonly.m4 (m4_quote): New macro.
95319         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
95320         Quote AC_FOREACH variable-expansions properly.
95321
95322 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95323
95324         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
95325
95326 2003-03-09  Paul Eggert  <eggert@twinsun.com>
95327
95328         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
95329         Reported by Bruce Becker; see:
95330         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
95331
95332 2003-03-03  Paul Eggert  <eggert@twinsun.com>
95333             Bruno Haible  <bruno@clisp.org>
95334
95335         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
95336         Reported by John Hughes, see
95337         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
95338
95339 2003-02-20  Bruno Haible  <bruno@clisp.org>
95340
95341         * MODULES.html.sh (func_all_modules): Add poll.
95342
95343 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95344
95345         * modules/poll: New file.
95346
95347 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95348
95349         * lib/poll_.h: New file.
95350         * lib/poll.c: New file.
95351
95352 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95353
95354         * m4/poll.m4: New file.
95355
95356 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95357
95358         * modules/mathl: New file.
95359
95360 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95361
95362         * lib/mathl.h: New file.
95363         * lib/acosl.c: New file.
95364         * lib/asinl.c: New file.
95365         * lib/atanl.c: New file.
95366         * lib/ceill.c: New file.
95367         * lib/cosl.c: New file.
95368         * lib/expl.c: New file.
95369         * lib/floorl.c: New file.
95370         * lib/frexpl.c: New file.
95371         * lib/ldexpl.c: New file.
95372         * lib/logl.c: New file.
95373         * lib/sincosl.c: New file.
95374         * lib/sinl.c: New file.
95375         * lib/sqrtl.c: New file.
95376         * lib/tanl.c: New file.
95377         * lib/trigl.c: New file.
95378         * lib/trigl.h: New file.
95379
95380 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95381
95382         * m4/mathl.m4: New file.
95383
95384 2003-02-18  Bruno Haible  <bruno@clisp.org>
95385
95386         * MODULES.html.sh (func_all_modules): Add mathl.
95387
95388 2003-02-17  Bruno Haible  <bruno@clisp.org>
95389
95390         * modules/mkdtemp: New module.
95391         * MODULES.html.sh (func_all_modules): Add it.
95392
95393 2003-02-17  Bruno Haible  <bruno@clisp.org>
95394
95395         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
95396
95397 2003-02-17  Bruno Haible  <bruno@clisp.org>
95398
95399         * lib/mkdtemp.h: New file, from GNU gettext.
95400         * lib/mkdtemp.c: New file, from GNU gettext.
95401
95402 2003-02-02  Jim Meyering  <jim@meyering.net>
95403
95404         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
95405         e.g. glibc-2.2.93.
95406
95407 2003-01-31  Bruno Haible  <bruno@clisp.org>
95408
95409         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
95410         'rpl_rename'.
95411         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
95412         'rpl_strnlen'.
95413         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
95414         'rpl_strtod'.
95415         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
95416         'rpl_utime'.
95417
95418 2003-01-31  Bruno Haible  <bruno@clisp.org>
95419
95420         * lib/rename.c: #undef rename before defining rpl_rename.
95421         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
95422
95423 2003-01-30  Bruno Haible  <bruno@clisp.org>
95424
95425         * modules/vasnprintf, modules/vasprintf: New modules.
95426         * MODULES.html.sh (func_all_modules): Add them.
95427
95428 2003-01-30  Bruno Haible  <bruno@clisp.org>
95429
95430         * m4/signed.m4: New file, from GNU gettext.
95431         * m4/longdouble.m4: New file, from GNU gettext.
95432         * m4/wchar_t.m4: New file, from GNU gettext.
95433         * m4/wint_t.m4: New file, from GNU gettext.
95434         * m4/vasnprintf.m4: New file.
95435         * m4/vasprintf.m4: New file.
95436
95437 2003-01-30  Bruno Haible  <bruno@clisp.org>
95438
95439         * lib/printf-args.h: New file, from GNU gettext.
95440         * lib/printf-args.c: New file, from GNU gettext.
95441         * lib/printf-parse.h: New file, from GNU gettext.
95442         * lib/printf-parse.c: New file, from GNU gettext.
95443         * lib/vasnprintf.h: New file, from GNU gettext.
95444         * lib/vasnprintf.c: New file, from GNU gettext.
95445         * lib/asnprintf.c: New file, from GNU gettext.
95446         * lib/vasprintf.h: New file, from GNU gettext with modifications.
95447         * lib/vasprintf.c: New file, from GNU gettext.
95448         * lib/asprintf.c: New file, from GNU gettext.
95449
95450 2003-01-29  Bruno Haible  <bruno@clisp.org>
95451
95452         * modules/stpncpy: New module.
95453         * MODULES.html.sh (func_all_modules): Add it.
95454
95455 2003-01-29  Bruno Haible  <bruno@clisp.org>
95456
95457         * m4/stpncpy.m4: New file.
95458
95459 2003-01-29  Bruno Haible  <bruno@clisp.org>
95460
95461         * lib/stpncpy.h: New file, from GNU gettext with modifications.
95462         * lib/stpncpy.c: New file, from GNU gettext with modifications.
95463
95464 2003-01-28  Bruno Haible  <bruno@clisp.org>
95465
95466         * modules/c-ctype: New module.
95467         * MODULES.html.sh (func_all_modules): Add it.
95468
95469 2003-01-28  Bruno Haible  <bruno@clisp.org>
95470
95471         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
95472         Paul Eggert.
95473         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
95474         Paul Eggert.
95475
95476 2003-01-27  Bruno Haible  <bruno@clisp.org>
95477
95478         * modules/xsetenv: New module.
95479         * MODULES.html.sh (func_all_modules): Add it.
95480
95481 2003-01-27  Bruno Haible  <bruno@clisp.org>
95482
95483         * lib/xsetenv.h: New file, from GNU gettext.
95484         * lib/xsetenv.c: New file, from GNU gettext.
95485
95486 2003-01-23  Jim Meyering  <jim@meyering.net>
95487
95488         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
95489         from working on systems without dirfd (at least Irix and OSF1/Tru64).
95490
95491 2003-01-23  Bruno Haible  <bruno@clisp.org>
95492
95493         * modules/minmax: New module.
95494         * MODULES.html.sh (func_all_modules): Add it.
95495
95496 2003-01-23  Bruno Haible  <bruno@clisp.org>
95497
95498         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
95499         Eggert.
95500
95501 2003-01-22  Bruno Haible  <bruno@clisp.org>
95502
95503         * modules/exit: New module.
95504         * MODULES.html.sh (func_all_modules): Add it.
95505
95506 2003-01-22  Bruno Haible  <bruno@clisp.org>
95507
95508         * lib/exit.h: New file, from GNU gettext.
95509
95510 2003-01-19  Bruno Haible  <bruno@clisp.org>
95511
95512         * gnulib-tool: Recognize option --extract-maintainer.
95513         (func_get_maintainer): New function.
95514         * modules/*: Add Maintainer entry.
95515
95516 2003-01-16  Jim Meyering  <jim@meyering.net>
95517
95518         * m4/regex.m4: The `regex' struct is both input and output.
95519         Initialize it before each use.  Patch by Tim Waugh.
95520
95521 2003-01-16  Bruno Haible  <bruno@clisp.org>
95522
95523         * MODULES.html.sh: Add a table of contents. Add the module name as
95524         leftmost column. Add hyperlinks.
95525
95526 2003-01-15  Bruno Haible  <bruno@clisp.org>
95527
95528         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95529
95530 2003-01-15  Bruno Haible  <bruno@clisp.org>
95531
95532         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95533         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95534         suffix.
95535
95536 2003-01-15  Bruno Haible  <bruno@clisp.org>
95537
95538         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95539
95540 2003-01-15  Bruno Haible  <bruno@clisp.org>
95541
95542         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95543         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95544
95545 2003-01-14  Jim Meyering  <jim@meyering.net>
95546
95547         * lib/same.c (same_name): Tweak a comment.
95548
95549 2003-01-14  Bruno Haible  <bruno@clisp.org>
95550
95551         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95552         when a string comparison is sufficient.
95553
95554 2003-01-14  Bruno Haible  <bruno@clisp.org>
95555
95556         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95557         'unsigned int'.
95558
95559 2003-01-14  Bruno Haible  <bruno@clisp.org>
95560
95561         * lib/hash-pjw.c: Add comment about low quality of this function.
95562
95563 2003-01-13  Bruno Haible  <bruno@clisp.org>
95564
95565         * modules/stpcpy: Distribute lib/stpcpy.h.
95566         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95567
95568 2003-01-13  Bruno Haible  <bruno@clisp.org>
95569
95570         * modules/*: Add a description.
95571         * modules/strpbrk: Fix Makefile.am snippet.
95572         * modules/strtoimax: Fix dependencies.
95573         * modules/strtoumax: Likewise.
95574
95575 2003-01-13  Bruno Haible  <bruno@clisp.org>
95576
95577         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95578         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95579         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95580
95581 2003-01-13  Bruno Haible  <bruno@clisp.org>
95582
95583         * gnulib-tool (func_create_testdir): Store config/* files in the main
95584         directory.
95585         * config.rpath: Move to ...
95586         * config/config.rpath: ... here.
95587         * modules/gettext: Contains config/config.rpath, not config.rpath.
95588         * modules/iconv: Likewise.
95589
95590 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95591
95592         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95593         to avoid collisions with libcurses and libreadline.
95594
95595         * m4/getstr.m4: Remove.
95596         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95597
95598 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95599
95600         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95601         to avoid collisions with libcurses and libreadline.
95602
95603         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95604         * lib/getstr.h, getstr.c: Remove.
95605         * lib/getline.c: Include "getline.h", to check interface.
95606         Move body of old getstr.c here: this defines MIN_CHUNK and
95607         declares getdelim2, which is renamed from getstr.
95608         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95609
95610         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95611         All uses changed.
95612         * lib/linebuffer.h: Likewise.
95613         (readline): Remove backward-compatibility macro.
95614
95615 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95616
95617         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95618         to avoid collisions with libcurses and libreadline.
95619         * getstr: Remove.
95620         * MODULES.html.sh: Remove getstr.
95621         * modules/getline: Depend on unlocked-io, not getstr.
95622
95623 2003-01-12  Jim Meyering  <jim@meyering.net>
95624
95625         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95626
95627 2003-01-10  Bruno Haible  <bruno@clisp.org>
95628
95629         * modules/alloca: Change Makefile.am requirements. Simplify Include
95630         requirements. Add lib/alloca_.h to file list.
95631
95632 2003-01-10  Bruno Haible  <bruno@clisp.org>
95633
95634         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95635
95636 2003-01-10  Bruno Haible  <bruno@clisp.org>
95637
95638         * lib/alloca_.h: New file.
95639         * lib/getdate.y: Unconditionally include alloca.h.
95640         * lib/makepath.c: Likewise.
95641         * lib/setenv.c: Likewise.
95642         * lib/userspec.c: Likewise.
95643
95644 2003-01-09  Karl Berry  <karl@gnu.org>
95645
95646         * MODULES.html.sh: include `dirname $0` in PATH, to find
95647         gnulib-tool.
95648
95649 2003-01-09  Bruno Haible  <bruno@clisp.org>
95650
95651         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95652         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95653
95654 2003-01-09  Bruno Haible  <bruno@clisp.org>
95655
95656         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95657
95658 2003-01-09  Bruno Haible  <bruno@clisp.org>
95659
95660         * lib/stdbool.h.in: New file.
95661
95662 2003-01-09  Bruno Haible  <bruno@clisp.org>
95663
95664         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95665         * MODULES.html.sh: Likewise.
95666
95667 2003-01-08  Jim Meyering  <jim@meyering.net>
95668
95669         * lib/full-write.c: Undefine and define-away `const' after inclusion
95670         of errno.h, not before.  Suggestion from Bruno Haible.
95671
95672 2003-01-08  Bruno Haible  <bruno@clisp.org>
95673
95674         * modules/full-read: Depend on full-write.
95675
95676 2003-01-08  Bruno Haible  <bruno@clisp.org>
95677
95678         * lib/safe-read.c: Include specification header first, to ensure its
95679         selfcontainedness.
95680         * lib/full-write.c: Likewise.
95681
95682 2003-01-07  Jim Meyering  <jim@meyering.net>
95683
95684         * lib/full-write.c: Rework so that it may serve to define full_read,
95685         too.
95686         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95687
95688 2003-01-07  Bruno Haible  <bruno@clisp.org>
95689
95690         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95691         <inttypes.h>.
95692         * lib/xstrtol.h: Likewise.
95693         * lib/xstrtoimax.c: Likewise.
95694         * lib/xstrtoumax.c: Likewise.
95695         * lib/human.h: Likewise.
95696
95697         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95698         on systems that have <inttypes.h> but not <stdint.h>.
95699
95700 2003-01-07  Bruno Haible  <bruno@clisp.org>
95701
95702         * MODULES.html.sh: Add copyright notice.
95703         (missed_files): Omit CVS directory entries.
95704         (func_module): Make it work with sed-3.02.
95705         * MODULES.txt: Remove file.
95706
95707 2003-01-06  Jim Meyering  <jim@meyering.net>
95708
95709         * lib/version-etc.c: Update year in translatable copyright string.
95710
95711 2003-01-03  Karl Berry  <karl@gnu.org>
95712
95713         * config/config.{guess,sub}: update from prep.
95714
95715 2003-01-02  Karl Berry  <karl@gnu.org>
95716
95717         * doc/COPYING.DOC: belatedly updated to 1.2.
95718
95719 2003-01-01  Karl Berry  <karl@gnu.org>
95720
95721         * gnulib-tool (func_verify_module): report module name $module in
95722         error message, not $1.
95723         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95724         be created, only if it doesn't exist.
95725         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95726
95727 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95728
95729         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95730
95731 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95732
95733         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95734         memcmp if strcoll doesn't work.
95735
95736 2002-12-31  Bruno Haible  <bruno@clisp.org>
95737
95738         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95739         nonempty.
95740
95741 2002-12-31  Bruno Haible  <bruno@clisp.org>
95742
95743         * lib/memcoll.c (STRCOLL): New macro.
95744         (memcoll): Use it.
95745
95746 2002-12-31  Bruno Haible  <bruno@clisp.org>
95747
95748         * lib/localcharset.h: New file.
95749         * lib/localcharset.c: Include it.
95750         * lib/unicodeio.c: Likewise.
95751
95752 2002-12-31  Bruno Haible  <bruno@clisp.org>
95753
95754         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95755         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95756
95757 2002-12-31  Bruno Haible  <bruno@clisp.org>
95758
95759         * lib/getline.h: Include <stddef.h>, for size_t.
95760
95761         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95762         * lib/unicodeio.c: Don't include <stddef.h>.
95763
95764 2002-12-31  Bruno Haible  <bruno@clisp.org>
95765
95766         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95767         HAVE_TM_ZONE.
95768
95769 2002-12-24  Karl Berry  <karl@gnu.org>
95770
95771         * config/config.guess: update from prep.
95772
95773 2002-12-24  Bruno Haible  <bruno@clisp.org>
95774
95775         General infrasructure.
95776         * m4/README: Rewritten.
95777         * m4/onceonly.m4: New file.
95778         * m4/onceonly_2_57.m4: New file.
95779
95780         Module atexit.
95781         * m4/atexit.m4: New file.
95782
95783         Module strtod.
95784         * m4/strtod.m4: New file.
95785
95786         Module strtol.
95787         * m4/strtol.m4: New file.
95788
95789         Module strtoul.
95790         * m4/strtoul.m4: New file.
95791
95792         Module memchr.
95793         * m4/memchr.m4: New file.
95794
95795         Module memcmp.
95796         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95797         (jm_FUNC_MEMCMP): Invoke it.
95798
95799         Module memcpy.
95800         * m4/memcpy.m4: New file.
95801
95802         Module memmove.
95803         * m4/memmove.m4: New file.
95804
95805         Module memset.
95806         * m4/memset.m4: New file.
95807
95808         Module strcspn.
95809         * m4/strcspn.m4: New file.
95810
95811         Module strpbrk.
95812         * m4/strpbrk.m4: New file.
95813
95814         Module strstr.
95815         * m4/strstr.m4: New file.
95816
95817         Module strerror.
95818         * m4/strerror.m4: New file.
95819
95820         Module mktime.
95821         * m4/mktime.m4: Renamed from jm-mktime.m4.
95822         (gl_PREREQ_MKTIME): New macro.
95823         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95824
95825         Module malloc.
95826         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95827         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95828         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95829
95830         Module realloc.
95831         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95832         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95833         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95834
95835         Module strftime.
95836         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95837         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95838         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95839         gl_TM_GMTOFF.
95840         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95841
95842         Module xalloc.
95843         * m4/xalloc.m4: New file.
95844
95845         Module alloca.
95846         * m4/alloca.m4: New file.
95847
95848         Module putenv.
95849         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95850         (jm_FUNC_PUTENV): Invoke it.
95851
95852         Module setenv.
95853         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95854         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95855         when invoked twice.
95856         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95857         gt_FUNC_SETENV.
95858
95859         Module memrchr.
95860         * m4/memrchr.m4: New file.
95861
95862         Module stpcpy.
95863         * m4/stpcpy.m4: New file.
95864
95865         Module strcase.
95866         * m4/strcase.m4: New file.
95867
95868         Module strdup.
95869         * m4/strdup.m4: New file.
95870
95871         Module strnlen.
95872         * m4/strnlen.m4: New file.
95873
95874         Module strndup.
95875         * m4/strndup.m4: New file.
95876
95877         Module xstrtod.
95878         * m4/xstrtod.m4: New file.
95879
95880         Module xstrtol.
95881         * m4/xstrtol.m4: New file.
95882
95883         Module getdate.
95884         * m4/getdate.m4: New file.
95885
95886         Module unlocked-io.
95887         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95888         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95889         * m4/jm-glibc-io.m4n: Remove file.
95890
95891         Module long-options.
95892         * m4/long-options.m4: New file.
95893
95894         Module md5.
95895         * m4/md5.m4: New file.
95896
95897         Module sha.
95898         * m4/sha.m4: New file.
95899
95900         Module getstr.
95901         * m4/getstr.m4: New file.
95902
95903         Module getline.
95904         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95905         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95906         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95907         simply getline. Infoke gl_PREREQ_GETLINE.
95908
95909         Module obstack.
95910         * m4/obstack.m4: New file.
95911
95912         Module hash.
95913         * m4/hash.m4: New file.
95914
95915         Module readtokens.
95916         * m4/readtokens.m4: New file.
95917
95918         Module strverscmp.
95919         * m4/strverscmp.m4: New file.
95920
95921         Module stdbool.
95922         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95923         OSF/1.
95924
95925         Module strtoll.
95926         * m4/strtoll.m4: New file.
95927
95928         Module strtoull.
95929         * m4/strtoull.m4: New file.
95930
95931         Module strtoimax.
95932         * m4/strtoimax.m4: New file.
95933
95934         Module strtoumax.
95935         * m4/strtoumax.m4: New file.
95936
95937         Module xstrtoimax.
95938         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95939         jm_AC_PREREQ_XSTRTOIMAX.
95940         Moved the strtol prerequisites to strtol.m4.
95941         Moved the strtoll prerequisites to strtoll.m4.
95942         Moved the strtoimax prerequisites to strtoimax.m4.
95943
95944         Module xstrtoumax.
95945         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95946         jm_AC_PREREQ_XSTRTOUMAX.
95947         Moved the strtoul prerequisites to strtoul.m4.
95948         Moved the strtoull prerequisites to strtoull.m4.
95949         Moved the strtoumax prerequisites to strtoumax.m4.
95950
95951         Module chown.
95952         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95953         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95954
95955         Module dup2.
95956         * m4/dup2.m4: New file.
95957
95958         Module ftruncate.
95959         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95960         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95961
95962         Module getgroups.
95963         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95964         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95965
95966         Module gettimeofday.
95967         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95968         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95969         gl_PREREQ_GETTIMEOFDAY.
95970
95971         Module mkdir.
95972         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95973         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95974
95975         Module mkstemp.
95976         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95977         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95978         jm_AC_TYPE_UINTMAX_T.
95979         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95980
95981         Module stat.
95982         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95983         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95984
95985         Module lstat.
95986         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95987         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95988
95989         Module timespec.
95990         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95991         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95992         * m4/st_mtim.m4: Indentation.
95993
95994         Module nanosleep.
95995         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95996         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95997         gl_PREREQ_NANOSLEEP.
95998
95999         Module regex.
96000         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
96001         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
96002         (gl_REGEX): New macro.
96003
96004         Module rename.
96005         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
96006         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
96007
96008         Module rmdir.
96009         * m4/rmdir.m4: New file.
96010
96011         Module utime.
96012         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
96013         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
96014         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
96015
96016         Module dirname.
96017         * m4/dirname.m4: New file.
96018
96019         Module getopt.
96020         * m4/getopt.m4: New file.
96021
96022         Module unistd-safer.
96023         * m4/unistd-safer.m4: New file.
96024
96025         Module fnmatch.
96026         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
96027         declaration.
96028         (gl_PREREQ_FNMATCH_EXTRA): New macro.
96029         (gl_FUNC_FNMATCH_POSIX): New macro.
96030         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
96031         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
96032         simply fnmatch.
96033
96034         Module exclude.
96035         * m4/exclude.m4: New file.
96036
96037         Module human.
96038         * m4/human.m4: New file.
96039
96040         Module acl.
96041         * m4/acl.m4: Nop.
96042
96043         Module backupfile.
96044         * m4/backupfile.m4: New file.
96045         * m4/d-ino.m4: Indentation.
96046
96047         Module fsusage.
96048         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
96049         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
96050         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
96051
96052         Module dirfd.
96053         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
96054         requirements.
96055
96056         Module euidaccess.
96057         * m4/euidaccess.m4: New file.
96058
96059         Module file-type.
96060         * m4/file-type.m4: New file.
96061
96062         Module fileblocks.
96063         * m4/fileblocks.m4: New file.
96064
96065         Module filemode.
96066         * m4/filemode.m4: New file.
96067
96068         Module isdir.
96069         * m4/isdir.m4: New file.
96070
96071         Module lchown.
96072         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
96073         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
96074
96075         Module makepath.
96076         * m4/makepath.m4: New file.
96077
96078         Module modechange.
96079         * m4/modechange.m4: New file.
96080
96081         Module mountlist.
96082         * m4/mountlist.m4: New file.
96083         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
96084         Indentation.
96085
96086         Module path-concat.
96087         * m4/path-concat.m4: New file.
96088
96089         Module pathmax.
96090         * m4/pathmax.m4: New file.
96091
96092         Module same.
96093         * m4/same.m4: New file.
96094
96095         Module save-cwd.
96096         * m4/save-cwd.m4: New file.
96097
96098         Module savedir.
96099         * m4/savedir.m4: New file.
96100
96101         Module xgetcwd.
96102         * m4/xgetcwd.m4: New file.
96103         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
96104
96105         Module xreadlink.
96106         * m4/xreadlink.m4: New file.
96107
96108         Module safe-read.
96109         * m4/safe-read.m4: New file.
96110
96111         Module safe-write.
96112         * m4/safe-write.m4: New file.
96113
96114         Module closeout.
96115         * m4/closeout.m4: New file.
96116
96117         Module stdio-safer.
96118         * m4/stdio-safer.m4: New file.
96119
96120         Module getpass.
96121         * m4/getpass.m4: New file.
96122
96123         Module getugroups.
96124         * m4/getugroups.m4: New file.
96125
96126         Module group-member.
96127         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
96128         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
96129
96130         Module idcache.
96131         * m4/idcache.m4: New file.
96132
96133         Module userspec.
96134         * m4/userspec.m4: New file.
96135
96136         Module gettime.
96137         * m4/clock_time.m4: New file.
96138         * m4/gettime.m4: New file.
96139
96140         Module settime.
96141         * m4/settime.m4: New file.
96142
96143         Module posixtm.
96144         * m4/posixtm.m4: New file.
96145
96146         Module gethostname.
96147         * m4/gethostname.m4: New file.
96148
96149         Module canon-host.
96150         * m4/canon-host.m4: New file.
96151
96152         Module gettext.
96153         * m4/codeset.m4: New file, from gettext-0.11.5.
96154         * m4/gettext.m4: New file, from gettext-0.11.5.
96155         * m4/glibc21.m4: New file, from gettext-0.11.5.
96156         * m4/iconv.m4: New file, from gettext-0.11.5.
96157         * m4/intdiv0.m4: New file, from gettext-0.11.5.
96158         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
96159         * m4/inttypes.m4: New file, from gettext-0.11.5.
96160         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
96161         * m4/isc-posix.m4: New file, from gettext-0.11.5.
96162         * m4/lcmessage.m4: New file, from gettext-0.11.5.
96163         * m4/lib-ld.m4: New file, from gettext-0.11.5.
96164         * m4/lib-link.m4: New file, from gettext-0.11.5.
96165         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
96166         * m4/progtest.m4: New file, from gettext-0.11.5.
96167         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
96168         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
96169         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
96170
96171         Module localcharset.
96172         * m4/localcharset.m4: New file.
96173
96174         Module hard-locale.
96175         * m4/hard-locale.m4: New file.
96176
96177         Module mbswidth.
96178         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
96179         onceonly macros.
96180         * m4/mbrtowc.m4: Add comment.
96181
96182         Module memcasecmp.
96183         * m4/memcasecmp.m4: New file.
96184
96185         Module memcoll.
96186         * m4/memcoll.m4: New file.
96187
96188         Module unicodeio.
96189         * m4/unicodeio.m4: New file.
96190
96191         Module rpmatch.
96192         * m4/rpmatch.m4: New file.
96193
96194         Module yesno.
96195         * m4/yesno.m4: New file.
96196
96197         Module exitfail.
96198         * m4/exitfail.m4: New file.
96199
96200         Module c-stack.
96201         * m4/c-stack.m4 (gl_C_STACK): New macro.
96202         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
96203
96204         Module error.
96205         * m4/error.m4 (gl_ERROR): New macro.
96206         (jm_PREREQ_ERROR): Use onceonly macros.
96207
96208         Module fatal.
96209         * m4/fatal.m4: New file.
96210
96211         Module getloadavg.
96212         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
96213         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
96214
96215         Module getpagesize.
96216         * m4/getpagesize.m4: New file.
96217
96218         Module getusershell.
96219         * m4/getusershell.m4: New file.
96220
96221         Module physmem.
96222         * m4/physmem.m4: New file.
96223
96224         Module posixver.
96225         * m4/posixver.m4: New file.
96226
96227         Module quotearg.
96228         * m4/quotearg.m4: New file.
96229
96230         Module quote.
96231         * m4/quote.m4: New file.
96232
96233         Module readutmp.
96234         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
96235
96236         Module sig2str.
96237         * m4/sig2str.m4: New file.
96238
96239         Other.
96240         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
96241         ulonglong.m4.
96242         * m4/intmax_t.m4: New file.
96243         * m4/d-type.m4: Indentation.
96244         * m4/jm-macros.m4: Update.
96245         * m4/prereq.m4 (jm_PREREQ): Update.
96246         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
96247         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
96248         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
96249         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
96250         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
96251         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
96252         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
96253         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
96254         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
96255         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
96256         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
96257         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
96258         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
96259         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
96260         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
96261         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
96262         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
96263         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
96264         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
96265
96266 2002-12-24  Bruno Haible  <bruno@clisp.org>
96267
96268         * MODULES.txt: Update according to m4/ changes.
96269
96270         Module gettext.
96271         * config.rpath: New file, from gettext-0.11.5.
96272
96273         * modules/*: New module descriptions.
96274         * gnulib-tool: New file.
96275         * MODULES.html.sh: New file.
96276
96277 2002-12-21  Karl Berry  <karl@gnu.org>
96278
96279         * doc/fdl.texi: update to version 1.2.
96280
96281 2002-12-19  Karl Berry  <karl@gnu.org>
96282
96283         * config/config.guess: update from prep.
96284
96285 2002-12-18  Bruno Haible  <bruno@clisp.org>
96286
96287         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
96288         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
96289
96290 2002-12-17  Bruno Haible  <bruno@clisp.org>
96291
96292         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
96293         stdlib.h, string.h.
96294
96295 2002-12-17  Bruno Haible  <bruno@clisp.org>
96296
96297         * lib/canon-host.c (strdup): Remove unused declaration.
96298
96299         * lib/fsusage.c: Include full_read.h.
96300         (get_fs_usage): Use full_read instead of safe_read.
96301
96302         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
96303
96304 2002-12-12  Karl Berry  <karl@gnu.org>
96305
96306         * config/config.guess: update from prep.
96307
96308 2002-12-11  Bruno Haible  <bruno@clisp.org>
96309
96310         * m4/setenv.m4: New file, from gettext-0.11.5.
96311
96312 2002-12-11  Bruno Haible  <bruno@clisp.org>
96313
96314         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
96315         not unsetenv().
96316         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
96317         modifications:
96318
96319         2002-12-11  Bruno Haible  <bruno@clisp.org>
96320
96321                 * setenv.c (alloca): Fall back to malloc.
96322                 (freea): New macro.
96323                 (setenv): Use freea() to free memory allocated with alloca().
96324
96325         2002-11-13  Bruno Haible  <bruno@clisp.org>
96326
96327                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
96328                 function declarations.
96329                 * unsetenv.c (unsetenv): Likewise.
96330
96331         2002-03-04  Bruno Haible  <bruno@clisp.org>
96332
96333                 Portability to AIX 4.3.3.
96334                 * unsetenv.c: New file, extracted from setenv.c.
96335                 * setenv.c: Move the unsetenv() function to unsetenv.c.
96336
96337         2001-12-20  Bruno Haible  <bruno@clisp.org>
96338
96339                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
96340                 use malloc instead. For SunOS 4.
96341
96342         2001-12-11  Bruno Haible  <bruno@clisp.org>
96343
96344                 * setenv.c: Declare alloca.
96345                 (compar_fn_t): New typedef.
96346                 (KNOWN_VALUE, STORE_VALUE): Use it.
96347
96348         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
96349         setenv.h.
96350
96351 2002-12-10  Paul Eggert  <eggert@twinsun.com>
96352
96353         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
96354         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
96355         Choose values that are less likely to collide with system fnmatch
96356         options.
96357         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
96358         defined (e.g., a pure POSIX system).
96359         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
96360         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
96361
96362 2002-12-06  Paul Eggert  <eggert@twinsun.com>
96363
96364         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
96365         a pain in practice to deal with generated m4 files.  This change
96366         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
96367
96368         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
96369         and jm-glibc-io.m4, as they are no longer a special case.
96370         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
96371         kludge and the auto-generation stuff.  Check only whether the
96372         functions are declared, not whether they exist, since older hosts
96373         that don't declare the functions can't use the optimization anyway.
96374
96375 2002-12-06  Jim Meyering  <jim@meyering.net>
96376
96377         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
96378
96379         Merge in changes from libc's misc/error.c, in preparation
96380         for the merge of gnulib's changes back into libc.
96381
96382         * lib/error.c (_): Define only if not already defined.
96383         Move definition to follow all #include directives.
96384         Include unlocked-io.h only if !_LIBC.
96385         [_LIBC]: Include <libio/libioP.h>.
96386         [USE_IN_LIBIO]: Include <libio/iolibio.h>
96387         (fflush): Tweak definition to use INTUSE.
96388         (putc): Define.
96389
96390 2002-12-05  Paul Eggert  <eggert@twinsun.com>
96391
96392         * lib/alloca.c [defined emacs]: Include "lisp.h".
96393         (xalloc_die) [defined emacs]: New macro.
96394         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
96395         [! defined emacs]: Include <xalloc.h>.
96396         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
96397         (pointer): Typedef to POINTER_TYPE *.
96398         (malloc): Remove decl; we now always use xmalloc.
96399         (alloca): Use old-style definition, since Emacs needs this.
96400         Check for arithmetic overflow when computing combined size.
96401
96402 2002-12-04  Paul Eggert  <eggert@twinsun.com>
96403
96404         Do not generate unlocked-io.h automatically, since it's easier to
96405         maintain it by hand.
96406
96407         * lib/unlocked-io.h: New file, from GNU diffutils,
96408         but with proper copyright notice and attribution.
96409         * lib/gen-uio: Remove.
96410         * lib/Makefile.am: Add copyright notice.
96411         (libfetish_a_SOURCES): Add unlocked-io.h.
96412         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
96413         (DISTCLEANFILES, io_functions): Remove macros.
96414         (EXTRA_DIST): Remove gen_uio.
96415         (unlocked-io.h): Remove rule.
96416
96417 2002-12-04  Jim Meyering  <jim@meyering.net>
96418
96419         Reflect the fact that stat.c and lstat.c are no longer generated.
96420         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
96421         (DISTCLEANFILES): Likewise.
96422         (EXTRA_DIST): Likewise.
96423         (all_local): Don't depend on stat.c or lstat.c.
96424         (stat.c, lstat.c): Remove rules.
96425         (EXTRA_DIST): Remove xstat.in.
96426
96427         * lib/xstat.in: Remove file.  Contents moved into stat.c.
96428         * lib/stat.c: New file.  Contents mostly from xstat.in.
96429         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
96430         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
96431
96432         * lib/safe-read.c: Rework so that it may serve to define safe_write,
96433         too.
96434         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
96435
96436 2002-12-03  Jim Meyering  <jim@meyering.net>
96437
96438         * lib/safe-read.c, safe-write.c: Change variable names and comments,
96439         but not semantics, to minimize the differences between these two files.
96440         (safe_read): Change comment to mention SAFE_READ_ERROR.
96441
96442         * lib/safe-read.c (IS_EINTR): Define.
96443         (safe_read): Use IS_EINTR in place of in-function cpp directives.
96444
96445 2002-12-02  Jim Meyering  <jim@meyering.net>
96446
96447         * lib/safe-read.c (EINTR): Define.
96448         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96449         (INT_MAX): Provide fallback.
96450         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
96451
96452         * lib/safe-read.h (SAFE_READ_ERROR): Define.
96453
96454 2002-12-02  Bruno Haible  <bruno@clisp.org>
96455
96456         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
96457         Define, taken from safe-read.c.
96458         (INT_MAX): Provide fallback.
96459         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
96460         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
96461
96462         * lib/safe-read.c (EINTR): Remove definition.
96463         (safe_read): Don't use EINTR if it is absent.
96464
96465 2002-12-01  Jim Meyering  <jim@meyering.net>
96466
96467         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
96468         zero.
96469         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
96470
96471 2002-11-27  Paul Eggert  <eggert@twinsun.com>
96472
96473         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
96474         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
96475         with `if (! (value < limit)) abort ();', for readability.
96476
96477 2002-11-26  Karl Berry  <karl@gnu.org>
96478
96479         * lib/strdup.c: copy from libc again, with jim's ok.
96480         * lib/.cppi-disable: re-add strdup.c
96481
96482 2002-11-25  Karl Berry  <karl@gnu.org>
96483
96484         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
96485         instead of "strtol.c".
96486
96487 2002-11-25  Karl Berry  <karl@gnu.org>
96488
96489         * config/install-sh: update from automake for variable quoting, $0 in
96490         error msgs, etc.
96491
96492         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
96493         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
96494         entry.
96495
96496 2002-11-25  Jim Meyering  <jim@meyering.net>
96497
96498         * lib/mktime.c: Sync from libc, now that it has the latest fix.
96499
96500 2002-11-24  Karl Berry  <karl@gnu.org>
96501
96502         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
96503         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
96504
96505 2002-11-24  Jim Meyering  <jim@meyering.net>
96506
96507         Update from coreutils:
96508
96509         * lib/mktime.c: Merge in changes from libc.
96510
96511         Avoid a link-time failure on some Linux systems.
96512         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96513         (otherwise).
96514         (__mon_yday): Declare with the STATIC attribute.
96515         (__mktime_internal): Likewise.
96516         Based on a report from Greg Schafer.
96517
96518 2002-11-23  Jim Meyering  <jim@meyering.net>
96519
96520         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96521         Use `unsigned', not `int', as type of index.
96522
96523         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96524
96525         * lib/fsusage.c: Remove unneeded parentheses around operands of
96526         `defined'.
96527
96528 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96529
96530         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96531         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96532         so that we can be included first.
96533         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96534         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96535         No need to include stddef.h or sys/types.h any more.
96536         Surround local include files with "", not "<>".
96537         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96538         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96539         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96540         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96541         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96542         (ISPRINT): Remove; no longer needed now that we assume C89.
96543
96544         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96545         Preserve errno.
96546
96547         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96548         quotearg_char): Use SIZE_MAX rather than
96549         (size_t) -1 when we are talking about "infinity".
96550
96551         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96552
96553 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96554
96555         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96556         hint that one should use `if (! x) abort ();' rather than `assert
96557         (x);', and anyway it's one less thing to worry about configuring.
96558         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96559         hash_rehash, hash_insert): Use abort rather than assert.
96560
96561 2002-11-22  Bruno Haible  <bruno@clisp.org>
96562
96563         * lib/safe-read.h: Assume C89. Add comments.
96564         (safe_read): Change return type to size_t.
96565         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96566         byte counts > SSIZE_MAX correctly.
96567         * lib/safe-write.h: New file.
96568         * lib/safe-write.c: New file.
96569         * lib/full-read.h: New file.
96570         * lib/full-read.c: New file.
96571         * lib/full-write.h: Assume C89. Add comments.
96572         * lib/full-write.c: Include safe-write.h.
96573         (full_write): Rewritten to use safe_write.
96574         Suggested by Jim Meyering and Paul Eggert.
96575
96576 2002-11-21  Jim Meyering  <jim@meyering.net>
96577
96578         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96579
96580         Merge in changes from the coreutils.
96581
96582         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96583         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96584         <stdint.h>.
96585         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96586         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96587         int.  Work more efficiently if X is the same width as uintmax_t.
96588         Do not compare X to -1, to avoid bogus compiler warning.
96589         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96590         Don't assume that f_frsize and f_bsize are the same type.
96591
96592         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96593         warning on FreeBSD.
96594
96595         * lib/makepath.c (make_path): Restore umask *before* creating the final
96596         component.
96597         (make_path): Minor reformatting.
96598
96599         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96600         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96601         HAVE_MALLOC/HAVE_REALLOC.
96602
96603         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96604         dummy ones.  At least on GNU/Linux systems, `auto' means something
96605         else.
96606         From Michael Stone.
96607
96608 2002-11-21  Bruno Haible  <bruno@clisp.org>
96609
96610         Remove case insensitive option matching.
96611         * lib/argmatch.h (argcasematch): Remove declaration.
96612         (ARGCASEMATCH): Remove macro.
96613         (__xargmatch_internal): Remove case_sensitive argument.
96614         (XARGMATCH): Update.
96615         (XARGCASEMATCH): Remove macro.
96616         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96617         case_sensitive argument.
96618         (argcasematch): Remove function.
96619         (__xargmatch_internal): Remove case_sensitive argument.
96620         (main): Use XARGMATCH instead of XARGCASEMATCH.
96621
96622         * lib/xmalloc.c: Change compile-time error message. Add comment about
96623         required autoconf version.
96624
96625 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96626
96627         Merge argmatch cleanups from Bison.  Assume C89.
96628
96629         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96630         Include stdlib.h, for EXIT_FAILURE.
96631         Always include <string.h>, since we assume C89.
96632         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96633         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96634         Include <stddef.h> instead, since it's all we need for size_t.
96635         (PARAMS): Remove.  All uses removed.
96636         (ARRAY_CARDINALITY): Do not bother to #undef.
96637         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96638         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96639         Remove unnecessary parentheses.
96640         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96641         Insert necessary parentheses.
96642         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96643         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96644
96645 2002-11-19  Bruno Haible  <bruno@clisp.org>
96646
96647         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96648         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96649
96650         * lib/mbswidth.h (PARAMS): Remove macro.
96651         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96652         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96653
96654         * lib/gcd.h (PARAMS): Remove macro.
96655         (gcd): Use ANSI C function declarations.
96656         * lib/gcd.c (gcd): Likewise.
96657
96658 2002-11-15  Bruno Haible  <bruno@clisp.org>
96659
96660         * lib/strcspn.c: Include <stddef.h>.
96661         (strcspn): Use ANSI C function declaration. Change return type to
96662         size_t. Use NULL.
96663         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96664         (strpbrk): Use NULL.
96665         * lib/strpbrk.h (PARAMS): Remove macro.
96666         (strpbrk): Use ANSI C function declaration.
96667         * lib/strstr.c: Don't include <sys/types.h>.
96668         * lib/strstr.h (PARAMS): Remove macro.
96669         (strstr): Use ANSI C function declarations.
96670
96671 2002-11-14  Karl Berry  <karl@gnu.org>
96672
96673         * config/mkinstalldirs: `do' on separate line, instead of
96674         `for var; do'.
96675
96676 2002-11-06  Bruno Haible  <bruno@clisp.org>
96677
96678         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96679         * lib/gcd.c (gcd): Likewise.
96680
96681 2002-11-05  Bruno Haible  <bruno@clisp.org>
96682
96683         * lib/gcd.h: New file, from gettext-0.11.5.
96684         * lib/gcd.c: New file, from gettext-0.11.5.
96685
96686 2002-11-05  Bruno Haible  <bruno@clisp.org>
96687
96688         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96689         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96690         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96691         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96692
96693         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96694         <libintl.h>.
96695         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96696         <libintl.h>.
96697
96698         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96699         * lib/human.c: Include gettext.h instead of <libintl.h>.
96700         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96701         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96702         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96703         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96704         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96705         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96706         (textdomain): Remove definition.
96707         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96708
96709         * lib/long-options.c: Remove include of <libintl.h> and definition of
96710         _.
96711         * lib/same.c: Remove include of <libintl.h> and definition of _.
96712
96713 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96714
96715         * lib/config.charset: A few additions for Solaris.
96716
96717 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96718
96719         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96720         * lib/localcharset.c (locale_charset): Declare as extern "C".
96721
96722 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96723
96724         * lib/config.charset: msdos in uk_UA uses CP1125.
96725
96726 2002-11-04  Bruno Haible  <bruno@clisp.org>
96727
96728         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96729         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96730         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96731         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96732         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96733
96734 2002-11-04  Bruno Haible  <bruno@clisp.org>
96735
96736         * lib/localcharset.c (locale_charset): Don't return an empty string.
96737
96738 2002-11-04  Bruno Haible  <bruno@clisp.org>
96739
96740         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96741         aliases.
96742
96743 2002-11-04  Bruno Haible  <bruno@clisp.org>
96744
96745         * lib/config.charset: Update for newest glibc. Add canonical names
96746         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96747
96748 2002-11-04  Bruno Haible  <bruno@clisp.org>
96749
96750         * lib/config.charset: Add support for NetBSD.
96751
96752 2002-11-04  Bruno Haible  <bruno@clisp.org>
96753
96754         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96755
96756 2002-11-01  Bruno Haible  <bruno@clisp.org>
96757
96758         * configure.in: Add AC_CONFIG_AUX_DIR call.
96759         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96760         test/Makefile.
96761         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96762
96763 2002-09-28  Karl Berry  <karl@gnu.org>
96764
96765         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96766         installed automake until the next release, since changes have been
96767         made.
96768
96769 2002-09-25  Karl Berry  <karl@gnu.org>
96770
96771         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96772         * lib/getopt*: copy from libc/posix.
96773         * lib/gettext.h: copy from gettext.
96774         * lib/.cppi-disable: add strdup.c, gettext.h.
96775
96776 2002-09-25  Karl Berry  <karl@gnu.org>
96777
96778         * config/srclist.txt: enable gettext.h check.
96779         * config/config.{guess,sub}: update from prep.
96780         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96781                 from automake 1.6.3.
96782         See srclist*.
96783
96784 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96785
96786         * regex.c (PATFETCH): Remove the translating fetch.
96787         (PATFETCH_RAW): Rename to PATFETCH.
96788         (set_image_of_range): New fun.
96789         (SET_RANGE_TABLE_WORK_AREA): Use it.
96790         (regex_compile): Don't translate the pattern chars so eagerly.
96791         Only do it when inserting an `exactn' bytecode or when handling
96792         a char-range.
96793         (mutually_exclusive_p): Avoid empty statement.
96794
96795 2002-07-06  Jim Meyering  <meyering@lucent.com>
96796
96797         * m4/README: Don't mention Makefile.am.in.
96798         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96799
96800 2002-07-01  Jim Meyering  <meyering@lucent.com>
96801
96802         * lib/c-stack.c: Include sys/time.h.
96803         From Volker Borchert.
96804
96805 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96806
96807         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96808
96809 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96810
96811         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96812         New macro.  Use it uniformly instead of
96813         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96814         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96815         reported by Vin Shelton.
96816
96817 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96818
96819         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96820         Do not assume SA_SIGINFO behavior.
96821         Bug reported by Jim Meyering on NetBSD 1.5.2.
96822
96823 2002-06-22  Jim Meyering  <meyering@lucent.com>
96824
96825         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96826         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96827
96828         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96829         now that configure.ac uses AC_GNU_SOURCE.
96830         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96831         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96832
96833         Update to latest tools.  Suggestions from Paul Eggert.
96834         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96835         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96836         * m4/fnmatch.m4: Likewise.
96837         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96838         to AC_HEADER_STDBOOL
96839
96840 2002-06-22  Jim Meyering  <meyering@lucent.com>
96841
96842         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96843         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96844
96845 2002-06-22  Jim Meyering  <meyering@lucent.com>
96846
96847         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96848
96849         * lib/exitfail.c, exitfail.h: Likewise.
96850         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96851
96852         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96853         of fnmatch.h.
96854         (EXTRA_DIST): Add fnmatch_loop.c.
96855         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96856
96857         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96858         * lib/fnmatch.c: Update from diffutils-2.8.2.
96859         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96860         * lib/fnmatch.h: Remove file.
96861
96862 2002-06-21  Jim Meyering  <meyering@lucent.com>
96863
96864         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96865         * m4/mbrtowc.m4: Likewise.
96866
96867         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96868         * m4/mbswidth.m4: Reflect name change:
96869         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96870         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96871
96872         * m4/lib-link.m4: Update from gettext-0.11.2.
96873         * m4/gettext.m4: Likewise.
96874
96875         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96876         From Alfred M. Szmidt.
96877
96878 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96879
96880         * lib/file-type.h: Report an error if neither S_ISREG nor
96881         S_IFREG is defined, instead of using a test specific to glibc
96882         2.2.  This should be safe, since POSIX requires S_ISREG and
96883         Unix Version 7 had S_IFREG.  We don't need to check for
96884         <sys/types.h> since we don't use any symbols that it defines.
96885
96886 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96887
96888         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96889         $@-t, so that each temporary file name is unique and valid in the first
96890         8 characters, for operation under DOS.
96891
96892 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96893
96894         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96895
96896 2002-06-15  Jim Meyering  <meyering@lucent.com>
96897
96898         Work even with DJGPP 2.03, which lacks support for symlinks.
96899         From Richard Dawe.
96900         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96901         is defined.
96902         * lib/lchown.c (S_ISLNK): Likewise.
96903
96904 2002-06-15  Jim Meyering  <meyering@lucent.com>
96905
96906         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96907         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96908         have been included before this file.
96909
96910 2002-06-14  Jim Meyering  <meyering@lucent.com>
96911
96912         * lib/file-type.h: Use the version from diffutils-2.8.2.
96913         * lib/file-type.c: Likewise.
96914
96915 2002-06-07  Jim Meyering  <meyering@lucent.com>
96916
96917         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96918         They're needed at least for NetBSD 1.5.2.
96919         ($statxfs_includes): Include those same headers.
96920         ($statxfs_includes): Include sys/vfs.h if available.
96921         ($statxfs_includes): Likewise for sys/statvfs.h.
96922         Check for the following members in both structs statfs and statvfs:
96923         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96924
96925 2002-06-01  Jim Meyering  <meyering@lucent.com>
96926
96927         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96928         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96929
96930 2002-05-28  Jim Meyering  <meyering@lucent.com>
96931
96932         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96933         Reported by Volker Borchert.
96934
96935 2002-05-27  Jim Meyering  <meyering@lucent.com>
96936
96937         Fix a problem seen only on nonconforming systems whereby ls.c's
96938         use of localtime, and then of gettimeofday would cause trouble:
96939         the localtime call used to initialize rpl_gettimeofday's save
96940         mechanism would clobber ls's current local time information so
96941         that in any long listing the first file would always be listed
96942         with date 1970-01-01.  Analysis by Volker Borchert.
96943
96944         * lib/gettimeofday.c (localtime): Undefine.
96945         (rpl_localtime): New function.
96946
96947 2002-05-27  Jim Meyering  <meyering@lucent.com>
96948
96949         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96950         localtime.
96951
96952         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96953         use the replacement function; it wouldn't resolve at link time.
96954         Reported by Volker Borchert.
96955
96956 2002-05-22  Jim Meyering  <meyering@lucent.com>
96957
96958         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96959         file-type.h.
96960         * lib/file-type.h: New file.
96961         * lib/file-type.c (file_type): New file/function.  Extracted from
96962         diffutils.
96963
96964 2002-04-30  Jim Meyering  <meyering@lucent.com>
96965
96966         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96967
96968 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96969
96970         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96971
96972 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96973
96974         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96975         Do not check for alloca.h (no longer used) or stdbool.h (was never
96976         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96977
96978 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96979
96980         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96981
96982 2002-04-29  Jim Meyering  <meyering@lucent.com>
96983
96984         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96985         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96986         Use AC_FUNC_STRNLEN here instead.
96987
96988         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96989         With autoconf-2.53a, it's part of AC_PROG_CC.
96990
96991 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96992
96993         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96994         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96995
96996 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96997
96998         * lib/sig2str.h, lib/sig2str.c: New files.
96999         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
97000
97001 2002-04-28  Paul Eggert  <eggert@twinsun.com>
97002
97003         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
97004         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
97005         of 127, since 64 is the largest conceivable number for ancient
97006         nonstandard hosts.
97007         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
97008
97009 2002-04-28  Jim Meyering  <meyering@lucent.com>
97010
97011         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
97012
97013 2002-04-24  Jim Meyering  <meyering@lucent.com>
97014
97015         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
97016         (jm_PREREQ): Use it.
97017
97018         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
97019         mach/mach.h fcntl.h.
97020         Check for this function: setlocale.
97021
97022 2002-04-24  Jim Meyering  <meyering@lucent.com>
97023
97024         * lib/gettext.h: New file, from Gettext.
97025         * lib/Makefile.am (INCLUDES): Remove -I../intl.
97026         (libfetish_a_SOURCES): Add gettext.h.
97027
97028 2002-04-16  Jim Meyering  <meyering@lucent.com>
97029
97030         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
97031         ut_pid, ut_id, ut_exit.
97032
97033 2002-04-16  Jim Meyering  <meyering@lucent.com>
97034
97035         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
97036         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
97037         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
97038
97039 2002-04-12  Jim Meyering  <meyering@lucent.com>
97040
97041         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
97042         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
97043         existence of the getmntinfo function.  Needed for Darwin 5.3.
97044
97045         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
97046         This is necessary at least on Darwin 5.3.
97047
97048         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
97049         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
97050         strnlen.o in the library, and that makes some versions of ranlib
97051         object.
97052
97053 2002-04-12  Jim Meyering  <meyering@lucent.com>
97054
97055         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
97056
97057 2002-04-09  Jim Meyering  <meyering@lucent.com>
97058
97059         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
97060         to be more precise.  Rather than saying we're checking whether the
97061         function `works', say what we're testing.
97062         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
97063         Reported by Bruno Haible.
97064
97065 2002-03-10  Jim Meyering  <meyering@lucent.com>
97066
97067         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
97068         Suggestion from Santiago Vila.
97069
97070 2002-03-08  Jim Meyering  <meyering@lucent.com>
97071
97072         * lib/rename.c: Mention that this wrapper is needed also on
97073         mips-dec-ultrix4.4 systems.
97074
97075 2002-03-02  Jim Meyering  <meyering@lucent.com>
97076
97077         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
97078         not HAVE_CLOCK_SETTIME.
97079
97080 2002-02-27  Paul Eggert  <eggert@twinsun.com>
97081
97082         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
97083         Check for clock_settime.
97084
97085 2002-02-27  Paul Eggert  <eggert@twinsun.com>
97086
97087         * lib/nanosleep.h: Rename to....
97088         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
97089
97090         * lib/gettime.c: New file.
97091         * lib/settime.c: New file.
97092         * lib/stime.c: Remove.
97093
97094         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
97095         timespec.h.  Remove nanosleep.h.
97096
97097 2002-02-25  Paul Eggert  <eggert@twinsun.com>
97098
97099         * m4/acl.m4: New file.
97100         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
97101         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
97102
97103 2002-02-25  Paul Eggert  <eggert@twinsun.com>
97104
97105         * lib/acl.c, lib/acl.h: New files.
97106         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
97107
97108 2002-02-24  Jim Meyering  <meyering@lucent.com>
97109
97110         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
97111         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
97112         cause trouble.  Reported by Nelson Beebe.
97113
97114 2002-02-23  Paul Eggert  <eggert@twinsun.com>
97115
97116         * lib/path-concat.c (xpath_concat): Reorder code to pacify
97117         compilers that don't know that xalloc_die never returns.
97118
97119 2002-02-20  Jim Meyering  <meyering@lucent.com>
97120
97121         * lib/getdate.c: Regenerate using bison-1.33.
97122
97123 2002-02-17  Jim Meyering  <meyering@lucent.com>
97124
97125         * config/config.guess (main): Don't use `head -1'; it's no longer
97126         portable. Use `sed 1q' instead.
97127
97128 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
97129
97130         * m4/codeset.m4: Upgrade to gettext-0.11.
97131         * m4/gettext.m4: Upgrade to gettext-0.11.
97132         * m4/glibc21.m4: Upgrade to gettext-0.11.
97133         * m4/iconv.m4: Upgrade to gettext-0.11.
97134         * m4/isc-posix.m4: Upgrade to gettext-0.11.
97135         * m4/lcmessage.m4: Upgrade to gettext-0.11.
97136         * m4/lib-ld.m4: New file, from gettext-0.11.
97137         * m4/lib-link.m4: New file, from gettext-0.11.
97138         * m4/lib-prefix.m4: New file, from gettext-0.11.
97139         * m4/progtest.m4: Upgrade to gettext-0.11.
97140
97141 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97142
97143         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
97144         (jm_PREREQ): Use it.
97145
97146 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97147
97148         * lib/posixver.c, lib/posixver.h: New files.
97149         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97150
97151 2002-02-02  Paul Eggert  <eggert@twinsun.com>
97152             Bruno Haible  <bruno@clisp.org>
97153
97154         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
97155         (fwrite_success_callback): New declaration.
97156         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
97157         print_unicode_char. Call failure callback instead of error.
97158         (fwrite_success_callback): New function.
97159         (exit_failure_callback): New function.
97160         (fallback_failure_callback): New function.
97161         (print_unicode_char): Call unicode_to_mb.
97162
97163 2002-01-26  Jim Meyering  <meyering@lucent.com>
97164
97165         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
97166         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
97167
97168 2002-01-26  Jim Meyering  <meyering@lucent.com>
97169
97170         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
97171
97172 2002-01-22  Paul Eggert  <eggert@twinsun.com>
97173
97174         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
97175
97176 2002-01-22  Jim Meyering  <meyering@lucent.com>
97177
97178         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
97179         Otherwise, some versions of automake would omit the rule that makes
97180         Makefile from Makefile.in.
97181
97182 2002-01-21  Paul Eggert  <eggert@twinsun.com>
97183
97184         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
97185         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97186         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
97187         (memcoll): Set errno to zero if there is no error.
97188
97189         * lib/quotearg.c (quotearg_buffer_restyled):
97190         Fix bug with quoting buffers containing NUL when backslashing escapes.
97191         This bug was exposed by the other changes in this patch.
97192         (quotearg_n_options): New arg ARGSIZE.
97193         All callers changed.
97194         (quoting_options_from_style): New function.
97195         (quotearg_n_style): Use it.
97196         (quotearg_n_style_mem): New function.
97197
97198         * lib/quotearg.h (quotearg_n_style_mem): New function.
97199
97200 2002-01-19  Jim Meyering  <meyering@lucent.com>
97201
97202         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
97203         Remove useless quotes: DF_PROG="df".
97204         * m4/strnlen.m4: New file.
97205
97206 2002-01-16  Paul Eggert  <eggert@twinsun.com>
97207
97208         * lib/backupfile.c (ISDIGIT): Comment fix.
97209         * lib/getdate.y (ISDIGIT): Likewise.
97210         * lib/posixtm.c (ISDIGIT, year): Likewise.
97211         * lib/strverscmp.c (ISDIGIT): Likewise.
97212         * lib/userspec.c (ISDIGIT): Likewise.
97213
97214 2002-01-16  Jim Meyering  <meyering@lucent.com>
97215
97216         * lib/getdate.y: Add three semicolons, each just before a closing
97217         brace. Bison (as of version 1.31) no longer papers over that mistake.
97218
97219 2002-01-05  Jim Meyering  <meyering@lucent.com>
97220
97221         * lib/version-etc.c (version_etc_copyright): Update copyright year.
97222
97223 2001-12-19  Paul Eggert  <eggert@twinsun.com>
97224
97225         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
97226         not silently exit merely because the output buffer happens to
97227         have nothing pending.
97228
97229 2001-12-18  Paul Eggert  <eggert@twinsun.com>
97230
97231         See the big note in ../ChangeLog.
97232         * lib/human.c (suffixes): Prefer K to k for 1024.
97233         (generate_suffix_backwards): New function.
97234         (human_readable_inexact): Use it.
97235         * lib/xstrtol.c (__xstrtol): If there is no number but there
97236         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
97237         Accept 'K' as well as 'k'.
97238
97239 2001-12-15  Jim Meyering  <meyering@lucent.com>
97240
97241         * lib/regex.h (__restrict_arr): Update from libc.
97242
97243         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
97244         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
97245         (STREQ): Define.
97246
97247 2001-12-14  Jim Meyering  <meyering@lucent.com>
97248
97249         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
97250         Suggestion from Bruno Haible.
97251
97252 2001-12-10  Jim Meyering  <meyering@lucent.com>
97253
97254         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
97255         xrealloc, Instead, include "xalloc.h".
97256         (initbuffer): Don't cast xmalloc return value to char*.
97257         (readline): Reword comment.
97258         Don't cast xrealloc return value to char*
97259         Return NULL, not 0.
97260
97261 2001-12-09  Jim Meyering  <meyering@lucent.com>
97262
97263         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
97264         about `signed and unsigned type in conditional expression'.
97265         * lib/posixtm.c (posix_time_parse): Likewise.
97266
97267         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
97268
97269         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
97270         to avoid a pedantic warning.
97271
97272         * lib/getstr.c: Don't include assert.h.
97273         (getstr): Remove warning-evoking assertions.
97274         Return -1 if offset parameter is out of bounds.
97275         Change the type of a local from int to size_t.
97276
97277         * lib/strftime.c (my_strftime_localtime_r): Include this function
97278         definition in the `#if ! HAVE_TM_GMTOFF' block.
97279
97280         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
97281         Include xalloc.h instead.
97282
97283 2001-12-02  Jim Meyering  <meyering@lucent.com>
97284
97285         * lib/tempname.c: Don't declare getenv, thus reverting the change of
97286         2001-11-18.  It's no longer necessary, now that stdlib.h is always
97287         included.
97288
97289         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
97290         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
97291
97292 2001-11-30  Akim Demaille  <akim@epita.fr>
97293
97294         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
97295         before being defined.
97296
97297 2001-11-27  Paul Eggert  <eggert@twinsun.com>
97298
97299         * lib/quotearg.h (quotearg_n, quotearg_n_style):
97300         First arg is int, not unsigned.
97301         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
97302         (SIZE_MAX, UINT_MAX): New macros.
97303         (quotearg_n_options): Abort if N is negative.
97304         Avoid overflow check on hosts where size_t is 64 bits and int
97305         is 32 bits, as overflow is impossible there.
97306         Fix off-by-one typo that caused unnecessary reallocation.
97307
97308 2001-11-27  Jim Meyering  <meyering@lucent.com>
97309
97310         * lib/tempname.c: Merge with version from libc.
97311         * lib/regex.c: Likewise.
97312
97313         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
97314         systems for which STDC_HEADERS is 0, it was not included, resulting in
97315         a warning about an integer-to-pointer conversion problem with getenv.
97316         Reported by Volker Borchert.
97317
97318 2001-11-26  Jim Meyering  <meyering@lucent.com>
97319
97320         * lib/gtod.h: Remove file.
97321         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
97322         * lib/gettimeofday.c: Don't include gtod.h.
97323         (GTOD_init): Remove function.
97324         (rpl_gettimeofday): Do its job here instead, rather than aborting.
97325         Suggestion from Volker Borchert.
97326
97327 2001-11-23  Jim Meyering  <meyering@lucent.com>
97328
97329         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
97330         it.
97331         * lib/hash.c (struct hash_table): Define it here instead.
97332
97333 2001-11-22  Jim Meyering  <meyering@lucent.com>
97334
97335         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
97336
97337 2001-11-20  Jim Meyering  <meyering@lucent.com>
97338
97339         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
97340         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
97341
97342 2001-11-19  Jim Meyering  <meyering@lucent.com>
97343
97344         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
97345         directory.  Use "conftestXXXXXX" as the template.
97346         Suggestion from Paul Eggert.
97347
97348         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
97349         immediately, so the test doesn't mistakenly hit the max-open-files
97350         limit.
97351
97352 2001-11-18  Paul Eggert  <eggert@twinsun.com>
97353
97354         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
97355         (TEMPORARIES): New macro.
97356         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
97357         removes an artificial limitation (e.g. HP-UX 10.20, where
97358         TMP_MAX is 17576).
97359
97360 2001-11-18  Jim Meyering  <meyering@lucent.com>
97361
97362         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
97363
97364 2001-11-18  Jim Meyering  <meyering@lucent.com>
97365
97366         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
97367         on SunOS 4.
97368
97369         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
97370         files will be created before anything else.
97371
97372 2001-11-17  Paul Eggert  <eggert@twinsun.com>
97373
97374         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
97375         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
97376
97377 2001-11-17  Jim Meyering  <meyering@lucent.com>
97378
97379         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
97380         Prompted by a report from Bob Proulx.
97381
97382         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
97383         Instead, require UTILS_FUNC_MKSTEMP.
97384
97385 2001-11-17  Jim Meyering  <meyering@lucent.com>
97386
97387         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
97388         Now, that's done as part of AC_FUNC_STRTOD.
97389
97390 2001-11-17  Jim Meyering  <meyering@lucent.com>
97391
97392         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
97393         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
97394         rather than group writable.  Patch by Juan F. Codagnone.
97395
97396         * lib/readtokens.c: Remove explicit declarations of xmalloc and
97397         xrealloc, Instead, include "xalloc.h".
97398
97399         * lib/mountlist.c: Include unlocked-io.h after all system headers.
97400         Remove explicit declarations of xmalloc, xrealloc,
97401         and xstrdup.  Instead, include "xalloc.h".
97402
97403         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
97404         unlocked-io.h.
97405         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
97406         Likewise.
97407         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
97408
97409         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
97410         Reported by Padraig Brady.
97411
97412         * lib/mkstemp.c: #undef mkstemp.
97413         Include config.h.
97414         (rpl_mkstemp): Rename from mkstemp.
97415         Protoize.
97416
97417 2001-11-16  Jim Meyering  <meyering@lucent.com>
97418
97419         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
97420         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
97421         determine the amount of total physical memory, use pstat_getstatic.
97422         HPUX-11 doesn't define _SC_PHYS_PAGES.
97423         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
97424         If sysconf couldn't be used to determine the amount of available
97425         physical memory, use both pstat_getstatic and pstat_getdynamic.
97426         Based on a patch from Bob Proulx.
97427
97428 2001-11-10  Jim Meyering  <meyering@lucent.com>
97429
97430         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
97431         (jm_PREREQ): Use it.
97432
97433 2001-11-09  Jim Meyering  <meyering@lucent.com>
97434
97435         * m4/jm-macros.m4: Require autoconf-2.52f.
97436         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
97437         Use these AC_-prefixed names, not the AM_-prefixed ones.
97438
97439         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
97440
97441 2001-11-05  Jim Meyering  <meyering@lucent.com>
97442
97443         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
97444
97445 2001-11-04  Jim Meyering  <meyering@lucent.com>
97446
97447         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
97448         $DEFS.
97449
97450 2001-11-03  Jim Meyering  <meyering@lucent.com>
97451
97452         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
97453         of AC_DEFUN.
97454
97455         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
97456         know the name of the variable in the macro definition.
97457
97458 2001-11-03  Jim Meyering  <meyering@lucent.com>
97459
97460         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
97461         in argmatch_to_argument call.
97462
97463         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
97464         argument.
97465
97466         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
97467         e.g., a fault due to an attempt to free a NULL pointer.
97468
97469 2001-11-01  Jim Meyering  <meyering@lucent.com>
97470
97471         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
97472         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
97473
97474 2001-11-01  Jim Meyering  <meyering@lucent.com>
97475
97476         * lib/dirfd.c, lib/dirfd.h: New files.
97477         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
97478
97479         * lib/hash.c (hash_print) [TESTING]: Clean up.
97480
97481 2001-10-22  Paul Eggert  <eggert@twinsun.com>
97482
97483         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
97484         to avoid a warning if -Wall.
97485
97486 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
97487
97488         * README: New file
97489         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
97490         (per RMS's instructions, this is now the canonical source)
97491         * lgpl/, gpl/: New directories.
97492
97493 2001-10-21  Paul Eggert  <eggert@twinsun.com>
97494
97495         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
97496
97497 2001-10-21  Jim Meyering  <meyering@lucent.com>
97498
97499         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
97500         this code would end up calling gettext even in packages built
97501         with --disable-nls.
97502         * lib/getopt.c (_): Likewise.
97503         * lib/regex.c (_): Likewise.
97504
97505 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97506
97507         * m4/error.m4 (jm_PREREQ_ERROR):
97508         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97509         AC_FUNC_STRERROR_R does that.
97510         Check for strerror declaration.
97511
97512         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97513         are supposed to have them these days.
97514         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97515         Merge changes from latest Autoconf CVS.
97516         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97517         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97518         POSIX decided to standardize on the int flavor of strerror_r.
97519
97520 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97521
97522         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97523         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97524         Use strerror_r that is only a macro, even if it is not a function.
97525         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97526         (private_strerror): Use prototypes, not old-style function definition.
97527         (print_errno_message): New function.
97528         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97529         char*-flavored one.
97530         (error_tail, error, error_at_line): Use it.
97531
97532 2001-10-11  Jim Meyering  <meyering@lucent.com>
97533
97534         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97535         and quote_n (1, ... to avoid clobbering a buffer.
97536
97537 2001-10-05  Jim Meyering  <meyering@lucent.com>
97538
97539         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97540         hash-pjw.h.
97541         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97542         * lib/hash-pjw.h: New file.
97543
97544 2001-09-30  Jim Meyering  <meyering@lucent.com>
97545
97546         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97547         `struct fsstat' has the `f_fstypename' member.
97548         Use that to define FS_TYPE, which is now used to make
97549         the getfsstat link test tighter.
97550
97551 2001-09-30  Jim Meyering  <meyering@lucent.com>
97552
97553         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97554         Include <sys/ucred.h>, for Apple Darwin.
97555         Include sys/mount.h and sys/fs_types.h only if available.
97556         (FS_TYPE): Define.
97557         (read_filesystem_list): Use FS_TYPE.
97558
97559 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97560
97561         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97562         a boolean context.
97563
97564 2001-09-29  Jim Meyering  <meyering@lucent.com>
97565
97566         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97567         [one-argument getmntent function]): Include stdio.h before mntent.h.
97568         SunOS 4.1.x needs it for the declaration of `FILE'.
97569         Patch by Volker Borchert.
97570
97571         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97572         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97573         sys/fs_types.h, and make the link-test for getfsstat guard #include
97574         directives with appropriate #if HAVE_*_H tests so that we can
97575         detect getfsstat on Apple Darwin1.3.7 systems.
97576         Reported by Nelson Beebe.
97577         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97578
97579 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97580
97581         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97582         #defines strtoimax.  Also treat the other strto* functions
97583         like strtoimax.
97584
97585         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97586         Check for strtoul and strtoumax,
97587         as those declarations are made even in the signed case.
97588         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97589         Likewise, for strtol and strtoimax.
97590
97591 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97592
97593         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97594         #defines strtoimax.  Also treat the other strto* functions
97595         like strtoimax.
97596
97597         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97598         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97599         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97600
97601 2001-09-26  Jim Meyering  <meyering@lucent.com>
97602
97603         Most macros in unlocked-io.h had the wrong number of arguments.
97604         * lib/gen-uio: New script.
97605         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97606         * lib/unlocked-io.hin: Remove file.
97607         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97608         rather than trying to embed it here.
97609         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97610         Reported by Padraig Brady.
97611
97612 2001-09-25  Volker Borchert  <bt@teknon.de>
97613
97614         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97615         `result'.
97616
97617 2001-09-24  Jim Meyering  <meyering@lucent.com>
97618
97619         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97620
97621 2001-09-23  Jim Meyering  <meyering@lucent.com>
97622
97623         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97624         instead of the mere test for existence of mntent.h.  The latter
97625         would get a false-positive on AIX 3.4 systems.
97626         In the outer getmntent if-block, don't die if neither of the getmntent
97627         tests succeeds.  Instead, just fall through and continue with the
97628         remaining tests.
97629
97630 2001-09-23  Jim Meyering  <meyering@lucent.com>
97631
97632         * lib/mountlist.c: Remove useless parentheses in #if directives.
97633         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97634         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97635
97636 2001-09-22  Jim Meyering  <meyering@lucent.com>
97637
97638         * m4/gettext.m4: New file.  From gettext.
97639         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97640         * m4/progtest.m4: Likewise
97641         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97642         * m4/glibc21.m4: Likewise.
97643
97644         * m4/libintl.m4: Remove.  No longer used.
97645
97646 2001-09-22  Jim Meyering  <meyering@lucent.com>
97647
97648         * lib/localcharset.c: Update from latest gettext.
97649         * lib/config.charset: Likewise.
97650
97651 2001-09-20  Jim Meyering  <meyering@lucent.com>
97652
97653         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97654         strtoimax.
97655         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97656         strtoumax.
97657
97658 2001-09-20  Jim Meyering  <meyering@lucent.com>
97659
97660         * lib/xstrtol.c (strtoimax): Guard declaration with
97661         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97662         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97663         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97664         (strtoumax): Likewise, for completeness (it wasn't necessary).
97665
97666 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97667
97668         * lib/strtoimax.c (HAVE_LONG_LONG):
97669         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97670         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97671         to work around bug in IBM C compiler.
97672
97673 2001-09-17  Jim Meyering  <meyering@lucent.com>
97674
97675         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97676         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97677         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97678         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97679         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97680         whenever the right hand side need not be expanded by the shell.
97681
97682 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97683
97684         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97685         library.  It's not correct, as some older glibcs are buggy.
97686         fnmatch wasn't fixed until glibc 2.2.
97687
97688         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97689         special shell magic here.
97690
97691 2001-09-16  Jim Meyering  <meyering@lucent.com>
97692
97693         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97694         * m4/jm-macros.m4: Require it.
97695
97696 2001-09-16  Jim Meyering  <meyering@lucent.com>
97697
97698         * lib/mkdir.c: New file.
97699
97700 2001-09-15  Jim Meyering  <meyering@lucent.com>
97701
97702         * m4/jm-macros.m4: Check for help2man.
97703
97704 2001-09-11  Jim Meyering  <meyering@lucent.com>
97705
97706         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97707         The body, by Paul Eggert, was moved here from configure.in.
97708         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97709
97710 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97711
97712         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97713         (jm_PREREQ): Use it.
97714
97715 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97716
97717         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97718         Use ssize_t, not int, to store result of readlink.
97719         Check for ssize_t overflow as well as size_t overflow,
97720         as POSIX says the result of readlink is implementation-defined
97721         when ssize_t overflows.
97722         Remove unnecessary cast to char*.
97723         Use free+malloc instead of realloc, as the storage doesn't need
97724         to be preserved and it's clearer and can be more efficient that way.
97725         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97726         * lib/xreadlink.h (xreadlink): Update prototype.
97727
97728 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97729
97730         * lib/xgetcwd.c: Revert some of the previous change; intead,
97731         fix the HAVE_GETCWD_NULL code to behave more like the
97732         !HAVE_GETCWD_NULL code used to.
97733
97734         Include "xalloc.h".
97735         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97736         invoke xalloc_die.
97737
97738 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97739
97740         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97741         sys/param.h, as pathmax.h includes them.
97742
97743 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97744
97745         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97746         (jm_PREREQ_XGETCWD): New macro.
97747
97748         * m4/getcwd.m4: New file.
97749
97750 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97751
97752         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97753         like the HAVE_GETCWD_NULL code.
97754         Include pathmax.h if not HAVE_GETCWD.
97755         Do not include xalloc.h.
97756         (INITIAL_BUFFER_SIZE): New symbol.
97757         Do not use xmalloc / xrealloc, since the caller is responsible for
97758         handling errors.  Preserve errno around `free' during failure.
97759         Do not overrun buffer when using getwd.
97760
97761 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97762
97763         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97764         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97765         getcwd (NULL, 0).
97766
97767 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97768
97769         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97770         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97771         spotted by Jim Meyering.
97772
97773 2001-09-03  Jim Meyering  <meyering@lucent.com>
97774
97775         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97776         failure.
97777
97778 2001-09-02  Jim Meyering  <meyering@lucent.com>
97779
97780         * lib/error.c: Update from GNU libc.
97781
97782 2001-09-01  Jim Meyering  <meyering@lucent.com>
97783
97784         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97785         Used by df.
97786
97787 2001-09-01  Jim Meyering  <meyering@lucent.com>
97788
97789         * lib/xreadlink.c: New file.
97790         * lib/xreadlink.h: New file.
97791         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97792         xreadlink.h.
97793
97794         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97795         doesn't conflict with sparc Solaris 7's definition in
97796         /usr/include/sys/int_types.h.
97797
97798         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97799         files.
97800         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97801         and strncasecmp as r-values.  Unixware didn't have declarations.
97802
97803 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97804
97805         * lib/xstrtol.h: Add copyright notice.
97806         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97807         LONGINT_INVALID_SUFFIX_CHAR.
97808
97809 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97810
97811         * lib/xstrtol.c (strtoimax): New decl.
97812
97813 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97814
97815         * lib/xgetcwd.c: Don't include pathmax.h.
97816         Include stdlib.h and unistd.h if available.
97817         Include xalloc.h.
97818         (xmalloc, xstrdup, free): Remove decls.
97819         (xgetcwd): Don't assume sizes fit in unsigned.
97820         Check for overflow when computing sizes.
97821         Simplify reallocation code.
97822
97823 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97824
97825         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97826         a directory's st_size can have an arbitrary value, so the old
97827         usage could waste an arbitrary amount of memory.  All uses
97828         changed.
97829         * lib/savedir.h: Update prototype.
97830
97831 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97832
97833         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97834
97835         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97836         old strtoimax.c.
97837
97838         Also, make the following further changes to make this file's
97839         configuration more similar to that of strtol.c:
97840         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97841         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97842         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97843         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97844         changed to signed values.
97845
97846         And make the following changes as well:
97847         Fix copyright notice, as 1999 was missing.
97848         (verify): New macro.
97849         (strtoimax): Check sizes at compile-time, not run-time.
97850         Prefer strtol to strtoll if both work.
97851         (main): Remove; it was not that useful and was a pain to maintain.
97852
97853         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97854
97855 2001-08-31  Jim Meyering  <meyering@lucent.com>
97856
97857         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97858         Use an initial, malloc'd, buffer of length 128 rather than
97859         a statically allocated one of length 1024.
97860
97861 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97862
97863         Simplify code, partly by assuming autoconf 2.52 semantics.
97864
97865         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97866
97867         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97868         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97869         All uses removed.
97870         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97871         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97872         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97873         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97874         jm_AC_HEADER_INTTYPES_H.
97875         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97876
97877         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97878
97879         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97880         Quote first arg of AC_DEFUN.
97881         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97882         since they are needed to parse the include file even if we need
97883         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97884         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97885         but with opposite signedness.
97886
97887 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97888
97889         Merge 'exclude' changes from tar 1.13.22.
97890         This fixes one or two unlikely storage allocation overflow bugs,
97891         but doesn't change user-visible behavior otherwise.
97892
97893 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97894
97895         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97896         (jm_PREREQ_EXCLUDE): New macro.
97897
97898 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97899
97900         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97901         tm to be declared.
97902
97903 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97904
97905         * lib/hash.c: Remove '2001' from copyright notice.
97906
97907 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97908
97909         * lib/full-write.h: New file.
97910         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97911         * lib/full-write.c: Correct credits, as cccp.c no longer
97912         exists and anyway it was so heavily changed from the old cccp
97913         code as to be unrecognizable.  Include full-write.h.
97914         (full_write): Return size_t, with short writes meaning failure.
97915         All callers changed.  This fixes a bug with large buffers
97916         on 64-bit hosts.
97917         * lib/utime.c: Include full-write.h.
97918
97919 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97920
97921         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97922         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97923         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97924         Include if available.
97925         (<xalloc.h>): Include
97926         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97927         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97928         collide with FNM macros.
97929         (struct patopts): New struct.
97930         (struct exclude): Use it, as exclude patterns now come with options.
97931         (new_exclude): Support above changes.
97932         (new_exclude, add_exclude_file):
97933         Initial size must now be a power of two to simplify overflow checking.
97934         (free_exclude, fnmatch_no_wildcards): New function.
97935         (excluded_filename): No longer requires options arg, as the options
97936         are determined by add_exclude.  Now returns bool, not int.
97937         (excluded_filename, add_exclude):
97938         Add support for the fancy new exclusion options.
97939         (add_exclude, add_exclude_file): Now takes int options arg.
97940         Check for arithmetic overflow when computing sizes.
97941         (add_exclude_file): xrealloc might modify errno, so don't
97942         realloc until after errno might be used.
97943
97944         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97945         New macros.
97946         (free_exclude): New decl.
97947         (add_exclude, add_exclude_file): Now takes int options arg.
97948         (excluded_filename): No longer requires options arg, as the options
97949         are determined by add_exclude.  Now returns bool, not int.
97950
97951 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97952
97953         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97954
97955 2001-08-27  Jim Meyering  <meyering@lucent.com>
97956
97957         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97958
97959         * lib/version-etc.c (N_): Remove definition.
97960         Revert most of last change.
97961         Instead, simply don't mark the `Copyright...' string for translation.
97962         Based on advice from Paul Eggert.
97963
97964         * lib/strtoxmax.c: Tweak comment.
97965
97966 2001-08-26  Jim Meyering  <meyering@lucent.com>
97967
97968         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97969
97970         * m4/xstrtoimax.m4: New file.
97971         * m4/xstrtoumax.m4: Add comments explaining why we
97972         AC_REPLACE_FUNCS(strtol).
97973
97974 2001-08-26  Jim Meyering  <meyering@lucent.com>
97975
97976         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97977         of copyright with `%s' so translators don't get an untranslated
97978         message in 2002.
97979         (COPYRIGHT_YEAR): Define.
97980         (version_etc): Use fprintf rather than fputs.
97981         Suggestion from Ulrich Drepper.
97982
97983         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97984
97985         * lib/strtoll.c: New file, from GNU libc.
97986         * lib/xstrtoimax.c: New file.
97987
97988         * lib/xstrtol.h: Add xstrtoimax.
97989         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97990         * lib/strtoimax.c: New file.  Likewise, but first define
97991         STRTOUXMAX_SIGNED.
97992
97993         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97994         ...
97995         * lib/strtoxmax.c: ... then renamed to this.
97996
97997 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97998
97999         * m4/inttypes.m4: Add AC_PREREQ(2.13).
98000         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
98001         (jm_AC_TYPE_INTMAX_T): New macro.
98002         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
98003
98004         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
98005
98006         * m4/longlong.m4: Renamed from ulonglong.m4.
98007         * m4/inttypes.m4: Renamed from inttypes_h.m4.
98008         * m4/uintmax_t.m4: Removed.
98009
98010 2001-08-13  Paul Eggert  <eggert@twinsun.com>
98011
98012         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
98013         Port to Solaris 8, where 'sed' requires a space after the 'r'
98014         command, and where sh dislikes "$/".  Clean up the spacing a bit.
98015         Redirect output to $tmp just once.
98016
98017 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
98018
98019         * lib/addext.c (<errno.h>): Include.
98020         (errno): Declare if not defined.
98021         (addext): Work correctly when pathconf returns -1 and leaves
98022         errno alone because there is no limit.  Also, work even if
98023         pathconf returns a value greater than SIZE_MAX.
98024
98025 2001-08-12  Jim Meyering  <meyering@lucent.com>
98026
98027         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
98028         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
98029         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
98030         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
98031         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
98032         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
98033         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
98034         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
98035         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
98036         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
98037         utime.m4, utimes.m4, xstrtoumax.m4:
98038         Quote the first argument in each use of AC_DEFUN.
98039
98040 2001-08-12  Jim Meyering  <meyering@lucent.com>
98041
98042         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
98043         Simply `return getcwd (NULL, 0);'.
98044         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
98045         Use 1300 as initial value for length, not PATH_MAX.
98046
98047         * lib/pathmax.h: Clean up cpp syntax.
98048
98049 2001-08-12  Jim Meyering  <meyering@lucent.com>
98050
98051         * lib/gettimeofday.c: New file.
98052         * lib/gtod.h: New file.
98053         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
98054
98055 2001-08-05  Jim Meyering  <meyering@lucent.com>
98056
98057         * m4/jm-macros.m4: Require autoconf-2.52.
98058
98059 2001-08-04  Jim Meyering  <meyering@lucent.com>
98060
98061         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
98062         stmt, to get in sync with glibc.
98063
98064 2001-08-03  Paul Eggert  <eggert@twinsun.com>
98065
98066         The following changes are from gettext 0.10.39 as maintained by
98067         Bruno Haible.
98068
98069         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
98070         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
98071         with inverted sense.  All uses changed.
98072
98073         * lib/mbswidth.c: Don't include <limits.h>.
98074         Include <stdlib.h> and <string.h> unconditionally.
98075         (iswcntrl, mbsinit, ISCNTRL): New macros.
98076         (mbsnwidth): Use K&R style function declarations.
98077         Don't bother checking for MB_LEN_MAX == 1, since the compiler
98078         can optimize it when MB_CUR_MAX == 1.
98079         The width of control characters is zero, not 1.
98080
98081 2001-08-03  Paul Eggert  <eggert@twinsun.com>
98082
98083         The following changes are from gettext 0.10.39 as maintained by
98084         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
98085
98086         * m4/codeset.m4: Upgrade to serial AM1.
98087         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
98088         all uses changed.  Quote first arg of AC_DEFUN.
98089         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
98090
98091         * m4/iconv.m4: Upgrade to serial AM2.
98092         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
98093         Add --with-libconv-prefix.
98094         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
98095         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
98096         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
98097         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
98098         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
98099
98100         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
98101         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
98102         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
98103         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
98104         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
98105         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
98106         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
98107         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
98108         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
98109
98110         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
98111         string.h any more.
98112
98113         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
98114         not the default value.
98115
98116         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
98117         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
98118         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
98119         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
98120         Also check for iswcntrl, used for wcwidth fallback.
98121         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
98122         to Autoconf 2.13.
98123
98124 2001-08-03  Jim Meyering  <meyering@lucent.com>
98125
98126         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
98127         as it was in the original.  Reported by Paul Eggert.
98128
98129 2001-07-16  Jim Meyering  <meyering@lucent.com>
98130
98131         * m4/gettimeofday.m4: New file.
98132         Prompted by a report from Bernhard Baehr.
98133
98134 2001-07-15  Jim Meyering  <meyering@lucent.com>
98135
98136         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
98137         stuff. Now it's in ../Makefile.cfg.
98138
98139 2001-07-15  Jim Meyering  <meyering@lucent.com>
98140
98141         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
98142         (BUILT_SOURCES): Add unlocked-io.h.
98143         (io_functions): Define.
98144         (unlocked-io.h): New rule.
98145         (DISTCLEANFILES): Add unlocked-io.h.
98146         (all-local): Depend on unlocked-io.h, to ensure it is created.
98147
98148         * lib/unlocked-io.hin: New file
98149
98150         * lib/regex.c: Update from glibc.
98151
98152 2001-07-05  Jim Meyering  <meyering@lucent.com>
98153
98154         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
98155         recommendation.
98156         (libfetish_a_SOURCES): Put all .h files here instead.
98157         Remove a thus-exposed (better checks in automake) duplicate and
98158         two unnecessary .h files.
98159
98160 2001-07-04  Jim Meyering  <meyering@lucent.com>
98161
98162         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
98163         that generates jm-glibc-io.m4 so that it doesn't trigger any make
98164         distcheck failure.
98165
98166 2001-07-02  Jim Meyering  <meyering@lucent.com>
98167
98168         The following changes were prompted by suggestions from Bruno Haible.
98169
98170         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
98171         is now generated.
98172         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
98173         definition of EXTRA_DIST.
98174         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
98175         ensure that the generated file is created/updated whenever the list
98176         of $(unlocked_functions) is changed.
98177         (jm-glibc-io.m4): New rule.
98178         (unlocked-io.h): New rule -- currently unused.
98179
98180 2001-06-24  Jim Meyering  <meyering@lucent.com>
98181
98182         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
98183         unmatched right bracket, rather than kludging it with an extra,
98184         falsely-matching quote in a comment.  Patch by Akim Demaille.
98185
98186 2001-06-11  Jim Meyering  <meyering@lucent.com>
98187
98188         * lib/regex.c: Update from GNU libc.
98189
98190 2001-05-27  Jim Meyering  <meyering@lucent.com>
98191
98192         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
98193         Check for ut_type in struct utmp.
98194
98195 2001-05-27  Jim Meyering  <meyering@lucent.com>
98196
98197         * lib/readutmp.h (UT_TYPE): Define.
98198
98199 2001-05-24  Jim Meyering  <meyering@lucent.com>
98200
98201         * lib/argmatch.c: Include "quote.h".
98202         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
98203         quote function.  Reported by Göran Uddeborg.
98204
98205 2001-05-22  Jim Meyering  <meyering@lucent.com>
98206
98207         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
98208         now that we use the package-supplied version unconditionally.
98209         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
98210
98211 2001-05-21  Jim Meyering  <meyering@lucent.com>
98212
98213         * m4/regex.m4: Change a couple backticks to single quotes to avoid
98214         shell syntax errors.
98215
98216 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98217
98218         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
98219
98220 2001-05-20  Paul Eggert  <eggert@twinsun.com>
98221
98222         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
98223         Don't bother to check library strftime, since
98224         we'll be using our own my_strftime function anyway.
98225         Define my_strftime instead of strftime.
98226
98227 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
98228
98229         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
98230         which is not yet declared.
98231
98232 2001-05-15  Jim Meyering  <meyering@lucent.com>
98233
98234         * m4/regex.m4: Use proper quoting so brackets appear in the test
98235         program.
98236         Reported by, and with help from, Bruno Haible.
98237
98238 2001-05-13  Jim Meyering  <meyering@lucent.com>
98239
98240         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
98241         undefined.
98242
98243 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98244
98245         dirname code cleanup.  base_name now behaves more compatibly
98246         with POSIX basename when given file names that have trailing
98247         slashes, and similarly for dir_name.  Add new primitives
98248         base_len and dir_len.  Put the directory-name-related decls
98249         into dirname.h.
98250
98251         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
98252         * lib/backupfile.c (base_name): Likewise.
98253         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
98254         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
98255         * lib/makepath.c (strip_trailing_slashes): Likewise.
98256         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
98257         ISSLASH): Likewise.
98258         * lib/rename.c (strip_trailing_slashes): Likewise.
98259         * lib/same.c (base_name): Likewise.
98260         * lib/stripslash.c (ISSLASH): Likewise.
98261
98262         * lib/addext.c: Include <dirname.h> after size_t is defined.
98263         * lib/backupfile.c: Likewise.
98264
98265         * lib/addext.c (addext): Use base_len to trim redundant
98266         trailing slashes instead of doing it ourselves.
98267         But do not trim the last slash if it is not redundant.
98268
98269         * lib/backupfile.c (find_backup_file_name,
98270         max_backup_version): Use base_len instead of rolling it ourselves.
98271         Handle the case of "" and (on DOS) "C:" correctly.
98272
98273         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
98274         needed. Include <string.h>, <dirname.h>.
98275         (base_name): Allow file names ending in slashes, other than names
98276         that are all slashes.  In this case, return the basename followed
98277         by the slashes.  This is more general, and can be used in places
98278         where the original base_name purposely had an assertion failure.
98279         (base_len): New function.
98280
98281         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
98282         Do not include <assert.h>; no longer needed.
98283         Include xalloc.h.
98284         (memrchr): Remove decl.
98285         (dir_name_r): Remove.
98286         (dir_len): Renamed from dirlen.  All callers changed.
98287         Rewrite in terms of base_name, for simplicity and consistency.
98288         (dir_name): Never return NULL.  All callers changed.
98289         Do not include <stdlib.h> in test program; no longer needed.
98290         return 0; is fine for test program.
98291
98292         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
98293         New macros.
98294         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
98295
98296         * lib/path-concat.c (path_concat): Use base_len to compute
98297         base length, not strlen; this means we cannot rely on memcpy
98298         to null-terminate.
98299
98300         * lib/same.c (STREQ): Remove.
98301         (same_name): Handle the case where the basename ends in trailing '/'.
98302
98303         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
98304         a slash was stripped.  Do not strip the last slash after a
98305         file system prefix.
98306
98307 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98308
98309         * lib/Makefile.am (libfetish_a_SOURCES):
98310         Add strftime.c, since we now compile it on all hosts.
98311
98312         * lib/strftime.c (my_strftime):
98313         Define to nstrftime if emacs, but only if my_strftime is not defined.
98314         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
98315         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
98316         Add one more extra argument: a nanoseconds value.
98317         All uses changed.
98318         (ns): New macro.
98319         (my_strftime function): Add %N format.
98320         (emacs_strftimeu): Renamed from emacs_strftime,
98321         with extra ut argument.
98322
98323 2001-05-09  Paul Eggert  <eggert@twinsun.com>
98324
98325         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
98326
98327 2001-04-21  Jim Meyering  <meyering@lucent.com>
98328
98329         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
98330         doesn't interfere.
98331
98332 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98333
98334         * m4/ftruncate.m4: Check for chsize.
98335         Link with ftruncate.o unconditionally if ftruncate is missing.
98336         This was required when cross-compiling to i586-mingw32msvc.
98337
98338 2001-04-08  Jim Meyering  <meyering@lucent.com>
98339
98340         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
98341         recomputed; that's necessary when the offset spans a DST transition.
98342         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
98343
98344 2001-04-02  Jim Meyering  <meyering@lucent.com>
98345
98346         * lib/regex.h, regex.c: Update from GNU libc.
98347
98348 2001-03-24  Jim Meyering  <meyering@lucent.com>
98349
98350         * m4/jm-macros.m4: Require autoconf-2.49d.
98351
98352 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
98353
98354         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
98355
98356 2001-03-19  Paul Eggert  <eggert@twinsun.com>
98357
98358         * lib/version-etc.c (version_etc_copyright): Update to 2001.
98359
98360 2001-03-17  Jim Meyering  <meyering@lucent.com>
98361
98362         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
98363         now that the version in autoconf is equivalent.
98364         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
98365
98366         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
98367         Suggestion from Akim Demaille.
98368
98369         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
98370         (jm_PREREQ_TEMPNAME): New function.
98371
98372 2001-03-16  Paul Eggert  <eggert@twinsun.com>
98373
98374         * lib/tempname.c (uint64_t): Define to uintmax_t if
98375         not defined, and if UINT64_MAX is not defined.
98376         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
98377         Reported by John David Anglin.
98378
98379 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
98380
98381         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
98382         resolve alias if codeset is empty.
98383         * lib/config.charset (BeOS): Use wildcard syntax.
98384
98385 2001-03-13  Jim Meyering  <meyering@lucent.com>
98386
98387         * lib/path-concat.c (path_concat)
98388         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
98389         concatenating e.g., `C:' and `foo'.
98390         From Bruno Haible.
98391
98392 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98393
98394         * lib/localcharset.c (locale_charset): Don't use
98395         setlocale(LC_CTYPE,NULL). Don't return NULL.
98396         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
98397
98398 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98399
98400         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
98401         support for DOS/DJGPP.
98402
98403 2001-03-01  Paul Eggert  <eggert@twinsun.com>
98404
98405         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
98406         lacks mkstemp.  Compile our own tempname.c if we compile our own
98407         mkstemp.c, as mkstemp relies on tempname.
98408
98409 2001-03-01  Jim Meyering  <meyering@lucent.com>
98410
98411         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
98412         AH_VERBATIM really does output its argument verbatim.
98413
98414 2001-02-28  Paul Eggert  <eggert@twinsun.com>
98415
98416         * lib/Makefile.am (libfetish_a_SOURCES):
98417         Add dup-safer.c, fopen-safer.c.
98418         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
98419
98420         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
98421         * lib/unistd-safer.h: New files.
98422
98423 2001-02-25  Paul Eggert  <eggert@twinsun.com>
98424
98425         The mkstemp replacement is taken from glibc 2.2.2, with some
98426         portability fixes for use outside glibc, as follows:
98427
98428         * lib/tempname.c (struct_stat64): New macro.
98429         (direxists, __gen_tempname): Use it.
98430         This avoids a portability problem with Solaris 8.
98431
98432         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
98433         (<stddef.h>, <stdint.h>, <string.h>):
98434         Include only if STDC_HEADERS || _LIBC.
98435         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
98436         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
98437         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
98438         (__set_errno): Define this macro if <errno.h> doesn't.
98439         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
98440         Define these macros if <stdio.h> doesn't.
98441         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
98442         Define these macros if <sys/stat.h>
98443         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
98444         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
98445         __xstat64): Define if not _LIBC.
98446         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
98447         (__gen_tempname): Invoke gettimeofday only if
98448         HAVE_GETTIMEOFDAY || _LIBC;
98449         otherwise, fall back on plain "time".
98450         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
98451
98452         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
98453
98454         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
98455
98456 2001-02-18  Paul Eggert  <eggert@twinsun.com>
98457
98458         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
98459
98460 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98461
98462         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
98463         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
98464         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
98465         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
98466
98467 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98468
98469         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
98470         Remove workaround macros for hosts that have mbrtowc but not
98471         mbstate_t, as we now insist on proper declarations for both
98472         before using mbrtowc.
98473
98474 2001-02-17  Jim Meyering  <meyering@lucent.com>
98475
98476         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
98477         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
98478         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
98479         UnixWare 7.1.1.
98480
98481         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
98482         rather than AC_CACHE_VAL.
98483
98484 2001-02-17  Jim Meyering  <meyering@lucent.com>
98485
98486         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
98487         around included file name.
98488
98489         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
98490
98491         * lib/strftime.c: Update from GNU libc (the only changes were to
98492         comments).
98493
98494 2001-02-17  Jim Meyering  <meyering@lucent.com>
98495
98496         * lib/regex.c: Update from libc.
98497
98498 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
98499
98500         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
98501         clash.
98502
98503 2001-02-16  Paul Eggert  <eggert@twinsun.com>
98504
98505         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98506         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98507         Reported by Mark Hounschell via Paul Eggert.
98508
98509 2001-02-07  Jim Meyering  <meyering@lucent.com>
98510
98511         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98512
98513 2001-02-05  Jim Meyering  <meyering@lucent.com>
98514
98515         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98516         it includes the patch required for `large file' support with at least
98517         HP-UX's 10.20 /bin/cc.
98518
98519 2001-02-03  Jim Meyering  <meyering@lucent.com>
98520
98521         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98522         AS_IF, now that it works once again (mysteriously).
98523         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98524
98525 2001-01-30  Jim Meyering  <meyering@lucent.com>
98526
98527         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98528         * m4/chown.m4: Rename conftestchown to conftest.chown.
98529         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98530         s/conftestdir2/conftest.d2/.
98531         * m4/utimes.m4: s/conftestdata/conftest.data/
98532         Inspired by Pavel Roskin's change in autoconf.
98533
98534 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98535
98536         * lib/config.charset: Update for FreeBSD 4.2.
98537
98538 2001-01-27  Jim Meyering  <meyering@lucent.com>
98539
98540         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98541         a use of AS_IF.
98542         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98543
98544 2001-01-26  Jim Meyering  <meyering@lucent.com>
98545
98546         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98547         quotearg.c includes it.
98548
98549 2001-01-26  Jim Meyering  <meyering@lucent.com>
98550
98551         * lib/quotearg.c: Include stddef.h.
98552         * lib/quote.c: Include stddef.h.
98553         Reported by Axel Kittenberger.
98554
98555         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98556         line in double quotes so that it evokes a better diagnostic.
98557         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98558         Reported by Axel Kittenberger.
98559
98560 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98561
98562         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98563         as if it was a `charset'.
98564
98565 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98566
98567         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98568         has const.
98569
98570 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98571
98572         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98573         to avoid a warning.  Add back 'const' to inptr.
98574
98575 2001-01-20  Jim Meyering  <meyering@lucent.com>
98576
98577         Be sure that headers are checked before used in code compiled
98578         for the type checks.
98579         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98580         In place of that, invoke jm_CHECK_ALL_TYPES.
98581         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98582         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98583         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98584         The check for ssize_t was mistakenly run before the test for unistd.h.
98585
98586         The configure-time check for stdbool.h was missing.
98587         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98588         (jm_PREREQ_HASH): New function.
98589
98590 2001-01-17  Jim Meyering  <meyering@lucent.com>
98591
98592         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98593         for autoconf-2.49c.
98594         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98595
98596 2001-01-16  Jim Meyering  <meyering@lucent.com>
98597
98598         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98599         From Bruno Haible.
98600
98601 2001-01-14  Jim Meyering  <meyering@lucent.com>
98602
98603         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98604         foo and bar.  Create conftestdir/ in the script, not in the C code.
98605         Remove directories in the script, not in the C code.
98606         Remove conftestdir{,2} before trying to create the directory.
98607         Make the entire configure script fail if the mkdir fails.
98608
98609 2001-01-14  Jim Meyering  <meyering@lucent.com>
98610
98611         * lib/rename.c: New file.  From Volker Borchert.
98612         Include stdlib.h, string.h or strings.h, and xalloc.h.
98613         Use strip_trailing_slashes rather than open-coding it.
98614
98615 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98616
98617         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98618
98619 2001-01-03  Jim Meyering  <meyering@lucent.com>
98620
98621         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98622         of local `inptr' to avoid warning with some system declarations of
98623         iconv.
98624
98625 2001-01-02  Volker Borchert  <bt@teknon.de>
98626
98627         * m4/rename.m4: New file.
98628         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98629
98630 2001-01-01  Jim Meyering  <meyering@lucent.com>
98631
98632         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98633         even on systems with utmpx.h.  It's necessary for the declaration of
98634         utmp's ut_user member.  Reported by Andreas Jaeger.
98635
98636         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98637         available. They are required for the declarations of getgrgid and
98638         getpwuid resp.
98639         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98640         Reported by Andreas Jaeger.
98641
98642 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98643
98644         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98645         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98646         so `make install' also works in VPATH builds.
98647
98648 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98649
98650         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98651         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98652         can be used in subdirectories.
98653
98654 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98655
98656         * lib/modechange.c: Do not assume that mode_t uses the
98657         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98658         the other-execute bit of FOO even if S_IXOTH != 1.
98659
98660         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98661         WOTH, XOTH, ALLM): New macros.
98662         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98663          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98664         Use them.
98665         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98666         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98667         (mode_compile):
98668         No need to use uintmax_t; unsigned long is long enough.
98669         Don't bother to get suffix since we don't use it.
98670
98671 2000-12-26  Jim Meyering  <meyering@lucent.com>
98672
98673         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98674         better with autoheader.
98675
98676 2000-12-24  Jim Meyering  <meyering@lucent.com>
98677
98678         * lib/hash.c (is_prime): Return explicit boolean values.
98679         (hash_get_first): Return NULL to appease Irix5.6's 89.
98680         Reported by Nelson Beebe.
98681
98682 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98683
98684         * lib/localcharset.c (locale_charset): Add support for Win32.
98685
98686 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98687
98688         * lib/physmem.h, lib/physmem.c: New files.
98689
98690         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98691         (noinst_HEADERS): Add physmem.h.
98692
98693         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98694         't' for compatibility with Solaris 8 sort.
98695
98696 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98697
98698         * lib/config.charset: Add support for BeOS.
98699
98700 2000-12-17  Jim Meyering  <meyering@lucent.com>
98701
98702         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98703         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98704
98705 2000-12-16  Jim Meyering  <meyering@lucent.com>
98706
98707         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98708         N and M) would have treated it like `chown N:N FILE'.
98709
98710         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98711
98712 2000-12-16  Jim Meyering  <meyering@lucent.com>
98713
98714         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98715         SHELLS_FILE to a file name that's useful on djgpp systems.
98716         Include stdlib.h.
98717         (ADDITIONAL_DEFAULT_SHELLS): Define.
98718         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98719         Based mostly on a patch from Prashant TR.
98720
98721 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98722
98723         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98724         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98725         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98726
98727 2000-12-08  Andreas Schwab  <schwab@suse.de>
98728
98729         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98730         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98731
98732 2000-12-07  Jim Meyering  <meyering@lucent.com>
98733
98734         * lib/stripslash.c (ISSLASH): Define.
98735         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98736         `/'.
98737         From Prashant TR.
98738
98739         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98740         (dir_name_r): Declare this function as static.
98741         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98742         manifest itself on a name containing a mix of slashes and
98743         backslashes.
98744         Make this function work with names starting with a DOS-style
98745         drive letter and colon prefix.
98746         (dir_name): Append `.' if necessary.
98747         Based mostly on patches from Prashant TR and Eli Zaretskii.
98748
98749         * lib/dirname.h (dir_name_r): Remove prototype.
98750
98751 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98752
98753         * m4/off_t-format.m4: Remove this file.
98754         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98755
98756 2000-12-06  Jim Meyering  <meyering@lucent.com>
98757
98758         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98759         replacement strtoull, we may well need the replacement strtoul, too.
98760         Check for declarations of strtoul and strtoull.
98761         Check for strtol.  Mainly as a cue to cause automake to include
98762         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98763         Check for limits.h -- strtol.c needs it.
98764
98765 2000-12-05  Jim Meyering  <meyering@lucent.com>
98766
98767         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98768
98769 2000-12-04  Jim Meyering  <meyering@lucent.com>
98770
98771         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98772         Also include memory.h, stdlib.h, unistd.h if appropriate.
98773         Reported by Andreas Jaeger (conflicting declaration of malloc).
98774
98775 2000-12-02  Jim Meyering  <meyering@lucent.com>
98776
98777         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98778         * m4/jm-macros.m4 (jm_MACROS): require it.
98779
98780 2000-12-02  Jim Meyering  <meyering@lucent.com>
98781
98782         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98783
98784 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98785
98786         * lib/memrchr.c: Include <config.h> before any system include file.
98787
98788 2000-11-30  Jim Meyering  <meyering@lucent.com>
98789
98790         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98791
98792 2000-11-30  Jim Meyering  <meyering@lucent.com>
98793
98794         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98795
98796 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98797
98798         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98799
98800 2000-11-26  Jim Meyering  <meyering@lucent.com>
98801
98802         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98803
98804 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98805
98806         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98807         size of (size_t) -1; it's not portable.
98808
98809 2000-11-17  Jim Meyering  <meyering@lucent.com>
98810
98811         * lib/strstr.c: Update from GNU libc.
98812
98813 2000-11-17  Akim Demaille  <akim@epita.fr>
98814
98815         * lib/obstack.h: Formatting changes.
98816         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98817         prevent type checking.
98818         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98819         cast the value to (void *): assigning a `foo *' to a `void *'
98820         variable is valid.
98821         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98822
98823 2000-11-16  Jim Meyering  <meyering@lucent.com>
98824
98825         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98826
98827 2000-11-11  Jim Meyering  <meyering@lucent.com>
98828
98829         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98830
98831 2000-11-10  Jim Meyering  <meyering@lucent.com>
98832
98833         * lib/obstack.h: Update from GNU libc.
98834         * lib/obstack.c: Likewise.
98835
98836 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98837
98838         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98839
98840 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98841
98842         * lib/getusershell.c (setusershell): Use rewind rather than
98843         fseek/fseeko, to avoid configuration hassles with fseeko.
98844         Don't bother opening SHELLS_FILE if shellstream is NULL;
98845         it's not necessary.
98846
98847 2000-11-05  Jim Meyering  <meyering@lucent.com>
98848
98849         * lib/makepath.h (make_dir): Declare.
98850         * lib/makepath.c (make_dir): Remove `static' attribute.
98851         Tweak a comment.
98852
98853 2000-11-04  Jim Meyering  <meyering@lucent.com>
98854
98855         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98856
98857 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98858
98859         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98860         last one in a bucket, advance to the next bucket.
98861
98862 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98863
98864         * lib/fnmatch.c: Do not comment out all the code if we are using
98865         the GNU C library, because in some cases we are replacing buggy
98866         code in the GNU C library itself.
98867
98868 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98869
98870         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98871         (regex_compile): Catch bogus \(\1\).
98872
98873 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98874
98875         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98876         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98877         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98878
98879 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98880
98881         * lib/error.h, getline.h, modechange.h:
98882         Remove "2000" from Copyright line, as the file hasn't been
98883         changed this year other than in the copyright notice.
98884
98885         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98886         was changed this year.
98887
98888 2000-10-29  Jim Meyering  <meyering@lucent.com>
98889
98890         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98891         renaming.
98892         * m4/ls-mntd-fs.m4: Likewise
98893
98894 2000-10-29  Jim Meyering  <meyering@lucent.com>
98895
98896         * lib/xstat.in: Fix grammar in comment.
98897
98898 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98899
98900         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98901         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98902         doesn't define __restrict_arr.
98903
98904 2000-10-28  Jim Meyering  <meyering@lucent.com>
98905
98906         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98907         (jm_PREREQ_MEMCHR): New function.
98908
98909 2000-10-28  Jim Meyering  <meyering@lucent.com>
98910
98911         * lib/memchr.c: Update from libc.
98912         Adjust for portability:
98913         [HAVE_STDLIB_H]: Include stdlib.h.
98914         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98915         Undef __memchr, too.
98916         [!weak_alias]: Define __memchr to memchr.
98917
98918         * lib/regex.c: Update from libc.
98919         * lib/regex.h: Likewise.
98920         * lib/getopt1.c: Likewise.
98921         * lib/memcmp.c: Likewise.
98922
98923         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98924         Avoid using fseek, when possible -- it's broken by design.
98925         Patch by Ulrich Drepper.
98926
98927 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98928
98929         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98930         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98931         Giving in to popular pressure to shut up the compiler with casts.
98932
98933 2000-10-26  Jim Meyering  <meyering@lucent.com>
98934
98935         * lib/strftime.c: Update from libc.
98936
98937 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98938
98939         * regex.c: More `unsigned char' -> `re_char' changes.
98940         Also change several `int' into `re_wchar_t'.
98941         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98942         (PUSH_FAILURE_POINTER): Don't cast any more.
98943         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98944         We want GCC to complain, since this piece of code makes
98945         re_match non-reentrant, which *should* be fixed.
98946         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98947         (EXTEND_BUFFER): Use RETALLOC.
98948         (SET_LIST_BIT): Don't cast.
98949         (re_wchar_t): New type.
98950         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98951         that those two functions will always properly return.
98952         (IMMEDIATE_QUIT_CHECK): Cast to void.
98953         (analyse_first): Use recursion rather than an explicit stack.
98954         (re_compile_fastmap): Can't fail anymore.
98955         (re_search_2): Don't check re_compile_fastmap for failure.
98956         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98957         Now also sets the new value (passed in a new argument).
98958         (re_match_2_internal): Use it.
98959         Also, use a new var `reg' of type size_t when looping through regs
98960         rather than reuse the inappropriate `mcnt'.
98961
98962 2000-10-25  Jim Meyering  <meyering@lucent.com>
98963
98964         * lib/obstack.c: Update from libc.
98965
98966 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98967
98968         * regex.c (regex_compile): Change the way of handling a range from
98969         a char less than 256 to a char not less than 256.
98970
98971 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98972
98973         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98974         NT-Emacs only.
98975         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98976         so that re_search functions only quit when callers expect them to.
98977
98978 2000-10-23  Jim Meyering  <meyering@lucent.com>
98979
98980         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98981         wrong.  That set_locale call must not have any side effects.
98982         From Paul Eggert.
98983
98984 2000-10-22  Jim Meyering  <meyering@lucent.com>
98985
98986         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98987         [CYCLIC]: Remove now-unused definition.
98988
98989         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98990         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98991         Suggestion from Ulrich Drepper.
98992
98993 2000-10-21  Jim Meyering  <meyering@lucent.com>
98994
98995         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98996         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98997         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98998
98999 2000-10-21  Jim Meyering  <meyering@lucent.com>
99000
99001         * lib/dirname.c (memrchr): Declare if necessary.
99002         (dir_name): Remove the restriction that there be no
99003         trailing slashes.  Now, this code skips past them, effectively
99004         ignoring them.
99005         [TEST_DIRNAME] (main): New unit tests.
99006
99007         * lib/memrchr.c: New file from GNU libc.
99008         Undef __memrchr, too.
99009         [!weak_alias]: Define __memrchr to memrchr.
99010         Guard weak_alias use with `#ifdef weak_alias'.
99011
99012 2000-10-21  Jim Meyering  <meyering@lucent.com>
99013
99014         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
99015         (dir_name): Use dir_name_r.
99016         * lib/dirname.h (dir_name_r): Declare it.
99017
99018 2000-10-17  Jim Meyering  <meyering@lucent.com>
99019
99020         * lib/quote.h (PARAMS): Define and use.
99021         Reported by Akim Demaille.
99022
99023         * lib/getopt.c: Update from libc.
99024
99025 2000-10-16  Jim Meyering  <meyering@lucent.com>
99026
99027         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
99028         setlocale.
99029         From Jan Fedak.
99030
99031 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
99032
99033         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
99034
99035 2000-09-25  Jim Meyering  <meyering@lucent.com>
99036
99037         * lib/md5.h (rol): Define (from GnuPG).
99038
99039         * lib/sha.c: Give credit (GnuPG) where due.
99040         (M): Use rol rather than open-coding it.
99041         Add a FIXME comment.
99042
99043 2000-09-21  Jim Meyering  <meyering@lucent.com>
99044
99045         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
99046         Reported by Michael Stone.
99047
99048 2000-09-20  Jim Meyering  <meyering@lucent.com>
99049
99050         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
99051         (noinst_HEADERS): Add sha.h.
99052         Based on code from Scott G. Miller and from GnuPG.
99053
99054 2000-09-18  Jim Meyering  <meyering@lucent.com>
99055
99056         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
99057         LIBS. Otherwise, everyone ends up linking with -lelf for some
99058         configurations.
99059         Reported by Mike Stone.
99060
99061 2000-09-15  Jim Meyering  <meyering@lucent.com>
99062
99063         * lib/regex.c: Update from libc.
99064
99065 2000-09-10  Jim Meyering  <meyering@lucent.com>
99066
99067         * lib/getopt.c (_getopt_internal): Update from glibc.
99068
99069 2000-09-09  Jim Meyering  <meyering@lucent.com>
99070
99071         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
99072         think it should be used as a general replacement for isascii.
99073         * lib/fnmatch.c: Likewise.
99074         * lib/mbswidth.c: Likewise
99075         * lib/regex.c: Likewise.
99076
99077         Don't use atoi.
99078         * lib/userspec.c: Include sys/param.h and limits.h.
99079         Include xstrtol.h.
99080         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
99081         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
99082         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
99083         UID, GID.  Check range.
99084
99085 2000-09-06  Jim Meyering  <meyering@lucent.com>
99086
99087         * lib/getopt.c (_getopt_internal): Update from glibc.
99088
99089 2000-08-30  Jim Meyering  <meyering@lucent.com>
99090
99091         * lib/strftime.c: Merge in changes from GNU libc.
99092
99093 2000-08-26  Jim Meyering  <meyering@lucent.com>
99094
99095         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
99096         * m4/fpending.m4: New file.
99097
99098 2000-08-26  Jim Meyering  <meyering@lucent.com>
99099
99100         * lib/closeout.c: Include "__fpending.h".
99101         (close_stdout_status): Return right away if there's nothing to flush.
99102
99103         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
99104         * lib/__fpending.c: New file.
99105         * lib/__fpending.h: New file.
99106
99107 2000-08-20  Jim Meyering  <meyering@lucent.com>
99108
99109         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
99110         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
99111         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
99112
99113 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
99114
99115         Improve fileutils installation on systems where running
99116         programs (like install) can't be unlinked.
99117         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
99118         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
99119
99120 2000-08-07  Paul Eggert  <eggert@twinsun.com>
99121
99122         Standardize on "memory exhausted" instead of "Memory exhausted"
99123         or "virtual memory exhausted".
99124         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
99125         "virtual memory exhausted".
99126         * lib/same.c (same_name): Invoke xalloc_die instead of printing
99127         our own message.
99128         * lib/userspec.c (parse_user_spec): Likewise.
99129         * lib/bumpalloc.h: comment fix
99130         * lib/same.c, userspec.c: Include xalloc.h.
99131
99132         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
99133         not char *const and pointing to a constant array.
99134         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
99135         (xrealloc): Comment fix.
99136
99137         * lib/userspec.c (parse_user_spec):
99138         Don't translate a message until just before returning,
99139         to avoid unnecessary translation.
99140
99141 2000-08-07  Jim Meyering  <meyering@lucent.com>
99142
99143         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
99144         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
99145         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
99146         getgroups.c, gethostname.c, getopt.h, group-member.c,
99147         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
99148         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
99149         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
99150         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
99151         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
99152         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
99153         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
99154         yesno.c: Back out Copyright date changes for each file with no change
99155         this year.  This eases coordination with other programs using the same
99156         source code modules.  From Paul Eggert.
99157
99158 2000-08-06  Paul Eggert  <eggert@twinsun.com>
99159
99160         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
99161         not char, for compatibility with glibc 2.1.3 strftime.c.
99162
99163 2000-08-03  Greg McGary  <greg@mcgary.org>
99164
99165         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
99166         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
99167         (EXTEND_BUFFER): Use them.
99168
99169 2000-08-01  Jim Meyering  <meyering@lucent.com>
99170
99171         * lib/dirname.c (ISSLASH): Define.
99172         (BACKSLASH_IS_PATH_SEPARATOR): Define.
99173         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
99174         both `\' and `/' may be use as path separators.
99175         Based on a patch from Prashant TR.
99176
99177 2000-07-31  Paul Eggert  <eggert@twinsun.com>
99178
99179         * lib/quotearg.c (quotearg_n_options): Don't make the initial
99180         slot vector a constant, since it might get modified.
99181
99182 2000-07-31  Jim Meyering  <meyering@lucent.com>
99183
99184         * lib/xmalloc.c: Use `virtual memory exhausted', not
99185         `Memory exhausted'.
99186         * lib/obstack.c (print_and_abort): Likewise.
99187
99188 2000-07-30  Paul Eggert  <eggert@twinsun.com>
99189
99190         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
99191         buffer, so that the caller can always quote one small
99192         component of a "memory exhausted" message in slot 0.
99193         From a suggestion by Jim Meyering.
99194
99195 2000-07-30  Jim Meyering  <meyering@lucent.com>
99196
99197         * lib/makepath.c (make_path): Quote the other instance, too.
99198
99199         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
99200         (STATIC_BUF_SIZE): Define.
99201         (quotearg_n_options): Use only statically allocated storage when
99202         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
99203         than STATIC_BUF_SIZE.
99204
99205 2000-07-29  Jim Meyering  <meyering@lucent.com>
99206
99207         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
99208         * lib/dirname.c (dir_name): Likewise.
99209
99210         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
99211         `/'.
99212
99213         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
99214         (dir_name): Assert that there are no trailing slashes.
99215
99216 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
99217
99218         * lib/mbswidth.h (mbswidth): Add a flags argument.
99219         (mbswidth): New declaration.
99220         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
99221         * lib/mbswidth.c (mbswidth): Add a flags argument.
99222         (mbsnwidth): New function.
99223
99224 2000-07-24  Jim Meyering  <meyering@lucent.com>
99225
99226         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
99227
99228 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99229
99230         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
99231
99232 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99233
99234         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
99235         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
99236         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
99237         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
99238         invoke multibyte primitives.
99239
99240 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99241
99242         * lib/quotearg.c:
99243         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
99244         so that mbstate_t is always defined.
99245
99246         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
99247         be 1 in at least one GCC installation, and this configuration
99248         error is likely to be common.  Ignoring MB_LEN_MAX hurts
99249         performance on hosts that have mbrtowc but have only unibyte
99250         locales, but I assume these hosts are rare.
99251
99252 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99253
99254         * lib/mbswidth.c (_XOPEN_SOURCE):
99255         Don't define; this causes problems on Solaris 7.
99256         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
99257
99258 2000-07-23  Jim Meyering  <meyering@lucent.com>
99259
99260         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
99261         too: getgrgid, getpwuid, getuid.
99262
99263 2000-07-23  Jim Meyering  <meyering@lucent.com>
99264
99265         * lib/basename.c (base_name): Add an assertion.
99266
99267 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
99268
99269         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
99270         shadow its mbsinit function.
99271
99272 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99273
99274         * lib/mbswidth.h: New file.
99275         * lib/mbswidth.c: New file.
99276         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
99277         (noinst_HEADERS): Add mbswidth.h.
99278
99279 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99280
99281         * lib/config.charset: Add support for FreeBSD. Improve support for
99282         HP-UX and IRIX 6.
99283
99284 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
99285
99286         * m4/mbswidth.m4: New file.
99287         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
99288
99289 2000-07-15  Jim Meyering  <meyering@lucent.com>
99290
99291         * lib/makepath.c: Include quote.h.
99292         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
99293         corresponding argument in a `quote (...)' call.
99294         Give better diagnostics.
99295
99296         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
99297         (noinst_HEADERS): Add quote.h.
99298
99299         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
99300         from tar's src/misc.c.
99301         * lib/quote.h: New file.  Prototypes for same.
99302
99303 2000-07-14  Paul Eggert  <eggert@twinsun.com>
99304
99305         From a suggestion by Bruno Haible.
99306         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
99307         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
99308         to decide whether to define the BeOS workaround macro;
99309         this adjusts to the change to AC_MBSTATE_T.
99310
99311 2000-07-14  Jim Meyering  <meyering@lucent.com>
99312
99313         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
99314         jm_AC_TYPE_UINTMAX_T.
99315
99316 2000-07-13  Paul Eggert  <eggert@twinsun.com>
99317
99318         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
99319
99320         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
99321         quotearg_buffer_restyled): Add support for
99322         clocale_quoting_style.  Undo previous change to
99323         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
99324         and "{RIGHT QUOTATION MARK}" msgids.
99325
99326 2000-07-10  Paul Eggert  <eggert@twinsun.com>
99327
99328         From a suggestion by Bruno Haible.
99329         * m4/mbstate_t.m4 (AC_MBSTATE_T):
99330         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
99331         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
99332         and mbstate_t, to a single-part test that simply defines mbstate_t.
99333         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
99334         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
99335
99336 2000-07-10  Jim Meyering  <meyering@lucent.com>
99337
99338         * m4/strerror_r.m4: Mirror the correction made in autoconf.
99339
99340         * m4/gnu-source.m4: Output to confdefs.h directly.
99341         Suggestion from Akim Demaille.
99342
99343 2000-07-09  Paul Eggert  <eggert@twinsun.com>
99344
99345         The old behavior of quoting `like this' doesn't look good with
99346         newer, ISO-style fonts.  See:
99347         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
99348
99349         Instead, quote "like this" by default.  Let the translator
99350         tailor the locale-specific quoting behavior by providing
99351         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
99352
99353         * lib/quotearg.c (N_): New macro.
99354         (gettext_default): New function.
99355         (quotearg_buffer_restyled): Use
99356         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
99357         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
99358
99359 2000-07-09  Jim Meyering  <meyering@lucent.com>
99360
99361         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
99362         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
99363
99364         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
99365         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
99366
99367 2000-07-09  Jim Meyering  <meyering@lucent.com>
99368
99369         * lib/Most files: Update copyright dates to include 2000.
99370
99371 2000-07-08  Jim Meyering  <meyering@lucent.com>
99372
99373         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
99374         if not defined.
99375         (xgethostname): Remove now-unnecessary #ifdef.
99376         Move declaration of `err' into loop where it's used.
99377
99378 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99379         and Bruno Haible  <haible@clisp.cons.org>
99380
99381         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
99382         only if the test for an object-type mbstate_t fails.  This
99383         prevents us from mistakenly reporting that mbstate_t is a
99384         system object type after we "#define mbstate_t int" to work
99385         around its lack.
99386
99387 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99388         and Bruno Haible  <haible@clisp.cons.org>
99389
99390         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
99391
99392 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99393
99394         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
99395         to strerror_r.
99396         Include <ctype.h> for use of isalpha.
99397
99398 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99399
99400         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
99401         by allocating a larger buffer. Test the gethostname return value for
99402         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
99403         returns an error and ENAMETOOLONG isn't defined.
99404
99405 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99406
99407         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
99408         dimension.
99409
99410 2000-07-04  Jim Meyering  <meyering@lucent.com>
99411
99412         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
99413         of the deprecated AC_CHECKING.
99414
99415 2000-07-04  Jim Meyering  <meyering@lucent.com>
99416
99417         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
99418         Reported by Bruno Haible.
99419
99420 2000-07-04  Jim Meyering  <meyering@lucent.com>
99421
99422         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
99423         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
99424         lacks mbrtowc.
99425
99426 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99427
99428         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
99429         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
99430
99431 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99432         and Bruno Haible  <haible@clisp.cons.org>
99433
99434         * lib/quotearg.c (mbrtowc):
99435         Assign to *pwc, and return 1 only if result is nonzero.
99436         (iswprint): Use ISPRINT when substituting our own mbrtowc.
99437
99438 2000-07-03  Jim Meyering  <meyering@lucent.com>
99439
99440         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
99441
99442 2000-07-03  Jim Meyering  <meyering@lucent.com>
99443
99444         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
99445         This is necessary to get a definition of e.g., UTMP_FILE on
99446         HP-UX 10.20.
99447         From Bob Proulx.
99448
99449 2000-07-02  Jim Meyering  <meyering@lucent.com>
99450
99451         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
99452
99453         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
99454         AC_LIBOBJ(function_name).
99455         * m4/chown.m4: Likewise.
99456         * m4/fnmatch.m4: Likewise.
99457         * m4/ftruncate.m4: Likewise.
99458         * m4/getgroups.m4: Likewise.
99459         * m4/getline.m4: Likewise.
99460         * m4/group-member.m4: Likewise.
99461         * m4/jm-macros.m4: Likewise.
99462         * m4/lstat.m4: Likewise.
99463         * m4/malloc.m4: Likewise.
99464         * m4/memcmp.m4: Likewise.
99465         * m4/nanosleep.m4: Likewise.
99466         * m4/putenv.m4: Likewise.
99467         * m4/realloc.m4: Likewise.
99468         * m4/regex.m4: Likewise.
99469         * m4/stat.m4: Likewise.
99470         * m4/strftime.m4: Likewise.
99471
99472 2000-07-02  Jim Meyering  <meyering@lucent.com>
99473
99474         * lib/quotearg.c (mbstate_t): Don't define here.
99475
99476 2000-07-02  Jim Meyering  <meyering@lucent.com>
99477
99478         * lib/nanosleep.c (SIGCONT): Define if not already defined.
99479
99480 2000-07-01  Jim Meyering  <meyering@lucent.com>
99481
99482         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
99483
99484 2000-07-01  Jim Meyering  <meyering@lucent.com>
99485
99486         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
99487         problem.
99488
99489 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99490
99491         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
99492         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
99493
99494 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99495
99496         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
99497         per change in ../m4/ls-mntd-fs.m4.
99498         (read_filesystem_list): Ignore symbolic links.
99499
99500 2000-06-29  Jim Meyering  <meyering@lucent.com>
99501
99502         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
99503         for declaration of strcmp.
99504
99505         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99506
99507         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99508         Avoid warning by casting result to `char *' to remove `const'.
99509
99510 2000-06-28  Jim Meyering  <meyering@lucent.com>
99511
99512         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99513         included by quotearg.c, for which we perform this test.  From
99514         Bruno Haible.
99515
99516 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99517
99518         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99519         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99520         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99521
99522 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99523
99524         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99525
99526 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99527
99528         savedir now sets errno on failure and invokes xmalloc to get memory.
99529         Fix a couple of other minor bugs while we're at it.
99530
99531         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99532         (NAMLEN): Remove macro.
99533         (malloc, realloc): Remove decls.
99534         (stpcpy): Likewise.
99535         ("xalloc.h"): Include.
99536         (NAME_SIZE_DEFAULT): New macro.
99537         (savedir): Use xmalloc / xrealloc to allocate memory.
99538         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99539         Skip "" directory entries.
99540         Use strlen to calculate directory entry length, since the old method
99541         is rarely used these days and isn't worth supporting.
99542         Don't use a pointer after freeing it.
99543         Check for integer overflow when calculating allocation size.
99544         Use memcpy to copy entries, instead of stpcpy.
99545         Set errno properly when returning NULL.
99546         Check for readdir error.
99547
99548 2000-06-26  Jim Meyering  <meyering@lucent.com>
99549
99550         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99551
99552 2000-06-25  Jim Meyering  <meyering@lucent.com>
99553
99554         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99555         Linux header bug when _XOPEN_SOURCE is defined to 500.
99556
99557 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99558
99559         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99560         deficiency.
99561
99562 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99563
99564         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99565         Include xalloc.h.
99566         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99567
99568 2000-06-24  Jim Meyering  <meyering@lucent.com>
99569
99570         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99571         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99572         for which strerror does return char*, but which lacks a conveniently
99573         accessible declaration of the function.  If the compile-test says
99574         strerror_r doesn't work, then resort to a `run'-test that works on
99575         BeOS and segfaults on DEC Unix.
99576
99577 2000-06-24  Jim Meyering  <meyering@lucent.com>
99578
99579         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99580
99581 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99582
99583         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99584         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99585
99586 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99587
99588         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99589         (mbrtowc, mbstate_t): Define substitutes if
99590         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99591         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99592         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99593
99594 2000-06-23  Jim Meyering  <meyering@lucent.com>
99595
99596         * m4/afs.m4: Add missing AC_MSG_RESULT.
99597         Reported by Bruno Haible.
99598
99599         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99600         Suggestion from Bruno Haible.
99601
99602 2000-06-23  Jim Meyering  <meyering@lucent.com>
99603
99604         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99605
99606 2000-06-21  Jim Meyering  <meyering@lucent.com>
99607
99608         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99609
99610 2000-06-21  Jim Meyering  <meyering@lucent.com>
99611
99612         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99613         (noinst_HEADERS): Add getstr.h.
99614
99615         * lib/getline.c (getstr): Move into a separate file.
99616         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99617         the following changes: new parameter, delim2; both delim[12]
99618         parameters have type `int', not `char'.  The latter would lose
99619         with 8-bit delimiters.
99620         * lib/getstr.h: New file.
99621
99622 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99623
99624         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99625         than 1024, return a memory chunk of least possible size, instead
99626         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99627         Use free/xmalloc instead of xrealloc to avoid copying for very long
99628         paths.
99629
99630 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99631
99632         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99633         the empty string.
99634
99635 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99636
99637         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99638         address, not strdup.  Include <stdlib.h> and don't declare free().
99639
99640 2000-06-19  Jim Meyering  <meyering@lucent.com>
99641
99642         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99643
99644 2000-06-18  Jim Meyering  <meyering@lucent.com>
99645
99646         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99647
99648         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99649         `checking whether...' message to be consistent with that of the
99650         lstat test.
99651
99652 2000-06-18  Jim Meyering  <meyering@lucent.com>
99653
99654         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99655         Besides, these days every porting target provides a mkdir function.
99656
99657         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99658         needed. (this snippet comes from src/system.h).
99659
99660 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99661
99662         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99663
99664 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99665
99666         * lib/human.c (adjust_value): New function.
99667         (human_readable_inexact): Apply rounding style even when
99668         printing approximate values.
99669
99670 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99671
99672         * lib/human.c (human_readable_inexact): Allow an input block
99673         size that is not a multiple of the output block size, and vice versa.
99674         Reported by Piergiorgio Sartor.
99675
99676 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99677
99678         * lib/getdate.y (get_date): Apply relative times after time
99679         zone indicator, not before.  Reported by Todd A. Jacobs.
99680
99681 2000-06-13  Jim Meyering  <meyering@lucent.com>
99682
99683         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99684
99685         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99686
99687 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99688
99689         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99690
99691 2000-06-12  Jim Meyering  <meyering@lucent.com>
99692
99693         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99694         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99695         optional argument.
99696         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99697         the optional argument, `lib'.
99698
99699 2000-06-08  Jim Meyering  <meyering@lucent.com>
99700
99701         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99702
99703 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99704
99705         Rewrite largefile configuration so that we don't need to run
99706         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99707         AC_CANONICAL_HOST in configure.in -- jmm]
99708
99709         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99710         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99711         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99712         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99713         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99714         All uses changed.
99715         Instead of inspecting the output of getconf, try to compile the
99716         test program without and with the macro definition.
99717         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99718         for getconf.  Instead, check for the needed flags by compiling
99719         test programs.
99720
99721 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99722
99723         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99724
99725 2000-06-04  Jim Meyering  <meyering@lucent.com>
99726
99727         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99728         SunOS 4.1.4 for which gid_t is an unsigned type.
99729
99730 2000-06-03  Jim Meyering  <meyering@lucent.com>
99731
99732         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99733         now that autoconf requires that.
99734
99735         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99736         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99737         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99738
99739 2000-06-03  Jim Meyering  <meyering@lucent.com>
99740
99741         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99742
99743 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99744
99745         * m4/glibc21.m4: New file.
99746         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99747
99748 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99749
99750         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99751         newer, don't install charset.alias.
99752         * lib/config.charset: Change the Linux/glibc rules so they become empty
99753         on glibc-2.1 or newer.
99754
99755 2000-06-02  Jim Meyering  <meyering@lucent.com>
99756
99757         * lib/mountlist.c: Back out last change.  Instead, do this...
99758         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99759         me_dummy member using the same `ignore'-testing code.
99760         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99761         fs_type strings.
99762         From Mark D. Roth.
99763
99764 2000-05-29  Jim Meyering  <meyering@lucent.com>
99765
99766         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99767         mounts with the `ignore' attribute.  Based on a patch from
99768         Mark D. Roth.
99769
99770 2000-05-28  Jim Meyering  <meyering@lucent.com>
99771
99772         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99773         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99774         * m4/stat.m4: Likewise.
99775         * m4/lstat.m4: Likewise.
99776         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99777
99778         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99779         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99780
99781 2000-05-26  Jim Meyering  <meyering@lucent.com>
99782
99783         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99784
99785 2000-05-24  Jim Meyering  <meyering@lucent.com>
99786
99787         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99788         autoconf requires that.
99789         * m4/lib-check.m4: Likewise.
99790         * m4/jm-macros.m4: Likewise.
99791         * m4/strftime.m4: Likewise.
99792
99793         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99794         AC_CHECK_DECLS, now that autoconf requires that.
99795
99796 2000-05-22  Jim Meyering  <meyering@lucent.com>
99797
99798         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99799         * m4/lstat.m4: Likewise.
99800
99801 2000-05-22  Jim Meyering  <meyering@lucent.com>
99802
99803         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99804
99805 2000-05-20  Jim Meyering  <meyering@lucent.com>
99806
99807         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99808         (jm_PREREQ): Use it.
99809
99810 2000-05-18  Jim Meyering  <meyering@lucent.com>
99811
99812         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99813         back, too, since it may have been modified by allocate_entry.
99814         (hash_delete): Rewrite to use neither the assignment operator
99815         nor the comma operator in an if-expression.
99816
99817 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99818
99819         * lib/closeout.c:
99820         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99821         Remove; no longer needed.
99822         "quotearg.h": Add include.
99823         (file_name): Do not bother to explicitly initialize to NULL; it's less
99824         efficient on some hosts.
99825         (close_stdout_status): Remove test as to whether stdout was already
99826         closed; it breaks for the case "echo x | sort >&-".
99827         Quote file name colons.
99828         Do not assume that _("write error") lacks format strings.
99829
99830 2000-05-15  Jim Meyering  <meyering@lucent.com>
99831
99832         * lib/version-etc.c (version_etc_copyright): Update the copyright
99833         string used in all --version output.
99834
99835 2000-05-14  Jim Meyering  <meyering@lucent.com>
99836
99837         * lib/closeout.c (close_stdout_set_file_name): New function.
99838         (close_stdout_status): Use new file-scoped global.
99839         Return right away if fstat says the stdout file descriptor is invalid.
99840         * lib/closeout.h (close_stdout_set_file_name): Declare.
99841
99842 2000-05-10  Jim Meyering  <meyering@lucent.com>
99843
99844         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99845         (close_stdout_set_status): New function.
99846         * lib/closeout.h (close_stdout_set_status): Declare.
99847
99848 2000-05-09  Jim Meyering  <meyering@lucent.com>
99849
99850         * m4/gettext.m4: Rename this...
99851         * m4/libintl.m4: ...to this.
99852
99853 2000-05-08  Jim Meyering  <meyering@lucent.com>
99854
99855         * lib/long-options.c: Don't include closeout.h.
99856         (parse_long_options): Don't call close_stdout for --version.
99857
99858 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99859
99860         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99861         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99862         2.1.3 bug.  This avoids a clash when files like regex.c define
99863         _GNU_SOURCE.
99864
99865 2000-05-06  Jim Meyering  <meyering@lucent.com>
99866
99867         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99868         (AC_REPLACE_FUNCS): Add strnlen.
99869
99870         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99871         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99872
99873         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99874         AC_SEARCH_LIBS call for nanosleep.
99875         (LIB_NANOSLEEP): Set and AC_SUBST.
99876
99877 2000-05-06  Jim Meyering  <meyering@lucent.com>
99878
99879         * lib/strnlen.c: Undefine __strnlen and strnlen.
99880         [!weak_alias]: Define __strnlen to strnlen.
99881
99882         * lib/atexit.c: New file, from libiberty.
99883
99884 2000-05-06  Jim Meyering  <meyering@lucent.com>
99885
99886         * lib/closeout.c (close_stdout_status): Also check for errors on the
99887         stderr stream.
99888
99889 2000-05-05  Jim Meyering  <meyering@lucent.com>
99890
99891         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99892         AC_SEARCH_LIBS call for clock_gettime.
99893         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99894
99895         * m4/search-libs.m4: Update from autoconf.
99896
99897         su doesn't work on Solaris 2.6.
99898         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99899         <shadow.h>.  Reported by Dragos Harabor.
99900
99901 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99902
99903         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99904         memcpy instead of xmalloc, xrealloc, path_concat.
99905         (locale_charset): Treat empty environment variables as absent.
99906         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99907
99908 2000-05-04  Jim Meyering  <meyering@lucent.com>
99909
99910         * lib/getopt.c: Update from glibc.
99911         * lib/obstack.c: Likewise.
99912         * lib/obstack.h: Likewise.
99913         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99914         file
99915
99916         * lib/regex.h: Likewise.
99917         * lib/strndup.c: Likewise.
99918         * lib/strnlen.c: New file, from glibc.
99919
99920 2000-05-03  Jim Meyering  <meyering@lucent.com>
99921
99922         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99923
99924 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99925
99926         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99927         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99928         compile-time test, rather than inspecting host and OS, to
99929         decide whether to define _LARGEFILE_SOURCE.
99930
99931 2000-05-01  Jim Meyering  <meyering@lucent.com>
99932
99933         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99934
99935         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99936         Based on a patch from Bruno Haible.
99937
99938 2000-05-01  Jim Meyering  <meyering@lucent.com>
99939
99940         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99941
99942 2000-04-29  Jim Meyering  <meyering@lucent.com>
99943
99944         * lib/path-concat.c: Declare strdup only if it's not defined.
99945         * lib/canon-host.c: Likewise.
99946
99947 2000-04-28  Jim Meyering  <meyering@lucent.com>
99948
99949         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99950         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99951         is included first, then limits.h is included by locale.h by libintl.h.
99952         From John David Anglin.
99953
99954 2000-04-25  Jim Meyering  <meyering@lucent.com>
99955
99956         * lib/makepath.c (S_IRWXUGO): Define.
99957         (make_path): Always perform explicit chmod if MODE specifies any
99958         of the `special' permission bits.  Prompted by a bug report against
99959         install from Mate Wierdl and Joost van Baal.
99960
99961 2000-04-18  Jim Meyering  <meyering@lucent.com>
99962
99963         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99964         (jm_PREREQ): Use it.
99965
99966 2000-04-18  Jim Meyering  <meyering@lucent.com>
99967
99968         * lib/README: New file.
99969
99970         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99971         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99972
99973 2000-04-17  Jim Meyering  <meyering@lucent.com>
99974
99975         Get it right :-)
99976         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99977         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99978         Suggestion from Akim Demaille.
99979
99980 2000-04-17  Jim Meyering  <meyering@lucent.com>
99981
99982         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99983         the definition of it to rpl_strftime also defined-away the system's
99984         declaration.
99985
99986 2000-04-15  Jim Meyering  <meyering@lucent.com>
99987
99988         Use `C' to denote so-called `contiguous' files, the same way
99989         that tar does.
99990         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99991         (ftypelet): Use S_ISCTG.
99992         From Michael Deutschmann.
99993
99994 2000-04-14  Jim Meyering  <meyering@lucent.com>
99995
99996         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99997         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99998         clobbered.
99999
100000 2000-04-14  Jim Meyering  <meyering@lucent.com>
100001
100002         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
100003
100004 2000-04-13  Jim Meyering  <meyering@lucent.com>
100005
100006         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
100007         AH_VERBATIM to insert required #ifndef into config.h.in.
100008         Suggestion from Akim Demaille.
100009
100010 2000-04-12  Jim Meyering  <meyering@lucent.com>
100011
100012         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
100013         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
100014         Christian Krackowizer.
100015
100016         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
100017         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
100018         (AC_SYS_LARGEFILE): Require.
100019         (AM_C_PROTOTYPES): Require.
100020
100021 2000-04-08  Jim Meyering  <meyering@lucent.com>
100022
100023         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
100024         names don't conflict.  Reported by Eli Zaretskii.
100025
100026 2000-04-07  Jim Meyering  <meyering@lucent.com>
100027
100028         * lib/putenv.c: Move inclusion of errno.h so it follows that of
100029         sys/types.h, to work around system header problems on AIX 3.2.5.
100030         From Bruno Haible.
100031
100032 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
100033
100034         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
100035         bug.  Deal with the different error behavior of Irix iconv.
100036
100037 2000-04-05  Paul Eggert  <eggert@twinsun.com>
100038
100039         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
100040         IRIX if the installer said otherwise.
100041
100042 2000-04-05  Jim Meyering  <meyering@lucent.com>
100043
100044         Portability tweaks required for ultrix4.3.
100045         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
100046         (jm_CHECK_DECLS): Add getutent to the list of functions.
100047         (_jm_DECL_HEADERS): Add utmpx.h.
100048         From John David Anglin.
100049
100050         * m4/strftime.m4: Back out the 2000-04-02 change.
100051         Instead of that change, simply undefine putenv in the test program.
100052
100053 2000-04-05  Jim Meyering  <meyering@lucent.com>
100054
100055         Portability tweaks required for ultrix4.3.
100056         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
100057         getutent.
100058         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
100059         * lib/canon-host.c: Declare strdup.
100060         * lib/path-concat.c: Likewise.
100061         From John David Anglin.
100062
100063 2000-04-04  Jim Meyering  <meyering@lucent.com>
100064
100065         Be more DOS 8.3-friendly.
100066         * lib/ref-add.sin: Renamed from ref-add.sed.in.
100067         * lib/ref-del.sin: Renamed from ref-del.sed.in.
100068         * lib/Makefile.am: Reflect renaming.
100069         Reported by Eli Zaretskii.
100070
100071         Use a temporary file name that won't clash with `charset.alias'
100072         in the DOS 8.3 name space.
100073         * lib/Makefile.am (charset_tmp): Define.
100074         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
100075         (uninstall-local): Likewise.
100076         Reported by Eli Zaretskii.
100077
100078 2000-04-03  Jim Meyering  <meyering@lucent.com>
100079
100080         * m4/gettext.m4: Fix typo in comment.
100081
100082         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
100083         textutils/configure.in).  Suggestion from Paul Eggert.
100084         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
100085
100086 2000-04-02  Paul Eggert  <eggert@twinsun.com>
100087
100088         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
100089         variable in the shell rather than using putenv, which isn't
100090         portable.  This avoids the configure-time inter-test dependency
100091         on the potentially-renamed putenv function.
100092
100093 2000-03-30  Paul Eggert  <eggert@twinsun.com>
100094
100095         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
100096         before checking struct stat.st_blksize, so that
100097         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
100098
100099 2000-03-29  Paul Eggert  <eggert@twinsun.com>
100100
100101         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
100102         since strftime.c uses HAVE_STRFTIME to decide whether to use
100103         the underlying strftime.
100104
100105 2000-03-29  Paul Eggert  <eggert@twinsun.com>
100106
100107         * lib/time/strftime.c (my_strftime): Make sure we call the system
100108         strftime, not ourselves, when invoking the underlying strftime.
100109
100110 2000-03-24  Jim Meyering  <meyering@lucent.com>
100111
100112         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
100113         (charset_alias): Define.
100114         (install-exec-local): Factor out common code.
100115         (uninstall-local): Split lines longer than 80.
100116         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
100117         (SUFFIXES): Define.
100118         (.sed.in.sed): New rule.  Don't redirect directly to $@.
100119         (CLEANFILES): Add ref-add.sed and ref-del.sed.
100120
100121 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
100122
100123         * lib/config.charset: Output a line containing "Packages using this
100124         file".
100125         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
100126         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
100127         ref-del.sed): New rules.
100128
100129 2000-03-17  Jim Meyering  <meyering@lucent.com>
100130
100131         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
100132         Otherwise, include <strings.h>
100133
100134 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
100135
100136         * lib/unicodeio.c (utf8_wctomb): New function.
100137         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
100138         format instead of in UCS-4 with platform dependent endianness.
100139
100140 2000-03-10  Jim Meyering  <meyering@lucent.com>
100141
100142         * m4/lib-check.m4: Look for getspnam in -lgen, too.
100143         From Marco Franzen.
100144
100145 2000-03-07  Paul Eggert  <eggert@twinsun.com>
100146
100147         * lib/savedir.c (savedir): Work even if directory size is
100148         negative; this can happen with some screwy NFS configurations.
100149
100150 2000-03-06  Jim Meyering  <meyering@lucent.com>
100151
100152         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
100153         if it's NULL (because we ran out of memory).  From Bruno Haible.
100154
100155 2000-03-05  Jim Meyering  <meyering@lucent.com>
100156
100157         * lib/localcharset.c ("path-concat.h"): Include.
100158         (get_charset_aliases): Use path_concat instead of ANSI string
100159         concatenation.
100160
100161         * lib/unicodeio.h (PARAMS): Define.
100162         Use it to guard prototype.
100163
100164 2000-03-04  Jim Meyering  <meyering@lucent.com>
100165
100166         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
100167         for lib/localcharset.c.
100168
100169 2000-03-04  Jim Meyering  <meyering@lucent.com>
100170
100171         * lib/Makefile.am (install-exec-local): Create $(libdir) before
100172         installing into it.
100173         (uninstall-local): Uncomment this rule so `make distcheck' works
100174         once again.
100175
100176         * lib/unicodeio.c (<errno.h>): Include it.
100177         (errno): Declare if not defined.
100178
100179         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
100180
100181         * lib/config.charset: New version, incorporating remarks from a linux
100182         i18n mailing list.  From Bruno Haible.
100183
100184 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
100185
100186         * m4/codeset.m4: New file.
100187         * m4/iconv.m4: New file.
100188         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
100189
100190 2000-03-03  Jim Meyering  <meyering@lucent.com>
100191
100192         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
100193
100194 2000-03-02  Jim Meyering  <meyering@lucent.com>
100195
100196         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
100197         the messages come out on separate lines.
100198
100199         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
100200         rather than jm_CHECK_DECLARATIONS.
100201         * m4/decl.m4: Remove now-unused file.
100202
100203         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
100204         geteuid.
100205
100206 2000-03-02  Jim Meyering  <meyering@lucent.com>
100207
100208         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
100209
100210 2000-03-01  Jim Meyering  <meyering@lucent.com>
100211
100212         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
100213         * lib/unicodeio.c: Likewise.
100214
100215 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
100216
100217         * lib/config.charset: New file.
100218         * lib/localcharset.c: New file.
100219         * lib/unicodeio.h, lib/unicodeio.c: New files.
100220         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
100221         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
100222         (noinst_HEADERS): Add unicodeio.h.
100223         (all-local, install-exec-local, charset.alias): New targets.
100224
100225 2000-02-28  Paul Eggert  <eggert@twinsun.com>
100226
100227         * lib/quotearg.c (ALERT_CHAR): New macro.
100228         (quotearg_buffer_restyled): Use it.
100229
100230 2000-02-27  Jim Meyering  <meyering@lucent.com>
100231
100232         * m4/check-decl.m4: Add getenv to the list.
100233
100234 2000-02-27  Jim Meyering  <meyering@lucent.com>
100235
100236         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
100237         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
100238
100239         * lib/backupfile.c: Guard inclusion of stdlib.h with
100240         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
100241         Declare malloc if needed.
100242
100243         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
100244         `#ifndef HAVE_DECL..'
100245         now that autoconf always defines the HAVE_DECL_ symbols.
100246         * lib/human.c: Likewise.
100247         * lib/same.c: Likewise.
100248         * lib/strtoumax.c: Likewise.
100249
100250         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
100251         declaration check was not run.
100252         * lib/hash.c: Likewise.
100253         * lib/human.c: Likewise.
100254         * lib/same.c: Likewise.
100255         * lib/strtoumax.c: Likewise.
100256
100257         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
100258         `.', then first look up the entire `.'-containing string as a login
100259         name.
100260
100261 2000-02-23  Jim Meyering  <meyering@lucent.com>
100262
100263         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
100264         in place of my hack.
100265
100266 2000-02-18  Paul Eggert  <eggert@twinsun.com>
100267
100268         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
100269         (textint): New typedef.
100270         (parser_control): Member year changed from int to textint.
100271         All uses changed.
100272         (YYSTYPE): Removed; replaced by %union with int and textint members.
100273         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
100274         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
100275         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
100276         (tSNUMBER, tUNUMBER): Now of type <textintval>.
100277         (date, number, to_year): Use width of number in digits, not its value,
100278         to determine whether it's a 2-digit year, or a 2-digit time.
100279         (yylex): Store number of digits of numeric tokens.
100280         Reported by John Kendall.
100281
100282         (parser_control): Changed from struct parser_control to typedef (for
100283         consistency).  All uses changed.
100284
100285         (tID): Removed; not used.
100286         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
100287
100288 2000-02-14  Paul Eggert  <eggert@twinsun.com>
100289
100290         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
100291         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
100292
100293 2000-02-12  Jim Meyering  <meyering@lucent.com>
100294
100295         * lib/userspec.c (ISDIGIT): Define it.
100296         (isdigit): Remove definition.
100297         (is_number): Use ISDIGIT, not isdigit.
100298         <libintl.h>: Include.
100299         (_ and N_): Define.
100300         (parse_user_spec): Mark translatable strings.
100301
100302 2000-02-10  Jim Meyering  <meyering@lucent.com>
100303
100304         With these changes, nanosleep.[ch] are finally enough like the other
100305         lib/* replacement files to compile on a few more losing systems.
100306
100307         * lib/nanosleep.h: Don't include config.h.
100308         Remove prototype from declaration of nanosleep.
100309         (PARAMS): Remove now-unneeded definition.
100310         * lib/nanosleep.c: #undef nanosleep.
100311         (rpl_nanosleep): Rename from nanosleep.
100312
100313 2000-02-10  Jim Meyering  <meyering@lucent.com>
100314
100315         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
100316         gnu_nanosleep to rpl_nanosleep.
100317
100318 2000-02-09  Jim Meyering  <meyering@lucent.com>
100319
100320         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
100321         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
100322
100323 2000-02-08  Akim Demaille  <akim@epita.fr>
100324
100325         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
100326         `[' and `]' and remove uses of `changequote'.
100327         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
100328         (AC_SYS_LARGEFILE): Likewise.
100329         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
100330         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
100331         of changequote.
100332         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
100333         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
100334         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
100335         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
100336
100337 2000-02-05  Jim Meyering  <meyering@lucent.com>
100338
100339         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
100340         Remove explicit use of AC_HEADER_TIME.  It is required by
100341         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
100342         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
100343         in autoconf whereby the expansion of the latter ended up preceding
100344         the expansion of its prerequisite, AC_HEADER_TIME.
100345         Reported by Volker Borchert.
100346
100347 2000-02-03  Jim Meyering  <meyering@lucent.com>
100348
100349         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
100350
100351 2000-02-03  Jim Meyering  <meyering@lucent.com>
100352
100353         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
100354         rather than with `#if HAVE_UTMPNAME'.
100355
100356 2000-02-02  Jim Meyering  <meyering@lucent.com>
100357
100358         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
100359         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
100360         Reported by Eli Zaretskii.
100361
100362 2000-02-01  Jim Meyering  <meyering@lucent.com>
100363
100364         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
100365
100366 2000-01-31  Jim Meyering  <meyering@lucent.com>
100367
100368         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
100369         functions.  Add the time.h and sys/time.h headers along with the
100370         AC_REQUIRE'ment of AC_HEADER_TIME.
100371
100372 2000-01-31  Jim Meyering  <meyering@lucent.com>
100373
100374         * lib/nanosleep.h (nanosleep): Guard declaration with
100375         `#if ! HAVE_DECL_NANOSLEEP'.
100376         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
100377         the declaration in that vendor's sys/timers.h.
100378         Reported by Christian Krackowizer.
100379
100380         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
100381         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
100382         (ISPRINT): Likewise.
100383         Reported by Tom Tromey.
100384
100385 2000-01-30  Jim Meyering  <meyering@lucent.com>
100386
100387         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
100388
100389         * m4/prereq.m4 (utmp_includes): Define.
100390         Check for ut_user and ut_name members in both struct utmpx
100391         and struct utmp.
100392
100393 2000-01-30  Jim Meyering  <meyering@lucent.com>
100394
100395         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
100396         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
100397         header files where only utmpx.ut_user is declared.
100398
100399         * lib/readutmp.h (UT_USER): Define.
100400
100401 2000-01-29  Jim Meyering  <meyering@lucent.com>
100402
100403         * m4/lib-check.m4: New file containing library-related checks from
100404         fileutils and sh-utils (textutils had none).
100405
100406 2000-01-28  Jim Meyering  <meyering@lucent.com>
100407
100408         * m4/perl.m4: Change format of warning message to look more like that
100409         from the missing script.  Suggestion from François Pinard.
100410
100411 2000-01-25  Jim Meyering  <meyering@lucent.com>
100412
100413         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
100414         well as time.h in the compile check.
100415         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
100416         Fix typo in cross-compiling case: s/yes/no/.
100417
100418 2000-01-23  Jim Meyering  <meyering@lucent.com>
100419
100420         * m4/jm-macros.m4: Move df-related tests here from
100421         fileutils/configure.in
100422
100423         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
100424         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
100425
100426         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
100427         s/space/ac_fsusage_space/.
100428         (jm_FILE_SYSTEM_USAGE): Take two parameters.
100429
100430         * m4/ftruncate.m4: New file (derived from part of
100431         fileutils/configure.in).
100432         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
100433         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
100434
100435         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
100436         AC_SUBST these here, rather than just in sh-util/configure.in, so
100437         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
100438         all the same.
100439         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
100440         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
100441         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
100442         (AC_SUBST(POW_LIBM)): Likewise.
100443         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
100444
100445 2000-01-23  Jim Meyering  <meyering@lucent.com>
100446
100447         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
100448         obstack.c.
100449
100450 2000-01-22  Jim Meyering  <meyering@lucent.com>
100451
100452         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
100453
100454         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
100455
100456         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
100457         configure.in
100458         (AC_CHECK_HEADERS): Likewise for sh-utils.
100459         (AC_CHECK_HEADERS): Likewise for textutils.
100460         Merge the three lists of headers.
100461
100462         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
100463         from fileutils' configure.in.
100464
100465         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
100466         code. Moved tests into their own function (_jm_DECL_HEADERS) in
100467         check-decl.m4.
100468
100469         * m4/check-decl.m4: Use #if rather than #ifdef.
100470         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
100471         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
100472         (_jm_DECL_HEADERS): Define new function.
100473         (jm_CHECK_DECLARATIONS): Require it.
100474
100475 2000-01-22  Jim Meyering  <meyering@lucent.com>
100476
100477         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
100478         [! HAVE_DECL_STRTOULL]: Declare strtoull.
100479         Required for some AIX systems.  Reported by Christian Krackowizer.
100480         [TESTING] (main): New function.
100481
100482         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
100483         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
100484         letters.
100485
100486         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
100487         iswprint.
100488
100489         * lib/strverscmp.c (ISDIGIT): Define.
100490         (strverscmp): Use ISDIGIT, not isdigit.
100491
100492 2000-01-19  Jim Meyering  <meyering@lucent.com>
100493
100494         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
100495         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
100496         defines `struct timespec' in <sys/time.h>
100497
100498         * m4/c-bs-a.m4: Remove uses of changequote altogether.
100499         Thanks to Akim for explaining.
100500
100501 2000-01-17  Paul Eggert  <eggert@twinsun.com>
100502
100503         * lib/nanosleep.c (nanosleep):
100504         Don't use SA_INTERRUPT to decide whether to call sigaction, as
100505         POSIX.1 doesn't require SA_INTERRUPT and some systems
100506         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100507         it's been part of POSIX.1 since day 1 (in 1988).
100508
100509 2000-01-17  Jim Meyering  <meyering@lucent.com>
100510
100511         * lib/interlock: Remove unused file.  Reported by François Pinard.
100512
100513 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100514
100515         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100516         alert, backslash, formfeed, and vertical tab unnecessarily in
100517         shell quoting style.
100518
100519 2000-01-16  Jim Meyering  <meyering@lucent.com>
100520
100521         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100522         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100523         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100524         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100525
100526 2000-01-16  Jim Meyering  <meyering@lucent.com>
100527
100528         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100529         because the latter didn't work.
100530
100531 2000-01-15  Jim Meyering  <meyering@lucent.com>
100532
100533         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100534         (AC_REPLACE_FUNCS): Add memcpy and memset.
100535         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100536         Add strpbrk.
100537         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100538
100539 2000-01-12  Jim Meyering  <meyering@lucent.com>
100540
100541         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100542         (jm_PREREQ): Use it.
100543         (jm_PREREQ_READUTMP): New macro.
100544         (jm_PREREQ): Use it.
100545
100546 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100547
100548         Quote multibyte characters correctly.
100549         * m4/c-bs-a.m4: New file.
100550         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100551         (jm_PREREQ): Use it.
100552
100553 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100554
100555         * m4/uintmax_t.m4: Port to autoconf 2.13.
100556
100557 2000-01-08  Jim Meyering  <meyering@ascend.com>
100558
100559         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100560         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100561
100562 2000-01-04  Jim Meyering  <meyering@ascend.com>
100563
100564         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100565         jm_STRUCT_DIRENT_D_TYPE.
100566         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100567         jm_STRUCT_DIRENT_D_INO.
100568         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100569         jm_STRUCT_UTIMBUF.
100570         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100571         renamings.
100572         * m4/utime.m4: Likewise.
100573
100574         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100575         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100576
100577 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100578
100579         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100580         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100581
100582 2000-01-02  Jim Meyering  <meyering@ascend.com>
100583
100584         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100585         remember if this is necessary.
100586
100587 1999-12-26  Jim Meyering  <meyering@ascend.com>
100588
100589         * m4/jm-macros.m4: Use it here.
100590         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100591
100592 1999-12-23  Jim Meyering  <meyering@ascend.com>
100593
100594         * m4/jm-macros.m4: Check for clock_gettime (moved from
100595         fileutils/configure.in)
100596         Check for gettimeofday.
100597
100598 1999-12-20  Jim Meyering  <meyering@ascend.com>
100599
100600         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100601         autoconf-2.14a-1999-12-20.
100602
100603 1999-12-19  Jim Meyering  <meyering@ascend.com>
100604
100605         * m4/lstat-slash.m4: New file.
100606         * m4/jm-macros.m4: Use the new macro:
100607         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100608
100609 1999-12-07  Jim Meyering  <meyering@ascend.com>
100610
100611         * m4/perl.m4: Require that File::Compare be available, too.
100612         Too many systems seem to lack it.
100613
100614         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100615         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100616
100617 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100618
100619         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100620         problem with the QNX 4.25 shell, which doesn't propagate exit
100621         status of failed commands inside shell assignments.
100622
100623 1999-11-17  Jim Meyering  <meyering@ascend.com>
100624
100625         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100626
100627 1999-11-07  Jim Meyering  <meyering@ascend.com>
100628
100629         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100630
100631 1999-11-06  Jim Meyering  <meyering@ascend.com>
100632
100633         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100634         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100635
100636 1999-11-05  Jim Meyering  <meyering@ascend.com>
100637
100638         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100639         configure.in of textutils, fileutils, and sh-utils into this one
100640         (shared between those packages) file.
100641         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100642         AC_STRUCT_ST_BLKSIZE.
100643
100644 1999-11-03  Jim Meyering  <meyering@ascend.com>
100645
100646         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100647         of AC_CHECK_TYPE checks includes unistd.h.
100648         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100649         Suggestion from Akim Demaille.
100650
100651 1999-10-30  Jim Meyering  <meyering@ascend.com>
100652
100653         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100654         m4-quoted string.
100655         * m4/ls-mntd-fs.m4: Likewise.
100656         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100657         * m4/jm-winsz1.m4: Likewise.
100658
100659         * m4/const.m4: Remove file, since the fix made it into the experimental
100660         version of autoconf.
100661         * m4/mktime.m4: Likewise.
100662
100663         * m4/check-type.m4: Remove file, now that the latest version of
100664         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100665
100666         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100667         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100668         AC_CHECK_TYPE.
100669
100670 1999-10-04  Jim Meyering  <meyering@ascend.com>
100671
100672         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100673
100674 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100675
100676         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100677         2.95.1 bug with HP-UX 10.20.
100678
100679 1999-09-17  Jim Meyering  <meyering@ascend.com>
100680
100681         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100682         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100683         due to missing strdup (against sh-utils-2.0).
100684
100685 1999-08-29  Jim Meyering  <meyering@ascend.com>
100686
100687         * m4/jm-macros.m4: Require jm_BISON.
100688         * m4/bison.m4: New file.
100689
100690 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100691
100692         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100693         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100694
100695 1999-08-05  Jim Meyering  <meyering@ascend.com>
100696
100697         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100698         to avoid conflicts with `conftest' on 8+3 filesystems.
100699         Suggestion from Eli Zaretskii.
100700
100701 1999-08-04  Jim Meyering  <meyering@ascend.com>
100702
100703         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100704         fileutils and sh-utils (textutils's getline test was inadequate).
100705         (AM_FUNC_GETLINE): Run this test.
100706         (AC_CHECK_FUNCS): Check for getdelim.
100707         Reported by Bob Proulx.
100708
100709 1999-08-02  Jim Meyering  <meyering@ascend.com>
100710
100711         * m4/jm-macros.m4: Add a comment.
100712
100713 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100714
100715         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100716         <inttypes.h> defines strtoumax as a macro (and not as a
100717         function).
100718
100719 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100720
100721         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100722         that we can shift, multiply and divide unsigned long long
100723         values; Ultrix cc can't do it.
100724
100725 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100726
100727         * m4/mktime.m4: New file, which is a preview of what should appear
100728         in the next public autoconf release.
100729
100730 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100731
100732         * m4/lfs.m4: Remove this file.
100733         * m4/largefile.m4: New file.  It contains the old contents of
100734         lfs.m4, except that all names with prefix AC_LFS have been
100735         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100736         compatible with future autoconf versions.  Also, some minor m4
100737         quoting problems have been fixed.
100738
100739 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100740
100741         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100742         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100743         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100744         and simplify the shell code.
100745
100746 1999-08-01  Jim Meyering  <meyering@ascend.com>
100747
100748         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100749         m4.
100750
100751 1999-07-20  Jim Meyering  <meyering@ascend.com>
100752
100753         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100754
100755 1999-07-15  Jim Meyering  <meyering@ascend.com>
100756
100757         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100758
100759 1999-05-22  Jim Meyering  <meyering@ascend.com>
100760
100761         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100762
100763 1999-05-20  Jim Meyering  <meyering@ascend.com>
100764
100765         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100766         Add a colon after each `then' in case $4 is empty.
100767
100768 1999-05-16  Jim Meyering  <meyering@ascend.com>
100769
100770         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100771
100772 1999-05-10  Jim Meyering  <meyering@ascend.com>
100773
100774         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100775
100776         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100777         AC_FUNC_MKTIME.
100778
100779 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100780
100781         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100782
100783 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100784
100785         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100786         not CPPFLAGS, so that linking works correctly in IRIX.
100787
100788 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100789
100790         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100791
100792 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100793
100794         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100795         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100796         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100797         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100798         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100799
100800         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100801
100802 1999-04-20  Jim Meyering  <meyering@ascend.com>
100803
100804         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100805         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100806         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100807
100808 1999-04-18  Jim Meyering  <meyering@ascend.com>
100809
100810         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100811         * m4/jm-macros.m4: Use it.
100812
100813 1999-04-06  Jim Meyering  <meyering@ascend.com>
100814
100815         * m4/strftime.m4: Remove test for %f.
100816
100817 1999-03-29  Jim Meyering  <meyering@ascend.com>
100818
100819         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100820         superset of the AC_TYPE_* checks in the textutils, fileutils,
100821         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100822         AC_TYPE_PID_T.
100823
100824 1999-03-28  Jim Meyering  <meyering@ascend.com>
100825
100826         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100827         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100828         replaced e.g., in the *.sh files of the sh-utils.
100829
100830 1999-03-20  Jim Meyering  <meyering@ascend.com>
100831
100832         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100833         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100834         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100835
100836 1999-03-19  Jim Meyering  <meyering@ascend.com>
100837
100838         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100839
100840 1999-03-12  Jim Meyering  <meyering@ascend.com>
100841
100842         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100843
100844 1999-03-07  Jim Meyering  <meyering@ascend.com>
100845
100846         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100847         declared.
100848
100849 1999-02-17  Jim Meyering  <meyering@ascend.com>
100850
100851         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100852         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100853
100854 1999-02-07  Jim Meyering  <meyering@ascend.com>
100855
100856         * m4/group-member.m4: New file -- extracted from sh-utils'
100857         configure.in.
100858
100859         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100860         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100861
100862 1999-02-06  Jim Meyering  <meyering@ascend.com>
100863
100864         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100865         * m4/fnmatch.m4: Likewise.
100866         * m4/getgroups.m4: Likewise.
100867         * m4/lstat.m4: Likewise.
100868         * m4/malloc.m4: Likewise.
100869         * m4/putenv.m4: Likewise.
100870         * m4/realloc.m4: Likewise.
100871         * m4/regex.m4: Likewise.
100872         * m4/stat.m4: Likewise.
100873         * m4/strftime.m4: Likewise.
100874         Suggestion from Alain Magloire.
100875
100876         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100877         * m4/fnmatch.m4: Likewise.
100878         * m4/getgroups.m4: Likewise.
100879         * m4/getline.m4: Likewise.
100880         * m4/lstat.m4: Likewise.
100881         * m4/malloc.m4: Likewise.
100882         * m4/memcmp.m4: Likewise.
100883         * m4/putenv.m4: Likewise.
100884         * m4/realloc.m4: Likewise.
100885         * m4/regex.m4: Likewise.
100886         * m4/stat.m4: Likewise.
100887         * m4/strftime.m4: Likewise.
100888         Suggestion from Alain Magloire.
100889
100890         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100891         an argument.
100892
100893         * m4/regex.m4: Add a run-time Test for proper operation of
100894         re_compile_pattern.
100895
100896 1999-01-31  Jim Meyering  <meyering@ascend.com>
100897
100898         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100899
100900 1999-01-30  Jim Meyering  <meyering@ascend.com>
100901
100902         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100903
100904         * m4/jm-mktime.m4: Make this a wrapper around the official
100905         AM_FUNC_MKTIME rather than my private copy, now that the official one
100906         is up to date.
100907         * m4/mktime.m4: Remove file.
100908
100909         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100910         * m4/uptime.m4: Likewise.
100911         * m4/uintmax_t.m4: Likewise.
100912
100913 1999-01-28  Jim Meyering  <meyering@ascend.com>
100914
100915         * m4/jm-macros.m4: Use jm_AFS.
100916         * m4/afs.m4: New file (from fileutils' configure.in).
100917
100918         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100919         * m4/chown.m4: Likewise.
100920         * m4/d-ino.m4: Likewise.
100921         * m4/d-type.m4: Likewise.
100922         * m4/fnmatch.m4: Likewise.
100923         * m4/getgroups.m4: Likewise.
100924         * m4/gettext.m4: Likewise.
100925         * m4/jm-mktime.m4: Likewise.
100926         * m4/jm-winsz2.m4: Likewise.
100927         * m4/lcmessage.m4: Likewise.
100928         * m4/ls-mntd-fs.m4: Likewise.
100929         * m4/malloc.m4: Likewise.
100930         * m4/memcmp.m4: Likewise.
100931         * m4/putenv.m4: Likewise.
100932         * m4/realloc.m4: Likewise.
100933         * m4/st_mtim.m4: Likewise.
100934         * m4/strftime.m4: Likewise.
100935
100936 1999-01-16  Jim Meyering  <meyering@ascend.com>
100937
100938         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100939         (ARGMATCH_DIE_DECL): Define.
100940
100941 1999-01-12  Jim Meyering  <meyering@ascend.com>
100942
100943         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100944         Reported by Lars Hecking.
100945
100946 1999-01-10  Jim Meyering  <meyering@ascend.com>
100947
100948         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100949         gross kludge.
100950         * m4/inttypes_h.m4: Likewise.
100951         * m4/lstat.m4: Likewise.
100952         * m4/malloc.m4: Likewise.
100953         * m4/readdir.m4: Likewise.
100954         * m4/realloc.m4: Likewise.
100955         * m4/st_dm_mode.m4: Likewise.
100956         * m4/stat.m4: Likewise.
100957         * m4/utimbuf.m4: Likewise.
100958         * m4/utimes.m4: Likewise.
100959
100960         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100961         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100962         comments in config.h.in are meaningful.
100963
100964         * m4/jm-macros.m4: Require autoconf-2.13 here.
100965
100966         * m4/regex.m4: By default, don't use the included regex.c on systems
100967         with glibc 2.  Suggestion from Uli Drepper.
100968
100969 1999-01-02  Jim Meyering  <meyering@ascend.com>
100970
100971         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100972
100973 1998-12-18  Jim Meyering  <meyering@ascend.com>
100974
100975         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100976         Based on a suggestion from Lars Hecking.
100977
100978 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100979
100980         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100981
100982 1998-11-16  Jim Meyering  <meyering@ascend.com>
100983
100984         * m4/lfs.m4: Double-quote the `uname...` expression.
100985
100986 1998-11-14  Jim Meyering  <meyering@ascend.com>
100987
100988         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100989         * m4/stat.m4: Likewise.
100990
100991 1998-11-03  Jim Meyering  <meyering@ascend.com>
100992
100993         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100994         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100995
100996 1998-10-18  Jim Meyering  <meyering@ascend.com>
100997
100998         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100999
101000 1998-10-17  Jim Meyering  <meyering@ascend.com>
101001
101002         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
101003         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
101004         calls for those previously hard-coded headers.  Instead, take a new
101005         parameter.
101006         (jm_CHECK_DECLARATIONS): Reflect interface change.
101007         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
101008         (jm_CHECK_DECL_LOCALTIME_R): New macro.
101009
101010         * m4/mktime.m4: Test for spring-forward gap before long-running test.
101011
101012 1998-10-14  Jim Meyering  <meyering@ascend.com>
101013
101014         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
101015         instead of "TZ=America/Vancouver".  From Paul Eggert.
101016
101017 1998-10-11  Jim Meyering  <meyering@ascend.com>
101018
101019         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
101020         This adds a test for a recently added compatibility fix for mktime.c.
101021         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
101022
101023 1998-09-27  Jim Meyering  <meyering@ascend.com>
101024
101025         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
101026
101027         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
101028         ../configure.in, including a change from Gordon Matzigkeit to allow
101029         cross-compiling for the Hurd.
101030
101031         * m4/glibc.m4: New file/macro to test for the GNU C Library
101032         versions 1 and 2.  From Gordon Matzigkeit.
101033         Indent.
101034
101035 1998-09-21  Jim Meyering  <meyering@ascend.com>
101036
101037         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
101038
101039 1998-08-18  Paul Eggert  <eggert@twinsun.com>
101040
101041         Port nanosecond-resolution times to UnixWare 2.1.2 and
101042         pedantic Solaris 2.6.
101043
101044         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
101045         AC_STRUCT_ST_MTIM.
101046         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
101047         Generate name of ns member, instead of just 1 or undef.
101048         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
101049
101050 1998-08-15  Jim Meyering  <meyering@ascend.com>
101051
101052         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
101053         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
101054         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
101055         instead of jm_TYPE_SSIZE_T.
101056
101057 1998-08-12  Jim Meyering  <meyering@ascend.com>
101058
101059         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
101060
101061 1998-08-02  Jim Meyering  <meyering@ascend.com>
101062
101063         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
101064         in acconfig.h manually.
101065
101066 1998-07-31  Paul Eggert  <eggert@twinsun.com>
101067
101068         * m4/st_mtim.m4: New file.
101069
101070 1998-07-28  Jim Meyering  <meyering@ascend.com>
101071
101072         * m4/utimes.m4: Undef stat.
101073
101074 1998-07-25  Jim Meyering  <meyering@ascend.com>
101075
101076         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
101077         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
101078
101079 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
101080
101081         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
101082         uid and gid actually remain unchanged.
101083
101084 1998-07-07  Jim Meyering  <meyering@ascend.com>
101085
101086         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
101087
101088 1998-07-04  Jim Meyering  <meyering@ascend.com>
101089
101090         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
101091         to prove that this macro can be used in packages without regex.c.
101092
101093 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
101094
101095         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
101096         is to be used.
101097
101098 1998-07-03  Jim Meyering  <meyering@ascend.com>
101099
101100         * m4/gettext.m4: Add -lintl if it's found to be necessary.
101101
101102         * m4/gettext.m4: New file -- from gettext-0.10.35.
101103         * m4/lcmessage.m4: Likewise.
101104         * m4/progtest.m4: Likewise.
101105
101106         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
101107         * m4/jm-macros.m4: Require the new macro.
101108
101109 1998-06-29  Jim Meyering  <meyering@ascend.com>
101110
101111         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
101112         for the definition of NGROUPS (used in a system header included
101113         by sys/mount.h).
101114
101115 1998-06-28  Jim Meyering  <meyering@ascend.com>
101116
101117         * m4/ls-mntd-fs.m4: New file.
101118         * m4/fstypename.m4: New file.
101119
101120         * m4/jm-macros.m4: Require the new macro.
101121         * m4/jm-glibc-io.m4: New file.
101122
101123 1998-05-19  Jim Meyering  <meyering@ascend.com>
101124
101125         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
101126         * m4/lchown.m4: New file.
101127
101128         * m4/Makefile.am.in: New file.
101129         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
101130
101131 1998-05-14  Jim Meyering  <meyering@ascend.com>
101132
101133         * m4/Makefile.am (EXTRA_DIST): Add them.
101134         * m4/jm-macros.m4: New file.
101135         * m4/utimbuf.m4: New file.
101136
101137 1998-05-12  Jim Meyering  <meyering@ascend.com>
101138
101139         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
101140
101141 1998-05-11  Jim Meyering  <meyering@ascend.com>
101142
101143         * m4/isc-posix.m4: New file.
101144
101145 1998-05-10  Jim Meyering  <meyering@ascend.com>
101146
101147         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
101148
101149 1998-05-09  Jim Meyering  <meyering@ascend.com>
101150
101151         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
101152         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
101153         with automake.
101154
101155         * m4/ssize_t.m4: New file.
101156         * m4/mktime.m4: Remove file -- the new automake has this now.
101157
101158 1998-04-26  Jim Meyering  <meyering@ascend.com>
101159
101160         * m4/assert.m4: New file.
101161         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
101162
101163 1998-04-05  Jim Meyering  <meyering@ascend.com>
101164
101165         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
101166         (jm_PREREQ): Use it here.
101167
101168 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
101169
101170         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
101171         in acconfig.h.
101172
101173 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
101174
101175         * m4/prereq.m4: New file.
101176         * m4/error.m4: New file.
101177         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
101178
101179 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
101180
101181         * m4/getline.m4: Don't set am_cv_func_working_getline before the
101182         cache-check for the same variable -- that defeated the purpose of
101183         the test; the test program was never run.  This was a problem only
101184         on systems with losing getline functions -- HP-UX 10.20 is one.
101185         Reported by Bjorn Helgaas.
101186
101187 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
101188
101189         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
101190
101191 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
101192
101193         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
101194
101195         * m4/const.m4: New file.  Use an initializer in this declaration
101196         typedef int charset[2]; const charset x;
101197         Reported by Bob Glickstein.
101198
101199 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
101200
101201         * m4/chown.m4: Fix reversed types on -1 args to chown.
101202         From Kaveh Ghazi.
101203
101204 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
101205
101206         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
101207         Add lseek and memchr.
101208
101209         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
101210         T.E.Dickey <dickey@clark.net> said that some older preprocessors
101211         have a 20-character limit on names.
101212
101213 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
101214
101215         * m4/inttypes_h.m4: New file.
101216         * m4/uintmax_t.m4: New file.
101217         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
101218
101219
101220         -----
101221
101222         Local Variables:
101223         coding: utf-8
101224         End:
101225
101226         Copyright (C) 1997-2014 Free Software Foundation, Inc.
101227
101228         Copying and distribution of this file, with or without
101229         modification, are permitted provided the copyright notice
101230         and this notice are preserved.